
Physics V course sequence · Interactive lesson
Pauli matrices and the spin operator
Spin-half needs no wavefunction. Diagonalise Sz and every observable on the space becomes a 2×2 matrix built from three fixed arrays. This lesson is about the one product rule that generates all of them — the commutators, the anticommutators, and every rotation you will ever apply to a qubit — and about where that rule stops.
UPV-10.03 · Lesson 3 of 9 in this unit. Position is not a completion score.Build the model
The algebra becomes three 2×2 arrays — once you fix the basis.
The key idea
The Pauli matrices are the three Hermitian, traceless 2×2 matrices that square to the identity and represent spin-half in the Sz eigenbasis, the spin operator itself being S = (ħ/2)σ.
Example. σz = diag(1, −1) gives Sz = (ħ/2)diag(1, −1) with eigenvalues ±ħ/2 = ±5.27×10⁻³⁵ J s, while σₓ² + σy² + σz² = 3I makes S² = (3/4)ħ²I, the same on every spinor.
The complete physical model and assumptions
Unit 10 began with an algebra, [Sᵢ, Sⱼ] = iħ εᵢⱼₖ Sₖ, acting on a two-dimensional space. Diagonalising Sz and fixing the one leftover relative phase turns that abstract statement into three concrete arrays — the Pauli matrices — and the single definition S = (ħ/2)σ. What you buy is that one line of arithmetic, σᵢσⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ, now generates everything: its antisymmetric half returns the su(2) commutators, and its symmetric half, (σᵢ, σⱼ) = 2δᵢⱼ I, is a Clifford relation the commutators never implied. Because σᵢ² = I and distinct σ's anticommute, (n̂⋅σ)² = I for every unit vector, which is why a spin component along any axis has eigenvalues ±ħ/2, and why exp(−iθ n̂⋅σ/2) collapses from an infinite series to two terms. And because I together with the three σᵢ span the Hermitian 2×2 matrices, every qubit observable, Hamiltonian and density matrix is a₀I + a⋅σ — four real numbers, with eigenvalues a₀ ± |a|. The cost is paid twice. The arrays are a representation, not the physics: another basis or phase convention hands you different arrays obeying the same algebra, so only the trace, determinant, eigenvalues and commutators are claims about spin. And the anticommutator is a two-dimensional accident. Spin-1 obeys the same commutators with 3×3 matrices for which Sz² is not a multiple of the identity, and every shortcut here that leaned on σᵢ² = I dies there.
1Diagonalise Sz first, and the arrays are forced
Nothing here is postulated. The previous topic fixed a two-dimensional space and the one before it fixed the algebra; choose the basis that diagonalises Sz, label its eigenvectors |↑⟩ and |↓⟩ with eigenvalues ±ħ/2, and Sz = (ħ/2)diag(1, −1) by construction. The other two arrays follow from the ladder operators, S₊ = ħ|↑⟩⟨↓| and S₋ = ħ|↓⟩⟨↑|, through Sₓ = (S₊ + S₋)/2 and Sy = (S₊ − S₋)/2i; UPV-09.08 derives those ladder elements, so take them as given here. What no derivation can fix is the phase of |↓⟩ relative to |↑⟩, and it is worth seeing what that phase controls. Replace |↓⟩ by e(iχ)|↓⟩: σz is untouched, but the off-diagonal elements pick up e(±iχ), so in terms of the standard arrays σₓ is now represented by cos χ σₓ − sin χ σy and σy by sin χ σₓ + cos χ σy. The phase convention rotates the x and y arrays into each other about z. The Condon–Shortley convention takes ⟨↑|S₊|↓⟩ real and positive, which sets χ = 0 and puts −i in the top right of σy; choose χ = π/2 instead and Sy is represented by the real array (ħ/2)(0 1; 1 0) while Sₓ takes an imaginary one.
2One product rule, and the whole algebra is done
σᵢσⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ is nine matrix products compressed into one line, and it is worth checking once by hand: σₓσy = (0 1; 1 0)(0 −i; i 0) = (i 0; 0 −i) = iσz. Now split it by symmetry in i ↔ j. The antisymmetric half is [σᵢ, σⱼ] = 2i εᵢⱼₖ σₖ, which with S = (ħ/2)σ becomes [Sᵢ, Sⱼ] = (ħ²/4)(2i)εᵢⱼₖ(2/ħ)Sₖ = iħ εᵢⱼₖ Sₖ — the su(2) relation you started from, recovered, which is the consistency check that these arrays really are a representation of it. The symmetric half is (σᵢ, σⱼ) = 2δᵢⱼ I, and this is genuinely new information: nothing in the commutators implies it. Setting i = j gives σᵢ² = I, hence Sᵢ² = (ħ²/4)I for each component separately, and summing the three gives S² = (3/4)ħ²I. A spin-half therefore returns ⟨S²⟩ = 3ħ²/4 in every state, pure or mixed — S² is a multiple of the identity and carries no information at all.
3Squaring to the identity is the workhorse
Multiply two Pauli vectors out: (a⋅σ)(b⋅σ) = Σᵢⱼ aᵢ bⱼ σᵢσⱼ = (a⋅b)I + i(a×b)⋅σ. Put a = b = n̂ and the cross product vanishes, leaving (n̂⋅σ)² = I for every unit vector, not merely for the three axes. Two consequences do most of the work in this unit. First, an operator that squares to I and has zero trace can only have eigenvalues +1 and −1, one of each, so S⋅n̂ = (ħ/2) n̂⋅σ has eigenvalues ±ħ/2 along every axis and no measurement of a spin component ever returns anything in between. Second, powers collapse: n̂⋅σ raised to an even power is I, to an odd power is n̂⋅σ itself. So any function given by a power series needs only two terms, f(n̂⋅σ) = ½[f(1) + f(−1)] I + ½[f(1) − f(−1)] n̂⋅σ. For f(x) = exp(−iαx) that is exp(−iα n̂⋅σ) = cos α I − i sin α (n̂⋅σ) exactly; UPV-09.08 reads it, with α = θ/2, as the SU(2) rotation through θ, and every single-qubit gate is one of these up to a global phase.
4Four real numbers describe any qubit operator
Tr σᵢ = 0 and Tr(σᵢσⱼ) = 2δᵢⱼ make (I, σₓ, σy, σz) an orthogonal basis for the 2×2 matrices under the Hilbert–Schmidt product Tr(A†B). So any Hermitian A is A = a₀I + a⋅σ with a₀ = ½Tr A and aₖ = ½Tr(σₖ A), all four real. In components A = (a₀+az, aₓ−iay ; aₓ+iay, a₀−az), so the top-right entry hands you aₓ and ay by inspection. Because (n̂⋅σ)² = I, the eigenvalues are a₀ ± |a|: the identity part shifts both levels alike and the vector part opens a gap 2|a| about it. Two payoffs follow at once. A Zeeman Hamiltonian H = −γB⋅S = −(γħ/2)B⋅σ has a₀ = 0, so its splitting is ħ|γ||B|; for an electron at B = 0.10 T, with |γ| = 1.761×10¹¹ s⁻¹ T⁻¹, that is 2.80 GHz in frequency, or 1.86×10⁻²⁴ J. And any density matrix, Hermitian with Tr ρ = 1, is forced into ρ = (I + a⋅σ)/2 with a = ⟨σ⟩ — the Bloch vector.
5The arrays are a representation; the algebra is the physics
Change basis with a unitary U and every operator becomes UσU†. That preserves Hermiticity, the trace, the determinant, the eigenvalues and every commutator, while scrambling the arrays themselves. Diagonalise Sₓ instead of Sz and, in that basis, the array diag(1, −1) is what you would call σₓ, while σz has moved off-diagonal. So the claim that σz is diagonal records a choice you made, not a property of the z axis, and the column (1, 0)ᵀ means spin-up only relative to a stated basis. Two things do pin the set down. The triple (σₓ, σy, σz) transforms as a vector under rotations, which is exactly what makes n̂⋅σ invariant when n̂ and the axes turn together. And handedness is fixed by σₓσyσz = iI: flipping the sign of σy alone would leave every anticommutator intact while reversing the commutators, giving a left-handed set that is not the same physics.
6Where the two-dimensional shortcuts stop
Every step above that leaned on σᵢ² = I is spin-half only. For spin-1 the same su(2) commutators are carried by 3×3 matrices with Sz = ħ diag(1, 0, −1), so Sz² = ħ² diag(1, 0, 1), which is not a multiple of the identity. The Clifford relation fails, and with it the two-valued spectrum — spin-1 components have eigenvalues +ħ, 0 and −ħ — and the two-term rotation formula. The exponential still truncates for spin-1, but at three terms, because (n̂⋅S/ħ)³ = n̂⋅S/ħ there. Completeness fails too: a Hermitian 3×3 needs nine real numbers, and I with the three Sᵢ supply only four; the missing five are the rank-2 quadrupole operators, which is why a spin-1 nucleus can carry an electric quadrupole moment and a spin-half nucleus cannot. What survives at every spin is the commutator algebra and S² = ħ²s(s+1)I. Keep the order of dependence straight: su(2) first, the Clifford relation second, and only the first generalises.
Key equations
Read the units, assumptions and limits before substituting.
The spin operator as a Pauli vector
S = (ħ/2) σ, σ = (σₓ, σy, σz)
Parks every unit in one prefactor, so the algebra below is pure numbers.
Sᵢ in J s; each σᵢ dimensionless, Hermitian, traceless, with σᵢ² = I.The three arrays in the Sz eigenbasis
σₓ = [[0, 1], [1, 0]]σy = [[0, −i], [i, 0]]σz = [[1, 0], [0, −1]]
Only σz is diagonal, so only Sz has these basis kets as eigenstates.
Rows and columns ordered up, down; each inner bracket is one row, and the text writes the same arrays as (0 1; 1 0), a semicolon between rows.The master product rule
σᵢ σⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ
Nine matrix products stored in one line — every relation below is read off it.
i, j, k run over x, y, z; εᵢⱼₖ is +1 on cyclic order; sum over repeated k.Commutator and anticommutator
[σᵢ, σⱼ] = 2i εᵢⱼₖ σₖ(σᵢ, σⱼ) = 2 δᵢⱼ I
The first holds at every spin; the second only in two dimensions.
Equivalently [Sᵢ, Sⱼ] = iħ εᵢⱼₖ Sₖ and {Sᵢ, Sⱼ} = (ħ²/2) δᵢⱼ I.Composing two Pauli vectors
(a⋅σ)(b⋅σ) = (a⋅b) I + i (a×b)⋅σ
Truncates the exponential to exp(−iα n̂⋅σ) = cos α I − i sin α (n̂⋅σ).
a, b any real 3-vectors in whatever unit they carry. For a = b = n̂: (n̂⋅σ)² = I.Expanding any Hermitian 2×2
A = a₀ I + a⋅σ, a₀ = ½ Tr A, aₖ = ½ Tr(σₖ A)
Four numbers fix any qubit Hamiltonian, and the eigenvalues are a₀ ± |a|.
a₀ and a real, in the unit of A; uses Tr σᵢ = 0 and Tr(σᵢ σⱼ) = 2 δᵢⱼ.Interactive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Turn a without changing its length — try (aₓ, ay, az) = (2, 2, 1), then (1, 2, 2), then (2, 1, 2): the printed matrix changes completely and the two levels never move, because only the length of a sets the gap. Then push one slider outward and watch the gap open as twice that length.
Live results
- LENGTH OF a
- 3.00 meV
- LEVEL SPLITTING 2|a|
- 6.00 meV
- det A
- -9.00 meV²
- POLAR ANGLE OF n
- 48.2 deg
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Component aₓ: 1.0 meV; Component ay: 2.0 meV; Component az: 2.0 meV
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The commonest slip is to carry σᵢσⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ straight across to the spin operators and write SᵢSⱼ = δᵢⱼ I + i εᵢⱼₖ Sₖ. Units alone kill it: the left side carries (J s)², while the right side adds a pure number to something measured in J s. Because S = (ħ/2)σ, the prefactor enters twice on the left and only once on the right, so the honest statement is SᵢSⱼ = (ħ²/4) δᵢⱼ I + (iħ/2) εᵢⱼₖ Sₖ. Everything else drops out of that one line: antisymmetrising returns [Sᵢ, Sⱼ] = iħ εᵢⱼₖ Sₖ, symmetrising returns {Sᵢ, Sⱼ} = (ħ²/2) δᵢⱼ I, and setting i = j returns Sᵢ² = (ħ²/4)I — not I, which is what the mis-scaled version would claim, and which would make S² = 3I rather than (3/4)ħ²I. The habit worth building is to quote the clean product identity only for the dimensionless σ, and to re-attach an ħ/2 to every factor the moment you switch to S.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
Using only σᵢσⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ, with no matrix multiplication, evaluate σzσₓ, σₓσyσz and (σₓ + σz)². Confirm σzσₓ once with the arrays, then find the eigenvalues of Sₓ + Sz without writing its matrix.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- σzσₓ: here i = z and j = x, so δzx = 0 and only k = y survives, with εzxy = +1 because (z, x, y) is a cyclic order. Hence σzσₓ = iσy.
- Array check: (1 0; 0 −1)(0 1; 1 0) = (0 1; −1 0), and iσy = i(0 −i; i 0) = (0 1; −1 0). They agree.
- σₓσyσz: the rule gives σₓσy = iσz, so σₓσyσz = iσz² = iI. The triple product is a pure multiple of the identity, and its sign +i records that the set is right-handed.
- (σₓ + σz)² = σₓ² + σz² + (σₓσz + σzσₓ) = I + I + (σₓ, σz) = 2I, because (σₓ, σz) = 2δxz I = 0.
- Sₓ + Sz = (ħ/2)(σₓ + σz), so (Sₓ + Sz)² = (ħ²/4)(2I) = (ħ²/2)I. Every eigenvalue λ therefore obeys λ² = ħ²/2, and zero trace forces one of each sign: λ = ±ħ/√2 = ±7.46×10⁻³⁵ J s.
- Check: Sₓ + Sz = √2 S⋅n̂ with n̂ = (1, 0, 1)/√2, and S⋅n̂ has eigenvalues ±ħ/2, so λ = ±√2(ħ/2) = ±ħ/√2 again. The answer is not ±ħ, the sum of the component eigenvalues, because Sₓ and Sz do not commute and share no eigenvector.
Answer. σzσₓ = iσy, σₓσyσz = iI and (σₓ + σz)² = 2I, so Sₓ + Sz has eigenvalues ±ħ/√2 = ±7.46×10⁻³⁵ J s, not ±ħ.
MediumExample 2
A two-level defect has Hamiltonian H = (3, 1−2i ; 1+2i, −1) meV in the up/down basis, the semicolon separating its rows. Expand it as H = a₀I + a⋅σ, find both energy levels and the splitting, and check the result against the trace and determinant of H.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- H is Hermitian: the diagonal is real and the off-diagonal entries are conjugates, so the expansion coefficients are real.
- a₀ = ½Tr H = ½(3 + (−1)) = 1 meV, and az = ½(H₁₁ − H₂₂) = ½(3 − (−1)) = 2 meV.
- The top-right entry of a₀I + a⋅σ is aₓ − i ay, so 1 − 2i gives aₓ = 1 meV and ay = 2 meV. Hence a = (1, 2, 2) meV and |a| = √(1 + 4 + 4) = 3 meV.
- Since (n̂⋅σ)² = I with n̂ = a/|a| = (1, 2, 2)/3, the eigenvalues of a⋅σ are ±|a|, so E± = a₀ ± |a| = 1 ± 3, giving +4 meV and −2 meV.
- Check: E₊ + E₋ = 2 meV = Tr H, and E₊E₋ = −8 meV² = det H = (3)(−1) − (1−2i)(1+2i) = −3 − 5. Both agree.
- The identity part only lifts both levels by 1 meV; the observable splitting is 2|a| = 6 meV, which is resonant at f = 6 meV / h = 1.45 THz.
Answer. H = (1 meV)I + (1, 2, 2) meV ⋅ σ, with E₊ = +4 meV and E₋ = −2 meV, a 6 meV splitting about the 1 meV offset. The upper level is spin up along n̂ = (1, 2, 2)/3, at 48.19° from the z axis, and the lower level is spin down along the same n̂.
HardExample 3
Starting from σᵢσⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ, prove (a⋅σ)(b⋅σ) = (a⋅b)I + i(a×b)⋅σ and split it into a commutator and an anticommutator. Use the result to find [S⋅n̂₁, Sz] and (S⋅n̂₁, Sz) for n̂₁ = (1, 2, 2)/3, then to invert A = a₀I + a⋅σ in closed form, and apply the inverse to H = (3, 1−2i ; 1+2i, −1) meV from the Medium example.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- Expand: (a⋅σ)(b⋅σ) = Σᵢⱼ aᵢ bⱼ σᵢσⱼ = Σᵢⱼ aᵢ bⱼ (δᵢⱼ I + i εᵢⱼₖ σₖ) = (a⋅b)I + i(a×b)⋅σ, since Σᵢⱼ aᵢ bⱼ εᵢⱼₖ = (a×b)ₖ. The aᵢ and bⱼ are numbers, so they commute with every σ.
- Swap the factors: b×a = −a×b, so (b⋅σ)(a⋅σ) = (a⋅b)I − i(a×b)⋅σ. Subtracting gives [a⋅σ, b⋅σ] = 2i(a×b)⋅σ and adding gives (a⋅σ, b⋅σ) = 2(a⋅b)I. Spin components along two axes commute only if the axes are parallel or antiparallel, and anticommute only if they are perpendicular.
- For n̂₁ = (1, 2, 2)/3 and ẑ: n̂₁×ẑ = (2, −1, 0)/3 and n̂₁⋅ẑ = 2/3. With S = (ħ/2)σ, [S⋅n̂₁, Sz] = (ħ²/4)(2i)(n̂₁×ẑ)⋅σ = iħ(n̂₁×ẑ)⋅S = iħ(2Sₓ − Sy)/3, and (S⋅n̂₁, Sz) = (ħ²/4)(2)(2/3)I = (ħ²/3)I. Check: |n̂₁×ẑ| = √5/3 = 0.745 = sin 48.19°, as it must be.
- Inverse: with b = a the identity gives (a⋅σ)² = |a|²I, so (a₀I + a⋅σ)(a₀I − a⋅σ) = (a₀² − |a|²)I. Hence det A = a₀² − |a|² = (a₀ + |a|)(a₀ − |a|), the product of the two eigenvalues, and A⁻¹ = (a₀I − a⋅σ)/(a₀² − |a|²) whenever neither eigenvalue is zero.
- For H, a₀ = 1 meV and a = (1, 2, 2) meV, so a₀² − |a|² = 1 − 9 = −8 meV², which is det H. Then H⁻¹ = (a⋅σ − a₀I)/(8 meV²) = (1, 1−2i ; 1+2i, −3)/8 meV⁻¹ = (0.125, 0.125−0.250i ; 0.125+0.250i, −0.375) meV⁻¹.
- Check: the first row of H times the first column of H⁻¹ gives 3(0.125) + (1−2i)(0.125+0.250i) = 0.375 + 0.625 = 1.000, and times the second column gives 3(0.125−0.250i) + (1−2i)(−0.375) = 0. On the Pauli basis H⁻¹ = −0.125 I + (0.125, 0.250, 0.250)⋅σ meV⁻¹, whose eigenvalues −0.125 ± 0.375 = +0.250 and −0.500 meV⁻¹ are 1/(+4 meV) and 1/(−2 meV).
Answer. (a⋅σ)(b⋅σ) = (a⋅b)I + i(a×b)⋅σ splits into [a⋅σ, b⋅σ] = 2i(a×b)⋅σ and (a⋅σ, b⋅σ) = 2(a⋅b)I, so [S⋅n̂₁, Sz] = iħ(2Sₓ − Sy)/3 and (S⋅n̂₁, Sz) = (ħ²/3)I. It also gives A⁻¹ = (a₀I − a⋅σ)/(a₀² − |a|²); for the Medium H that is (0.125, 0.125−0.250i ; 0.125+0.250i, −0.375) meV⁻¹, with eigenvalues +0.250 and −0.500 meV⁻¹.
Quick check
Select an answer and explain it before checking.
Review & continue
The Pauli matrices are the three Hermitian, traceless 2×2 matrices that square to the identity and represent spin-half in the Sz eigenbasis, the spin operator itself being S = (ħ/2)σ.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.