beginner · Physics · Math Foundations: Calculus, Probability & Statistics
Checkpoint: Statistics of a Qubit
A qubit is not simply 0 or 1 — it is a superposition whose measurement statistics can be fully
predicted from the state vector. This checkpoint asks you to apply the probability, mean, and
variance formulas you have built up in Module 3 directly to a qubit state.
From amplitudes to probabilities
A general single-qubit state is
∣ψ⟩=α∣0⟩+β∣1⟩,
with α,β∈C and the normalisation condition ∣α∣2+∣β∣2=1.
When the qubit is measured in the computational basis, the Born rule gives
P(0)=∣α∣2,P(1)=∣β∣2.
These are the only two possible outcomes; they form a valid probability distribution because
they are non-negative and sum to one.
Eigenvalues and the measurement random variable
To compute a mean and variance we need numerical eigenvalues. A standard convention assigns
eigenvalue 0 to outcome ∣0⟩ and eigenvalue 1 to outcome ∣1⟩, so the
measurement defines a random variable X with distribution
P(X=0)=∣α∣2,P(X=1)=∣β∣2.
Mean. By definition,
⟨X⟩=0⋅∣α∣2+1⋅∣β∣2=∣β∣2.
The mean equals the probability of measuring ∣1⟩ — a useful shortcut for this particular
eigenvalue assignment.
Mean square. Because 02=0 and 12=1,
⟨X2⟩=02⋅∣α∣2+12⋅∣β∣2=∣β∣2.
Note that ⟨X2⟩=⟨X⟩ for this binary variable with eigenvalues 0 and 1.
Variance. Applying Var(X)=⟨X2⟩−⟨X⟩2,
Var(X)=∣β∣2−∣β∣4=∣β∣2(1−∣β∣2)=∣β∣2∣α∣2.
This is maximised at ∣α∣2=∣β∣2=1/2 (the uniform superposition, e.g. H∣0⟩),
where Var(X)=1/4, and it vanishes when the state is either ∣0⟩ or ∣1⟩
— a perfectly predictable outcome carries zero variance.
A worked example
Consider ∣ψ⟩=31∣0⟩+32∣1⟩.
The amplitudes give
∣α∣2=31,∣β∣2=32.
Check normalisation: 31+32=1. Then
⟨X⟩=32,
Var(X)=32⋅31=92≈0.222.
The standard deviation is σ=2/9=2/3≈0.471.
Try it
This is a numerical exercise — your code should return a number, not a circuit.
The qubit is in state ∣ψ⟩=31∣0⟩+32∣1⟩.
Eigenvalues are 0 for ∣0⟩ and 1 for ∣1⟩. Compute the variance of a single
measurement outcome.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.