2.2 Working with Qiskit
In this section, we will learn how to work with the Qiskit framework. We will first discuss the general structure of Qiskit, and then we will study how to implement quantum circuits in Qiskit using quantum gates and measurements. Then, we will explore how to run these circuits using the simulators provided by Qiksit and also real quantum computers available for free thanks to IBM. This section is key, for we will use Qiskit extensively in this book.
Important note
Quantum computing is a rapidly-evolving field…and so are its software frameworks! We are going to work with version 0.39.2 of Qiskit. Keep in mind that, if you are using a different version, things may have changed. In case of doubt, you should always refer to the documentation (https://qiskit.org/documentation/).
2.2.1 An overview of the Qiskit framework
The Qiskit framework [102] consists of the components depicted in Figure 2.1. At the very foundation of Qiskit lies Qiskit Terra. This...