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

2 Prepare quantum states

This chapter covers

  • Using quantum gates to change quantum states
  • Using Q# and Qiskit to write quantum programs
  • Running and testing quantum programs using simulators
  • Watching the state of a quantum program during its execution

Quantum algorithms revolve around manipulating the states of quantum systems. Figure 2.1 shows the flow typical for many quantum algorithms. The algorithm starts with preparing the quantum system in a certain superposition state and then applies a sequence of transformations to it before performing a measurement to extract the results. The goal of the algorithm is to lead the system to a superposition state in which the basis states that are answers to the problem being solved have large ...

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