Grover search in the good/bad-plane model #
Grover search evolves in the two-dimensional plane spanned by the uniform
superposition over bad indices and the uniform superposition over good indices.
In that plane the phase oracle and diffusion reflection form exactly the same
rotation used by amplitude amplification [dW19, qcnotes.tex:2768], and after
k Grover iterates the success probability is sin((2k+1)θ)^2
[dW19, qcnotes.tex:2817].
This file states the Grover specialization against an explicit plane model:
phaseOracle, diffusion, and the hypothesis that their product is the
standard amplification rotation on the invariant good/bad plane. Building the
full n-qubit oracle/diffusion implementation and rounding the optimal
iteration count are separate refinements; the correctness theorem here is the
closed-form rotation core used by those refinements.
Main results #
LeanPool.LeanQuantumAlg.GroverSearch.main— exact good/bad-plane state afterkGrover iterates.LeanPool.LeanQuantumAlg.grover_success_probability— corresponding marked-subspace measurement probability.
The concrete Grover phase oracle for a marked-set predicate:
|j⟩ receives phase -1 exactly when marked j is true.
Instances For
A Grover search instance restricted to its invariant two-dimensional
bad/good plane. The initial state is amplitudeAmplificationState θ 0, so the
initial marked-subspace probability is sin θ ^ 2; the oracle and diffusion
assumptions are the explicit theorem inputs.
- θ : ℝ
Initial angle from the bad axis; for
tmarked items amongN, the textbook relation issin θ = sqrt (t / N). - phaseOracle : Gate 1
Phase oracle: reflection through the bad subspace in the good/bad plane.
- diffusion : Gate 1
Diffusion reflection through the prepared uniform/start state.
One Grover iterate, diffusion after phase oracle, is the standard amplitude-amplification rotation on the invariant plane.
Instances For
Grover correctness in the accepted two-dimensional scope: under the explicit
oracle/diffusion rotation hypothesis, k Grover iterates produce the standard
closed-form state.
Grover success probability in the good/bad-plane model. Measuring the good
basis state after k Grover iterates succeeds with probability
sin((2k+1)θ)^2.
Every Grover plane model is an amplitude-amplification model with the phase oracle as the good reflection and the diffusion operator as the start-state reflection.
Equations
- M.toAmplitudeAmplificationModel = { θ := M.θ, goodReflection := M.phaseOracle, startReflection := M.diffusion, iterate_eq := ⋯ }
Instances For
Grover is the amplitude-amplification specialization where the good reflection is the phase oracle and the start-state reflection is the diffusion operator.
The state after k Grover iterates, annotated with iterate cost k.
Equations
- QuantumAlg.Grover.timedIterate M k = QuantumAlg.Timed.trusted k (((M.diffusion * M.phaseOracle) ^ k).apply (QuantumAlg.amplitudeAmplificationState M.θ 0))
Instances For
Grover correctness, phrased through the TimeM return value.
The marked-subspace success probability after the timed Grover iterate.
The timed Grover iterate has the same return value as its amplitude-amplification view.
Trusted public resource profile for k Grover iterations on n index
qubits: k oracle queries and a linear-in-n elementary-gate representative
per iterate.
Equations
- QuantumAlg.Grover.resourceProfile n k = { oracleQueries := k, hadamardGates := 0, elementaryGates := k * n, classicalOps := 0 }
Instances For
Grover supporting theorem for the public marked-count statement. The
relation between the concrete n-qubit oracle and this good/bad plane remains
an explicit model hypothesis; under the marked-count angle relation, the timed
iterate has the public success probability and resource profile.
Registered basis-action wrapper for the concrete Grover phase oracle.
Registered resource wrapper for the marked-count Grover statement.