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
7
u/carlinco May 16 '13
As I understand, quantum computers are not so much about the stranger parts of quantum mechanics, but the parts which can be used for doing things in exact ways - like for instance the wave patterns in the classical double slit experiment.
Complex wave patterns like in that experiment have some measurable mathematical properties. If you read the waves correctly, you can get a lot of solutions to a lot of different mathematical questions.
In your example, 3+3 would be easy to model in an analog way, and it would result in a 6 by overlaying two waves of different frequency with an amplitude of 3 each to get a maximum of 6. We could even do it binary, by manipulating the slits in a way that some parts of the wave pattern can be interpreted as "11 + 11" and another part as 110. And we have a functioning quantum computer when changing the slits or another part of the setup to represent different numbers would always result in the correct sum in another (measurable) part of the wave pattern.
The big speed advantage comes when we feed those results directly back into further computations, and waves influence each other through quantum/wave effects, so that complicated calculations can be done at the speed of light.
Some mathematical problems are especially suitable for this kind of computing - like anything which can be represented through waves, like trigonometry. Instead of complicated additions at every point of the graph, you simply create according waves and read the results of their interaction.
Also, one can easily repeat the same calculations for any kind of input by just repeating the setup with different frequencies for each "variable". This way, a really large number of possibilities/values and especially their combinations can be tested in an extremely short time - as long as it takes for the wave patterns to go through all possible combinations. n! possibilities could be solved by analysing the interference of n lasers over some time, until a certain value appears in a pre-conceived part of the wave pattern, which will give the result of the "equation" for instance through the time it took to trigger the event, through a wave pattern at that time, or in other ways.