Non-graded · offline · explore at your own pace
Same odds, different states
A qubit in superposition isn't secretly 0 or secretly 1. Its amplitudes set the odds of each answer, and they can also be negative. Two qubits can have identical odds and still behave completely differently, and that difference is where quantum computing gets its power.
Measure either one and you get 0 or 1 with a 50/50 chance. Yet they are different states. Section 03 shows how to tell them apart with certainty.
01 · Refresher
From amplitudes to probabilities
Click a term to see how it fits together.
02 · Measurement
Looking forces a choice, and the choice sticks
Measuring a qubit in superposition gives a random result weighted by the amplitudes. Afterward the qubit is no longer in superposition: it has collapsed to whatever you saw. Measure it again and you get the same answer every time.
Try it: prepare one qubit, then measure it repeatedly
Set the odds and prepare a qubit. The first measurement is random. Every measurement after that repeats it, until you prepare a fresh qubit.
03 · The core idea
Interference: amplitudes can cancel
The Hadamard gate (H) turns |0⟩ into |+⟩, an even 50/50 blend. Apply H a second time and you might expect another coin flip. Instead you get |0⟩ every single time. The two paths leading to |1⟩ have opposite signs and cancel, while the paths to |0⟩ add up. That is interference, and every useful quantum algorithm is built on it.
Try it: H, then H again
Pick a starting state and run 100 shots. Then turn on the "peek" to measure in the middle and see what happens to the interference.
Amplitude bookkeeping
04 · Choosing what to measure
Measurement bases
So far every measurement has asked "0 or 1?" That's the Z basis (also called the computational or rectilinear basis). You can also ask "plus or minus?" by applying H and then measuring. That's the X basis (the diagonal basis). A state that is certain in one basis is a pure coin flip in the other.
05 · Security connection
A message that changes when someone reads it
Measurement disturbs the state, and the no-cloning theorem says nobody can copy an unknown quantum state to measure the copy instead. Put those together and you get a channel where an eavesdropper can't look without leaving a detectable disturbance, as long as the protocol checks for it and the public discussion between the two parties is authenticated.