Skip to content
Quantum ComputingAN INTERACTIVE OPEN TEXTBOOK
charithj.com.au

Quantum measurement

Predict a distribution, sample it and understand what measurement changes.

12 min readDr. Charith Jayasekara↓ Chapter PDF
By the end, you’ll be able to
  • Distinguish exact probabilities from finite-shot counts.
  • Explain state change under a projective measurement.
  • Use sampling uncertainty without treating it as hardware noise.

A computational-basis measurement of α∣0⟩+β∣1⟩\alpha\lvert0\rangle+\beta\lvert1\rangle produces 0 or 1 according to the squared amplitudes. After an ideal projective measurement, the qubit is in the corresponding basis state.

Measurement does not always change a state. A qubit already in ∣0⟩\lvert0\rangle stays there after a Z-basis measurement. The important point is that arbitrary inspection without disturbance is unavailable.

If you measure ∣+⟩\lvert+\rangle once and get 0, immediately measuring that same qubit in Z again gives 0. To estimate the original 50/50 distribution, repeat the preparation and experiment, not just the final measurement on the collapsed state.

The lab’s shots are independent preparations. Its “exact” bars come from the mathematical statevector. Hardware does not supply those amplitudes directly.

L15 · INTERACTIVE LABRuns on your device

Shots & statistical uncertainty

Exact probabilities are predictions. A finite sample fluctuates. The Wilson interval describes sampling uncertainty for the probability of 1 under independent repeated preparations.

Make a prediction first

Will exactly half of 100 shots be 1? What should happen to the uncertainty interval at 10,000 shots?

Experiment controls
Exact probability
|0⟩
50.0%
|1⟩
50.0%

Exact ideal-model predictions · run a measurement experiment to compare.

MODEL · Ideal pure-state vector, complex double precisionORDER · q0 is the leftmost bit
Take it further

Keep the state fixed and change only the seed. Explain why different counts need not indicate a different quantum state.

For 100 independent fair shots, the expected count of 1 is 50, but 47 or 54 would be ordinary fluctuations. A 95% Wilson interval estimates a range for the underlying probability from the observed count, assuming independent identically prepared trials. It is not a guarantee about an individual outcome or a complete model of hardware error.

To measure a qubit in X using a Z-readout device, apply H first. This turns ∣+⟩\lvert+\rangle into ∣0⟩\lvert0\rangle and ∣−⟩\lvert-\rangle into ∣1⟩\lvert1\rangle. Always name the basis when interpreting results.

Try it: change only the seed, then change only the shot count. Which changes alter the state? Neither. Explain why counts and interval widths still change.

Reference: IBM Quantum — Quantum mechanics basics.

ONE IDEA FURTHER

Ready for the next step?

Your progress stays in this browser.