Amplitude Amplification
Amplitude amplification increases the probability that a coherent preparation passes a success test. If a fresh preparation succeeds with probability , measuring and restarting takes an expected trials. With reversible access to the preparation and suitable reflections, amplification reduces the number of component operations to for fixed target success.
The mechanism is the same two-reflection rotation as Grover search, but the starting state need not be uniform. The good component may itself be a quantum state we want to preserve. This is a comparison with repeating the same preparation, not a lower bound on every classical algorithm for the surrounding application.
Helpful background. Quantum oracles distinguishes forward, inverse and controlled access. Projectors explains subspaces and reflections. Query complexity distinguishes expected stopping times from fixed query caps.
A preparation and its good subspace
Section titled “A preparation and its good subspace”Let be a finite-dimensional Hilbert space with normalized reference state . A measurement-free unitary prepares
Let be the orthogonal projector onto the good subspace. The initial acceptance probability is
The primary task is to produce a state whose final test accepts with substantially larger probability. If an application needs a classical witness, it must additionally specify a readout basis, the map from outcomes to candidates, and a verifier. Acceptance of a subspace and recovery of a useful classical object are not identical tasks.
Two endpoint cases should be removed before introducing a two-dimensional picture:
- If , then has no component in the good subspace. The specified reflections preserve that absence, so ordinary amplitude amplification cannot create success.
- If , the prepared state is already good. Measuring immediately is at least as useful as applying an amplification iterate.
For , the goal is not to copy an unknown amplitude or to measure it without disturbance. The algorithm rotates the entire coherent state within an invariant plane and measures only after the chosen schedule is complete.
Operations needed for coherent amplification
Section titled “Operations needed for coherent amplification”The ordinary construction uses
The final success test is an additional operation. To produce a classical answer, one also needs the appropriate readout and candidate verification. To preserve a quantum output, the test must retain the accepted quantum state.
A gate circuit for gives an inverse by reversing the gates and replacing each by its adjoint. A dissipative preparation or a channel that discards its environment does not automatically provide this inverse. A reversible dilation can be used if its environment and workspace remain accessible. Reversible computation explains this construction.
Knowing only how to prepare is therefore not enough. Supplying a unitary and its full adjoint is enough: one need not know its action on every other basis vector, because
depends only on . Any unitary completion with that prepared column gives the same reflection.
Similarly, knowing the mathematical projector does not construct a cheap . For a basis-state predicate, clean Boolean XOR access and a minus ancilla produce the phase in one call; a circuit with temporary workspace may need compute–phase–uncompute. Arbitrary projectors require their own coherent implementation. See phase kickback.
The invariant good–bad plane
Section titled “The invariant good–bad plane”Assume and define the normalized projections
Orthogonality follows from , and normalization follows from the definition of . Introduce the unique angle satisfying
Then
The two basis vectors are the normalized good and bad parts of this particular . They need not be uniform over basis labels, and each may contain arbitrary internal amplitudes and relative phases. An amplification iterate changes only their two coefficients; it does not redistribute weight within either projection.
The projector identities immediately give
and reflection about maps every linear combination of and back into their span. Thus
is invariant under both ideal reflections. The full Hilbert-space evolution relevant to the prepared state reduces exactly to a real two-dimensional rotation even when the good and bad subspaces themselves have high dimension.
The generalized Grover iterate
Section titled “The generalized Grover iterate”Fix the sign convention
Because
first applies the good-subspace reflection and then reflects about the prepared-state axis. Operators act from right to left in the displayed product. In the ordered basis ,
while
Their product is
It has determinant one, eigenvalues , and advances a vector written as
according to
Some references absorb the leading minus sign into one reflection or reverse the basis order. Those choices can change the displayed matrix or apparent rotation direction while leaving observable probabilities unchanged. For uncontrolled amplification, an overall phase is unobservable. A controlled iterate used for amplitude estimation makes that phase relative to the inactive branch, so its sign must be retained.
Exact success probability and the accepted state
Section titled “Exact success probability and the accepted state”The prepared state begins at angle . Repeated application of the same ideal iterate gives, for every integer ,
This follows directly by induction from the one-step rotation, or by diagonalizing . The final good-subspace probability is exactly
For one iterate, the triple-angle identity gives a useful polynomial check:
The probability oscillates rather than increasing monotonically. As a sequence in integer , it need not have an exact period when is irrational. An integer that places close to gives high success, while another iterate can move the state past the good axis. There is no internal measurement announcing that the peak has been crossed.
Ideal amplification also preserves the normalized direction of each projection. Under an ideal Lüders test, whose good-outcome operation is , the normalized accepted state is up to global phase. An instrument with the same success probability can subsequently disturb or reset that state; preserving the good component requires the projection itself, not merely the same measurement effect. The primitive increases its weight; it does not choose a different good-state distribution.
Choosing a schedule when the initial success is known
Section titled “Choosing a schedule when the initial success is known”Suppose and hence are known. Set
If , then and the floor relation places the final angle within of :
Consequently,
If , then and . Together these cases give the precise ordinary-reflection guarantee
Since ,
so the schedule uses iterates. Repeating the whole amplified run independently times and verifying each output reduces a failure of at most one half to at most . Such repetition requires fresh coherent runs; it is not another free unitary step.
The ordinary reflections do not generally give certainty because the first probability maximum need not occur at an integer iterate. Exact known- constructions need additional operations. One method adds an auxiliary rotation that attenuates the initial success to
where
Prepare an ancilla as
and define joint success by . The new initial success is ; applying ordinary iterates for this enlarged preparation lands exactly in its good subspace. Another method replaces the terminal reflections by phases computed from . Both achieve exact success with component uses, but the ancilla rotation or phase-family access and its synthesis must be counted.
Randomized schedules when the success is unknown
Section titled “Randomized schedules when the success is unknown”A guessed iteration count can overshoot. QSearch instead uses increasingly wide random windows. Choose a constant . At round , let :
- Prepare a fresh and test it directly. Stop if it succeeds.
- Otherwise prepare again, choose uniformly from , apply , and test.
- Stop on success; otherwise begin the next round.
The direct test is useful when is already large. For , exact testing gives an expected number of forward/inverse preparations, with corresponding reflection costs. The returned result is valid, but the stopping tail is unbounded. At , this uncapped procedure never stops. A positive lower bound and a finite budget can instead give a specified nonzero failure probability.
The numerical example below averages one window explicitly. Amplitude estimation solves the separate problem of estimating .
Adjustable phases and fixed-point guarantees
Section titled “Adjustable phases and fixed-point guarantees”Generalized reflections attach phases rather than only signs:
With
arbitrary phases do not retain the ordinary rotation. One useful design condition is equality of the two diagonal entries in the good–bad matrix. For modulo , Høyer shows that this holds precisely when
This condition depends on and produces a rotation up to known phase changes. It is not a universal requirement on every useful amplification sequence. Equal phases can serve other purposes, as the fixed-point example below shows. Arbitrary-phase reflections also require more than a supplied reflection.
Fixed-point amplification solves another problem: make success uniformly high over a promised interval without the ordinary schedule’s over-rotation. For a lower bound , a failure-amplitude target , and an odd sequence length , the Yoder–Low–Chuang construction has
For , the fractional Chebyshev function in this formula is
If
then
For a nonzero target , a suitable sequence length scales as
Here is the failure-probability bound. The paper’s convention counts calls to its Boolean target oracle. The guarantee requires both the lower-bound promise and the specifically synthesized phase schedule.
Grover’s earlier recursive construction also removes over-rotation. After recursion levels its failure is , so ensuring failure at most requires
Its query cost is only for fixed target error and is for small when varies. It therefore loses the quadratic dependence. No finite fixed phase sequence of this form gives exact success for every in a continuous interval: its success probability is a polynomial that vanishes at , so it cannot equal one on an interval without being identically one.
A fixed-point curve with visible ripples
Section titled “A fixed-point curve with visible ripples”Take and . Then and
One generalized iterate realizes this curve with equal phase factors in the convention above. Its two Boolean target-oracle calls implement a general phase by compute–phase–uncompute. In contrast, one ordinary iterate gives and can erase success entirely at .
The fixed-point curve stays above for every , despite small ripples. This compares response shapes, not equal Boolean-query costs: a standard sign change uses one Boolean call, while the displayed adjustable phase uses two. Both require forward and inverse preparations.
Approximate reflections and accumulated error
Section titled “Approximate reflections and accumulated error”Approximate implementations require a separate error budget. Let and be normalized, and let be unitary or, more generally, a contraction. Suppose
and
A telescoping sum and contractivity give
For a unitary implementation these are normalized state vectors. For a contraction, the approximate vector can be subnormalized: its squared projection norm is a joint success probability before conditioning on the contraction having occurred. In either interpretation, the difference of squared projection norms is at most . A sufficient allocation for overall state error of order is therefore after budgeting preparation error. This worst-case coherent bound does not model stochastic hardware noise or prove fault-tolerant feasibility.
Operation counts and specialist variants
Section titled “Operation counts and specialist variants”For ordinary iterates following one preparation, the exact component counts are
Add measurement, verification and repetitions separately. Gates for preparation, inverse subroutines, controlled phases, workspace restoration and error correction determine the implementation cost. A reflection call and an elementary gate are different units.
The scaling is worst-case optimal for fixed nontrivial target success in the generic black-box setting. Uniform preparation with one marked basis state has ; a universally faster amplifier would violate the unstructured-search lower bound. This does not imply every particular preparation is hard.
Boosting a reversible heuristic or heralded quantum preparation can be useful even when no general application speedup follows. Two further variants have additional assumptions: oblivious amplification uses block structure to act uniformly on unknown system inputs, while variable-time amplification uses coherent branches with different stopping times. See block encodings and QSVT and Hamiltonian simulation for the block-structured case, and Ambainis for the variable-time construction.
Two finite examples
Section titled “Two finite examples”A nonuniform preparation
Section titled “A nonuniform preparation”In the ordered effective basis , take
so and . The ideal iterate is
Its columns are orthonormal, its determinant is one, and exact multiplication gives
Thus
A second iterate gives
and hence
The norm identities and check both states. The second step has nearly erased the good component. A one-step run uses two forward preparations and one inverse; a two-step run uses three and two. These effective coefficients can multiply arbitrary normalized internal good and bad states, not only uniform search states.
Averaging an unknown-success window
Section titled “Averaging an unknown-success window”Now take an unknown-success instance whose actual value is
and choose uniformly from . The exact ordinary-iterate probabilities are
| Iterations | Success probability |
|---|---|
| 0 | |
| 1 | |
| 2 | |
| 3 |
Putting the probabilities over a common denominator gives
Therefore
The mean operation counts are forward preparations and inverses, plus calls to each reflection and one final test. This one window illustrates the averaging mechanism; it does not establish the full expected-cost theorem by itself.
Exercises
Section titled “Exercises”1. Normalize the good–bad decomposition
Section titled “1. Normalize the good–bad decomposition”Let be normalized and . For , prove that the definitions of and give an orthonormal pair and reconstruct . Then explain the and branches without dividing by zero.
Solution
Because is an orthogonal projector,
Similarly,
Thus the stated denominators normalize the two vectors. Their inner product is
Adding the two projected components gives
With and , the positive square roots are and . If , the good projection is the zero vector and no normalized is defined or needed; the state is entirely bad. If , the bad projection vanishes and the state is already entirely good.
2. Derive the reflection rotation and eigenphases
Section titled “2. Derive the reflection rotation and eigenphases”First use the Mathematical Projectors algebra to prove that is a self-adjoint unitary for every orthogonal projector . Then derive the two matrices defining , prove invariance of the good–bad plane, and find the eigenvalues of .
Solution
For ,
and
The operator is therefore self-adjoint and its own inverse, hence unitary. Taking gives
in the good–bad basis. Since ,
Both matrices map the span of and to itself. Their product is
Its characteristic polynomial is
whose roots are . Multiplying the matrix by gives , proving the stated rotation law.
3. Reproduce the rational nonuniform example
Section titled “3. Reproduce the rational nonuniform example”For , reproduce , , both exact success probabilities, the norm checks, and the operation counts for one and two iterates.
Solution
Here
Therefore
Applying again gives
Hence
The identities and verify normalization. For , the tuple
is followed by one measurement. For , it is . Candidate verification, if required, is additional.
4. Prove the known-success stopping guarantee
Section titled “4. Prove the known-success stopping guarantee”Let . Prove , show the resulting square-root scaling, and explain why certainty needs attenuation or a phase-adjusted final iterate.
Solution
For , one has . From
we obtain
Writing the difference as gives
For , , so and . Thus the two cases give . Since ,
Ordinary iterates sample only angles , which need not equal for an integer . Attenuation changes the initial angle to one that lands exactly after an integer number of ordinary steps. A phase-adjusted terminal step instead changes the last rotation. Both require additional known- operations beyond the ordinary reflection interface.
5. Average an unknown-success window
Section titled “5. Average an unknown-success window”For actual , choose uniformly from . Reproduce the four probabilities and their mean. Explain why candidate verification and the stopping behavior cannot be omitted from a full QSearch claim.
Solution
Let . Multiple-angle identities give
Squaring these amplitudes together with gives
Over the common denominator , their numerator sum is , so
The mean forward count is , and the mean inverse and each reflection count are . Measurement alone can return an invalid candidate, so a verifier decides whether to stop. When , every attempt fails; an uncapped exact procedure runs forever. A bounded decision claim therefore needs a positive-success promise or an explicit cutoff and error guarantee.
6. Check generalized and fixed-point phases
Section titled “6. Check generalized and fixed-point phases”Use Høyer’s matching condition at and . Then evaluate the Yoder–Low–Chuang threshold for , , and .
Solution
The phase condition gives
Therefore
which is not . Equal arbitrary phases would fail this matching test.
For the fixed-point values,
On the branch,
Hence
At , the argument of is one, so
This is a uniform lower-bound guarantee with failure at most , not exact success or monotonic improvement at every intermediate step. In the paper’s convention, uses Boolean target- oracle calls.
7. Budget approximate iterates
Section titled “7. Budget approximate iterates”Assume normalized and , unitary , contractive , , and . Prove the linear telescoping bound and translate a target final state error into a sufficient per-iterate precision.
Solution
Add and subtract . The preparation term satisfies
by contractivity. For the iterate term, use
Every summand has operator norm at most , so
If , choosing
is sufficient for final state error at most . The difference between final squared projection norms is at most twice the vector distance. If the approximation is a contraction, this compares subnormalized branch probabilities; renormalizing a rare successful branch requires an additional bound on its probability. The bound still does not price synthesis, inverse circuits, ancillas, logical failure, error-correction cycles, routing, calibration, or physical time; those remain separate implementation costs.
8. Attenuate success to obtain an exact final state
Section titled “8. Attenuate success to obtain an exact final state”For the nonuniform example with , prepare an extra ancilla as and declare success only when the original state is good and the ancilla is one. Find the joint initial success and the number of ordinary amplification iterations needed for exact success. What happens to the conditional state in the original good subspace?
Solution
The ancilla is normalized because . The joint probability is
One iterate therefore reaches angle and succeeds exactly. The new reflection about the prepared state uses the enlarged preparation and its inverse; simply appending the ancilla while retaining the old reflection would be a different algorithm. The joint good direction is , so the original normalized good component is preserved. Implementing the ancilla rotation exactly is an idealized gate assumption; approximate synthesis gives a corresponding error.
References
Section titled “References”- A. Ambainis, “Variable Time Amplitude Amplification and a Faster Quantum Algorithm for Solving Systems of Linear Equations,” 29th International Symposium on Theoretical Aspects of Computer Science, LIPIcs 14, 636–647 (2012), doi:10.4230/LIPIcs.STACS.2012.636.
- D. W. Berry, A. M. Childs, R. Cleve, R. Kothari, and R. D. Somma, “Simulating Hamiltonian Dynamics with a Truncated Taylor Series,” Physical Review Letters 114, 090502 (2015), doi:10.1103/PhysRevLett.114.090502.
- M. Boyer, G. Brassard, P. Høyer, and A. Tapp, “Tight Bounds on Quantum Searching,” Fortschritte der Physik 46, 493–505 (1998), arXiv:quant-ph/9605034.
- G. Brassard, P. Høyer, M. Mosca, and A. Tapp, “Quantum Amplitude Amplification and Estimation,” Contemporary Mathematics 305, 53–74 (2002), doi:10.1090/conm/305/05215.
- L. K. Grover, “A Fast Quantum Mechanical Algorithm for Database Search,” in Proceedings of the 28th Annual ACM Symposium on Theory of Computing, 212–219 (1996), doi:10.1145/237814.237866.
- L. K. Grover, “Fixed-Point Quantum Search,” Physical Review Letters 95, 150501 (2005), doi:10.1103/PhysRevLett.95.150501.
- P. Høyer, “On Arbitrary Phases in Quantum Amplitude Amplification,” Physical Review A 62, 052304 (2000), doi:10.1103/PhysRevA.62.052304.
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th Anniversary Edition, Cambridge University Press (2010), doi:10.1017/CBO9780511976667.
- T. J. Yoder, G. H. Low, and I. L. Chuang, “Fixed-Point Quantum Search with an Optimal Number of Queries,” Physical Review Letters 113, 210501 (2014), doi:10.1103/PhysRevLett.113.210501.
- C. Zalka, “Grover’s Quantum Searching Algorithm Is Optimal,” Physical Review A 60, 2746–2751 (1999), doi:10.1103/PhysRevA.60.2746.