At the end of this tutorial, you will be able to simulate the behavior of quantum circuits on your computer using Qiskit. You will also be able to connect to the IBM Q backend and access IBM’s quantum computer through the cloud (believe it or not, it’s free and everyone can access it).
Before we dive into the real work, I want to lay down the requirements, and how to get them:
You will need to have Python ( version > 3.5 ), Anaconda, and the Jupyter Console. You can install all of them at the same time, simply by getting the Anaconda distribution. You can find it here.
Next, you will need to install the Qiskit library. To do that, you can use any package management system, but for this tutorial, I will demonstrate the steps of doing it using PIP. Now, you will need to get PIP which is a package management system for Python. Use this command to install PIP:
sudo apt install python-pip
Then use pip to install Qiskit using this command:
pip install qiskit
You are almost there. Now all you need to do is to open up a terminal window. Then, type in:
Congratulations, now you are ready to start executing commands and exploring the behavior of quantum circuits.
I want to cover the theory behind the experiment that we will be doing, but first, it is good to know the difference between a Qubit and a regular bit. If you haven’t heard already, quantum computers use Qubits instead of classical bits to perform their tasks. Qubits are quantum-mechanical systems that can result in a 0 or a 1 or some superposition of them. Here is a good picture to show that: