Skip to Content
Quantum Programming in Depth
book

Quantum Programming in Depth

by Mariia Mykhailova
July 2025
Intermediate to advanced content levelIntermediate to advanced
288 pages
9h 53m
English
Manning Publications
Content preview from Quantum Programming in Depth

4 Analyze quantum states

This chapter covers

  • Using quantum measurements to extract information about quantum states
  • Implementing quantum measurements using Q# and Qiskit
  • Analyzing quantum measurement outcomes
  • Writing tests to validate information extracted using measurements

As we discussed in chapter 2, a typical quantum algorithm follows a standard sequence of steps (see figure 4.1): prepare the initial state of the quantum system, modify it as prescribed by the algorithm, and then extract the answer using measurements. In chapter 2, we learned to implement the first step, preparing the quantum system in the given state, and in chapter 3, we covered the second step, implementing the unitary transformations to modify the quantum state ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Quantum Software with Python

Building Quantum Software with Python

Charlee Stefanski, Constantin Gonciulea
Quantum Computing

Quantum Computing

Andrew Glasner

Publisher Resources

ISBN: 9781633436909Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link