Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

15.1 Grover: The Common Invariant Plane of Two Reflections

Suppose we search for marked items inside an -dimensional space. Whereas a classical search inspects candidates one by one, a quantum algorithm distributes unit norm across the search space from the start (note that unit normalization for quantum column vectors is always the Euclidean/Hilbert norm , never the norm on function spaces).

To unify single-state Grover search with multi-column subspace amplification, the source module CoherentUniformAmplification formulates amplitude amplification in block-matrix terms. Let (source indices) and (ambient search-space indices) be finite index types with decidable equality:

  • is an isometric source embedding ();
  • is a unitary preparation matrix (), forming the prepared isometry ;
  • is a Hermitian idempotent target projector (, ).

The uniform success condition requires the projected block to have scalar Gram matrix for some :

Under this condition, we define the normalized success block , the normalized failure block , the amplification iterate (the product of the target reflection and the source reflection ), and the initial angle :

The following theorem establishes that for every — and under arbitrary Kronecker tensoring with any reference matrix — the -step state remains locked inside the plane at angle .

B failure W success mirror 1: I − 2P mirror 2: 2UU∗ − I 2θ θ U after 1 QU: after 2

Two mirrors make one turn. For the ink arrow makes the angle with the failure direction . The first mirror is the axis (): it flips down to the grey dashed arrow. The second mirror is the line of (): it flips that arrow back up to the amber . After both flips the arrow has turned through the violet ; see Theorem 15.1.

Theorem 15.1 (Uniform Operator Rotation in Coherent Amplitude Amplification)LEAN ✓

Let be finite index types with decidable equality, and let , , and satisfy

Let

If , then ; otherwise (), all of the following hold:

  1. Orthonormality of the success and failure blocks:

  2. Exact -step rotation formula and Kronecker reference invariance: for every ,

    and for every type and every complex matrix ,

Proof

If , then and the failure block has Gram matrix , forcing and .

When , both and . From we obtain ; from and we obtain , hence ; and gives (claim 1).

At , . Because and , the first reflection maps and ; using and , the second reflection combines with the first so that acts on by a rotation:

Induction on using the angle-addition formulas for and proves the -step rotation formula, and bilinearity of yields the tensored identity with (claim 2). The full proof is checked by the Lean kernel.

Three boundaries in Theorem 15.1 must be kept explicit (Figure 15, Panel I):

  1. Retaining the branch: Because divides by , the case is handled by the explicit branch , while for the case recovers .
  2. Column-wise two-dimensional planes for general : When , and are two orthonormal vectors spanning a single -dimensional plane. When , each source column spans its own -dimensional plane orthogonal to the planes of all other columns, and all planes rotate in lockstep by (rather than confining the entire multi-column operator to a single -dimensional Hilbert space).
  3. Discrete integer-step overshoot: Because is an integer, steps discretely. For small , choosing brings close to , but except for special angles such as (), standard integer-step Grover iteration cannot hit exactly for arbitrary .

About steps to the top. At each step turns only ; twelve small violet arcs carry the amber arrow from to , success . Twelve is the first-peak step count, next to .

Whole steps can only approach : take one more step than the best count and the arrow turns past the target.

Whole steps overshoot. One more step at : the arrow turns to , the cyan shadow shrinks back to and the success probability falls from to ; the bars on the right rise and then fall, with bar the highest.

An exact coin-assisted remedy for known is proved in Chapter 16, Corollary 16.6.

Film · Two mirrors make a turn · 2:22

Two mirrors make a turn (2 min 22 s). Two cyan mirror lines meet at ; a white shape bounced off each in turn becomes the amber image, turned by the violet : two flips make one turn, by twice the angle. Four boxes hide one prize: the start has amplitude in every box and sits exactly off the failure direction . The first mirror flips the sign of the magenta prize bar, the second mirror flips every bar about the average , so and the amber arrow turns from to . The general rule is Theorem 15.1: for the state after steps sits exactly at , and for the start is the success block. Keep turning and the four-box success chances run : past the top, the next turn walks back down, and only coming round again returns to the top. At the best whole step of the first peak is , with and success about , while is only an estimate on top of the theorem; for one prize among boxes, no whole step lands exactly except at , by Niven’s theorem (a literature result). In the scene of the theorem the orbit on the left is drawn with the schematic angle . That unstructured search needs oracle queries is a literature result, not formalized in this book; “search is turning” is an interpretation, marked ARGUED. Every number in the film is computed on screen.

To apply the two mirrors one at a time by hand, open the full lab below:

The full lab of Grover’s two reflections: drag the initial state on mirror 2 to change , change , and apply the mirrors one at a time with ← →; the bars on the right are the success probabilities after each step (Theorem 15.1). The query lower bound is a literature result, not formalized in this book.