Scientia sine finibus

Linear Algebra / Unit 9, The Mathematics of Quantum Mechanics / Topic 9.4

Units and Topics

Unit 9. The Mathematics of Quantum Mechanics

9.4 Spin One Half and the Pauli Matrices

The spin of an electron is the smallest quantum system. Its state space is C², and each of its observables is built from the three Pauli matrices. This topic collects the properties of the Pauli matrices, finds the spin states for any direction in space, and applies the measurement rule of Topic 9.3 to them.

You need Topics 8.3, 8.6, 9.1, and 9.3 for this topic.

1. The Spin of an Electron

An electron has a property called spin, which behaves like a small magnet. An experiment can measure the component of the spin along any chosen direction. The experiment of Stern and Gerlach showed in 1922 that such a measurement has only two possible results. In modern units the results are +ħ/2 and −ħ/2, where ħ = 1.055 × 10⁻³⁴ joule seconds is the constant of Topic 8.4.

An observable with two results needs a state space of dimension 2. The spin components along the three axes are the observables

Sx = ħ/2σx Sy = ħ/2σy Sz = ħ/2σz σx = 0110 σy = 0−ii0 σz = 100−1

The eigenkets of Sz are the standard basis. They are called spin up and spin down, and they are written with arrows.

|↑⟩ = 10 |↓⟩ = 01 Sz|↑⟩ = ħ/2|↑⟩ Sz|↓⟩ = −ħ/2|↓⟩

The calculations of this topic use the Pauli matrices, with the results 1 and −1. Multiplying by ħ/2 gives the spin in physical units.

2. The Properties of the Pauli Matrices

PropertyStatement
Hermitian and unitaryEach Pauli matrix is equal to its conjugate transpose and to its inverse
Squareσx² = σy² = σz² = I
Trace and determinantThe trace is 0, and the determinant is −1
Eigenvalues1 and −1 for each of the three matrices
Productsσxσy = iσz, σyσz = iσx, σzσx = iσy
Reversed productsσyσx = −iσz, and in the same way for the other pairs
Commutators[σx, σy] = 2iσz, [σy, σz] = 2iσx, [σz, σx] = 2iσy

The three products follow one pattern: the indexes x, y, z appear in the order of a circle, x to y to z and back to x. Reversing a product changes its sign, so two different Pauli matrices anticommute. For the spin operators, the commutators of Topic 8.6 become

[Sx, Sy] = iħSz [Sy, Sz] = iħSx [Sz, Sx] = iħSy

No two spin components commute, so no state has sharp values of two of them.

Each 2 by 2 Hermitian matrix

The identity and the three Pauli matrices are a basis of the 2 by 2 Hermitian matrices, with real coefficients.

a₀I + a₁σx + a₂σy + a₃σz = a₀ + a₃a₁ − ia₂a₁ + ia₂a₀ − a₃

For example, the matrix H of Topic 8.3 has the rows 2, 1 − i and 1 + i, 3. Comparing the entries gives a₀ + a₃ = 2, a₀ − a₃ = 3, a₁ = 1, and a₂ = 1, so H = 2.5I + σx + σy − 0.5σz.

3. The Spin along Any Direction

A direction in space is a unit vector n. It is described by two angles: θ is the angle from the z axis, and φ is the angle around the z axis, measured from the x axis.

n = (sin θ cos φ, sin θ sin φ, cos θ)

The spin component along n is the combination of the three Pauli matrices with the components of n.

σn = n₁σx + n₂σy + n₃σz = cos θe−iφ sin θeiφ sin θ−cos θ

The trace of σn is 0, and its determinant is −cos²θ − sin²θ = −1. The eigenvalues add up to 0, and their product is −1, so they are 1 and −1. The measurement has the same two results for each direction in space. The eigenkets are

|n, +⟩ = cos(θ/2)eiφ sin(θ/2) |n, −⟩ = sin(θ/2)−eiφ cos(θ/2)

The eigenkets contain half of the angle θ. A check for the first one: the first entry of σn|n, +⟩ is cos θ cos(θ/2) + sin θ sin(θ/2), which is cos(θ − θ/2) = cos(θ/2).

Directionθ and φSpin up along this direction
z axis0° and any angle(1, 0)
x axis90° and 0°(1, 1)/√2
y axis90° and 90°(1, i)/√2
Opposite to the z axis180° and any angle(0, 1), apart from a phase factor

Each state has a direction. Apart from a phase factor, each ket of length 1 in C² has the form cos(θ/2)|↑⟩ + eiφ sin(θ/2)|↓⟩. So each state of a spin is the state spin up along exactly one direction n. Two opposite directions in space belong to two orthogonal kets.

4. Probabilities

Let the spin be up along a direction m, and measure the spin along another direction n. Let γ be the angle between the two directions. The measurement rule gives

probability of the result 1 = cos²(γ/2) probability of the result −1 = sin²(γ/2)

The expectation value is cos²(γ/2) − sin²(γ/2) = cos γ. For γ = 0° the result 1 is certain. For γ = 180° the result −1 is certain. For γ = 90° the two results have the probability 1/2.

A check with m along the z axis: the state is |↑⟩, and the amplitude of the result 1 is the bracket of |n, +⟩ with |↑⟩, which is cos(θ/2). Here γ = θ.

The three expectation values together give the direction of the state: (⟨σx⟩, ⟨σy⟩, ⟨σz⟩) = m.

Try it: the probability of spin up along a direction

The drawing shows the plane of the x axis and the z axis. The blue arrow is the direction of the state, and the red arrow is the direction of the measurement. The sliders set the angle of each arrow from the z axis. The bars show the probabilities of the two results.

5. A Sequence of Measurements

The measurement rule makes a definite prediction for three measurements in a row.

StepMeasurementWhat the rule says
1σz, and keep the electrons with the result 1The state is |↑⟩
2σxThe results 1 and −1 have the probability 1/2. Keep the electrons with the result 1. Their state is now |+⟩ = (|↑⟩ + |↓⟩)/√2
3σz againThe results 1 and −1 have the probability 1/2

Before step 2, a measurement of σz would give 1 with certainty. After step 2, the result of σz is random again. The measurement of σx put the spin into an eigenket of σx, which is not an eigenket of σz. This is the consequence of [σz, σx] ≠ 0 that Topic 8.6 announced, and experiments with electrons and atoms confirm it.

6. Rotations of a Spin

Because σn² = I, the exponential of Topic 8.5 has a short form for each direction n. The eigenvalues are 1 and −1, so the function e−iαλ/2 takes the values e−iα/2 and eiα/2.

U = e−iασn/2 = cos(α/2) I − i sin(α/2) σn

This unitary matrix turns the direction of each spin state by the angle α around the axis n. For a rotation by 90° around the y axis, cos(45°) = sin(45°) = 1/√2, and −iσy is the matrix with the rows 0, −1 and 1, 0.

U = 1/√2 1−111 and U|↑⟩ = 1/√2 11

The state spin up along z has become the state spin up along x, as a rotation by 90° around the y axis requires.

A rotation by 360° gives

U = cos(180°) I − i sin(180°) σnhalf of 360° is 180°U = −Icos(180°) = −1 and sin(180°) = 0

The ket returns with the factor −1. This factor is a phase factor, so the state is the same, but the ket itself returns to its start only after a rotation by 720°. The half angles of Part 3 are the reason, and the name spin one half refers to them.

Common Mistakes

  • Using the full angle θ in the eigenkets. The entries are cos(θ/2) and sin(θ/2).
  • Expecting orthogonal kets for perpendicular directions. The kets for the z axis and the x axis are not orthogonal. Orthogonal kets belong to opposite directions.
  • Writing σyσx = iσz. The product in the reversed order has a minus sign.
  • Leaving out the factor ħ/2 between a Pauli matrix and a spin operator.
  • Adding the three Pauli matrices to get the spin along a direction without the components of the unit vector n.

Summary

FactStatement
Spin operatorsSx = (ħ/2)σx, and in the same way for y and z
Productsσxσy = iσz and its two versions with the indexes moved around the circle
Hermitian matricesEach 2 by 2 Hermitian matrix is a₀I + a₁σx + a₂σy + a₃σz with real coefficients
Spin along nσn has the eigenvalues 1 and −1 for each direction
Spin up along ncos(θ/2)|↑⟩ + eiφ sin(θ/2)|↓⟩
Probabilitycos²(γ/2) for the result 1, where γ is the angle between the two directions
Rotatione−iασn/2 = cos(α/2) I − i sin(α/2) σn

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Check the product σyσz = iσx by multiplying the matrices.

0−ii0 100−1 = 0ii0.

This is i times the matrix with the rows 0, 1 and 1, 0, which is iσx.

2. Write the matrix 32i−2i1 as a combination of I and the Pauli matrices.

a₀ + a₃ = 3the entry in row 1, column 1a₀ − a₃ = 1the entry in row 2, column 2a₀ = 2add the two equations, then divide by 2a₃ = 1substitute a₀ = 2a₁ − ia₂ = 2ithe entry in row 1, column 2a₁ = 0the real parta₂ = −2the imaginary part

The matrix is 2I − 2σy + σz.

3. Find the ket for spin up along the direction with θ = 60° and φ = 0°.

The entries are cos(30°) and sin(30°): the ket is (√3/2, 1/2).

4. A spin is up along the z axis. Find the probability of the result 1 for a measurement along the direction of Problem 3.

The angle between the two directions is 60°, so the probability is cos²(30°) = 3/4.

The bracket gives the same number: the amplitude is √3/2.

5. A spin is up along the x axis. Find ⟨Sz⟩ and ⟨Sx⟩.

The expectation values of the Pauli matrices are the components of the direction, so ⟨σz⟩ = 0 and ⟨σx⟩ = 1.

⟨Sz⟩ = 0 and ⟨Sx⟩ = ħ/2.

6. Find the matrix of a rotation by 180° around the z axis, and apply it to the ket (1, 1)/√2.

U = cos(90°) I − i sin(90°) σzU = −iσzcos(90°) = 0 and sin(90°) = 1

This is the matrix with the rows −i, 0 and 0, i.

U(1, 1)/√2 = −i(1, −1)/√2. Apart from the phase factor −i, this is spin down along the x axis. The rotation turned the x direction into its opposite.

Python Practice

Step 1. Products of Pauli matrices

The code below defines the three Pauli matrices and compares the product σxσy with iσz.

Python

The test gives True. Now check the second product of Part 2: change M to σyσz, and compare it with iσx.

Python

Step 2. The Pauli coefficients of a Hermitian matrix

The trace of a product of two different Pauli matrices is 0, and the trace of the square of a Pauli matrix is 2. So the coefficient of a Pauli matrix in a Hermitian matrix H is one half of the trace of H times that Pauli matrix. The coefficient of the identity is one half of the trace of H. The code below finds a₀, a₁, and a₂ for the matrix H of Part 2.

Python

The results are 2.5, 1, and 1. Now change the line for a3 so that it calculates the coefficient of σz. The result should be −0.5, and the last line should give True.

Python

Step 3. The spin along a direction

The code below builds σn for the direction with θ = 60° and φ = 0°. Python measures angles in radians, and 60° is π/3. The instruction np.linalg.eigh gives the eigenvalues −1 and 1. The second column of V is the eigenket for the eigenvalue 1. It can differ from the ket of Part 3 by a phase factor, so the code prints the squared absolute values of its entries.

Python

The squared absolute values are 0.75 and 0.25, which are cos²(30°) and sin²(30°). Now change the direction to the x axis, with θ = 90°, which is π/2. The two squared absolute values should be 0.5.

Python

Step 4. A probability

The code below builds the ket for spin up along a direction from the formula of Part 3. It then calculates the probability that a spin in the state |↑⟩ gives the result 1 in a measurement along that direction.

Python

The probability is 0.75, which is cos²(30°), as in Practice Problem 4. Now change the angle θ to 120°, which is 2π/3. The probability should be cos²(60°) = 0.25.

Python

Step 5. A rotation

The code below builds the rotation matrix of Part 6 for the y axis and applies it to the state |↑⟩. The angle is 90°.

Python

The result is (0.7071, 0.7071), the state spin up along the x axis. Now change the angle to 360°, which is 2π. The result should be the ket (−1, 0).

Python

A rotation by 360° multiplies the ket by −1, as Part 6 states.

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. Which matrix is equal to the product σxσy?

2. A spin is up along the z axis. The spin is measured along a direction at 120° from the z axis. Find the probability of the result 1.

3. n is a unit vector. What are the eigenvalues of σn = n₁σx + n₂σy + n₃σz?

4. The matrix 5221 is written as a₀I + a₁σx + a₂σy + a₃σz. Find a₀ and a₃.

5. A spin is rotated by 360° around an axis. By which factor is its ket multiplied?

Next: Topic 9.5, Functions as Vectors