There are problems no computer will ever solve: not today's, not one built a hundred years from now. It isn't about speed. It's about how fast the work grows when the problem gets a little bigger.
A few switches are enough to feel it. Ordinary ones, like on a wall: each has two positions. Let's see how many ways there are to set several of them.
1switches2combinations
How long to wait
Doubling fools intuition: the first steps look harmless, then the numbers run away. Picture a computer that checks a billion combinations a second, and a lock that opens for one single setting of its switches. The lock has 40 switches. Change it with the slider in the figure. Don't mix up two comparisons: sixty switches have more combinations than seconds since the Universe was born, but the machine checks a billion a second and gets through them in about forty years. For the search to take longer than the Universe has existed, you need eighty-nine switches.
trying every setting of a lock with 40 switches takes
18 minutes
a seconda daya yearthe age of the Universe
The scale is squeezed, or the age of the Universe would not fit next to a second. Each new switch doubles the time, and on a scale like this the bar grows by the same small step every time.
Notice that a faster machine barely helps. A computer twice as powerful can handle a lock one switch longer. Every problem where the work doubles with each new element is like this: hardware grows in steps, the problem in leaps.
Where this really shows up
The switches aren't a made-up example. Nature itself behaves this way. The electrons in a molecule affect one another, and to predict exactly how the molecule behaves you have to account for all their joint states. With each new electron the number of states doubles: the same staircase.
A caffeine molecule has about a hundred electrons. No existing computer can calculate it exactly, without simplifications. And we would like to calculate far harder things: how bacteria fix nitrogen from the air at room temperature and normal pressure, while factories need hundreds of degrees, hundreds of atmospheres and a noticeable share of all humanity's energy to do the same; what material to make a battery from so that it holds its charge longer; how a drug latches onto a protein. Today the answers to such questions are sought by experiment and by approximate calculations.
What a quantum computer does
In 1981 the physicist Richard Feynman proposed a way out: if nature computes by its own rules, then a machine for such calculations should be built from parts that live by the same rules.
People often say such a machine "tries all the options at once". That's not true, and the phrase makes a quantum computer sound like magic. What it actually does is keep a number for each option: its contribution. Contributions add up and, unlike ordinary chances, can cancel each other, like the waves on the cover of this book. A quantum algorithm is a way to arrange the calculation so that the contributions of the wrong answers cancel out and those of the right one add up.
This works for far from every problem. So it matters to know the other side too.
Where it helps and where it doesn't
It gives a big speed-up only on a narrow set of problems: calculating molecules and factoring large numbers. Part of today's encryption rests on factoring being very hard.
It won't speed up email, games, video or almost anything else your phone is busy with.
It won't "try every password at once". In a blind search there is a gain, but a modest one: about eight hundred steps instead of a million tries.
One more thing. Today's quantum computers are small and noisy: the best have from hundreds to a little over a thousand qubits, and each one makes errors too often. Breaking a modern cipher would take, by current estimates, hundreds of thousands or millions. This is the age of the first airplanes: they don't fly far, but it is already clear why they fly.
What to remember
There are problems where the work doubles with each new element. Fast hardware doesn't save you from them.
Molecules are built this way: their electrons affect one another, which is why molecules are so hard to calculate.
A quantum computer doesn't try everything at once. It adds up the contributions of the options so that the wrong ones cancel out.
Test yourself
The problems are optional: solve them now or come back to them later.
1
The lock
not solved
Three switches, one correct setting. Flip the switches and press Check until the lock opens.
One setting opens the lock. Which one is unknown, so all you can do is try.
2
Who it helps
not solved
On each line pick one of the two buttons: would a quantum computer solve this problem much faster than an ordinary one? An explanation appears once you answer.
Calculate the molecule of a new drug
Edit a video faster
Find a catalyst for making fertilizer
Factor a huge number
Open your email faster
3
A thousand years
not solved
A machine checks a billion settings a second. Move the slider: below it you can see how long it takes to try every setting of a lock that long. Find the shortest lock that takes more than a thousand years.
Time to try them all: 1 second. Under a thousand years — add switches.
To see how contributions cancel each other, we have to start with the smallest thing there is: one qubit. How it differs from a switch is the subject of chapter one.