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.

Narrated with an ElevenLabs synthetic voice; animation made in code with Remotion. Educational, not for production use.
Read the transcript
  1. 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.
  2. Two waves in step add up. Shift one by half a wave, and they cancel. Noise-cancelling headphones use this exact trick on sound.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
Step 1 · Analogy

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.

Step 2 · Sandbox

Steer a photon without touching it.

Steps

  1. 1Send photons as they are
  2. 2Shift the phase
  3. 3Send every photon to B
  4. 4Peek at the path
  5. 5Can you steer it now?
Two paths from a beam splitter to two detectors source phase 0° peek A B A 100% B 0%

Odds: detector A 100% · detector B 0% · phase 0°

OddsDetector A gets every photon. Send some, then shift the phase.

Event log
RunPhasePeekAt AAt 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.

Step 3 · Formal bridge

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.

Step 4 · Teach-back

Explain it to a colleague.

Feedback only. It never blocks your progress. Your text stays in this browser.

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.

Where the two-path picture breaks

This is one photon, two paths and perfect mirrors. A real quantum computer runs many qubits at once and spends most of its effort fighting noise, which acts like an accidental peek. What carries over is the trick itself: a quantum computer does not try every answer at once. It arranges the paths so wrong answers cancel and the right one adds up.