Skip to main content

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.
Starting model: Pauli matrices and the spin operatorThe traceless Hermitian matrix A = a⋅σ, printed at left from its three Pauli components with off-diagonal entry a_x − i a_y, and its two energy levels at right. The levels sit symmetrically about zero at plus and minus the length of a, currently ±3.00 meV, a gap of 6.00 meV. Filled circle is the upper level, open circle the lower.+3.00 meV−3.00 meV0gap = 6.00 meVA = a⋅σ, Hermitian and tracelessa = ( 1.00, 2.00, 2.00 ) meVA = [ 2.00 1.00 − i(2.00) ;1.00 + i(2.00) −2.00 ]eigenvalues ± 3.00 meVdet A = −9.00 (Tr A = 0)turn a: eigenvectors move, levels do notstretch a: the gap opens as twice its length
Start with a picture. Change the model in the lab below.
1

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.

2

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 δᵢⱼ.
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

1.0 meV
−2 to 2 meV; steps of 0.1.
2.0 meV
−2 to 2 meV; steps of 0.1.
2.0 meV
−2 to 2 meV; steps of 0.1.

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.

Interactive Physics V modelThe traceless Hermitian matrix A = a⋅σ, printed at left from its three Pauli components with off-diagonal entry a_x − i a_y, and its two energy levels at right. The levels sit symmetrically about zero at plus and minus the length of a, currently ±3.00 meV, a gap of 6.00 meV. Filled circle is the upper level, open circle the lower.+3.00 meV−3.00 meV0gap = 6.00 meVA = a⋅σ, Hermitian and tracelessa = ( 1.00, 2.00, 2.00 ) meVA = [ 2.00 1.00 − i(2.00) ;1.00 + i(2.00) −2.00 ]eigenvalues ± 3.00 meVdet A = −9.00 (Tr A = 0)turn a: eigenvectors move, levels do notstretch a: the gap opens as twice its length
The traceless Hermitian matrix A = a⋅σ, printed at left from its three Pauli components with off-diagonal entry aₓ − i ay, and its two energy levels at right. The levels sit symmetrically about zero at plus and minus the length of a, currently ±3.00 meV, a gap of 6.00 meV. Filled circle is the upper level, open circle the lower.

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

Baseline 1.0; choose −2 to 2, in steps of 0.1.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

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.

5

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.

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.

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.

6

Quick check

Select an answer and explain it before checking.

The identity σᵢσⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ carries two independent pieces of information. Which statement separates them correctly?
7

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.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.