Ang pahinang ito ay hindi pa naisalin. Nakikita mo ang orihinal na bersyon sa Ingles.
Quantum bits, gates, and circuits
Kifumi Numata (19 Apr 2024)
Click here to download the pdf of the original lecture. Note that some code snippets might become deprecated since these are static images.
Approximate QPU time to run this experiment is 5 seconds.
1. Introduction
Bits, gates, and circuits are the basic building blocks of quantum computing. You will learn quantum computation with the circuit model using quantum bits and gates, and also review the superposition, measurement, and entanglement.
In this lesson you will learn:
- Single-qubit gates
- Bloch sphere
- Superposition
- Measurement
- Two-qubit gates and entanglement state
At the end of this lecture, you will learn about circuit depth, which is essential for utility-scale quantum computing.
2. Computation as a diagram
When using qubits or bits, we need to manipulate them in order to turn the inputs we have into the outputs we need. For the simplest programs with very few bits, it is useful to represent this process in a diagram known as a circuit diagram.
The bottom-left figure is an example of a classical circuit, and the bottom-right figure is an example of a quantum circuit. In both cases, the inputs are on the left and the outputs are on the right, while the operations are represented by symbols. The symbols used for the operations are called “gates”, mostly for historical reasons.
3. Single-qubit quantum gate
3.1 Quantum state and Bloch sphere
A qubit's state is represented as a superposition of and . An arbitrary quantum state is represented as
where and are complex numbers such that .
and are vectors in the two-dimensional complex vector space:
Therefore, an arbitrary quantum state is also represented as
From this, we can see that the state of a quantum bit is a unit vector in a two-dimensional complex inner product space with an orthonormal basis of and . It is normalized to 1.
|\psi\rangle =\begin\{pmatrix\} \alpha \\ \beta \end\{pmatrix\} is also called the statevector.
A single-qubit quantum state is also represented as