0%

A step-by-step guide to learning the implementation and associated methodologies in quantum computing with the help of the IBM Quantum Experience, Qiskit, and Python that will have you up and running and productive in no time

Key Features

  • Determine the difference between classical computers and quantum computers
  • Understand the quantum computational principles such as superposition and entanglement and how they are leveraged on IBM Quantum Experience systems
  • Run your own quantum experiments and applications by integrating with Qiskit

Book Description

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.

What you will learn

  • Explore quantum computational principles such as superposition and quantum entanglement
  • Become familiar with the contents and layout of the IBM Quantum Experience
  • Understand quantum gates and how they operate on qubits
  • Discover the quantum information science kit and its elements such as Terra and Aer
  • Get to grips with quantum algorithms such as Bell State, Deutsch-Jozsa, Grover's algorithm, and Shor's algorithm
  • How to create and visualize a quantum circuit

Who this book is for

This book is for Python developers who are looking to learn quantum computing and put their knowledge to use in practical situations with the help of IBM Quantum Experience. Some background in computer science and high-school-level physics and math is required.

Table of Contents

  1. Learn Quantum Computing with Python and IBM Quantum Experience
  2. Why subscribe?
  3. Contributors
  4. About the author
  5. About the reviewer
  6. Packt is searching for authors like you
  7. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Download the example code files
    5. Code in Action
    6. Download the color images
    7. Conventions used
    8. Get in touch
    9. Reviews
  8. Section 1: Tour of the IBM Quantum Experience (QX)
  9. Chapter 1: Exploring the IBM Quantum Experience
    1. Technical requirements
    2. Navigating the IBM Quantum Experience
    3. Registering to the IBM Quantum Experience
    4. Understanding the Personal profile tab
    5. Getting started with IBM Quantum Experience
    6. Learning about your backends
    7. Learning about pending and latest results
    8. Exploring My Account
    9. Summary
    10. Questions
  10. Chapter 2: Circuit Composer – Creating a Quantum Circuit
    1. Technical requirements
    2. Creating a quantum circuit using the Composer
    3. Launching the Composer editor
    4. Familiarizing yourself with the Circuit Composer components
    5. Creating our first quantum circuit
    6. Building a quantum circuit with classical bit behaviors
    7. Building a coin-flipping experiment
    8. Entangling two coins together
    9. Summary
    10. Questions
  11. Chapter 3: Creating Quantum Circuits using Quantum Lab Notebooks
    1. Technical requirements
    2. Creating a quantum circuit using Quantum Lab Notebooks
    3. Launching a Notebook from the Quantum Lab
    4. Familiarizing yourself with the Quantum Lab components
    5. Opening and importing existing Quantum Lab Notebook
    6. Developing a quantum circuit on Quantum Lab Notebooks
    7. Reviewing the results of your quantum circuit on Quantum Lab Notebooks
    8. Executing a quantum circuit on a quantum computer
    9. Summary
    10. Questions
  12. Section 2: Basics of Quantum Computing
  13. Chapter 4: Understanding Basic Quantum Computing Principles
    1. Technical requirements
    2. Introducing quantum computing
    3. Understanding superposition
    4. Learning about classical randomness
    5. Preparing a qubit in a superposition state
    6. Understanding entanglement
    7. Learning about the effects of interference between qubits
    8. Creating a quantum teleportation circuit
    9. Executing the quantum teleportation circuit
    10. Summary
    11. Questions
  14. Chapter 5: Understanding the Quantum Bit (Qubit)
    1. Technical requirements
    2. Learning about quantum bits (qubits)
    3. Reviewing the classic bit
    4. Understanding the qubit
    5. Visualizing the state vector of a qubit
    6. Creating the Bloch sphere representation of a qubit
    7. Understanding multi-qubits
    8. Learning about superconducting qubits
    9. Coupling the qubits together
    10. Summary
    11. Questions
  15. Chapter 6: Understanding Quantum Logic Gates
    1. Technical requirements
    2. Reviewing classical logic gates
    3. Understanding unitary operators
    4. Summary
    5. Questions
  16. Section 3: Algorithms, Noise, and Other Strange Things in Quantum World
  17. Chapter 7: Introducing Qiskit and its Elements
    1. Technical requirements
    2. Understanding quantum and classical system interconnections
    3. Reviewing the quantum programming process
    4. Understanding how to organize and interact with Qiskit
    5. Understanding Qiskit basics and its elements
    6. Terra
    7. Aer
    8. Ignis
    9. Aqua
    10. Installing and configuring Qiskit on your local machine
    11. Preparing the installation
    12. Installing Anaconda
    13. Installing Qiskit
    14. Configuring your local Qiskit environment
    15. Getting support from the Qiskit community
    16. Introducing the Qiskit community
    17. Contributing to the Qiskit community
    18. Summary
    19. Questions
  18. Chapter 8: Programming with Qiskit Terra
    1. Technical requirements
    2. Understanding quantum circuits
    3. Creating a quantum circuit
    4. Obtaining circuit properties and analysis
    5. Customizing and parameterizing circuit libraries
    6. Generating pulse schedules on hardware
    7. Learning about instructions
    8. Understanding pulses and Pulse libraries
    9. Generating and executing schedules
    10. Scheduling existing quantum circuits
    11. Leveraging provider information
    12. Learning about the IBM Quantum Experience components
    13. Summary
    14. Questions
  19. Chapter 9: Monitoring and Optimizing Quantum Circuits
    1. Technical requirements
    2. Monitoring and tracking jobs
    3. Optimizing circuits using the Transpiler
    4. Transformation of a quantum circuit
    5. Optimizing the circuit by leveraging the layout optimizer
    6. Leaning about backend configuration and optimization
    7. Understanding passes and pass managers
    8. Visualizing and enhancing circuit graphs
    9. Learning about customized visual circuits
    10. Drawing the DAG of a circuit
    11. Summary
    12. Questions
  20. Chapter 10: Executing Circuits Using Qiskit Aer
    1. Technical requirements
    2. Understanding the differences between the Aer simulators
    3. Viewing all available backends
    4. Running circuits on the Qasm simulator
    5. Adding parameters to the backend options
    6. Initializing the qubits on a circuit
    7. Running circuits on the statevector simulator
    8. Running circuits on the unitary simulator
    9. Running circuits on the pulse simulator
    10. Generating noise models
    11. Understanding decoherence (T1 and T2)
    12. Understanding single-gate, multi-gate, and readout errors
    13. Building your own noise model
    14. Executing quantum circuits with custom noise models
    15. Adding custom noise models to our circuits
    16. Summary
    17. Questions
  21. Chapter 11: Mitigating Quantum Errors Using Ignis
    1. Technical requirements
    2. Generating noise effects of relaxation
    3. Generating noise models and test circuits
    4. Estimating T1 decoherence times
    5. Generating the noise effects of dephasing
    6. Generating and executing T2 circuits
    7. Estimating T2 decoherence times
    8. Generating and executing T2* test circuits
    9. Estimating the T2* dephasing time
    10. Mitigating readout errors
    11. Summary
    12. Questions
    13. Further reading
  22. Chapter 12: Learning about Qiskit Aqua
    1. Technical requirements
    2. Understanding the components and their usability
    3. Initializing a fixed quantum state
    4. Creating a neural network discriminator
    5. Implementing state function operators
    6. Using Aqua utilities to simplify your work
    7. Familiarizing yourself with the quantum algorithms in Aqua
    8. Implementing the Logical Expression Oracle
    9. Implementing a truth table Oracle
    10. Creating your first classical/quantum application (Simon's)
    11. Stating Simon's problem
    12. Implementing Simon's algorithm
    13. Summary
    14. Questions
  23. Chapter 13: Understanding Quantum Algorithms
    1. Technical requirements
    2. Understanding the meaning of outperforming classical systems
    3. Understanding the Bell states algorithm
    4. Learning about Deutsch's algorithm
    5. Understanding the Deutsch-Jozsa algorithm
    6. Learning about the foundational oracle-based quantum algorithm
    7. Learning about the Bernstein-Vazirani algorithm
    8. Summary
    9. Questions
  24. Chapter 14: Applying Quantum Algorithms
    1. Technical requirements
    2. Understanding periodic quantum algorithms
    3. Learning Simon's algorithm
    4. Learning about the Quantum Fourier Transform algorithm
    5. Understanding Shor's algorithm
    6. Learning about Grover's search algorithm
    7. Learning about the problem
    8. Understanding Grover's search algorithm
    9. Implementing Grover's search algorithm
    10. Summary
    11. Questions
  25. Appendix A: Resources
  26. Assessments
    1. Chapter 1 – Exploring the IBM Quantum Experience
    2. Question 1
    3. Answer
    4. Question 2
    5. Answer
    6. Question 3
    7. Answer
    8. Question 4
    9. Answer
    10. Question 5
    11. Answer
    12. Chapter 2 – Circuit Composer – Creating a Quantum Circuit
    13. Question 1
    14. Answer
    15. Question 2
    16. Answer
    17. Question 3
    18. Answer
    19. Question 4
    20. Answer
    21. Chapter 3 – Creating Quantum Circuits Using Quantum Lab Notebooks
    22. Question 1
    23. Answer
    24. Question 2
    25. Answer
    26. Question 3
    27. Answer
    28. Question 4
    29. Answer
    30. Chapter 4 – Understanding Basic Quantum Computing Principles
    31. Question 1
    32. Answer
    33. Question 2
    34. Answer
    35. Question 3
    36. Answer
    37. Question 4
    38. Answer
    39. Chapter 5 – Understanding the Quantum Bits (Qubit)
    40. Question 1
    41. Answer
    42. Question 2
    43. Answer
    44. Question 3
    45. Answer
    46. Question 4
    47. Answer
    48. Question 5
    49. Answer
    50. Question 6
    51. Answer
    52. Question 7
    53. Answer
    54. Question 8
    55. Answer
    56. Chapter 6 – Understanding Quantum Logic Gates
    57. Question 1
    58. Answer
    59. Question 2
    60. Answer
    61. Question 3
    62. Answer
    63. Question 4
    64. Answer
    65. Question 5
    66. Answer
    67. Question 6
    68. Answer
    69. Question 7
    70. Answer
    71. Question 8
    72. Answer
    73. Chapter 7 – Introducing Qiskit and Its Elements
    74. Question 1
    75. Answer
    76. Question 2
    77. Answer
    78. Question 3
    79. Answer
    80. Question 4
    81. Answer
    82. Question 5
    83. Answer
    84. Question 6
    85. Answer
    86. Question 7
    87. Answer
    88. Chapter 8 – Programming with Qiskit Terra
    89. Question 1
    90. Answer
    91. Question 2
    92. Answer
    93. Question 3
    94. Answer
    95. Question 4
    96. Answer
    97. Question 5
    98. Answer
    99. Question 6
    100. Answer
    101. Question 7
    102. Answer
    103. Chapter 9 – Monitoring and Optimizing Quantum Circuits
    104. Question 1
    105. Answer
    106. Question 2
    107. Answer
    108. Question 3
    109. Answer
    110. Question 4
    111. Answer
    112. Question 5
    113. Answer
    114. Question 6
    115. Answer
    116. Question 7
    117. Answer
    118. Question 8
    119. Answer
    120. Question 9
    121. Answer
    122. Chapter 10 – Executing Circuits Using Qiskit Aer
    123. Question 1
    124. Answer
    125. Question 2
    126. Answer
    127. Question 3
    128. Answer
    129. Question 4
    130. Answer
    131. Question 5
    132. Answer
    133. Question 6
    134. Answer
    135. Question 7
    136. Answer
    137. Question 8
    138. Answer
    139. Chapter 11 – Mitigating Quantum Errors Using Ignis
    140. Question 1
    141. Answer
    142. Question 2
    143. Answer
    144. Question 3
    145. Answer
    146. Question 4
    147. Answer
    148. Question 5
    149. Answer
    150. Question 6
    151. Answer
    152. Question 7
    153. Answer
    154. Question 8
    155. Answer
    156. Chapter 12 – Learning about Qiskit Aqua
    157. Question 1
    158. Answer
    159. Question 2
    160. Answer
    161. Question 3
    162. Answer
    163. Question 4
    164. Answer
    165. Question 5
    166. Answer
    167. Question 6
    168. Answer
    169. Question 7
    170. Answer
    171. Question 8
    172. Answer
    173. Chapter 13 – Understanding Quantum Algorithms
    174. Question 1
    175. Answer
    176. Question 2
    177. Answer
    178. Question 3
    179. Answer
    180. Question 4
    181. Answer
    182. Question 5
    183. Answer
    184. Question 6
    185. Answer
    186. Chapter 14 – Applying Quantum Algorithms
    187. Question 1
    188. Answer
    189. Question 2
    190. Answer
    191. Question 3
    192. Answer
    193. Question 4
    194. Answer
    195. Question 5
    196. Answer
    197. Question 6
    198. Answer
    199. Question 7
    200. Answer
    201. Question 8
    202. Answer
  27. Other Books You May Enjoy
    1. Leave a review - let other readers know what you think
3.129.13.201