|q⟩ Bad Qubits

beginner · Physics · Spin & the Stern–Gerlach Experiment

Pauli Matrices as Spin Operators

Spin-1/2 is the simplest quantum mechanical degree of freedom. A spin-1/2 particle has only two spin states along any axis: spin-up and spin-down. The mathematical machinery for all three spin components is encoded in three 2×22 \times 2 matrices called the Pauli matrices:

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

The physical spin operator along each axis is obtained by scaling:

Sx=2σx,Sy=2σy,Sz=2σz.S_x = \frac{\hbar}{2}\,\sigma_x, \qquad S_y = \frac{\hbar}{2}\,\sigma_y, \qquad S_z = \frac{\hbar}{2}\,\sigma_z.

The factor /2\hbar/2 is not arbitrary: it ensures that measuring SzS_z yields one of the two values ±/2\pm\hbar/2, the experimentally observed spin eigenvalues. In many calculations it is convenient to work with the dimensionless Pauli matrices directly and restore factors of /2\hbar/2 at the end.

Eigenstates and eigenvalues

An eigenstate of an operator AA with eigenvalue λ\lambda satisfies Aψ=λψA|\psi\rangle = \lambda|\psi\rangle. For σz\sigma_z the two eigenstates are the standard basis vectors:

σz0=0,σz1=1,\sigma_z |0\rangle = |0\rangle, \qquad \sigma_z |1\rangle = -|1\rangle,

where 0=(10)|0\rangle = \binom{1}{0} and 1=(01)|1\rangle = \binom{0}{1}. This can be verified by direct matrix multiplication:

(1001)(10)=(10)=+10.\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}\begin{pmatrix} 1 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 \\ 0 \end{pmatrix} = +1 \cdot |0\rangle.

So 0|0\rangle is the spin-up eigenstate of σz\sigma_z with eigenvalue +1+1, and 1|1\rangle is the spin-down eigenstate with eigenvalue 1-1.

For σx\sigma_x the eigenstates are the diagonal states:

+x=12(11),x=12(11).|{+x}\rangle = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\1\end{pmatrix}, \qquad |{-x}\rangle = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\-1\end{pmatrix}.

One can check: σx+x=(0110)12(11)=12(11)=+1+x\sigma_x |{+x}\rangle = \begin{pmatrix}0&1\\1&0\end{pmatrix}\frac{1}{\sqrt{2}}\binom{1}{1} = \frac{1}{\sqrt{2}}\binom{1}{1} = +1\cdot|{+x}\rangle, confirming eigenvalue +1+1.

Algebraic properties

The Pauli matrices satisfy three important relations. First, each squares to the identity:

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

Second, they anticommute in pairs:

σxσy+σyσx=0,σyσz+σzσy=0,σzσx+σxσz=0.\sigma_x\sigma_y + \sigma_y\sigma_x = 0, \quad \sigma_y\sigma_z + \sigma_z\sigma_y = 0, \quad \sigma_z\sigma_x + \sigma_x\sigma_z = 0.

Third, they satisfy cyclic commutation relations:

[σx,σy]=2iσz,[σy,σz]=2iσx,[σz,σx]=2iσy.[\sigma_x, \sigma_y] = 2i\,\sigma_z, \quad [\sigma_y, \sigma_z] = 2i\,\sigma_x, \quad [\sigma_z, \sigma_x] = 2i\,\sigma_y.

These three commutators encode the non-commutativity of spin: measuring SxS_x and then SyS_y is not the same as measuring SyS_y and then SxS_x. Physically, this means spin components along different axes cannot both have definite values simultaneously.

Expectation values

The expectation value of an observable AA in state ψ|\psi\rangle is the average measurement outcome, computed as the inner product:

A=ψAψ.\langle A \rangle = \langle\psi|A|\psi\rangle.

For example, the expectation value of σz\sigma_z in the state ψ=α0+β1|\psi\rangle = \alpha|0\rangle + \beta|1\rangle is

σz=ψσzψ=(α,β)(1001)(αβ)=α2β2.\langle\sigma_z\rangle = \langle\psi|\sigma_z|\psi\rangle = (\alpha^*, \beta^*)\begin{pmatrix}1&0\\0&-1\end{pmatrix}\begin{pmatrix}\alpha\\\beta\end{pmatrix} = |\alpha|^2 - |\beta|^2.

This result has a clean interpretation: α2|\alpha|^2 is the probability of finding spin-up (contributing +1+1) and β2|\beta|^2 is the probability of finding spin-down (contributing 1-1), so the expectation value is the probability-weighted average of the two outcomes.

Try it

This is a numerical exercise — return a number. Using matrix arithmetic, compute the expectation value +xσx+x\langle{+x}|\sigma_x|{+x}\rangle where +x=12(11)|{+x}\rangle = \frac{1}{\sqrt{2}}\binom{1}{1} is the spin-up eigenstate of σx\sigma_x.

Run your code to see the quantum state.

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