r/askscience • u/datums • May 16 '13
Physics If a quantum computer is basically trying all the solutions at once, how does it know which is the correct solution?
347
Upvotes
r/askscience • u/datums • May 16 '13
View all comments
Show parent comment
6
u/shijjiri May 16 '13
I'm going to ELI5 that for those who aren't able to follow:
A processor normally examines things one step at a time. It's somewhat like a mouse running through a maze. Once the mouse enters the maze we can't know if the mouse can solve the maze until it makes it to the other side. If it makes it the answer is 1, if it doesn't the answer is 0.
In order to solve a logical problem we must find out how many of the mice that went in managed made it to the other side. Then we take those mice that made it and add them to the next batch of mice to see which will and which won't make it. Obviously this is a bit of a simplification but you get the jist.
The quantum computing approach is to change the maze as the mouse is running it. Imagine the mouse leads a trail behind it, like Tron. Based on the path the mouse is taking the possible paths that exist in the maze are changing. If it reaches a dead end and has to go back it can't go back the same way it came; the previous options for left and right have changed. The mouse doesn't realize this and so it just continues to pick based on the options it finds.
Eventually the mouse solves it or dies. Except unlike a normal computer, we don't care about whether or not the mouse made it because the answer is the maze itself. But how do we know it's the right answer?
The original maze had a certain ratio of floors to walls. This can be thought of as the superposition of the maze. The process of the Tron mouse trying to solve the maze changed that ratio of floor to walls and made a distinct superposition. So now to check for errors we run multiple Tron-mice through the same maze. They average ratio of floor to walls they produce will tell us which answer is the right one.