Book Image

Learn Quantum Computing with Python and IBM Quantum Experience

By : Robert Loredo
Book Image

Learn Quantum Computing with Python and IBM Quantum Experience

By: Robert Loredo

Overview of this book

IBM Quantum Experience is a platform that enables developers to learn the basics of quantum computing by allowing them to run experiments on a quantum computing simulator and a real quantum computer. This book will explain the basic principles of quantum mechanics, the principles involved in quantum computing, and the implementation of quantum algorithms and experiments on IBM's quantum processors. You will start working with simple programs that illustrate quantum computing principles and slowly work your way up to more complex programs and algorithms that leverage quantum computing. As you build on your knowledge, you’ll understand the functionality of IBM Quantum Experience and the various resources it offers. Furthermore, you’ll not only learn the differences between the various quantum computers but also the various simulators available. Later, you’ll explore the basics of quantum computing, quantum volume, and a few basic algorithms, all while optimally using the resources available on IBM Quantum Experience. By the end of this book, you'll learn how to build quantum programs on your own and have gained practical quantum computing skills that you can apply to your business.
Table of Contents (21 chapters)
Section 1: Tour of the IBM Quantum Experience (QX)
Section 2: Basics of Quantum Computing
Section 3: Algorithms, Noise, and Other Strange Things in Quantum World
Appendix A: Resources


  1. For the multi-qubit gates, try flipping the Source and Target. Do you see a difference when you decompose the circuit?
  2. Decompose all the gates for both single and multi-qubit circuits. What do you notice about how the universal gates are constructed?
  3. Implement the Toffoli gate where the target is the center qubit of a three-qubit circuit.
  4. Decompose the Toffoli gate. How many gates in total are used to construct it?
  5. Apply the Toffoli gate along with a Hadamard gate to a state vector simulator and compare the results to that from the Qasm simulator. What differences do you see and why?
  6. If you wanted to sort three qubits in the opposite direction, which gates would you use and in which order?
  7. Given a three-qubit circuit, how would you go about swapping the first and third qubits?
  8. Given a three-qubit circuit, how would you set the second qubit as the Target of a Toffoli gate?