Imagine an unsorted phone book — names in no particular order — and you only know a phone number. To find whose number it is, there is no clever shortcut: you read entries one by one. With a million names you expect about half a million looks, and in the worst case all of them.
This is unstructured search: a haystack of N items, exactly one needle, and the only thing you can do is ask of an item "is this the one?" Any classical method needs on the order of N such questions. That feels like an iron law.
In 1996, Lov Grover showed quantum mechanics bends it. A quantum computer can find the needle after only about √N questions. For a million items that drops from ~500,000 checks to roughly 1,000 — not by being lucky, but by a precise trick with probability amplitudes.
Comments
Loading comments...