Jupyter notebooks
Jupyter notebooks are web-based environments for running code and displaying information about the code. To program quantum computers, we’ll create Jupyter notebooks that run Python programs with IBM’s Qiskit library functions.
To get started with Qiskit, follow these steps:
- Visit the quantum computing lab: https://quantum-computing.ibm.com/lab.
- Create an IBM account.
- Return to the quantum computing lab page: https://quantum-computing.ibm.com/lab.
- In the resulting Launcher tab, click on the Notebook | Python 3 (ipykernel) buttons:
Figure 1.21 – Creating a Qiskit notebook
A new Jupyter notebook appears. Near the top of the notebook, there’s an empty text field.
In the next section, you will populate that text field with Python code.
Creating and displaying values
A Jupyter notebook consists of cells. In a typical scenario, each cell contains a text field. You can type code...