Understanding quantum circuits
In previous chapters, you had some exposure to quantum circuit operations in order to understand some of the basic quantum components. These basic operations included creating a quantum circuit, applying quantum gates to the circuit, and executing the circuit on a simulator.
We will now take a deeper look into quantum circuits to better understand what properties and functionalities are available to us to not just execute these circuits on a real device but to do so as optimally as possible. In this section, we will learn how to extract circuit properties, such as circuit depth, width, size, and obtaining the number of actual operators. Let's first start by reviewing the various forms of creating a quantum circuit.
Creating a quantum circuit
There are various ways to create a quantum circuit, each depending on how much information you need throughout your circuit. For example, would you access either the quantum or classical registers? Up...