Vectors, matrices and linear algebra
Quantum states are vectors. Gates are matrices. A small calculation connects the two.
- Multiply a two-by-two matrix by a state vector.
- Explain norm preservation for an ideal quantum gate.
A state as a column
Section titled “A state as a column”We represent the basis states with two simple columns:
A general pure qubit has column . Its squared norm is .
A gate as a matrix
Section titled “A gate as a matrix”The X gate exchanges the two amplitudes:
To multiply a matrix by a column, take each row’s dot product with the column. For the first row above, .
The Hadamard gate is
Applying it to gives . Applying it again gives . The cancellation in the second component is interference in matrix form.
Why unitary matrices?
Section titled “Why unitary matrices?”An ideal closed-system gate satisfies , where the dagger means conjugate transpose. This property preserves inner products and norms, so valid states remain normalised. It also means .
Measurement and noisy evolution need more general descriptions; do not assume every physical operation is a unitary gate on the subsystem you observe.
Practise
Section titled “Practise”Calculate . You should obtain . Then verify and directly. Use the gate playground to compare the numerical outputs with your calculation.
Reference: IBM Quantum — Single systems.
Ready for the next step?
Your progress stays in this browser.