11.3. Quantum Computing¶
Modern physics has two separate models for how the universe works: general relativity which predicts how large scale objects interact and quantum mechanics which predicts the actions of sub-atomic particles. When we start working on the scale of single atoms, we leave the realm of physics that we are used to and enter the quantum world where things work in some mind-bending ways:
Quantum objects can be in a superposition of states: they simultaneously exist in multiple possible states (like both on and off) until that state is observed at which point they “collapse” into just one state.
Quantum objects can be entangled: when an action is taken on one particle of an entangled pair it instantly can affect the other particle, even if they are on opposite sides of the universe.
Quantum objects can tunnel: passing through materials that are theoretically solid.
Scientists are working on exploiting these behaviors to produce a new kind of computer, the Quantum computer (video set to stop at 1:43, feel free to watch the rest if you want):
So how exactly do they work and why are they more powerful? By entangling particles that are in a superposition of two possible states, we can make a system that tests many states at one time:
Say you are trying to solve an optimization problem that looks like the picture below. Since there are 6 switches, there are \(2^6 = 64\) possible states that a classical computer would have to check one by one. A quantum computer with 6 qubits exists in every possible configuration of the switches at one time. If there were 200 switches in the problem, a classical computer would have to check \(2^{200} = 1.61 \times {10}^{60}\) possible states one by one. A quantum computer with 200 qubits could check all those states simultaneously.
Quantum computers are probabilistic - each time you run a simulation of a problem, you get an answer that may be correct. “Programming” a quantum computer involves setting up the quantum system so that the correct answer is the one most likely to appear. But since there is a chance that any particular run of the system produces an incorrect answer, obtaining confidence in your answer requires running multiple simulations until the pattern of results makes it statistically clear which answer is the correct one. But even if the simulation must be run dozens or hundreds of times, it has th potential to be much faster than a classical computer checking trillions of trillions of possible answers.
This final video is about one of the earliest quantum computations - the factoring of 15 into 3 x 5 and getting the correct answer 48% of the time. While that may not sound too impressive, it is the first step on the road that might make cryptography algorithms like RSA easy to crack. (Video set to play only a segment from the middle, but feel free to watch the rest.)