|q⟩ Bad Qubits

beginner · Physics · The Uncertainty Principle

Standard Deviation of an Observable

When quantum mechanics predicts the outcome of a measurement it rarely predicts a single definite value. Instead it gives a probability distribution over the eigenvalues of the observable. The standard deviation ΔA\Delta A quantifies the spread of that distribution — it is the quantity that appears directly in the Heisenberg uncertainty relation ΔxΔp/2\Delta x \, \Delta p \geq \hbar/2.

Expectation value

Let AA be an observable (a Hermitian operator) and ψ|\psi\rangle a normalised state. If AA has eigenvalues a1,a2,a_1, a_2, \ldots with corresponding probabilities p1,p2,p_1, p_2, \ldots in the state ψ|\psi\rangle, the expectation value is

A=ipiai.\langle A \rangle = \sum_i p_i\, a_i.

This is precisely the weighted average of the possible measurement results.

Standard deviation (uncertainty)

The uncertainty ΔA\Delta A is the root-mean-square deviation from the mean:

(ΔA)2=(AA)2=A2A2.(\Delta A)^2 = \langle (A - \langle A \rangle)^2 \rangle = \langle A^2 \rangle - \langle A \rangle^2.

Both identities are equivalent; the second is usually faster to calculate. In practice you compute A2=ipiai2\langle A^2 \rangle = \sum_i p_i\, a_i^2 and then subtract A2\langle A \rangle^2.

Worked example

Suppose AA has two eigenvalues, a1=+1a_1 = +1 (probability p1=3/4p_1 = 3/4) and a2=1a_2 = -1 (probability p2=1/4p_2 = 1/4).

Step 1 — expectation value:

A=34(+1)+14(1)=3414=12.\langle A \rangle = \tfrac{3}{4}(+1) + \tfrac{1}{4}(-1) = \tfrac{3}{4} - \tfrac{1}{4} = \tfrac{1}{2}.

Step 2 — expectation value of A2A^2:

Since a12=a22=1a_1^2 = a_2^2 = 1,

A2=34(1)+14(1)=1.\langle A^2 \rangle = \tfrac{3}{4}(1) + \tfrac{1}{4}(1) = 1.

Step 3 — standard deviation:

(ΔA)2=A2A2=114=34,(\Delta A)^2 = \langle A^2 \rangle - \langle A \rangle^2 = 1 - \tfrac{1}{4} = \tfrac{3}{4},

ΔA=34=320.866.\Delta A = \sqrt{\tfrac{3}{4}} = \frac{\sqrt{3}}{2} \approx 0.866.

Why it matters

The Heisenberg uncertainty principle bounds the product of two such standard deviations for non-commuting observables. Mastering how to compute ΔA\Delta A for a single observable is the essential prerequisite for understanding that principle quantitatively.

Try it

This is a numerical exercise — your code should return a number, not a circuit.

An observable AA has eigenvalues +1+1 (probability 3/43/4) and 1-1 (probability 1/41/4). Compute ΔA=A2A2\Delta A = \sqrt{\langle A^2 \rangle - \langle A \rangle^2}.

Run your code to see the quantum state.

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