How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Amplitude Amplification
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- Boolean Circuits and Nonuniform Complexity
- Bounded Linear Operators and Quotient Spaces
- Circuit Syntax, Denotational Semantics, and Measurement
- Clifford+T Exact and Approximate Synthesis
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complex Power Series and Analytic Functions
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Computational Problems, Promises, and Cost Models
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Continuous-Gate Universality and Exact Synthesis
- Controlled Gates, Phase, and Entanglement
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Effective Numberings, Reductions, Resources, and Randomness
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Equivalent Forms of Completeness
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- Finite Probability Spaces and Random Variables
- Finite-Dimensional Complex Inner-Product Spaces and Matrix Interfaces
- Formal Languages, Encodings, and Decision Problems
- Foundations of the Real Numbers for Analysis
- Free Modules, Exact Sequences, Projective and Injective Modules
- Fundamental Trigonometric Identities
- Further Trigonometric Identities and Inverse Functions
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Recurrences and Rational Generating Functions
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurements, POVMs, and Instruments
- Metric Spaces
- Modules, Submodules, Quotient Modules and the Isomorphism Theorems
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Properties of the Integral and the Working FTC
- Pure and Mixed States, Ensembles, and Schmidt Decomposition
- Qubits, Bloch Sphere, Pauli Algebra, and One-Qubit Gates
- Registers, Tensor Products, and Partial Trace
- Relations, Functions, and Quotients
- Resource Bounds and Machine Invariance
- Reversible Computation, Ancillas, and Coherent Oracles
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Splitting Fields
- Strongly Continuous Semigroups and Hille Yosida
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- Tensor Products of Modules
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Exponential Function
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Polynomial Hierarchy and Relativization
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Trigonometric and Oscillatory Examples in One Variable
- Turing Machines, Configurations, and Computation
- Uniform Circuit Families, Promise Problems, and Complexity
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page defines amplitude amplification for a supplied measurement-free unitary and orthogonal success projection. It fixes the sign and order of the standard iterate, treats zero and unit success weights without normalizing a zero component, and keeps conditional quantum outputs distinct from classical verified outputs. The page proves the rotation formula, known and unknown success procedures with their query costs, an exact-success construction under explicit coherent flag, exact-rotation, and enlarged-zero-reflection access (directly supplied or constructed from controlled original zero reflection), and Høyer’s arbitrary-phase matching and mismatch bounds. The enlarged good reflection is constructed and charged by flag compute–phase–uncompute or explicitly supplied; the terminal projective instrument is separately supplied or constructed with its additional calls. Preparation, inverse access, phase operations, controlled access, verification, gate synthesis, and classical costs remain separately declared.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Prepared unitary and success subspace for amplitude amplification
Definition
Let be a nonzero finite-dimensional complex inner-product space, let be a specified unit input vector, let be a supplied measurement-free unitary, and let be an orthogonal projection on . The access contract supplies and charges calls to , its inverse , the good phase reflection and the zero-input phase reflection The signs are part of the contract: is on and on its orthogonal complement. Reflection about the prepared state is the composite , with its component calls charged unless a separate direct-reflection access is supplied.
Put and define the initial success weight When , define . When , define . These vectors are normalized and lie respectively in the range and kernel of . If or , the corresponding zero component is omitted and no vector is normalized from it. With this convention, means the sum of the nonzero component terms. Under the projective measurement , the probability of the good outcome is ; the finite-dimensional rank-one density and projective-measurement outcome laws are A unit-vector outer product is a density operator and Projective measurement outcome weights are probabilities.
The output task may return the conditional quantum state after the good outcome; that state is defined only on a positive-probability branch and is supported in by Conditional state for a projective measurement. A classical output additionally requires to be diagonal in a specified output basis and a costed coherent or ordinary verifier. An arbitrary projection does not supply a classical predicate.
Remarks
The unitary must be supplied coherently. A measured randomized procedure is not an admissible unless a separate coherent embedding is supplied. Controlled access to is not assumed. A controlled verifier, if used, is a distinct charged access capability.
Amplitude-amplification invariant plane
Statement
Let be as in Prepared unitary and success subspace for amplitude amplification, with , and let be the unique angle satisfying . For the subspace is invariant. In the ordered orthonormal basis , the restriction of is For the prepared vector spans an invariant bad line and ; for it spans an invariant good line and .
Facts & Assumptions
Given: The prepared unitary, success projection, and access operations in the Statement.
Prepared unitary and success subspace for amplitude amplification: , with normalized good and bad components when .
Orthogonal-Projector Reflection and Access Contract: and ; these are the -sign reflections, distinct from .
Projector Reflections Are Hermitian Unitary Involutions: each orthogonal-projector reflection is a self-adjoint unitary involution.
The addition formulas for complex trigonometric and hyperbolic functions and Parity and the Pythagorean identity for sine and cosine: sine and cosine obey the real addition formulas and .
Quarter-turn values and shifts by pi/2 and pi and Pi as twice the smallest positive zero of cosine: , , and is the first positive cosine zero. The derivatives of sine and cosine are cosine and minus sine gives , so sine is strictly increasing on because cosine is positive before its first positive zero.
Proof
Put and . The two components and are orthogonal because is an orthogonal projection. Their nonzero normalized vectors therefore form an orthonormal pair, and . The angle is unique in : sine is continuous there, has endpoint values , and is strictly increasing because its derivative is the positive cosine before the first positive cosine zero.
In the ordered basis , , so . Also , since . The matrix of this latter reflection is [given, F1, F2, F3, F4, step 1.1, algebra] The product is therefore the displayed rotation matrix. This proves invariance and the claimed restriction.
If , then , so , while ; hence . If , then and , hence . No zero component is normalized.
Amplitude amplification with a fixed integer iteration count
Definition
Input a coherent sampler , an orthogonal success projection , and a fixed integer , under the access contract of Prepared unitary and success subspace for amplitude amplification. Additionally supply the good/bad projective instrument , charging each measurement and its implementation costs separately. Prepare . In the displayed right-to-left operator convention, set Apply exactly times. Then apply the projective instrument . On a positive-probability good outcome return its conditional quantum state; on the bad outcome return fail. The conditional state exists only on a positive-probability branch, as in Conditional state for a projective measurement.
For the classical-output specialization, additionally require to be diagonal in the designated output basis and supply a costed verifier. Measure that basis only after the success-projector instrument has accepted; verify the resulting candidate and return it or fail. No arbitrary-projector-to-classical-predicate conversion is implicit.
Remarks
This fixed- procedure makes no controlled- call. Any controlled or inverse access used by an enclosing procedure must be separately declared and charged. The scalar minus sign in is retained exactly.
Unknown-amplitude randomized search
Definition
This is a sequential randomized procedure, not a bounded- circuit family. Fix . For rounds , compute the finite integer by exact rational arithmetic. In classical-output mode, require the diagonal-predicate specialization of Prepared unitary and success subspace for amplitude amplification and a costed verifier that accepts exactly the basis labels designated good by ; measure the designated output basis only after the good/bad instrument and then run the verifier.
-
On a fresh register prepare and perform the declared good/bad projective instrument. On a bad outcome, continue to step 2. On a good outcome, return the conditional quantum state in quantum-output mode; in classical-output mode, measure the designated output basis, verify the candidate, and return it if accepted.
-
Prepare on a second fresh register. Draw uniformly from the finite set , apply exactly standard -iterates, and perform the good/bad instrument. On a good outcome, return the conditional quantum state in quantum-output mode; in classical-output mode, measure the designated output basis, verify the candidate, and return it if accepted. If the outcome is bad or verification rejects, discard the registers and continue to round .
The random choice is fresh and independent in each round; the schedule depends only on , never on the unknown . Every round is finite. When , the loop runs forever and does not decide whether the good set is empty.
Remarks
The expected query cost of this unbounded sequential procedure is interpreted using finite execution prefixes as in Expected query cost from finite execution prefixes. A zero-probability good branch is never normalized.
Amplitude amplification with independently chosen phase rotations
Definition
Input a prepared sampler , a success projection , an integer , and phases . In addition to , the access contract must supply the exact phase operations and charge each call. Such access does not follow from a -phase reflection alone. Prepare , apply exactly times, and apply the declared good/bad projective instrument. Return the conditional quantum output on a positive-probability good branch or fail on the bad branch. A classical output additionally needs the diagonal-predicate and costed-verifier conditions in Prepared unitary and success subspace for amplitude amplification.
Remarks
The outer minus sign is retained in the operator. An uncontrolled -fold sequence differs from the sequence without that scalar only by the global factor . It cannot be dropped inside a controlled use: the controlled block treats the two control branches differently, as in A Controlled Global Phase Becomes a Relative Control Phase. Controlled access to any factor is separately supplied and charged.
Exact success probability after amplitude amplification
Statement
Let be the initial success weight and let be the unique angle satisfying . After exactly standard amplitude-amplification iterates, the probability of the good outcome of is The endpoints and are included by direct evaluation, without normalizing a zero component.
Facts & Assumptions
Given: The sampler, success projection, and integer in the Statement.
Amplitude-amplification invariant plane: for , the ordered matrix of is the rotation through ; at , the prepared vector is fixed up to phase.
A unit-vector outer product is a density operator: the outer product of a unit vector is a density operator.
Projective measurement outcome weights are probabilities: for a density operator , the probability of the outcome projection is .
The addition formulas for complex trigonometric and hyperbolic functions: sine and cosine satisfy the real angle-addition identities; Parity and the Pythagorean identity for sine and cosine gives .
Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on , so has a unique for each .
Proof
Assume . The initial coordinates in the invariant ordered basis are . Multiplication by the matrix in [F1] and the addition formulas in [F4] send to . Starting at , induction on therefore gives coordinates after iterates.
The good component is the second coordinate, so its squared norm is . The prepared unit vector gives a density operator by [F2], and [F3] identifies this squared component norm with the projective-measurement outcome probability.
If , then and [F1] gives success probability . If , then ; [F1] changes only the global sign on each iterate, and [F5] gives . Thus the same formula holds at both endpoints.
Known-amplitude amplification with integer rounding
Definition
Input a coherent sampler with an exactly represented known success weight . For the finite rational-input procedure, is given as a binary rational; exact algebraic inputs are also allowed when the supplied representation supports exact comparisons. If , return fail without normalizing a good component. If , prepare , apply the declared good/bad projective instrument, and return its good conditional state (or, in the diagonal classical-output specialization, measure and verify the output).
For , set , using the principal inverse-sine and nonnegative-square-root conventions of Principal inverse sine and inverse cosine and Square roots exist: a unique with ; the positives are . Then is the unique angle with . Set , equivalently the least positive integer with . For each integer , compute exactly by the rational recurrence Indeed, writing , double-angle gives , , and cosine addition gives the displayed recurrence. Also . Choose the least attaining the maximum of this finite list. Run the fixed- procedure Amplitude amplification with a fixed integer iteration count, verify when a classical candidate is requested, and return the good conditional output or fail. For rational , every and is rational, so the comparisons are exact. No time bound for this classical preprocessing is claimed.
Remarks
For a general real , the same mathematical maximizer is defined, but a finite implementation requires an exact representation and a procedure that decides all finitely many comparisons, including ties. The item makes no computation claim for an arbitrary unrepresented real.
Exact success amplification by attenuating the good branch
Definition
Input a prepared sampler , its inverse , an orthogonal good projection , and an exactly represented known equal to the success weight. The model must supply the coherent flag unitary and its inverse, a clean flag qubit , a clean temporary qubit , external clean implementation workspace, and exact real arithmetic and controlled flag-rotation access, including inverse rotations. These are explicit capabilities; a bare phase reflection does not supply , and no finite-bit gate synthesis is asserted. The input data space is the possibly abstract space and specified vector of Prepared unitary and success subspace for amplitude amplification; no full classical description or computational-basis test for that vector is inferred. No controlled access to is required.
If , return fail without normalizing a good component. If , prepare and apply . Supply and charge that instrument directly, or construct it by applying to data and a clean scratch bit, measuring only that bit, and applying ; this costs two flag calls and one bit measurement and resets the scratch. Return the good conditional state; in the diagonal classical-output case, measure the designated output and verify it.
For , set , using Principal inverse sine and inverse cosine and Square roots exist: a unique with ; the positives are , and define Since , we have , hence . Sine is strictly increasing on , so , proving ; the square roots in the following rotation are the unique nonnegative roots. On the enlarged data, flag, and temporary registers, construct by the following finite gate sequence:
- Start every added register in and apply to the data.
- Apply to the data and temporary bit.
- Controlled on the temporary bit being , apply the flag rotation
- Apply to uncompute the temporary bit. This full unitary is ; its inverse reverses these operations and uses .
The logical enlarged space is , with specified input and success projector . Its required reflections are and . Select and charge the following access modes before execution.
- Zero reflection. Either explicitly supply one direct call, or supply controlled access to the original data reflection . In the latter mode, initialize an external scratch qubit to ; apply to , Toffoli, controlled by on , Toffoli, and to again. This uses one controlled- call, two Toffolis and four gates per enlarged zero reflection. Controlled is an additional capability and is not inferred from ordinary access.
- Good reflection. In the constructed mode, apply to with external scratch , then , then to . This uses two flag calls and one per . An alternative direct mode explicitly supplies and charges instead. Here , Toffoli and are the exact supplied qubit gates of The Pauli matrices, Toffoli and Fredkin gates and Controlled-Z and SWAP, with their gate costs charged.
The scratch starts and ends in for each reflection and may be reused. It is external implementation workspace, not part of the logical input or the projector defining . The constructions implement the displayed logical operators on every vector of with clean scratch; neither assumes to implement in the good projector.
Prepare , apply exactly iterates , then perform the projective instrument . The terminal instrument is an explicitly supplied, separately charged capability. Alternatively construct it with two external clean bits : apply on , Toffoli, measure only in the computational basis to obtain the good/bad record, then reverse the Toffoli and the flag call. Both scratch bits return to on either observed branch; this option adds two flag calls, two Toffolis and one bit measurement, separately from the reflection counts. Return the good conditional output, discarding ; is clean and on success. In the diagonal classical-output specialization, measure the designated output after the good outcome and use the supplied verifier.
Remarks
The ideal exact-real and exact-rotation assumptions are part of the input model. A finite-precision implementation requires a separate error budget and theorem.
Phase-matching condition for amplitude-amplification rotations
Statement
Let , let , and restrict to . In the ordered basis of Prepared unitary and success subspace for amplitude amplification, the two diagonal entries of coincide if and only if where when . The matching phase is the unique satisfying this equation. At it is . If and , the diagonal entries coincide exactly at ; if and , both diagonal entries vanish for every . For , the good/bad span is one-dimensional and no two-diagonal matching condition is asserted.
Facts & Assumptions
Given: The phase operations and access model of Amplitude amplification with independently chosen phase rotations, and .
Prepared unitary and success subspace for amplitude amplification: , with orthonormal good and bad vectors.
, , and : and for real .
The addition formulas for complex trigonometric and hyperbolic functions: the sine and cosine addition identities; is Parity and the Pythagorean identity for sine and cosine.
Proof
In the ordered basis , write and . Since , [given, F1, F2, algebra] Multiplying on the right by and including the scalar minus gives This calculation also shows directly that the good/bad plane is invariant.
Equality of the diagonal entries is equivalent to [given, F3, F4, step 1.1, algebra] For , , and after multiplying numerator and denominator by , the quotient is By [F3], this equals exactly when ; cross-multiplication of shows the equivalence in both directions. On , the half-angle tangent takes each real value exactly once, so the branch is unique.
If , the quotient in step 2.1 is , hence . If , the diagonal equality becomes . For , this is equivalent to , hence ; for , both diagonal entries are zero for every phase. At or , one normalized component in [F1] is absent, so a two-dimensional diagonal comparison is not defined.
Fixed-round amplitude amplification query count
Statement
For a fixed -iterate procedure, the displayed factorization of uses forward calls to , inverse calls to , good-subspace phase operations, and zero-input phase operations. It then uses one projective good/bad instrument. If classical output verification is requested, count its supplied verifier separately (one call when the task model assigns one query to verification). Controlled , state-preparation synthesis, gates, and classical costs are separate access coordinates and are not inferred to be free.
Facts & Assumptions
Given: The fixed- procedure and access contract.
Amplitude amplification with a fixed integer iteration count: one initial preparation , followed by exactly factors , then one final measurement.
Quantum query complexity: query cost counts designated calls; gates and other cost coordinates are separate.
Circuit-family and computation cost model: named oracle calls, gates, preparation, and classical computation are distinct coordinates, and no operation is silently assigned zero cost.
Proof
The initial preparation in [F1] contributes one forward call. No inverse call occurs before the iterates.
Each of the displayed -factors contains exactly one , one , one , and one . Adding these to the initial preparation gives forward calls, inverse calls, and of each phase operation. The final instrument is not an oracle call unless the chosen model explicitly assigns it one.
By [F2]–[F3], any verifier, controlled access, gate synthesis, state-preparation construction, and classical postprocessing retains its own declared charge; none changes the factor counts in step 1.2.
Known-amplitude success bound
Statement
For , let satisfy , and let be the maximizer selected by Known-amplitude amplification with integer rounding. Its success probability is at least . The branch returns fail, and the branch succeeds with probability .
Facts & Assumptions
Given: The known-amplitude procedure and its finite range .
Known-amplitude amplification with integer rounding: maximizes over the stated finite range; is included.
Exact success probability after amplitude amplification: standard iterations have good probability .
The addition formulas for complex trigonometric and hyperbolic functions and Parity and the Pythagorean identity for sine and cosine: the angle-addition and identities hold.
Sine and cosine are -Lipschitz on : , in particular for .
Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on .
Cofunction, supplementary, quarter-turn, and reflection identities for the six trigonometric functions, Double-angle and quadratic power-reduction identities, Quarter-turn values and shifts by pi/2 and pi, and Square roots exist: a unique with ; the positives are : , , and positive square roots are unique.
Proof
If , the candidate belongs to the finite search range and has success probability by [F2]. The maximizing therefore has at least this probability.
Suppose . Let , where positivity follows from strict increase in [F5]. By [F6], , so . Since , [F5] gives . Put , and choose a nearest nonnegative integer to , breaking ties toward the smaller integer. Then , so . The addition and Pythagorean identities [F3] give .
Since , [F4] gives . Hence by [F7], so . Thus lies in the algorithm's finite range, and [F1]–[F2] show that its selected maximizer has probability at least . The explicit zero and unit-weight branches give the stated endpoint behavior.
Exact success for known positive amplitude with explicit dilution
Statement
Under the exact access and rotation assumptions of Exact success amplification by attenuating the good branch, its output is good with probability for every . The branch returns fail and makes no claim that a good output exists.
Facts & Assumptions
Given: The exact-success algorithm, its known weight , and its supplied coherent flag operation, rotations, and the selected enlarged-reflection and terminal-instrument implementations.
Exact success amplification by attenuating the good branch: for , the chosen satisfy the displayed formulas, and every iterate uses the modified pair with the explicitly specified access modes.
Exact success probability after amplitude amplification: a prepared state with good weight has good probability after standard iterates.
Projective measurement outcome weights are probabilities: the good measurement weight is the probability of that outcome.
Conditional state for a projective measurement: on a positive-probability projective branch, the conditional state is supported in the measured projection range.
The addition formulas for complex trigonometric and hyperbolic functions and Parity and the Pythagorean identity for sine and cosine: the angle-addition and identities hold.
The derivatives of sine and cosine are cosine and minus sine, Cosine has a smallest positive zero, lying strictly between zero and two, and Pi as twice the smallest positive zero of cosine: , and cosine is positive before its first positive zero ; hence sine is increasing on .
Proof
The algorithm sets , so . Multiplying by gives , hence and . By sine monotonicity in [F6], , so and the two nonnegative square roots used in the supplied flag rotation are defined.
In the constructed zero reflection, on fixed logical flag/temporary bits , the four gates and two Toffolis compute and then erase . The data sees exactly when , and identity otherwise. This is . In the constructed good reflection, split any data vector as with . The first flag call records on and on in ; multiplies only with by , and the inverse flag call clears . Thus it is for arbitrary . Linearity extends both calculations to every logical vector with clean external scratch. Direct modes supply these same operators by hypothesis.
For the optional constructed terminal instrument, the coherent computation into records exactly the predicate defining . Measuring only therefore leaves the unnormalized logical branches and ; reversing the conjunction and flag computation clears within either branch without measuring the good component separately. This is the stated projective instrument. The direct mode supplies it by hypothesis.
In the prepared state, the good and bad components are and . The coherent flag operation sets the temporary bit exactly on the good component; the controlled rotation places flag- amplitude on that component and leaves the bad component with flag ; uncomputing the temporary bit returns it to . Thus has good component . Since , the modified pair has success weight .
By step 1.2 the selected access modes implement the exact modified-pair iterates with external scratch reset after each call. The two-dimensional amplification plane is spanned by the good and bad components of , both with by step 2.1; it therefore retains . The rotation theorem [F2] applied after iterates gives the following good probability. [given, F1, F2, F3, F4, F5, step 2.1, step 1.2, step 1.3, algebra] By the projective outcome law [F3], its good branch occurs with probability one. Its conditional output has support in by [F4]; the success flag is and the temporary bit was uncomputed to in step 2.1.
If , the algorithm's direct branch prepares a state in , so [F3] gives good-outcome probability one and [F4] gives its conditional support. If , it returns fail without normalizing a zero good component and makes no claim that a good state exists.
Unknown-amplitude search has no false positives and halts almost surely
Statement
For , let . For every integer , the second fresh sample with uniform on has good-outcome probability For every , the procedure Unknown-amplitude randomized search returns a good output with probability . If , it never returns a good output and does not halt.
Facts & Assumptions
Given: The fresh-register schedule, the good/bad measurement, and the verification rule in the algorithm.
Unknown-amplitude randomized search: every round begins with a direct fresh sample, and its second fresh sample uses a uniform ; only verified good outputs are returned.
Exact success probability after amplitude amplification: conditional on the second sample using iterates, its good probability is .
Projective measurement outcome weights are probabilities: the good/bad projective instrument assigns the good branch its Born probability.
Conditional state for a projective measurement: a positive-probability good branch has a conditional state supported in the good projection.
, and the complex exponential extends the real exponential and , , and : finite complex exponentials multiply by adding their exponents, and .
Proof
Assume , and let satisfy . The identity gives The cosine sum is the real part of . By [F6], this finite geometric sum has modulus Taking real parts therefore gives
If , then . Since , some finite round has , after which [F1]–[F2] give a conditional per-round success probability at least . If , the direct sample in each round succeeds with probability at least . Thus in either case there is a finite round after which every fresh round has conditional success probability bounded below by a fixed positive constant.
Registers and randomness are fresh each round, so after rounds beyond the finite threshold in step 2.1, the probability of still not returning is at most in the first case and in the second. Both tend to zero. Since every output is returned only after the good instrument outcome (and verification when required), no bad output is returned; on every positive-probability good branch [F4] supplies its conditional state.
If , every fresh preparation has zero projection onto , so each good outcome has probability zero by [F3]. The procedure therefore never returns and runs forever, as specified in [F1].
Success bound under an explicit amplitude-amplification phase mismatch
Statement
Let , with , , and . Let satisfy Let be the phase-matched value from Phase-matching condition for amplitude-amplification rotations. Use its signed representative when and when , so . Let be the implemented phase representative, with . For either signed phase label , a call to Amplitude amplification with independently chosen phase rotations uses the canonical input if and if ; its phase operation is unchanged. Put If for , then after iterates using , the failure probability is at most . The factor multiplies the displayed constant. In the equal-phase case , the failure probability is over the same parameter range.
Facts & Assumptions
Given: The exact phase iterates and parameter ranges in the Statement.
Phase-matching condition for amplitude-amplification rotations: the canonical matched phase makes the two diagonal entries of the two-dimensional iterate equal and satisfies .
Prepared unitary and success subspace for amplitude amplification: , with orthonormal good and bad vectors, and the bad projection is .
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: . Unitary operators preserve vector norms by Linear isometries, and orthogonal or unitary operators on finite-dimensional inner product spaces.
, , and and Sine and cosine are -Lipschitz on : ; also for , by one-Lipschitzness and .
Pythagoras, the parallelogram identity, and the real and complex polarisation identities: for an orthogonal projection, the projected and complementary components are orthogonal and their squared norms sum to the input squared norm.
Projective measurement outcome weights are probabilities and A unit-vector outer product is a density operator: the squared norm of the good projection of the unit output vector is its good-outcome probability.
The derivatives of sine and cosine are cosine and minus sine, Cosine has a smallest positive zero, lying strictly between zero and two, and Pi as twice the smallest positive zero of cosine: , , , and is the first positive cosine zero.
The addition formulas for complex trigonometric and hyperbolic functions and Parity and the Pythagorean identity for sine and cosine: the addition and Pythagorean identities hold.
The mean value theorem, as the case of Cauchy's: for continuous on with and differentiable on there is with : a continuous function on a closed interval and differentiable on its interior has a secant slope equal to a derivative at an interior point.
Sums, scalar multiples, products and quotients: , , , and when and The chain rule, in one line from Carathéodory: if is differentiable at and is differentiable at , then is differentiable at with : sums, products, quotients, and compositions obey their differentiation rules.
The principal inverse tangent and Principal arctangent: derivative, integral, power series, and the Gregory–Leibniz series: the principal arctangent takes real values into , is increasing, and has derivative .
Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing and cosine strictly decreasing on .
A function differentiable at is continuous at : differentiability on an interval implies continuity at every point of that interval.
Proof
By the addition and quarter-turn identities [F5], [F9], [F15], , so the canonical inputs specified in the Statement implement exactly the operators with the signed labels, and . In the ordered basis, set and . Since by [F5], the phase operations act by unit-modulus scalars on orthogonal subspaces and are unitary. From and the supplied phase operators, the iterate has matrix The diagonal entries coincide by [F1] and . The common diagonal is nonzero because the imaginary part of is . The lower-left entry has modulus . Thus the matched and implemented iterates are unitary and the matched matrix has equal diagonal entries.
Write the common diagonal as and the lower-left entry as . Unitarity gives , so because and . Since , put and ; both have modulus one, and , . If is the upper-right entry, column orthogonality gives . Hence , with and .
Write . From we get . Quarter-turn, parity, and monotonicity identities give and . If , failure is at most . If , put by [F13]. Since , [F13] gives , while the double-angle and supplementary identities give . Thus , and positivity yields . Hence , so by [F14]. Because and both angles lie in , [F14] gives . The addition formulas [F9] and induction give . The initial coordinates are , so the first coordinate of has modulus [given, F2, F7, F9, F13, F14, F15, step 2.1, algebra] The last inequality uses , cosine decreasing and sine increasing on , and , . The scalar has modulus one and leaves the good coordinate unchanged. By [F7], the matched failure probability is therefore at most .
Let be the iterate with phase . The arbitrary-phase definition gives [given, F3, F4, F5, F6, F7, step 3.1, algebra] For every unit vector , the projection contraction in [F6] and unitarity give by [F5], hence . Telescoping yields so unitarity gives . Set and for . Then . By [F7], the failure probabilities are and . Contraction of and reverse triangle give Thus implemented failure is at most by step 3.1.
For , . Set and . By [F8], [F15], ; by [F14], . The derivatives in [F8], [F11] make differentiable, hence continuous by [F16]; the mean value theorem [F10] applied to gives for . The same facts make continuous and differentiable, so [F10] on and gives slopes and ; the first is at least the second, so . Therefore , , and by [F5], [F8]. Also by [F5], [F8], so . The ceiling gives [given, F5, F8, F10, F11, F14, F15, F16, step 4.1, algebra] where the last inequality uses . Under with , we obtain . Step 4.1 gives failure at most ; when , the same bound is automatic since failure is at most .
In the equal-phase case with , put and . The matching condition [F1] and the principal inverse tangent [F12] give and . Let . By [F11], [F12], ; differentiability and [F16] give the continuity needed to apply [F10] to , so is nonincreasing. Applying [F10] to on and , the early secant slope is at least the late one; the secant slope on , their weighted average, is therefore at least the late slope. Thus , so . If , apply step 5.1 with ; if , step 3.1 gives the matched bound. The resulting failure is at most . For , , so the same big-O bound holds on the full range.
Arbitrary-phase amplification query count
Statement
With arbitrary-phase iterates, the procedure uses one initial forward , then forward calls, inverse calls, calls, and calls. It uses one final projective instrument and at most one separately supplied classical verification. Controlled forms are charged only under explicit access, and the outer minus sign is retained under any control.
Facts & Assumptions
Given: The finite integer , the arbitrary-phase algorithm, and the declared access/cost model.
Amplitude amplification with independently chosen phase rotations: is applied exactly times after one initial preparation.
Inverse Unitary Access: inverse calls are distinct declared access operations.
Circuit-family and computation cost model and Quantum query complexity: query calls, phase gates, measurements, and classical costs are separate coordinates.
Controlled Unitary Access and A Controlled Global Phase Becomes a Relative Control Phase: controlled access is explicit, and the scalar phase of a controlled block is observable relative to the other control branch.
Proof
The initial preparation in [F1] uses one forward call to . Each of the factors of contributes exactly one , one , one , and one , giving the stated counts. The projective instrument and optional verifier occur once after the loop.
The access and cost conventions in [F3]–[F4] keep any controlled access, phase-gate synthesis, state preparation, and verification in their own coordinates. In particular, replacing by inside a controlled call changes the relative control phase and is not a free rewrite.
Amplitude-amplification access and resource accounting
Statement
One standard iterate expands as It therefore uses one good-subspace phase operation, one zero-input phase operation, one forward , and one inverse . The initial preparation adds one further forward ; optional final verification is separate. For , the prepared-state -sign reflection is , where is the rank-one reflection of Orthogonal-Projector Reflection and Access Contract. The composite is not a free primitive unless that separate access is explicitly supplied. Query calls, gates, state preparation, controlled access, and classical costs remain distinct.
Facts & Assumptions
Given: The fixed-iterate algorithm and its declared access model.
Amplitude amplification with a fixed integer iteration count: the standard iterate has the displayed factorization and is applied times after one initial preparation.
Orthogonal-Projector Reflection and Access Contract: is the specified -sign reflection, and reflection access/cost is explicit.
Inverse Unitary Access and Controlled Unitary Access: inverse and controlled capabilities are separately granted and charged.
Circuit-family and computation cost model and Quantum query complexity: query, gate, width, preparation, and classical costs are separate coordinates.
Proof
Expanding in [F1] places once, once, once, once, and the scalar minus once. Repeating times and adding the initial preparation gives good phases, zero-input phases, inverse calls, and forward calls.
Since is unitary and , conjugation gives with the signs of [F2]. Implementing this -sign reflection includes its two access calls and zero-state phase; it is not added again as a separate free call. By [F2]–[F4], any separately supplied reflection or controlled-access primitive replaces only the operations its interface explicitly covers, with the specified sign retained under control.
Known-amplitude amplification query cost
Statement
For , the known-amplitude procedure uses calls to , , and the good-subspace phase operation, with success probability at least . State preparation, zero-input reflections, final verification, exact arithmetic, gate synthesis, and any controlled access retain their separately declared costs. The branch returns fail and is outside this bound.
Facts & Assumptions
Given: The known-amplitude algorithm and the query/gate cost coordinates.
Known-amplitude amplification with integer rounding: the selected integer satisfies , with one optional final verifier.
Fixed-round amplitude amplification query count: a fixed uses calls to , calls to , and calls to each of the good and zero-input phase operations.
Known-amplitude success bound: the success probability is at least for , and equals at .
Quantum query complexity: query cost counts designated oracle calls, while nonoracle gates use separate coordinates.
Circuit-family and computation cost model: calls, gates, state preparation, and classical computation are distinct charged resources.
Proof
For , [F1] gives . By [F2], at most forward calls to , inverse calls to , and good-phase calls occur. The optional verifier adds at most its one declared call.
The count in step 1.1 is in each of the three named access coordinates. The success lower bound follows from [F3]; at the direct branch uses one preparation and succeeds, which is also . By [F4]–[F5], exact selection of , gate synthesis, and other cost coordinates are not hidden in the query bound.
Exact-success amplitude amplification query cost
Statement
For , the exact-success procedure uses forward calls to , inverse calls to , and calls in each declared flag/reflection coordinate. In the branch, the explicit preparation and iterates use forward calls, inverse calls, and controlled flag rotations or their inverses.
With constructed good reflections, the total number of or inverse calls is and there are gates. With directly supplied enlarged good reflections, these counts are instead flag calls and direct calls. Either mode implements exactly logical good reflections.
With constructed zero reflections, there are controlled- calls, Toffolis and gates. With direct enlarged-zero access, there are instead direct calls. One external clean scratch bit suffices for all constructed reflections and is reusable; no controlled call is used.
These counts exclude the one explicitly supplied terminal projective instrument and any final classical verification. If the terminal instrument is constructed as in the algorithm, add two flag calls, two Toffolis, one bit measurement and a second external clean scratch bit; thus the constructed-good-reflection total becomes flag calls (or with direct good reflections). Both scratch bits reset exactly. Exact-real arithmetic, qubit gates, workspace, measurement, gate synthesis, preparation and any final verifier retain their separate costs.
Facts & Assumptions
Given: The exact-success algorithm and the separate access/cost coordinates.
Exact success amplification by attenuating the good branch: , satisfies , and each use of computes and uncomputes the good flag once.
Quantum query complexity: query calls are counted separately from gates.
Controlled Unitary Access and Inverse Unitary Access: controlled and inverse capabilities are explicit and separately charged.
Clean and dirty ancillas and Circuit-family and computation cost model: clean workspace and gate, preparation, and classical costs are separate coordinates.
Proof
In the nontrivial branch , . Since by [F5] and , . The direct branch uses a constant number of calls.
The initial contributes one forward , two flag calls and one controlled flag rotation. Each of the iterates contains one and one , contributing one forward and one inverse , four flag calls and two controlled rotations. Thus these parts contribute forward , inverse , flag calls and rotations. Each constructed good reflection contributes two further flag calls and one , giving flag calls and gates. Direct good-reflection access instead contributes calls of its own coordinate and leaves the flag total .
Each constructed zero reflection uses one controlled-, two Toffolis and four gates; repetitions give , respectively. Direct zero-reflection access instead uses direct calls. The same external clean scratch is reused, since the exact reflection constructions return it to zero. The optional terminal construction uses two flag calls and two Toffolis around one bit measurement, with a second external bit, so its addition gives the stated or flag total. No other step invokes ; the separately supplied terminal mode has no constituent flag count inferred.
The bounds in steps 1.1–1.3 are . By [F2]–[F4], they count only the declared query and access coordinates; exact arithmetic, synthesis, preparation, measurement, and any final verifier retain their separate costs. The success guarantee is [F1] together with Exact success for known positive amplitude with explicit dilution.
Expected cost of unknown-amplitude search
Statement
For , the expected total number of calls made by Unknown-amplitude randomized search to , , the good and zero-input phase operations, and any one-call verifier is . The lower bound is for this specified schedule; no general optimality statement is made outside an explicit black-box search model. For , the expected query cost is infinite.
Facts & Assumptions
Given: The round schedule, fresh-register semantics, and access model of the unknown-amplitude procedure.
Unknown-amplitude randomized search: ; each round uses one direct sample and, if it fails, one fresh preparation, uniform , and standard iterates.
Unknown-amplitude search has no false positives and halts almost surely: for uniform , the amplification-attempt success probability is at least ; all returned outputs are good and halts almost surely.
Exact success probability after amplitude amplification: after iterates the good probability is .
Expected query cost from finite execution prefixes: expected query cost is the supremum of expectations over finite execution prefixes; no expectation on an infinite-history space is presumed.
Quantum query complexity and Circuit-family and computation cost model: oracle calls, gates, and classical work are separate resource coordinates.
The addition formulas for complex trigonometric and hyperbolic functions: sine and cosine addition identities; follows from Parity and the Pythagorean identity for sine and cosine.
Proof
For , write . Once , [F2] gives amplification-attempt success at least , so the conditional probability of reaching the next round is at most . If , then and the survival-weighted cost ratio of later rounds is at most .
Let . For every , : it holds directly for , and if it holds for , then . Thus . With , we have , so the first threshold index is at most . If , then and ; the same bound holds when . Before that threshold the grow geometrically, so their sum is ; the direct preparations and fixed-cost verifications also cost . A round that reaches its amplification attempt makes at most four named calls per iterate, at most one extra preparation call, and at most one verifier call for each of its two samples; including the first direct sample, its total is at most . After the threshold, [F1], step 1.1, and make the survival-weighted worst-case round costs contract by at most . Since , the total is . If , each direct sample succeeds with probability at least , and for ; worst-case round costs grow by at most a factor , so survival-weighted costs contract by at most , giving . Each bound applies to every finite prefix, and taking the supremum in [F4] proves the upper bound without an infinite-history expectation.
For a lower bound at small , fix and let be the first round with . For every integer , induction with [F6] gives : the base case is equality, and the addition formula bounds the next value by . Therefore the success probability before round is at most , accounting for the direct sample and for the amplified sample. As proved in step 2.1, ; therefore . For sufficiently small , , , and ; geometric summation gives [given, F1, F3, F6, step 2.1, algebra] Hence the chance of any earlier success is at most , which tends to . For all sufficiently small , round is reached with probability at least .
At round , the direct sample fails with probability at least for sufficiently small . Conditional on its fresh amplification attempt, is uniform on , so [given, F1, F4, step 3.1, algebra] The probability of reaching and entering this attempt is at least , so this round alone contributes total access calls. For bounded away from zero, the first direct sample always makes one -call while is bounded, giving the same aggregate lower bound with a smaller constant.
If , every round executes its direct preparation and the process never halts by [F2]. Finite-prefix expected query counts therefore grow without bound with the number of completed rounds, so their supremum in [F4] is . Gate and classical costs remain separate as required by [F5].
5 · Examples, counterexamples and false statements
None yet.