Reading the Results —
Statistics & Measurement
A quantum circuit runs once and gives you exactly one classical bit string. That single result is almost useless. Run the same circuit N times and a histogram builds up — converging on the true probability distribution hidden in the quantum state. This lesson teaches you to read that histogram.
The Gap Between Quantum and Classical
You run the Bell pair circuit exactly once and measure both qubits. You get the result $|00\rangle$. What can you conclude from this single run?
Here is the fundamental tension in quantum computing. The power of a quantum computer lives in its quantum state — in the superpositions and entanglements inside a running circuit. But the output of every quantum computation is classical. It is a string of 0s and 1s. Nothing quantum emerges from the measurement.
That classical output is also random. Run the Bell pair circuit once: you get $|00\rangle$ or $|11\rangle$, you cannot predict which. Run it twice: maybe $|00\rangle$, then $|11\rangle$. Run it ten times: some pattern starts to emerge. Run it a thousand times: a clear histogram takes shape, converging on the true probability distribution.
The quantum state is not directly observable. What you observe is a collection of classical measurement outcomes. Reading those outcomes correctly — understanding what the histogram is telling you and what it is not — is the essential skill for working with any quantum computer.
Frequency Becomes Probability
Before any quantum notation, here is the classical version of the idea.
One flip tells you almost nothing. Heads. Could be a fair coin. Could be a 70% heads coin. Could be a 99% heads coin.
Ten flips: 7 heads. Starting to look biased, but still noisy.
100 flips: 51 heads. Now you are fairly confident it is close to fair.
10,000 flips: 4,998 heads. The frequency has converged to the true probability: 50%.
A quantum circuit is exactly this. The quantum state determines the probabilities. Measurement samples from that distribution. Each run is one flip. The histogram you build up over many runs approximates the true distribution — and that approximation gets better as you add more runs.
The mathematical fact behind this is called the Law of Large Numbers: as the number of independent, identical trials grows, the observed frequency converges to the true probability. For a quantum circuit, "trials" are shots — individual runs of the circuit followed by measurement. Each shot is independent: the circuit is reset to $|0\rangle$ before every run.
What Measurement Actually Does
The three things measurement does
When you measure a qubit — or any quantum system — three things happen simultaneously:
2. Classical output. The result is a classical bit — 0 or 1. This is the number that appears in your terminal, your screen, your histogram. It is no longer quantum in any sense.
3. Irreversibility. Measurement cannot be undone. Unlike quantum gates, which are all reversible, measurement is a one-way street. The quantum information encoded in the superposition is lost. Only the classical result survives.
The circuit notation: double lines
In a quantum circuit diagram, measurement is shown as a box with a meter symbol inside. After the measurement box, the wire splits into a double line — the notation for classical information. Single lines carry quantum states (qubits). Double lines carry classical bits after collapse.
The Born Rule — connecting amplitudes to probabilities
The probability of getting a particular measurement outcome is given by the Born Rule: the probability equals the squared magnitude of the amplitude for that outcome.
Notice what the Born Rule does not say: it does not tell you which outcome you will get on any single run. It gives probabilities — which are only meaningful as long-run frequencies. A single measurement outcome tells you nothing about whether the Born Rule is satisfied. Ten thousand measurements give you a reliable estimate.
| Term | Definition | Unit |
|---|---|---|
| shot | One complete run of a circuit: prepare → apply gates → measure → record result. Also called a "sample" or "trial." | — |
| counts | The number of shots that gave a particular outcome. Example: 503 shots gave |00⟩ out of 1000 total shots. | integer |
| frequency | The fraction of shots giving an outcome. counts ÷ total shots. Converges to the true probability for large N. | 0–1 |
| histogram | A bar chart showing counts or frequencies for each possible outcome. The visual representation of repeated measurement. | — |
| shot noise | Statistical fluctuation in a histogram due to finite sample size. Scales as 1/√N: double the shots, halve the relative noise. | — |
Reset: Reusing Qubits Between Shots
Every shot of a circuit starts from the same initial state: all qubits in $|0\rangle$. But after measurement, a qubit is in a definite classical state — either $|0\rangle$ or $|1\rangle$, depending on the outcome. To run the next shot, you need to bring all qubits back to $|0\rangle$.
This is the job of the Reset gate, sometimes written $\mathsf{Reset}$ or $|0\rangle$ in a circuit diagram. It is a non-unitary, non-reversible operation that unconditionally puts a qubit into $|0\rangle$ — regardless of what state it was in before.
This is why Reset is not a unitary gate — it is not reversible. It destroys quantum information. But that is exactly what you need between shots: a clean slate.
In practice, "Reset" in software often just means re-preparing the qubit in its ground state — either by applying an X gate if the measurement gave $|1\rangle$, or by the hardware's natural relaxation to $|0\rangle$. On real quantum hardware, qubits slowly lose energy and naturally decay toward $|0\rangle$ — this physical relaxation is the hardware implementation of reset.
Live Histogram Builder
Choose a circuit, choose how many shots to run, then press Run. Watch the histogram build live. See how more shots produces a smoother, more reliable estimate of the underlying probabilities. Then reset and try a different circuit.
Things to observe: start with the H gate circuit and run 1 shot at a time — the histogram jumps unpredictably. Run 10 shots: rough shape appears. Run 100: close to 50/50. Run 1000: very close. The shot noise (uncertainty) scales as $1/\sqrt{N}$ — to halve the error, you need four times the shots.
Reading the Histogram Correctly
What converges and what does not
As you ran more shots in the interactive, you saw two kinds of bars: some that gradually settled near their theoretical values, and some (like $|01\rangle$ and $|10\rangle$ in the Bell pair circuit) that stayed exactly at zero.
These are fundamentally different. The fluctuating bars converge statistically — they carry shot noise that shrinks as $1/\sqrt{N}$. The zero bars converge mathematically — they are exactly zero because the quantum state has zero amplitude for those outcomes. No matter how many shots you run, the Bell pair will never produce $|01\rangle$. This is not statistical. It is structural.
~30% error.
~10% error.
~3% error.
~1% error.
The shot noise formula
What a histogram is and is not
A histogram is an estimate of the probability distribution, not the distribution itself. The true distribution is determined by the quantum state and the Born Rule — it is exact. The histogram is a finite-sample approximation of that exact distribution, with statistical noise.
What You Now Know About Reading Quantum Results
- One shot gives one classical bit string — almost useless on its ownA single measurement collapses the quantum state to one outcome. You cannot determine the probability distribution from a single result. You need many shots — typically hundreds to thousands — to build a reliable histogram.
- A histogram of N shots estimates the true probability distributionThe frequency of each outcome (count ÷ N) converges to the true Born Rule probability as N increases. Shot noise scales as $1/\sqrt{N}$: 100 shots gives ~5% precision, 10,000 shots gives ~0.5% precision.
- Measurement collapses the state, produces a classical bit, and is irreversibleThree simultaneous effects: wavefunction collapse (superposition ends), classical output (0 or 1), and destruction of quantum information. Unlike gates, measurement cannot be undone. The Born Rule gives the probabilities: $P(\text{outcome}) = |\text{amplitude}|^2$.
- Reset brings qubits back to |0⟩ before each new shotWithout Reset, each shot would start from a different (post-measurement) state. Reset unconditionally sets a qubit to $|0\rangle$ regardless of its previous state. It is non-unitary and non-reversible — it destroys quantum information. But it is essential for reliable, independent, repeated measurement.
- Two kinds of bars: statistical and structuralBars near their theoretical value have shot noise — they fluctuate and converge. Bars at exactly zero are structurally forbidden — their amplitudes are zero by the quantum state's construction. The Bell pair's $|01\rangle$ and $|10\rangle$ bars will never appear regardless of shot count. That structural zero is more informative than any non-zero bar.
These three questions span L19–L23. They test whether the core ideas of Section 4 have stuck — gates, entanglement, circuits, and reading results. You need solid circuit knowledge before the Section 5 synthesis.
You have built circuits, created entanglement,
and now learned to read the results.
Section 4 is complete.
Next: everything connects. The full picture of quantum computing,
from qubit to algorithm.
- Nielsen, M. A. & Chuang, I. L. — Quantum Computation and Quantum Information, Cambridge, 2000. §2.2 "The postulates of quantum mechanics" — Born Rule (postulate 3), measurement collapse, and normalisation.
- IBM Qiskit Textbook — "The Atoms of Computation." learning.quantum.ibm.com — Shot-based measurement, histogram interpretation, and Reset gate on real hardware.
- Preskill, J. — Ph219 Lecture Notes, Chapter 2. theory.caltech.edu/~preskill/ph219/ — Measurement as a quantum operation, Born Rule derivation in the density matrix formalism.
- Wilde, M. M. — Quantum Information Theory, Cambridge, 2013. Chapter 3 "The Noiseless Quantum Theory" — formal treatment of measurement and the classical/quantum interface.