Lesson 03

Measurement

Short answer

Measuring a qubit gives one classical bit: 0 with probability |α|², or 1 with probability |β|². Afterwards the qubit is left in the state you saw, so the superposition is gone — which is why quantum programs are run many times (shots) to reveal the probabilities.

One measurement, one bit

However rich a qubit’s state is, a measurement gives you a single 0 or 1. Which one you get is random, with odds set by the Born rule:

P(0)=∣α∣2=cos⁡2θ2,P(1)=∣β∣2=sin⁡2θ2P(0) = |\alpha|^2 = \cos^2\frac{\theta}{2}, \qquad P(1) = |\beta|^2 = \sin^2\frac{\theta}{2}

On the Bloch sphere that is simply the height of the arrow: the higher it points, the more likely a 0.

Shots: repeat to see the probabilities

A single result tells you almost nothing about the state — a 0 could come from |0⟩ or from a state that gives 0 only 1% of the time. So quantum computers prepare the same state and measure it many times. Each repetition is called a shot. Try it: prepare a state with the slider, then run shots and watch the bars approach the predicted value (the white line).

Measure it many times

Expected: 50.0% zeros and 50.0% ones

0
0
1
0

0 shots

= the probability predicted by the Born rule

Collapse: the state changes when you look

Measurement is not a passive look. If you measure and see 0, the qubit is now |0⟩; see 1 and it is |1⟩. On the sphere the arrow snaps to a pole — that flash you see when you press Measure. Measure again straight away and you will get the same answer every time, because the superposition is gone.

Measure, then measure againDrag to rotate
State|ψ⟩ = |0⟩θ = 0° · φ = 0°
P(0)
100%
P(1)
0%
|0⟩
your circuit appears here
Start: the qubit is in |0⟩

The arrow points at the north pole, so measuring now gives 0 every time. Press a gate to rotate it, or drag the sphere to look around.

Try: Reset → H → Measure → Measure → Measure. The first result is a coin flip; every one after it repeats it.

Measurement cannot see the phase — unless you rotate first

|+⟩ and |−⟩ both sit on the equator, so both give 50/50 results. A measurement along the vertical axis cannot tell them apart. But you can rotate before you measure: applying H turns |+⟩ into |0⟩ and |−⟩ into |1⟩. Then a measurement tells them apart with certainty.

This trick — rotate the question you want to ask onto the vertical axis, then measure — is used everywhere in quantum computing. It is called measuring in a different basis.

Summary

  • A measurement returns one bit; the odds are |α|² for 0 and |β|² for 1.
  • After measuring, the qubit is in the state you observed (collapse).
  • To learn the probabilities, prepare and measure many times — shots.
  • Phase is invisible to a direct measurement, but rotating first (for example with H) makes it visible.

Frequently asked questions

Why does measuring a qubit destroy its superposition?

A measurement in the computational basis has only two possible results, 0 and 1, and quantum mechanics says that right after you see a result the qubit is in the matching state |0⟩ or |1⟩. This “collapse” is part of the rules of the theory and is confirmed by every experiment: measure again immediately and you get the same answer.

Can’t we just copy a qubit and measure the copies?

No. The no-cloning theorem shows that no physical process can make an exact copy of an unknown quantum state. To learn the probabilities you have to prepare the same state again and again and measure each fresh copy — that is what “shots” are.

Is the result of a quantum measurement truly random?

Quantum mechanics only predicts probabilities. Experiments testing Bell’s inequalities have ruled out a broad class of “hidden variable” explanations in which the outcome was secretly fixed in advance by local information, which is why quantum devices are used as certified random number generators.

How many shots do I need?

It depends on how precisely you want the probability. The statistical error shrinks like 1/√N: with 100 shots of a 50/50 state you typically see 50 ± 5 zeros, with 1000 shots about 500 ± 16. Real quantum computers often use thousands of shots per circuit.