Primitives
SaveLabExperimentsApproach

Instruments

Time0.00 s
Bodies0
Kinetic E0.00 J
Excess KE0.00 J
Potential E0.00 J
Total E0.00 J
Momentum0.00
Ang. mom.0.00
Max speed0.00 m/s
Gravity9.81 m/s²
FPS60
Gravity9.81m/s²
Speed1.00×
built on founden.ai
Experiments/The Deep End

Qubit superposition simulator: Born rule measurement

Set a qubit's state on a dial, measure it as often as you like, and watch single random outcomes build up into exact probabilities.

The Born rule

|ψ⟩ = cos(θ/2)|0⟩ + sin(θ/2)|1⟩, P(k) = |⟨k|ψ⟩|²

|ψ⟩
the qubit's prepared state
θ
the dial angle, measured from |0⟩ at the top
|0⟩
the basis state that always measures 0
|1⟩
the basis state that always measures 1
P(k)
probability of measuring outcome k (0 or 1)
⟨k|ψ⟩
the amplitude of outcome k: the overlap of the state with |k⟩

What you are watching

The circle is a slice of the Bloch sphere, |0⟩ at the top and |1⟩ at the bottom. The arrow is the prepared state, starting sideways (an equal superposition), and two bars show P(0) and P(1). Drag the dial and the bars follow cos²(θ/2) and sin²(θ/2).

Each press of MEASURE prepares the state afresh and measures it once: the arrow snaps to the pole you got, and the tally compares the fraction of 0s with P(0). Reset restores the even setting and clears the tally. Draws come from a seeded pseudo-random generator using the exact Born probabilities, so a reload repeats the sequence.

Why it happens

A qubit's state is a unit vector, |ψ⟩ = cos(θ/2)|0⟩ + sin(θ/2)|1⟩: one definite state that is neither basis state. The Born rule says a measurement gives outcome k with probability P(k) = |⟨k|ψ⟩|², the squared size of that amplitude, and leaves the qubit in |k⟩.

One result reveals almost nothing; only repetition on identical copies shows the probabilities, and the scatter shrinks as 1/√N. For an equal superposition, after 100 shots the fraction of 0s is typically within about 0.05 of 0.5, after 10,000 within about 0.005. On the dial's left half the two amplitudes carry opposite signs, which leaves these statistics unchanged but matters for interference, which this scene does not measure.

Try this

  1. At the even setting, press MEASURE twenty times and expect lopsided runs. Keep going and the fraction of 0s drifts toward 0.500.
  2. Press reset, drag the arrow straight up, and measure: P(0) is 100% and every press gives 0.
  3. Press reset, then set the arrow about 60° from the top: P(0) reads 75% (cos² 30°), and about three shots in four give 0.
  4. Dragging the dial does not clear the tally. Measure at one setting, move the dial, measure again: the fraction matches neither bar, because you mixed two preparations.

Questions

What is the Born rule?

The rule linking quantum states to experiment: an outcome's probability is the squared magnitude of its amplitude, P(k) = |⟨k|ψ⟩|². It predicts frequencies over many identical measurements, never a single result.

Is a qubit in superposition both 0 and 1 at once?

Not as two definite values held together. It is one definite state that is neither basis state; asked 0 or 1, it answers at random with probabilities set by its amplitudes.

More the deep end experiments

  • Black holeCurved spacetime
  • Einstein ringGravitational lensing
  • Light clockTime dilation
  • Length contractionLength contraction
  • The spectrumElectromagnetic spectrum
  • Hyperbolic triangleCurved space (K = −1)
  • Many parallelsThe fifth postulate fails
  • EntanglementBell's theorem
  • Radioactive decayThe exponential law
  • The atomQuantised energy levels

All 57 experiments

Primitives logoPrimitives

A real-time physics engine you experiment with directly. Real Newtonian mechanics, in SI units, in your browser.

Product

  • Engine
  • Experiments
  • Lab sheets
  • Lab
  • Approach
  • Notes

Legal

  • Privacy Policy
  • Terms of Service

Contact

  • support@primitives.im
© 2026 Primitives. All rights reserved.