Skip to content
Linear algebra refresher

Linear algebra refresher

February 1, 2025

Quantum states are vectors; evolution before measurement is described by unitary matrices (gates).

Vectors and inner products

For column vectors u,vCdu, v \in \mathbb{C}^d, the inner product is

uv=uv, \langle u \vert v \rangle = u^\dagger v,

where uu^\dagger is the conjugate transpose. The Euclidean norm is v=vv\lVert v \rVert = \sqrt{\langle v \vert v \rangle}. Valid pure quantum states satisfy ψ=1\lVert \psi \rVert = 1.

Linear operators

A gate on nn qubits is a unitary UC2n×2nU \in \mathbb{C}^{2^n \times 2^n} with UU=IU^\dagger U = I. Composition of gates corresponds to matrix multiplication applied in the correct order for the circuit diagram.

If your high-school linear algebra was real-only, get comfortable with complex numbers early: amplitudes are complex, and global phases are unobservable in standard measurements.

Next

Dirac notation