Expectation Values and Variance

A quantum measurement does not hand you a number — it hands you a lottery. Point an apparatus at an observable AA and you get back one of its eigenvalues, chosen at random, with probabilities the Born rule fixes from the state. To predict anything you must therefore speak the language of statistics, and two numbers do most of the work: the expectation value ⟨A⟩\langle A\rangle, the probability-weighted mean of the outcomes, and the variance Var(A)\mathrm{Var}(A), the mean-squared spread about that mean. The astonishing economy of the quantum formalism is that neither requires you to find the eigenvalues at all. The single sandwich ⟨A⟩=⟨ψ∣A∣ψ⟩\langle A\rangle=\langle\psi|A|\psi\rangle, and its squared partner ⟨A2⟩=⟨ψ∣A2∣ψ⟩\langle A^2\rangle=\langle\psi|A^2|\psi\rangle, compute the entire mean-and-spread directly from the operator, doing the eigenvalue bookkeeping automatically. This article is where the abstract operator algebra of the previous chapter meets the workbench. Prepare a stack of identical copies of ∣ψ⟩|\psi\rangle, measure AA on each, tabulate the readings, and the sample mean marches toward ⟨A⟩\langle A\rangle while the sample variance marches toward Var(A)\mathrm{Var}(A) — the law of large numbers made quantum. The statevector, it turns out, is not merely a probability list; it is a generating object for the full statistics of every observable at once. Two structural facts anchor everything. Hermiticity forces ⟨A⟩\langle A\rangle to be real, so no measurement predicts an imaginary average. And variance, being the expectation of a squared Hermitian operator, can never go negative — it bottoms out at exactly zero, and only when ∣ψ⟩|\psi\rangle is an eigenstate of AA. That single vanishing point is the quantum signature of certainty; everything above it is irreducible spread. From the uncertainty principle to the variational quantum eigensolver, the pairing of mean and variance is the workhorse of quantum prediction.

Key takeaways
  • For a normalized pure state ∣ψ⟩|\psi\rangle and observable A=A†A=A^\dagger, the expectation value ⟨A⟩=⟨ψ∣A∣ψ⟩\langle A\rangle=\langle\psi|A|\psi\rangle is the Born-weighted mean of the eigenvalue outcomes — no diagonalization required.
  • The variance Var(A)=⟨A2⟩−⟨A⟩2=⟨(A−⟨A⟩I)2⟩≥0\mathrm{Var}(A)=\langle A^2\rangle-\langle A\rangle^2=\big\langle(A-\langle A\rangle I)^2\big\rangle\ge0 measures the spread; its root ΔA=Var(A)\Delta A=\sqrt{\mathrm{Var}(A)} is the standard deviation, or uncertainty.
  • Variance vanishes iff ∣ψ⟩|\psi\rangle is an eigenstate of AA — the unique case of a deterministic outcome; any superposition across distinct eigenvalues gives ΔA>0\Delta A>0.
  • Mixed states use the trace: ⟨A⟩=Tr(ρA)\langle A\rangle=\mathrm{Tr}(\rho A) and Var(A)=Tr(ρA2)−[Tr(ρA)]2\mathrm{Var}(A)=\mathrm{Tr}(\rho A^2)-[\mathrm{Tr}(\rho A)]^2, reducing to the pure case when ρ=∣ψ⟩⟨ψ∣\rho=|\psi\rangle\langle\psi|.
  • Estimating ⟨A⟩\langle A\rangle from NN shots costs statistical error ΔA/N\Delta A/\sqrt N — the shot-noise floor of every quantum readout — and variances feed the Robertson relation ΔA ΔB≥12∣⟨[A,B]⟩∣\Delta A\,\Delta B\ge\tfrac12|\langle[A,B]\rangle|.
  • Key idea: an observable defines a random variable whose mean is ⟨ψ∣A∣ψ⟩\langle\psi|A|\psi\rangle and whose variance is ⟨ψ∣A2∣ψ⟩−⟨ψ∣A∣ψ⟩2\langle\psi|A^2|\psi\rangle-\langle\psi|A|\psi\rangle^2; the operator algebra reproduces the classical statistics of the measurement outcomes.

Where this lives today

Expectation values and variances are not a historical footnote — they are the literal output of every quantum processor and the currency of the entire near-term quantum-computing program. In the variational quantum eigensolver (VQE) and its cousin QAOA, a circuit prepares a parametrized state ∣ψ(θ)⟩|\psi(\theta)\rangle, and a classical optimizer minimizes the energy ⟨H⟩=⟨ψ(θ)∣H∣ψ(θ)⟩\langle H\rangle=\langle\psi(\theta)|H|\psi(\theta)\rangle by decomposing HH into a weighted sum of Pauli strings and estimating each term's expectation from measured ±1\pm1 eigenvalues. The variance of each term dictates how many shots that term consumes, and grouping commuting operators to share shots is an active engineering frontier. The same shot-noise floor ΔA/N\Delta A/\sqrt N appears on every readout: a chip reporting ⟨Z⟩\langle Z\rangle per qubit with error bars is quoting a sample mean and (1−⟨Z⟩2)/N\sqrt{(1-\langle Z\rangle^2)/N}. In quantum metrology, the error-propagation form δϕ=ΔA/∣∂ϕ⟨A⟩∣\delta\phi=\Delta A/|\partial_\phi\langle A\rangle| turns variance into a precision limit, and entangled probes push sensing from the standard quantum limit 1/N1/\sqrt N toward the Heisenberg limit 1/N1/N — the principle behind the squeezed-light upgrades that let LIGO hear fainter gravitational waves. And the Robertson relation, powered entirely by these variances, remains the quantitative statement of complementarity no measurement strategy can evade.

The physical picture

Imagine measuring AA as spinning a weighted wheel. Each slot is an eigenvalue aka_k, and the width of that slot is the Born probability pk=∣⟨ak∣ψ⟩∣2p_k=|\langle a_k|\psi\rangle|^2. Spin once and you land in a slot at random. The expectation value is the balance point of the wheel — the center of mass of the eigenvalue distribution — and the variance is its moment of inertia about that balance point, a direct measure of how far the mass sits from the middle. The compact sandwich ⟨ψ∣A∣ψ⟩\langle\psi|A|\psi\rangle is the machine that finds the balance point without ever weighing the slots one by one: substitute the spectral decomposition A=∑kak∣ak⟩⟨ak∣A=\sum_k a_k|a_k\rangle\langle a_k| and it collapses to ∑kakpk\sum_k a_k p_k on its own. The first figure draws that wheel for a concrete qubit, with real probabilities and a real balance point.

Figure
Measuring Z on the qubit (√3 ket0 + ket1)/2 gives outcome +1 with probability 3/4 and −1 with probability 1/4. The balance point is the expectation value ⟨Z⟩ = 3/4 − 1/4 = 1/2, and the spread about it is the standard deviation ΔZ = √3/2 ≈ 0.866
The outcome wheel: mean = balance point, variance = spread of the mass a = −1 a = +1 p = 1/4 p = 3/4 ⟨Z⟩ = 1/2 ΔZ = √3/2 ≈ 0.866 (spread about the mean) a

Zero variance is the special case where the wheel has a single slot of width one: the state is an eigenstate, the balance point sits on that eigenvalue, and every spin returns the same reading. Any superposition across distinct eigenvalues gives the wheel width, and width is randomness. But a single spin says little about where the balance point lies — you recover ⟨A⟩\langle A\rangle only by spinning many times and averaging, and the averaging has a cost. Because independent variances add, the sample mean of NN shots has variance Var(A)/N\mathrm{Var}(A)/N, so its error shrinks only as ΔA/N\Delta A/\sqrt N. The second figure is that shot-noise funnel: the running estimate of ⟨Z⟩\langle Z\rangle trapped inside a band that closes as 1/N1/\sqrt N.

Figure
Estimating ⟨Z⟩ = 0.5 from repeated shots. The running sample mean stays inside the shot-noise band 0.5 ± ΔZ/√N with ΔZ = 0.866, which narrows only as one over root N: the error is 0.27 at N = 10, 0.087 at N = 100, and 0.027 at N = 1000
The shot-noise funnel: statistical error falls as ΔZ / √N 1.0 0.5 0.0 1 10 100 1000 number of shots N (log scale) estimate of ⟨Z⟩ true ⟨Z⟩ = 0.5 band = 0.5 ± ΔZ/√N

The core equations

The starting point is a definition, not a theorem: the expectation value of an observable in a state is the diagonal matrix element of the operator between the state and itself. Because ∣ψ⟩|\psi\rangle is normalized, this is automatically the properly weighted average.

⟨A⟩=⟨ψ∣A∣ψ⟩(1)\langle A\rangle=\langle\psi|A|\psi\rangle \qquad (1)

where: ∣ψ⟩|\psi\rangle — normalized state vector, ⟨ψ∣ψ⟩=1\langle\psi|\psi\rangle=1; AA — observable, a Hermitian operator with A=A†A=A^\dagger; ⟨A⟩\langle A\rangle — the mean value of the measurement outcomes. Reading: sandwich the operator between the bra and ket and you have predicted the average of infinitely many repeated experiments. That sandwich is equivalent to an explicit sum over the spectrum. Diagonalizing AA turns the operator statement into a familiar probability-weighted mean, which is what makes ⟨A⟩\langle A\rangle a genuine expectation value in the sense of ordinary statistics.

⟨A⟩=∑kak pk,pk=∣⟨ak∣ψ⟩∣2(2)\langle A\rangle=\sum_k a_k\,p_k,\qquad p_k=|\langle a_k|\psi\rangle|^2 \qquad (2)

where: aka_k — the kk-th eigenvalue of AA (a possible outcome); ∣ak⟩|a_k\rangle — its orthonormal eigenstate; pkp_k — the Born-rule probability of outcome aka_k. Reading: the compact form (1) and the transparent form (2) are the same number; you use (1) to compute and (2) to interpret. The spread of the outcomes is the variance. Its most useful shape for calculation subtracts the square of the mean from the mean of the square — and the two pieces are computed by the same sandwich trick, one with AA and one with A2A^2.

Var(A)=⟨A2⟩−⟨A⟩2,⟨A2⟩=⟨ψ∣A2∣ψ⟩(3)\mathrm{Var}(A)=\langle A^2\rangle-\langle A\rangle^2,\qquad \langle A^2\rangle=\langle\psi|A^2|\psi\rangle \qquad (3)

where: ⟨A2⟩\langle A^2\rangle — expectation of the squared operator (note A2A^2 acts as an operator, not a number); ⟨A⟩2\langle A\rangle^2 — the square of the already-computed mean. Reading: two sandwiches and one subtraction give the entire spread. The same variance can be written so that its non-negativity is manifest — as the expectation of a perfect square of a Hermitian operator — and its square root is named the uncertainty.

Var(A)=⟨(A−⟨A⟩I)2⟩≥0,ΔA=Var(A)(4)\mathrm{Var}(A)=\big\langle(A-\langle A\rangle I)^2\big\rangle\ge0,\qquad \Delta A=\sqrt{\mathrm{Var}(A)} \qquad (4)

where: II — the identity operator; A−⟨A⟩IA-\langle A\rangle I — the deviation (Hermitian) operator; ΔA\Delta A — the standard deviation, or root-mean-square spread. Reading: variance can never be negative, and it equals zero only when the deviation operator annihilates the state. When the preparation is not a pure state but a statistical ensemble, the state sandwich is replaced by a trace against the density operator ρ\rho. Every formula above survives this upgrade unchanged in meaning.

⟨A⟩=Tr(ρA),Var(A)=Tr(ρA2)−[Tr(ρA)]2(5)\langle A\rangle=\mathrm{Tr}(\rho A),\qquad \mathrm{Var}(A)=\mathrm{Tr}(\rho A^2)-[\mathrm{Tr}(\rho A)]^2 \qquad (5)

where: ρ\rho — density operator, ρ≥0\rho\ge0 with Tr ρ=1\mathrm{Tr}\,\rho=1; Tr\mathrm{Tr} — the trace, a basis-independent sum of diagonal entries. Reading: for ρ=∣ψ⟩⟨ψ∣\rho=|\psi\rangle\langle\psi| the cyclic property of the trace collapses (5) back to (1) and (3). Finally, variances of two observables are bound together whenever the observables fail to commute — the Robertson uncertainty relation, the general engine behind Heisenberg's principle.

ΔA ΔB≥12∣⟨[A,B]⟩∣(6)\Delta A\,\Delta B\ge\tfrac12\big|\langle[A,B]\rangle\big| \qquad (6)

where: [A,B]=AB−BA[A,B]=AB-BA — the commutator; ΔA,ΔB\Delta A,\Delta B — the standard deviations of AA and BB. Reading: non-commuting observables cannot both be sharp in the same state; the commutator sets the floor on their joint spread.

Derivation AReducing the operator sandwich to a probability-weighted sum

The goal here is to prove that the abstract diagonal matrix element ⟨ψ∣A∣ψ⟩\langle\psi|A|\psi\rangle is literally the statistical mean ∑kakpk\sum_k a_k p_k of the measurement outcomes, and along the way to see why that mean is guaranteed real for any observable. This is the bridge that makes "expectation value" more than a suggestive name: it is the reason the operator formalism reproduces ordinary probability theory exactly, with the Born rule supplying the weights.

Step 1. Invoke the spectral theorem: because AA is Hermitian it has a complete orthonormal eigenbasis {∣ak⟩}\{|a_k\rangle\} with real eigenvalues aka_k, and A=∑kak∣ak⟩⟨ak∣A=\sum_k a_k|a_k\rangle\langle a_k|. Why: this is the only structural input needed — Hermiticity guarantees both the real spectrum and the resolution of identity that will do the bookkeeping.

Step 2. Insert this into the sandwich and use linearity of the inner product to move the scalars out: ⟨ψ∣A∣ψ⟩=∑kak ⟨ψ∣ak⟩⟨ak∣ψ⟩\langle\psi|A|\psi\rangle=\sum_k a_k\,\langle\psi|a_k\rangle\langle a_k|\psi\rangle. Why: each term now factors into an eigenvalue times a pair of overlap amplitudes, which is the shape of a weighted average waiting to be recognized.

Step 3. Identify the weight. Since ⟨ψ∣ak⟩=⟨ak∣ψ⟩‾\langle\psi|a_k\rangle=\overline{\langle a_k|\psi\rangle}, the product ⟨ψ∣ak⟩⟨ak∣ψ⟩=∣⟨ak∣ψ⟩∣2=pk\langle\psi|a_k\rangle\langle a_k|\psi\rangle=|\langle a_k|\psi\rangle|^2=p_k is exactly the Born probability. Hence ⟨A⟩=∑kakpk\langle A\rangle=\sum_k a_k p_k. Why: the cross terms that would spoil a naive average are killed by orthonormality, leaving a clean probability-weighted sum over real eigenvalues.

Step 4. Read off reality for free. Every aka_k is real and every pk≥0p_k\ge0 with ∑kpk=1\sum_k p_k=1, so ⟨A⟩\langle A\rangle is a convex combination of real numbers and is therefore real, and bounded between the smallest and largest eigenvalue. Equivalently, ⟨ψ∣A∣ψ⟩‾=⟨ψ∣A†∣ψ⟩=⟨ψ∣A∣ψ⟩\overline{\langle\psi|A|\psi\rangle}=\langle\psi|A^\dagger|\psi\rangle=\langle\psi|A|\psi\rangle. Why: a physical average must be real, and Hermiticity is precisely the condition that delivers it — non-Hermitian operators can have complex expectation values and are not observables.

Go deeper · Derivation B · 1 minVariance as a squared norm and the certainty theorem
Derivation BVariance as a squared norm and the certainty theorem

The aim is to establish two things at once: that the two forms of the variance in equations (3) and (4) are identical, and that the variance is not merely non-negative but vanishes if and only if the state is an eigenstate of AA. This second statement is the precise mathematical content of "certainty" in quantum mechanics — it pins down the unique circumstance under which a measurement outcome is fully determined in advance rather than merely probable.

Step 1. Expand the centered square. With ⟨A⟩\langle A\rangle a real scalar commuting with everything, (A−⟨A⟩I)2=A2−2⟨A⟩A+⟨A⟩2I(A-\langle A\rangle I)^2=A^2-2\langle A\rangle A+\langle A\rangle^2 I. Take the expectation and use linearity with ⟨I⟩=1\langle I\rangle=1: ⟨(A−⟨A⟩I)2⟩=⟨A2⟩−2⟨A⟩⟨A⟩+⟨A⟩2=⟨A2⟩−⟨A⟩2\big\langle(A-\langle A\rangle I)^2\big\rangle=\langle A^2\rangle-2\langle A\rangle\langle A\rangle+\langle A\rangle^2=\langle A^2\rangle-\langle A\rangle^2. Why: this shows the "manifestly non-negative" form (4) and the "computational" form (3) are algebraically the same object, so either may be used.

Step 2. Rewrite the variance as a squared norm. Define the Hermitian deviation operator B=A−⟨A⟩IB=A-\langle A\rangle I. Then Var(A)=⟨ψ∣B2∣ψ⟩=⟨ψ∣B†B∣ψ⟩=∥∣B∣ψ⟩∥2≥0\mathrm{Var}(A)=\langle\psi|B^2|\psi\rangle=\langle\psi|B^\dagger B|\psi\rangle=\big\||B|\psi\rangle\big\|^2\ge0. Why: writing it as the length-squared of the vector B∣ψ⟩B|\psi\rangle makes non-negativity automatic — a norm is never negative — and sets up the equality condition.

Step 3. Apply positive-definiteness of the inner product: a norm is zero exactly when its vector is the zero vector, so Var(A)=0  ⟺  B∣ψ⟩=0  ⟺  (A−⟨A⟩I)∣ψ⟩=0\mathrm{Var}(A)=0\iff B|\psi\rangle=0\iff(A-\langle A\rangle I)|\psi\rangle=0. Why: there is no slack in this step — the only way a length vanishes is for the vector itself to vanish.

Step 4. Recognize the eigenvalue equation. B∣ψ⟩=0B|\psi\rangle=0 says A∣ψ⟩=⟨A⟩∣ψ⟩A|\psi\rangle=\langle A\rangle|\psi\rangle: the state is an eigenstate of AA with eigenvalue ⟨A⟩\langle A\rangle. Conversely, any eigenstate trivially gives ⟨A2⟩=⟨A⟩2\langle A^2\rangle=\langle A\rangle^2 and hence zero variance. Why: this is the certainty theorem — deterministic measurement and eigenstate are logically equivalent, so all measurement randomness is precisely the failure of the state to be an eigenstate of the measured observable.

Go deeper · Derivation C · 1 minExpectation values on the Bloch sphere
Derivation CExpectation values on the Bloch sphere

For a single qubit the whole machinery becomes a piece of three-dimensional geometry, and this derivation makes that explicit: it shows that the expectation value of each Pauli operator is simply a Cartesian component of the Bloch vector, and that the variance along any axis is fixed entirely by how far the Bloch vector reaches along it. This is the calculation that turns abstract statistics into the pictures every quantum-computing practitioner carries in their head.

Step 1. Parametrize the most general qubit state — pure or mixed — by its Bloch vector: ρ=12(I+r⃗⋅σ⃗)\rho=\tfrac12\big(I+\vec r\cdot\vec\sigma\big) with ∣r⃗∣≤1|\vec r|\le1, equality for pure states. Why: this is the unique way to write a 2×22\times2 density operator with unit trace, so no generality is lost and both pure and mixed states are handled at once.

Step 2. Compute the mean via the trace formula. ⟨σi⟩=Tr(ρ σi)=12Tr(σi)+12∑jrj Tr(σjσi)\langle\sigma_i\rangle=\mathrm{Tr}(\rho\,\sigma_i)=\tfrac12\mathrm{Tr}(\sigma_i)+\tfrac12\sum_j r_j\,\mathrm{Tr}(\sigma_j\sigma_i). Using the Pauli identities Tr(σi)=0\mathrm{Tr}(\sigma_i)=0 and Tr(σjσi)=2δij\mathrm{Tr}(\sigma_j\sigma_i)=2\delta_{ij} gives ⟨σi⟩=12⋅2ri=ri\langle\sigma_i\rangle=\tfrac12\cdot2r_i=r_i. Why: the Pauli matrices are traceless and orthonormal under the trace inner product, so the sum collapses to a single surviving term — each Pauli expectation just reads off the matching Bloch component.

Step 3. Compute the variance using σi2=I\sigma_i^2=I. Then ⟨σi2⟩=Tr(ρ I)=1\langle\sigma_i^2\rangle=\mathrm{Tr}(\rho\,I)=1 regardless of state, so Var(σi)=⟨σi2⟩−⟨σi⟩2=1−ri2\mathrm{Var}(\sigma_i)=\langle\sigma_i^2\rangle-\langle\sigma_i\rangle^2=1-r_i^2. Why: because every Pauli squares to the identity, its second moment is always one, and the spread is controlled solely by the mean — the variance is large where the Bloch vector is short along that axis.

Step 4. Read the extremes. A pure state on the surface (∣r⃗∣=1|\vec r|=1) pointing along axis ii has ri=±1r_i=\pm1 and Var(σi)=0\mathrm{Var}(\sigma_i)=0: that axis is measured with certainty. The maximally mixed state r⃗=0\vec r=0 (so ρ=I/2\rho=I/2) gives ⟨σi⟩=0\langle\sigma_i\rangle=0 and Var(σi)=1\mathrm{Var}(\sigma_i)=1 for every axis — maximal ignorance. Why: this recovers the certainty theorem geometrically and identifies the center of the sphere as the state of complete statistical uncertainty.

Limiting cases

How the mean and variance behave in the special cases that recur throughout quantum information:

CaseResultMeaning
EigenstateA∣ψ⟩=a∣ψ⟩⇒⟨A⟩=a, Var(A)=0A|\psi\rangle=a|\psi\rangle\Rightarrow\langle A\rangle=a,\ \mathrm{Var}(A)=0Deterministic outcome — the unique case of vanishing variance.
Equal binary superposition∣ψ⟩=12(∣a+⟩+∣a−⟩)⇒⟨A⟩=a++a−2|\psi\rangle=\tfrac{1}{\sqrt2}(|a_+\rangle+|a_-\rangle)\Rightarrow\langle A\rangle=\tfrac{a_++a_-}{2}Maximal spread Var(A)=(a+−a−2)2\mathrm{Var}(A)=\big(\tfrac{a_+-a_-}{2}\big)^2 for a two-outcome observable.
Pauli observable⟨σ⃗⟩=r⃗, Var(σi)=1−ri2\langle\vec\sigma\rangle=\vec r,\ \mathrm{Var}(\sigma_i)=1-r_i^2Eigenvalues ±1\pm1 give ⟨σi2⟩=1\langle\sigma_i^2\rangle=1 always; spread set by Bloch length.
Maximally mixed stateρ=I/d⇒⟨A⟩=1dTr(A)\rho=I/d\Rightarrow\langle A\rangle=\tfrac1d\mathrm{Tr}(A)Mean is the unweighted average of eigenvalues; every axis maximally uncertain.
Commuting pair[A,B]=0⇒ΔA ΔB≥0[A,B]=0\Rightarrow\Delta A\,\Delta B\ge0Robertson bound goes slack; a joint eigenbasis lets both be sharp at once.

Worked examples

1 · Full statistics of a tilted qubit (fully worked)

A qubit is prepared in ∣ψ⟩=12(3 ∣0⟩+∣1⟩)|\psi\rangle=\tfrac12\big(\sqrt3\,|0\rangle+|1\rangle\big). Find ⟨Z⟩,⟨X⟩,⟨Y⟩\langle Z\rangle,\langle X\rangle,\langle Y\rangle, the three variances, the Bloch vector, and check whether the Robertson relation for XX and YY is saturated.

Step 1. Check normalization and read the amplitudes: c0=3/2c_0=\sqrt3/2, c1=1/2c_1=1/2, and ∣c0∣2+∣c1∣2=34+14=1|c_0|^2+|c_1|^2=\tfrac34+\tfrac14=1. Good. The ZZ-outcome probabilities are p+1=∣c0∣2=34p_{+1}=|c_0|^2=\tfrac34 and p−1=∣c1∣2=14p_{-1}=|c_1|^2=\tfrac14.

Step 2. Expectation values. Using Z∣0⟩=+∣0⟩Z|0\rangle=+|0\rangle, Z∣1⟩=−∣1⟩Z|1\rangle=-|1\rangle: ⟨Z⟩=34(+1)+14(−1)=1/2\langle Z\rangle=\tfrac34(+1)+\tfrac14(-1)=\mathbf{1/2}. For XX, the off-diagonal operator gives ⟨X⟩=2 Re(c0∗c1)=2⋅32⋅12=3/2≈0.866\langle X\rangle=2\,\mathrm{Re}(c_0^*c_1)=2\cdot\tfrac{\sqrt3}{2}\cdot\tfrac12=\mathbf{\sqrt3/2\approx0.866}. Since the amplitudes are real, ⟨Y⟩=2 Im(c0∗c1)=0\langle Y\rangle=2\,\mathrm{Im}(c_0^*c_1)=\mathbf{0}.

Step 3. Variances from σi2=I\sigma_i^2=I, so ⟨σi2⟩=1\langle\sigma_i^2\rangle=1 and Var(σi)=1−⟨σi⟩2\mathrm{Var}(\sigma_i)=1-\langle\sigma_i\rangle^2: Var(Z)=1−14=3/4\mathrm{Var}(Z)=1-\tfrac14=\mathbf{3/4} so ΔZ=3/2≈0.866\Delta Z=\sqrt3/2\approx\mathbf{0.866}; Var(X)=1−34=1/4\mathrm{Var}(X)=1-\tfrac34=\mathbf{1/4} so ΔX=1/2\Delta X=\mathbf{1/2}; Var(Y)=1−0=1\mathrm{Var}(Y)=1-0=\mathbf{1} so ΔY=1\Delta Y=\mathbf{1}.

Step 4. The Bloch vector is r⃗=(⟨X⟩,⟨Y⟩,⟨Z⟩)=(3/2, 0, 1/2)\vec r=(\langle X\rangle,\langle Y\rangle,\langle Z\rangle)=(\sqrt3/2,\,0,\,1/2) with ∣r⃗∣=34+14=1|\vec r|=\sqrt{\tfrac34+\tfrac14}=\mathbf{1} — confirming the state is pure, sitting on the sphere's surface in the xzxz-plane.

Step 5. Robertson for X,YX,Y. The commutator is [X,Y]=2iZ[X,Y]=2iZ, so the bound is 12∣⟨[X,Y]⟩∣=12∣2i⟨Z⟩∣=∣⟨Z⟩∣=12\tfrac12|\langle[X,Y]\rangle|=\tfrac12|2i\langle Z\rangle|=|\langle Z\rangle|=\tfrac12. The product of spreads is ΔX ΔY=12⋅1=12\Delta X\,\Delta Y=\tfrac12\cdot1=\tfrac12. The two are equal: the Robertson relation is saturated, ΔX ΔY=12=∣⟨Z⟩∣\Delta X\,\Delta Y=\tfrac12=|\langle Z\rangle| — this state is a minimum-uncertainty state for the pair (X,Y)(X,Y).

2 · Energy estimation and the shot budget (VQE-flavored)

A qubit Hamiltonian is H=Z+XH=Z+X (in units of some coupling). Find ⟨H⟩\langle H\rangle and Var(H)\mathrm{Var}(H) in the state ∣0⟩|0\rangle, and estimate how many measurement shots are needed to pin ⟨H⟩\langle H\rangle to a statistical error of ±0.05\pm0.05.

Step 1. Mean. In ∣0⟩|0\rangle we have ⟨Z⟩=1\langle Z\rangle=1 and ⟨X⟩=0\langle X\rangle=0, so by linearity ⟨H⟩=⟨Z⟩+⟨X⟩=1\langle H\rangle=\langle Z\rangle+\langle X\rangle=\mathbf{1}.

Step 2. Second moment. Expand H2=(Z+X)2=Z2+X2+ZX+XZ=I+I+{Z,X}H^2=(Z+X)^2=Z^2+X^2+ZX+XZ=I+I+\{Z,X\}. Because ZZ and XX anticommute, {Z,X}=ZX+XZ=0\{Z,X\}=ZX+XZ=0, leaving H2=2IH^2=2I. Hence ⟨H2⟩=2\langle H^2\rangle=\mathbf{2} in any state, and the eigenvalues of HH are ±2\pm\sqrt2, consistent with H2=2IH^2=2I.

Step 3. Variance. Var(H)=⟨H2⟩−⟨H⟩2=2−12=1\mathrm{Var}(H)=\langle H^2\rangle-\langle H\rangle^2=2-1^2=\mathbf{1}, so ΔH=1\Delta H=\mathbf{1}.

Step 4. Shot budget. The statistical error of the sample mean is ΔH/N\Delta H/\sqrt N; setting this to the target ε=0.05\varepsilon=0.05 gives N=Var(H)/ε2=1/0.0025=400N=\mathrm{Var}(H)/\varepsilon^2=1/0.0025=\mathbf{400} shots. Had we instead wanted ⟨Z⟩\langle Z\rangle of the tilted state from Example 1 (Var(Z)=0.75\mathrm{Var}(Z)=0.75) to ±0.01\pm0.01, the cost would be N=0.75/10−4=7500N=0.75/10^{-4}=\mathbf{7500} shots — the inverse-square scaling in precision is the defining expense of quantum estimation.

Physics of the portrait

The statistical reading of quantum mechanics — states as generators of probabilities, observables as Hermitian operators, and the average as Tr(ρA)\mathrm{Tr}(\rho A) — did not arrive fully formed. It was assembled between 1925 and 1932, and its most complete architect was John von Neumann, who gave the density operator and the trace formula their permanent home.

Origins · 1 minJohn von Neumann and how this was discovered
JV
John von Neumann
1903–1957 · the statistical and measurement formalism of quantum mechanics

Von Neumann was the mathematician who turned the young, contradictory quantum theory of the 1920s into a rigorous structure on Hilbert space. Where Heisenberg's matrix mechanics and Schrödinger's wave mechanics looked like rival pictures, von Neumann proved them the same theory expressed in different bases, and in his 1932 masterwork Mathematische Grundlagen der Quantenmechanik he built the framework still taught today: pure states as unit vectors, observables as self-adjoint operators, and — crucially for this article — the density operator ρ\rho as the object encoding any preparation, pure or mixed, with expectation values given by the trace ⟨A⟩=Tr(ρA)\langle A\rangle=\mathrm{Tr}(\rho A). He introduced the von Neumann entropy S(ρ)=−Tr(ρln⁡ρ)S(\rho)=-\mathrm{Tr}(\rho\ln\rho), which measures exactly the statistical uncertainty a variance only glimpses, and he formalized the measurement postulate that ties the abstract ⟨A⟩\langle A\rangle to laboratory averages. His insistence that a physical average must be a real, positive-normalized functional of the state is precisely why Hermiticity, positivity, and unit trace are non-negotiable. The same man co-founded game theory and designed the stored-program computer architecture that bears his name — but for quantum information his enduring gift is the operator-and-trace language in which every expectation value and variance is now written.

History
1925
— Heisenberg's matrix mechanics recasts observables as non-commuting arrays
1926
— Born interprets the squared amplitude as probability, giving outcomes their statistics
1927
— Heisenberg states the uncertainty principle for position and momentum
1929
— Robertson proves the general uncertainty relation for any two observables
1932
— von Neumann's Mathematical Foundations gives the trace formula and the density operator

Going further

Texts. Nielsen & Chuang, Quantum Computation and Quantum Information, §2.2 and §2.4 · Preskill, Quantum Information Lecture Notes, Ch. 2 · Watrous, The Theory of Quantum Information, Ch. 2 · Wilde, Quantum Information Theory, Ch. 3 · Kitaev, Shen & Vyalyi, Classical and Quantum Computation, Ch. 9 · Mermin, Quantum Computer Science, Ch. 1. The key results in this article are: (1) the spectral reduction ⟨ψ∣A∣ψ⟩=∑kakpk\langle\psi|A|\psi\rangle=\sum_k a_k p_k and reality from A=A†A=A^\dagger; (2) the variance identity ⟨A2⟩−⟨A⟩2=⟨(A−⟨A⟩I)2⟩≥0\langle A^2\rangle-\langle A\rangle^2=\langle(A-\langle A\rangle I)^2\rangle\ge0 and the eigenstate equivalence; (3) the Bloch results ⟨σi⟩=ri\langle\sigma_i\rangle=r_i, Var(σi)=1−ri2\mathrm{Var}(\sigma_i)=1-r_i^2 using σi2=I\sigma_i^2=I, Tr(σi)=0\mathrm{Tr}(\sigma_i)=0, Tr(σiσj)=2δij\mathrm{Tr}(\sigma_i\sigma_j)=2\delta_{ij}; (4) Example 1 — for ∣ψ⟩=12(3∣0⟩+∣1⟩)|\psi\rangle=\tfrac12(\sqrt3|0\rangle+|1\rangle), ⟨Z⟩=1/2\langle Z\rangle=1/2, ⟨X⟩=3/2\langle X\rangle=\sqrt3/2, ⟨Y⟩=0\langle Y\rangle=0, Var(Z)=3/4\mathrm{Var}(Z)=3/4, Var(X)=1/4\mathrm{Var}(X)=1/4, Var(Y)=1\mathrm{Var}(Y)=1, ∣r⃗∣=1|\vec r|=1, and ΔXΔY=1/2=∣⟨Z⟩∣\Delta X\Delta Y=1/2=|\langle Z\rangle| (Robertson saturated); (5) Example 2 — H=Z+XH=Z+X gives H2=2IH^2=2I, ⟨H⟩=1\langle H\rangle=1, Var(H)=1\mathrm{Var}(H)=1 in ∣0⟩|0\rangle, and N=400N=400 shots at ε=0.05\varepsilon=0.05; (6) the shot-noise scaling error =ΔA/N=\Delta A/\sqrt N.

Prerequisites. Observables and Hermitian Operators · The Born Rule · Dirac Bra-Ket Notation · Inner Product, Norm, and Normalization · The Measurement Postulate. Leads to. Density Operators · Projective Measurements · Pauli Operators · Pure versus Mixed States.

Ask the tutor: Ask me to work out the expectation value, variance, and Robertson bound for any state and observable you name — from a single tilted qubit to a multi-qubit Pauli Hamiltonian.

Why is the expectation value guaranteed to be a real number?

Because an observable is a Hermitian operator, A=A†A=A^\dagger, and that single property forces ⟨A⟩\langle A\rangle to equal its own complex conjugate. Concretely, ⟨ψ∣A∣ψ⟩‾=⟨ψ∣A†∣ψ⟩=⟨ψ∣A∣ψ⟩\overline{\langle\psi|A|\psi\rangle}=\langle\psi|A^\dagger|\psi\rangle=\langle\psi|A|\psi\rangle, and a number equal to its conjugate is real. The same conclusion appears in the spectral picture: Hermitian operators have real eigenvalues, and the expectation value is a probability-weighted average of those real eigenvalues, so it must land somewhere between the smallest and largest of them. Non-Hermitian operators can have genuinely complex expectation values, which is exactly why they are excluded from the role of physical observables.

What is the difference between quantum uncertainty and classical measurement error?

They are different beasts that happen to share the symbol ΔA\Delta A. Classical measurement error comes from imperfect instruments and shrinks as you build better ones. Quantum uncertainty ΔA=Var(A)\Delta A=\sqrt{\mathrm{Var}(A)} is a property of the state itself: even with a perfect apparatus and infinitely many copies, a state that is not an eigenstate of AA will scatter its outcomes with irreducible spread ΔA\Delta A. You can measure ⟨A⟩\langle A\rangle to arbitrary precision by taking more shots — the statistical error ΔA/N\Delta A/\sqrt N on the mean falls with NN — but the underlying spread ΔA\Delta A of individual outcomes does not budge. Certainty is available only when the state is an eigenstate.

Why can't a single measurement tell me the expectation value?

A single measurement collapses the state and returns exactly one eigenvalue, chosen at random — say +1+1 or −1-1 for a Pauli operator. It never returns the average ⟨A⟩=0.5\langle A\rangle=0.5, which is not even in the spectrum. The expectation value is a statistical property of an ensemble, not a value any one measurement can carry. To estimate it you prepare NN identical copies, measure each, and average the readings; by the law of large numbers this sample mean converges to ⟨A⟩\langle A\rangle, with a residual statistical error of ΔA/N\Delta A/\sqrt N. This is why every quoted expectation value on real hardware comes with an error bar and a shot count.

How does the Robertson relation connect variances to the uncertainty principle?

The Robertson relation ΔA ΔB≥12∣⟨[A,B]⟩∣\Delta A\,\Delta B\ge\tfrac12|\langle[A,B]\rangle| says the product of the two spreads cannot fall below half the magnitude of the commutator's expectation value. When two observables commute, the right-hand side is zero and both can be sharp simultaneously — they share an eigenbasis. When they don't commute, the bound is a hard floor: no state can make both variances arbitrarily small. For position and momentum, [x^,p^]=iℏ[\hat x,\hat p]=i\hbar reproduces Heisenberg's Δx Δp≥ℏ/2\Delta x\,\Delta p\ge\hbar/2. For qubit spins, [X,Y]=2iZ[X,Y]=2iZ gives ΔX ΔY≥∣⟨Z⟩∣\Delta X\,\Delta Y\ge|\langle Z\rangle|, so a state polarized along zz pays maximal joint uncertainty in xx and yy — complementarity in one line.

When do the mixed-state trace formulas reduce to the pure-state sandwiches?

Always, whenever the density operator describes a pure state. A pure state is ρ=∣ψ⟩⟨ψ∣\rho=|\psi\rangle\langle\psi|, and substituting this into ⟨A⟩=Tr(ρA)\langle A\rangle=\mathrm{Tr}(\rho A) and using the cyclic property of the trace gives Tr(∣ψ⟩⟨ψ∣A)=⟨ψ∣A∣ψ⟩\mathrm{Tr}(|\psi\rangle\langle\psi|A)=\langle\psi|A|\psi\rangle — exactly equation (1). The variance formula reduces the same way. The trace form is strictly more general: it also handles statistical mixtures, subsystems of entangled states (via the reduced density operator), and noisy preparations, none of which can be written as a single ket. So think of Tr(ρA)\mathrm{Tr}(\rho A) as the master formula and ⟨ψ∣A∣ψ⟩\langle\psi|A|\psi\rangle as its pure-state special case, not the other way around.

Why does estimating an expectation value cost so many shots?

Because the statistical error on a sample mean falls only as 1/N1/\sqrt N, not 1/N1/N. The sample mean of NN independent shots has variance Var(A)/N\mathrm{Var}(A)/N, so its standard error is ΔA/N\Delta A/\sqrt N. To halve the error you must quadruple the shots; to gain one more decimal digit you need a hundredfold more measurements. This inverse-square scaling is the dominant cost in near-term algorithms like VQE, where a chemically useful energy can demand millions of shots per step. It is also why reducing Var(A)\mathrm{Var}(A) pays off directly: every factor of two in variance is a factor of two in required runtime.

Before this

Where this leads