|q⟩ Bad Qubits

intermediate · Physics · Spin-½ Systems & Pauli Algebra

Pauli Matrices Revisited

The three Pauli matrices are the building blocks of all spin-½ physics. In the zz-basis {0,1}\{|0\rangle, |1\rangle\} they are

σx=(0110),σy=(0ii0),σz=(1001).\sigma_x = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad \sigma_y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, \quad \sigma_z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}.

They are exactly the qubit gates XX, YY, ZZ. This lesson collects the algebraic facts you will use constantly; later lessons derive their commutators and physical consequences.

Hermitian and unitary at once

Each Pauli matrix equals its own conjugate transpose, σk=σk\sigma_k^\dagger = \sigma_k, so they are Hermitian — hence they represent observables, with real eigenvalues. They are also unitary, σkσk=I\sigma_k^\dagger \sigma_k = I, so they are valid quantum gates. The two properties together force a strong condition we exploit below.

Each Pauli squares to the identity

A direct calculation gives

σx2=σy2=σz2=I.\sigma_x^2 = \sigma_y^2 = \sigma_z^2 = I.

For σy\sigma_y, for instance,

σy2=(0ii0)(0ii0)=((i)(i)00(i)(i))=(1001).\sigma_y^2 = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix} \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix} = \begin{pmatrix} (-i)(i) & 0 \\ 0 & (i)(-i) \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}.

A matrix satisfying A2=IA^2 = I is called an involution. Combined with Hermiticity and unitarity this tells us the Paulis are simultaneously their own inverses: σk1=σk\sigma_k^{-1} = \sigma_k.

Trace and determinant

Every Pauli matrix is traceless and has determinant 1-1:

trσk=0,detσk=1.\operatorname{tr}\sigma_k = 0, \qquad \det \sigma_k = -1.

Because the trace equals the sum of eigenvalues and the determinant their product, the only possibility for each Hermitian σk\sigma_k is the eigenvalue pair

λ±=±1.\lambda_\pm = \pm 1.

These dimensionless ±1\pm 1 eigenvalues become the physical ±2\pm\tfrac{\hbar}{2} measurement outcomes once we form the spin operators Sk=2σkS_k = \tfrac{\hbar}{2}\sigma_k in a later lesson.

Try it

Confirm the involution property numerically for σy\sigma_y: square it as a complex 2×22\times 2 matrix and return the real part of the (0,0)(0,0) entry, which should be 11.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.