A qubit is the basic unit of quantum information. It has a quantum state, which is a superposition of and :
, are amplitudes. We interpret these as probabilities:
Probability in 0:
Probability in 1:
Remember, we can represent and , where and .
Since and .
We cannot change global phase with quantum operations: i.e. . For example, and are equivalent - the same qubit state.
1.1 Bloch Sphere Representation
How many variables do we need to fully represent a quantum state? We have 4 variables: . But we have 2 constraints: and global phase (, ). So we need 2 variables to represent a qubit state. We can use and to represent a qubit state.
Now, , where is the polar angle and is the azimuthal angle. This is called the Bloch sphere representation.
2. Transformations
An adjoint of a matrix is a transpose complex conjugate:
.
.
If then .
A general linear transformation must preserve normalization . So 𝟙 and is unitary. It is hence a reversible transformation ().
For example, with operation , we can see:
We have had a destructive interference! This is very different from a classical probabilistic operation.
3. Single Qubit Gates
The classical reversible gates (ID, NOT) are unitary. We extend these to the Pauli gates: , , and , and the Hadamard gate: .
is the Pauli matrix. , which is a bit flip.
is the Pauli matrix.
is the Pauli matrix.
- it creates a superposition of and .
There are some important relations between these matrices:
𝟙.
.
, and are Hermitian ().
, , .
3.1 Measurement Gate
The measurement gate is irreversible: projects and returns a readout bit (Born rule). It translates from a quantum state to a classical bit:
4. Quantum Circuits
Some basic quantum circuits are shown below:
Time flows from left to right:
An example computation of a quantum circuit is:
5. States of Multiple Qubits
The state of qubits is described by the normalized superposition of bits states:
Since , we can also write as:
With .
Again, linear operations preserve the norm: . So and is unitary. It is hence a reversible transformation ().
The gate is a cyclic permutation transformation. For example, on qubits:
The CNOT on of qubits is defined as:
The tensor product of unitary gates is unitary. For example is unitary.
An example circuit that with gates spanning multiple qubits is shown below:
5.1 Controlled Unitary
is a controlled unitary operation, where is the control qubit. For example, and . Hence, is applied only if the control qubit is in state . This is drawn as:
We may also special notation for gate as CNOT:
5.2 Entanglement
An -qubit state is separable if , where is the state of the -th qubit. Otherwise, it is entangled. For example, the Bell State:
A quantum circuit to prepare the bell state is:
5.3 Generalized Born Rule
Measurement gates are non-reversible. If with probability .
If we measure only the top qubit then:
So measuring projects onto the following (Generalised Born Rule):
Where is the probability mass of events compatible with the measurement outcome:
This means measuring qubits seperately is equivalent to measuring them together.