|q⟩ Bad Qubits

intermediate · Physics · Spin-½ Systems & Pauli Algebra

Expectation Values of Spin

A spin measurement along zz returns ±ℏ2\pm\tfrac{\hbar}{2} at random, but the average of many such measurements on identically prepared states is a definite number — the expectation value. For an observable AA and a state ∣ψ⟩|\psi\rangle,

⟨A⟩=⟨ψ∣A∣ψ⟩.\langle A\rangle = \langle\psi|A|\psi\rangle.

Spin expectation values

For the spin-zz operator Sz=ℏ2σzS_z = \tfrac{\hbar}{2}\sigma_z,

⟨Sz⟩=ℏ2⟨σz⟩=ℏ2(P↑−P↓),\langle S_z\rangle = \frac{\hbar}{2}\langle\sigma_z\rangle = \frac{\hbar}{2}\bigl(P_{\uparrow} - P_{\downarrow}\bigr),

where P↑=∣α∣2P_\uparrow = |\alpha|^2 and P↓=∣β∣2P_\downarrow = |\beta|^2 are the probabilities of measuring up and down. The expectation value is the difference of the two outcome values, weighted by their probabilities — exactly the classical notion of a mean.

The Bloch-vector shortcut

For a general state ∣ψ⟩=cos⁡θ2∣0⟩+eiϕsin⁡θ2∣1⟩|\psi\rangle = \cos\tfrac{\theta}{2}|0\rangle + e^{i\phi}\sin\tfrac{\theta}{2}|1\rangle, the three Pauli expectation values are the Cartesian components of the Bloch vector:

⟨σx⟩=sin⁡θcos⁡ϕ,⟨σy⟩=sin⁡θsin⁡ϕ,⟨σz⟩=cos⁡θ.\langle\sigma_x\rangle = \sin\theta\cos\phi, \qquad \langle\sigma_y\rangle = \sin\theta\sin\phi, \qquad \langle\sigma_z\rangle = \cos\theta.

So computing a spin expectation value is the same as reading off a component of the Bloch arrow:

⟨S⟩=ℏ2 ⟨σ⟩=ℏ2 n^,\langle\mathbf{S}\rangle = \frac{\hbar}{2}\,\langle\boldsymbol{\sigma}\rangle = \frac{\hbar}{2}\,\hat{n},

pointing along the same direction n^\hat{n} the state was prepared in, with length ℏ2\tfrac{\hbar}{2}.

Worked example

Take θ=π3\theta = \tfrac{\pi}{3}, ϕ=0\phi = 0. Then

⟨σz⟩=cos⁡π3=12,⟨Sz⟩=ℏ2⋅12=ℏ4.\langle\sigma_z\rangle = \cos\frac{\pi}{3} = \frac{1}{2}, \qquad \langle S_z\rangle = \frac{\hbar}{2}\cdot\frac{1}{2} = \frac{\hbar}{4}.

The probabilities are P↑=cos⁡2θ2=cos⁡2π6=34P_\uparrow = \cos^2\tfrac{\theta}{2} = \cos^2\tfrac{\pi}{6} = \tfrac{3}{4} and P↓=sin⁡2π6=14P_\downarrow = \sin^2\tfrac{\pi}{6} = \tfrac{1}{4}, so ⟨Sz⟩=ℏ2(34−14)=ℏ4\langle S_z\rangle = \tfrac{\hbar}{2}(\tfrac{3}{4} - \tfrac{1}{4}) = \tfrac{\hbar}{4} — the same answer by the probability route.

Try it

Prepare the state at θ=π/3\theta = \pi/3, ϕ=0\phi = 0 and let the grader read its Bloch vector. The expectation value ⟨Sz⟩=ℏ2⟨σz⟩\langle S_z\rangle = \tfrac{\hbar}{2}\langle\sigma_z\rangle should equal 14\tfrac{1}{4} in units where ℏ=1\hbar = 1.

Run your code to see the quantum state.

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