Book Image

Mastering Quantum Computing with IBM QX

By : Dr. Christine Corbett Moran
Book Image

Mastering Quantum Computing with IBM QX

By: Dr. Christine Corbett Moran

Overview of this book

<p>Quantum computing is set to disrupt the industry. IBM Research has made quantum computing available to the public for the first time, providing cloud access to IBM QX from any desktop or mobile device. Complete with cutting-edge practical examples, this book will help you understand the power of quantum computing in the real world.</p> <p>Mastering Quantum Computing with IBM QX begins with the principles of quantum computing and the areas in which they can be applied. You'll explore the IBM Ecosystem, which enables quantum development with Quantum Composer and Qiskit. As you progress through the chapters, you'll implement algorithms on the quantum processor and learn how quantum computations are actually performed.</p> <p>By the end of the book, you will completely understand how to create quantum programs of your own, the impact of quantum computing on your business, and how to future-proof your programming career.</p>
Table of Contents (22 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

Executing quantum circuits in simulation or hardware from the Quantum Composer


Now comes the fun part. In this section, we will get to run our first program on a quantum computer. Let's test the circuit preparing state |"10000"> that we just went over. Create a new quantum circuit in the Quantum Composer and put an X gate on the first qubit. Then put a measurement gate on each wire. Your circuit should look like this: 

Executing a quantum circuit in simulation

Now, click the Simulate button. Give your experiment the name "10000". The default simulation parameters, editable next to the Simulate button, specify that the circuit will be run 100 times. Remember that in quantum computing, each time we prepare an input and run an identical circuit, we may get different results as, for measurements, there is a certain probability of 1 and a certain probability of 0. Therefore, any one run might not tell us much about the probability of the output. Luckily, either in simulation or on the real quantum...