1 What is a Quantum Measurement?

In classical computing, reading a bit is a passive operation—the bit is 0 or 1, and looking at it doesn't change it. Quantum mechanics is fundamentally different.

A qubit can exist in a superposition of the basis states $$|\psi\rangle = \alpha|0\rangle + \beta|1\rangle$$ where \(\alpha\) and \(\beta\) are complex amplitudes satisfying \(|\alpha|^2 + |\beta|^2 = 1\).

When we measure a qubit, the superposition is destroyed and we obtain a definite classical outcome. The probability of each outcome is given by the squared magnitude of the corresponding amplitude.

Key Idea
Measurement is irreversible. After measurement, the qubit collapses into the eigenstate corresponding to the observed outcome. The probability of outcome \(m\) is: $$P(m) = |\langle m|\psi\rangle|^2$$

2 The Bloch Sphere

Any single-qubit pure state can be parameterized by two angles and visualized as a point on a unit sphere called the Bloch sphere:

$$|\psi\rangle = \cos\frac{\theta}{2}|0\rangle + e^{i\varphi}\sin\frac{\theta}{2}|1\rangle$$

Drag the sliders to explore. Click on the special states in the table, or rotate the sphere by dragging it.

Drag to rotate
\(|0\rangle\)
85%
\(|1\rangle\)
15%
StateθφLocation
\(|0\rangle\)00North pole
\(|1\rangle\)π0South pole
\(|+\rangle\)π/20+X axis
\(|-\rangle\)π/2π−X axis
\(|{+i}\rangle\)π/2π/2+Y axis
\(|{-i}\rangle\)π/23π/2−Y axis
Bloch vector
The Bloch vector is the 3D point on the sphere: \(\vec{r} = (\sin\theta\cos\varphi,\;\sin\theta\sin\varphi,\;\cos\theta)\). The north pole (\(\theta=0\)) is \(|0\rangle\), the south pole (\(\theta=\pi\)) is \(|1\rangle\), and the equator contains equal-superposition states.
Try This
Click on \(|+\rangle\) in the table above and observe: it sits on the equator with equal 50/50 probabilities for \(|0\rangle\) and \(|1\rangle\). Now try \(|{+i}\rangle\)—it also has 50/50 Z-probabilities but a different \(\varphi\). The phase \(\varphi\) is invisible to Z-measurement but becomes visible when measuring in other bases.

3 Computational Basis (Z) Measurement

The most common measurement is in the computational basis (Z-basis). The measurement is described by the projection operators:

$$P_0 = |0\rangle\langle 0| = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, \qquad P_1 = |1\rangle\langle 1| = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}$$

The probabilities are \(P(0) = \cos^2(\theta/2)\) and \(P(1) = \sin^2(\theta/2)\). Click Measure to see a probabilistic outcome and watch the state collapse.

Drag to rotate
\(|0\rangle\)
85%
\(|1\rangle\)
15%
Click to measure
Key Takeaway
Z-basis measurement projects the qubit onto \(|0\rangle\) or \(|1\rangle\). The probabilities depend only on \(\theta\), not on \(\varphi\). Notice that moving the state closer to a pole increases the certainty of the outcome.

4 Measurement in Other Bases

We can measure along any axis on the Bloch sphere. The X-basis eigenstates are:

$$|+\rangle = \tfrac{1}{\sqrt{2}}(|0\rangle + |1\rangle), \qquad |-\rangle = \tfrac{1}{\sqrt{2}}(|0\rangle - |1\rangle)$$

The Y-basis eigenstates are:

$$|{+i}\rangle = \tfrac{1}{\sqrt{2}}(|0\rangle + i|1\rangle), \qquad |{-i}\rangle = \tfrac{1}{\sqrt{2}}(|0\rangle - i|1\rangle)$$

For an arbitrary measurement axis \(\hat{n}\), the probability of the \(+\) outcome is: $$P(+) = \tfrac{1}{2}(1 + \hat{n}\cdot\vec{r})$$

The orange arrow shows the measurement axis and the green dots mark the eigenstates.

Drag to rotate
\(|0\rangle\)
85%
\(|1\rangle\)
15%
Click to measure
Try This
Set the state to \(|+\rangle\) (\(\theta=\pi/2, \varphi=0\)) and measure in the X-basis. You will always get \(|+\rangle\) because it is an eigenstate of X. Now switch to Z-basis and measure—the outcome becomes random. This illustrates complementarity: certainty in one basis means randomness in another.
Key Takeaway
Measurement is not limited to the Z-basis. Any axis \(\hat{n}\) on the Bloch sphere defines a valid measurement. The probability depends on the dot product \(\hat{n}\cdot\vec{r}\) between the measurement axis and the Bloch vector—geometrically, how aligned the state is with the measurement direction.

5 The Born Rule

The Born rule connects the quantum state to measurement probabilities:

$$P(m) = |\langle m|\psi\rangle|^2 = \langle\psi|P_m|\psi\rangle$$

where \(P_m = |m\rangle\langle m|\) is the projector onto eigenstate \(|m\rangle\). The projectors satisfy completeness: \(\sum_m P_m = I\).

Set a state below, choose a measurement basis, then run 1000 simulated measurements and compare the observed frequency against the Born rule prediction.

Born Rule Prediction

--
P(|0⟩) = cos²(θ/2)

Observed Frequency

--
N / 1000
Try This
Set \(\theta = \pi/2\) and \(\varphi = 0\) (the \(|+\rangle\) state) and run the experiment in the Z-basis—you should see close to 50/50. Now switch to the X-basis without changing the state: the frequency should jump to nearly 100% for \(|+\rangle\). This confirms that \(|+\rangle\) is an eigenstate of X but not of Z.

6 Post-Measurement State Collapse

After obtaining outcome \(m\), the post-measurement state is:

$$|\psi\rangle \;\to\; |\psi'\rangle = \frac{P_m|\psi\rangle}{\sqrt{\langle\psi|P_m|\psi\rangle}}$$

Since \(P_m^2 = P_m\), measuring again immediately gives the same outcome with certainty. Watch the collapse in slow motion below.

Drag to rotate
\(|0\rangle\)
50%
\(|1\rangle\)
50%
Key Takeaway
Measurement is a one-way street. Once you observe an outcome, the qubit is in that eigenstate. Measuring again gives the same result with certainty. The original superposition is irretrievably lost—this is why quantum error correction is so challenging.

7 Statistical Verification

Quantum mechanics is inherently probabilistic, but the law of large numbers ensures convergence:

$$f_N(m) = \frac{N_m}{N} \;\xrightarrow{N\to\infty}\; P(m)$$

Run measurements below and watch the histogram converge to the Born rule prediction (dashed lines).

OutcomeCountFrequencyTheory
\(|0\rangle\)0----
\(|1\rangle\)0----
Convergence rate
The standard deviation of the observed frequency scales as \(\sigma \sim 1/\sqrt{N}\). With 10 shots you might be off by ~15%; with 100 shots ~5%; and with 1000 shots ~1.5%. Run the three batch sizes above and watch how the histogram bars snap toward the dashed Born rule lines as \(N\) grows.

8 Test Your Understanding

Exercise 1: Measurement Probability

A qubit is prepared in the state \(|\psi\rangle = \frac{\sqrt{3}}{2}|0\rangle + \frac{1}{2}|1\rangle\). What is the probability of measuring \(|1\rangle\) in the Z-basis?

Exercise 2: Identifying State from Statistics

You measure a qubit 10,000 times in the Z-basis and observe \(|0\rangle\) approximately 50% of the time. Which state is most consistent with your data?

Exercise 3: Measuring an Eigenstate

A qubit is in state \(|0\rangle\). You measure it in the Z-basis. What happens?

Exercise 4: Successive Measurements

A qubit is prepared in \(|+\rangle\). You first measure in the Z-basis and obtain \(|0\rangle\). You then immediately measure in the X-basis. What is the probability of obtaining \(|+\rangle\)?

Exercise 5: Complementary Bases

A qubit is in state \(|0\rangle\). You measure it in the X-basis. What is the probability of obtaining \(|+\rangle\)?

Continue your quantum journey

← Previous: Qubits Next: Bomb Tester →