Quantum Circuits

1. Qubits

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:

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.

invert center small screen

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:

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: .

There are some important relations between these matrices:

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.

Back to Home