Lab 00 · Quantum basics
Waves That Cancel
What a quantum computer actually does, and what it does not. Start here.
Explainer
Watch the idea first.
Ripples on a pond, one photon on two paths, and why peeking spoils the effect. 1 min 17 s, with captions.
Read the transcript
- Drop two pebbles into a still pond. Where a crest meets a crest, the water jumps higher. Where a crest meets a trough, it goes flat.
- Two waves in step add up. Shift one by half a wave, and they cancel. Noise-cancelling headphones use this exact trick on sound.
- Now send one photon at a beam splitter. Its wave takes both paths at once. At a second splitter, the two waves meet again, and interference decides which detector the photon reaches.
- Turn a phase dial on one path, and the odds swing. At zero, every photon lands at A. Half a turn, and every photon lands at B.
- Now peek at which path it took. The interference vanishes, and the odds go flat: fifty-fifty. When the environment peeks by accident, that's called decoherence.
- A quantum computer is a recipe of phase shifts that makes wrong answers cancel, and the right one grow. It only pays off for problems with hidden structure. Next: the One-Way Padlock.
Drop two pebbles into a still pond.
Each pebble sends out ripples. Where a crest from one meets a crest from the other, the water jumps higher. Where a crest meets a trough, the water goes flat. Noise-cancelling headphones use the same trick on sound: they play a second wave that cancels the noise.
A quantum computer is built on that trick. Its parts behave like waves, and the machine is arranged so the waves for wrong answers cancel and the wave for the right answer grows. You are about to steer one yourself.
Steer a photon without touching it.
Steps
- 1Send photons as they are
- 2Shift the phase
- 3Send every photon to B
- 4Peek at the path
- 5Can you steer it now?
Odds: detector A 100% · detector B 0% · phase 0°
OddsDetector A gets every photon. Send some, then shift the phase.
With the peek on, can any phase send every photon to detector B?
| Run | Phase | Peek | At A | At B |
|---|
Goal
Send every photon to detector B. Then find out what peeking does.
Detector B has not had every photon yet.
What the bars show. Each photon takes both paths at once, as a wave. Where the two waves meet they add up or cancel, and the phase decides which. The odds are computed from that, not typed.
Educational, not for production use. An intuition builder: ideal mirrors and splitters, one photon at a time. Every number here is computed in your browser.
Now it has a name.
Finish the lab to see the real terms. They will make sense once you have done it by hand.
What you steered is a qubit. The photon was in a superposition: not secretly on one path, but described by a wave on both. Each path’s wave has an amplitude, and the phase shifted one of them. Where the two met, interference decided which detector the photon reached.
Turning on the peek is measurement. Once anything records the path, the superposition is gone and the odds go flat. When the environment does this by accident it is called decoherence, and it is the main thing holding quantum computers back today.
A quantum computer uses many qubits whose waves combine in ways ordinary bits cannot copy cheaply. A quantum algorithm is a recipe of phase shifts that makes wrong answers cancel. That only pays off for problems with hidden structure, like the repeating rhythm that Shor’s algorithm finds in Lab 03. For most everyday jobs a quantum computer is no faster than your laptop.
Where are quantum computers today?
Real machines exist, but they are still small and noisy. See what has been demonstrated, what is only planned, and whether Y2Q has happened on the Quantum today page.
Explain it to a colleague.
What a good answer covers
- To doWaves add up or cancel (interference).
- To doLooking at the path destroys the effect.
- To doIt helps only for some problems, not by trying everything.