Imagine a black box that knows a secret -bit string . You can query it: hand it any -bit string and it returns the inner product . One bit out. Your job is to figure out all bits of .
Classically, the strategy is obvious: send , , and so on — each query peels off one bit of . After queries you know exactly. And it is provably necessary: any deterministic or randomized algorithm needs at least queries, because each query yields at most one bit of information.
A quantum computer does it in one query. This is the Bernstein-Vazirani algorithm, published by Ethan Bernstein and Umesh Vazirani in 1993 and the companion paper in 1997. It was one of the earliest demonstrations that quantum computers can solve natural problems exponentially faster than classical ones — not just asymptotically faster in an abstract setting, but with a provably exact separation: 1 versus .
The trick is superposition. A quantum computer does not ask "what is ?" and then "what is ?" — it asks all questions simultaneously in a single coherent query, and interference does the rest.
Comments
Loading comments...