|q⟩ Bad Qubits

intermediate · Physics · Angular Momentum Theory

Expectation Values of Components

A measurement of an angular-momentum component yields one of its eigenvalues, with probabilities set by the state. The average over many identical measurements is the expectation value, the most directly comparable prediction between theory and experiment.

Definition

For an observable A^\hat{A} and a normalized state ψ|\psi\rangle, the expectation value is

A^=ψA^ψ.\langle \hat{A}\rangle = \langle\psi|\hat{A}|\psi\rangle.

It is the mean of the eigenvalues weighted by their measurement probabilities. For A^=L^z\hat{A} = \hat{L}_z acting on ψ=mcm,m|\psi\rangle = \sum_m c_m |\ell, m\rangle,

L^z=mmcm2,\langle \hat{L}_z\rangle = \sum_m \hbar m\,|c_m|^2,

since each ,m|\ell, m\rangle contributes its eigenvalue m\hbar m with probability cm2|c_m|^2.

The spin-1/2 case

For a single spin-12\tfrac12 (a qubit), identify =0|{\uparrow}\rangle = |0\rangle and =1|{\downarrow}\rangle = |1\rangle, with S^z=2σz\hat{S}_z = \tfrac{\hbar}{2}\,\sigma_z. The two eigenvalues are ±2\pm\tfrac{\hbar}{2}, so

S^z=2(p0p1),\langle \hat{S}_z\rangle = \frac{\hbar}{2}\big(p_0 - p_1\big),

where p0=0ψ2p_0 = |\langle 0|\psi\rangle|^2 and p1=1ψ2p_1 = |\langle 1|\psi\rangle|^2. The expectation value ranges continuously from +2+\tfrac{\hbar}{2} (pure 0|0\rangle) to 2-\tfrac{\hbar}{2} (pure 1|1\rangle), even though each individual measurement returns only one of the two discrete values.

A parametrized state

Apply a YY-rotation to 0|0\rangle:

Ry(θ)0=cosθ20+sinθ21.R_y(\theta)|0\rangle = \cos\frac{\theta}{2}\,|0\rangle + \sin\frac{\theta}{2}\,|1\rangle.

Then p0=cos2(θ/2)p_0 = \cos^2(\theta/2) and p1=sin2(θ/2)p_1 = \sin^2(\theta/2), so using the double-angle identity cos2(θ/2)sin2(θ/2)=cosθ\cos^2(\theta/2) - \sin^2(\theta/2) = \cos\theta,

S^z=2cosθ.\langle \hat{S}_z\rangle = \frac{\hbar}{2}\cos\theta.

This is exactly the vector-model result: θ\theta is the polar angle of the Bloch vector, and the zz-projection of a unit spin is 2cosθ\tfrac{\hbar}{2}\cos\theta.

Try it

Use Ry(θ)R_y(\theta) with θ=π/3\theta = \pi/3 to prepare the state, then compute and return S^z=12(p0p1)\langle \hat{S}_z\rangle = \tfrac{1}{2}(p_0 - p_1) (with =1\hbar = 1). It should equal 0.250.25.

Run your code to see the quantum state.

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