r/askscience • u/Hashbringingslasherr • Apr 15 '26
Computing What do quantum computers actually do?
How do quantum computers output usable data, how does it logically "locate" or "make meaning" of information. I read about Grover's algorithm and it seems sort of like an inverted bruteforce or extreme process of elimination or a "the missile knows where it is at all times. It knows this because it knows where it isn't" type scenario.
So I ask, what do quantum computers actually do as opposed to a classical computer?
481
Upvotes
View all comments
459
u/the_horse_gamer Apr 16 '26 edited Apr 18 '26
"it checks every option" is a very common but completely false explanation.
a qubit is (mathematically) a pair of complex numbers a,b that obey a2 + b2 = 1. this is typically written as a|0> + b|1>
when a qubit is measured, it has an a2 chance to collapse to (change to) |0> and a b2 chance to collapse to |1>
quantum logic gates manipulate one or more qubits in a way mathematically equivalent to matrix multiplication
so how do we do anything productive? the general process is:
the output of a quantum computer is inherently random (unless using only collapsed qubits, which would be equivalent to a classical computer).
the standard requirement is for the correct answer to be produced with chance >2/3 (technically, anything larger than 1/2 + some constant is enough) and it can then be repeated to reach an arbitrarily high accuracy (or in some cases, it's easy to check if the answer is correct)
addressing some common claims:
and over 80% of modern Internet traffic already uses them. (EDIT: not sure where I got that figure from. failed to verify it)