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 , the inner product is
where is the conjugate transpose. The Euclidean norm is . Valid pure quantum states satisfy .
Linear operators
A gate on qubits is a unitary with . 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.