context / grover's search
a history of search
In 1996 Lov Grover, at Bell Labs, showed a quantum computer can find one marked item in about the square root of N checks instead of N. A maze is that problem you can walk.
Play Lov's MazeA classical search tries one candidate at a time. In the worst case it looks at all of them. A phone book of a million names costs a million lookups. Grover's result is quadratic: about a thousand steps, not a million. The gap is small when N is small and rude when N is not.
Drag to grow the haystack. Bars are steps, on a log scale.
Start with every answer equally likely. Each iteration does two things: mark the right answer by flipping its amplitude, then reflect so that marked answer grows and the rest shrink. After about √N iterations the right one dominates. This strip is 16 answers, one of them marked. Step it.
Equal amplitudes. Nothing is preferred yet.
Eleven by eleven, one exit. Classical search checks cells one at a time and keeps every mark. The quantum picture is a light blue wave of amplitude that tightens onto a shortest path, then leaves only that path. It is the illustration from Lov's Maze, not a claim that Grover's circuit solves a maze.
Pick a search. Classical paints cells as it reaches them. Quantum floods the maze, then keeps one path.
The race is you against that wave. You move one cell at a time. It does not.
On a 25×25 maze there are 625 cells. You will backtrack through them. Grover's count for 625 unmarked items is about √625 = 25 iterations. That is the comparison the race is drawing. It is not a proof that a maze solver finishes in 25 steps. At this size a person can still win.
Lov's Maze is the same search with a clock on it. This page is the argument. The maze is the demonstration.
Play Lov's Maze