- 1Qubit
- 2Interference
- 3Entanglement
- 4Harvest now
What is quantum interference?
How waves cancel each other out, and how a quantum computer uses that to pick the right answer out of many.
- Bob and Alice hold a rope stretched between them. When Bob flicks his end, a bump travels down the rope to Alice.
- If they both flick upwards at the same moment, the two bumps meet in the middle and add up to one bump twice as tall.
- But if Alice flicks down while Bob flicks up, the bumps cancel each other out when they meet, and the rope goes flat. Noise-cancelling headphones use the same trick on sound. Try it both ways.
- Ordinary chances can’t do that. If there are two ways for something to happen, each way adds to the total chance. Buying a second raffle ticket can only make you more likely to win, never less, because chances only ever add up.
- Quantum things are different. A qubit is a bit like a coin that’s still spinning: it hasn’t settled on heads or tails yet. When you look, it lands on one of them at random, and that’s all you ever see. Each answer has a bump in place of a plain chance, and the bigger its bump, the more likely the coin is to land on that answer.
- Bumps can point up or down, so two ways to the same answer can cancel each other out, the way the bumps on the rope did. That’s interference, and raffle tickets can never do it.
- Why bumps and not plain chances? No one has found a deeper reason. As far as a century of experiments can tell, it’s simply how nature behaves at the tiniest scale. Light and electrons travel like waves, spreading out and interfering, and land in one spot only when something detects them.
- Here’s how that helps with searching. Bob has forgotten his PIN, and it’s one of eight. Trying them one by one could take him all eight goes, even though checking each guess is quick.
- Checking an answer is often far quicker than finding it. Typing in a PIN tells you at once whether it’s right. A finished Sudoku takes a minute to check and much longer to solve, and a guessed encryption key either unscrambles a message or it doesn’t. A quantum computer can be built with a check like that inside it.
- The quantum computer doesn’t keep a list of the eight PINs. It holds one answer that’s still spinning between all eight, each with the same size bump, so if Bob looked now, it would land on one at random.
- Because that one spinning answer covers every PIN, the computer can check all eight with a single check. But the result is spinning along with the answer, so there’s no list of passes and fails for Bob to read. When he looks, everything lands at once on one PIN, picked at random, along with whether it passed. Seven times in eight, it’s a wrong one. Anything that reads the answer counts as looking, even the computer itself, so there’s no way to peek.
- So the check is built to work without anyone reading it. It doesn’t write down “pass”. When the answer is the right PIN, it turns that PIN’s bump upside down, and when it isn’t, it leaves the bump alone. Nothing has been read, so nothing lands, and because the flipped bump is still the same size, every PIN is still equally likely.
- Now the bumps interfere, and both things from the rope happen at once. At the seven wrong PINs, the upside-down bump cancels part of each one, so they shrink to half their height. At the right PIN, the bumps add up instead, and its bump comes back pointing up, two and a half times as tall. Here’s a way to see why: draw a line at the average height of all eight bumps, then move every bump to the other side of it, the same distance away. The others sit just above the line, so they end up just below it, much smaller. The upside-down bump sits far below the line, so it ends up far above it.
- Check and interfere again, and the right PIN’s bump grows again. After two rounds, Bob gets the right PIN about 95 times in 100. With a million PINs it would take about 800 rounds, against up to a million tries one by one. That’s the trick quantum computers rely on: arranging things so the wrong answers cancel and the right one adds up.
In plain words
Waves can add up or cancel out, like the bumps on Bob and Alice’s rope. Chances can’t: Bob’s second raffle ticket could only help him. A qubit’s answers carry bumps in place of plain chances, and bumps can cancel, so a quantum computer can make the bumps for wrong answers shrink while the right one grows, the way Bob’s PIN stood out after two rounds.
What the drawing leaves out
You may have heard that a quantum computer tries every answer at once. In a sense it does, as the check on all eight PINs shows, but on its own that gets you nowhere, because looking would still give you a random answer. It’s the cancelling afterwards that leads to the right one.
Strictly, an answer’s chance is its bump’s height squared. That’s why eight equal bumps give about 13 in 100 each, and the tall bump after two rounds gives 95.
Want to try the simulation?
Experiment 3, Why AES survives, runs this kind of search for real. Experiment 2, Breaking RSA, finds the cycle that a large enough quantum computer could use to break RSA.