corner
corner

Phys. Rev. Lett. 79, 325–328 (1997)

Quantum Mechanics Helps in Searching for a Needle in a Haystack

Download: PDF (94 kB) Buy this article Export: BibTeX or EndNote (RIS)

Lov K. Grover
3C-404A Bell Labs, 600 Mountain Avenue, Murray Hill, New Jersey 07974

Received 4 December 1996; published in the issue dated 14 July 1997

Quantum mechanics can speed up a range of search applications over unsorted data. For example, imagine a phone directory containing N names arranged in completely random order. To find someone's phone number with a probability of 50%, any classical algorithm (whether deterministic or probabilistic) will need to access the database a minimum of 0.5N times. Quantum mechanical systems can be in a superposition of states and simultaneously examine multiple names. By properly adjusting the phases of various operations, successful computations reinforce each other while others interfere randomly. As a result, the desired phone number can be obtained in only O(√N) accesses to the database.

© 1997 The American Physical Society

URL:
http://link.aps.org/doi/10.1103/PhysRevLett.79.325
DOI:
10.1103/PhysRevLett.79.325
PACS:
89.70.+c, 03.65.-w