Alphabeta Math
Pipeline-generated
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.

✓ 13 results · all verified · 7 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 6 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Amplitude Amplification

1 · Prerequisites

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

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Prepared unitary and success subspace for amplitude amplification

Definition

Let H be a nonzero finite-dimensional complex inner-product space, let ∣0⟩∈H be a specified unit input vector, let A:H→H be a supplied measurement-free unitary, and let Πgood be an orthogonal projection on H. The access contract supplies and charges calls to A, its inverse A†, the good phase reflection Sgood:=IH−2Πgood, and the zero-input phase reflection S0:=IH−2∣0⟩⟨0∣. The signs are part of the contract: Sgood is −I on ran⁡Πgood and +I on its orthogonal complement. Reflection about the prepared state is the composite AS0A†, with its component calls charged unless a separate direct-reflection access is supplied.

Put ∣ψ⟩=A∣0⟩ and define the initial success weight a:=∥Πgood∣ψ⟩∥2∈[0,1]. When a>0, define ∣G⟩:=Πgood∣ψ⟩/a. When a<1, define ∣B⟩:=(IH−Πgood)∣ψ⟩/1−a. These vectors are normalized and lie respectively in the range and kernel of Πgood. If a=0 or a=1, the corresponding zero component is omitted and no vector is normalized from it. With this convention, ∣ψ⟩=a ∣G⟩+1−a ∣B⟩ means the sum of the nonzero component terms. Under the projective measurement {Πgood,IH−Πgood}, the probability of the good outcome is a; 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 ran⁡Πgood by Conditional state for a projective measurement. A classical output additionally requires Πgood 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 A unless a separate coherent embedding is supplied. Controlled access to A is not assumed. A controlled verifier, if used, is a distinct charged access capability.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Amplitude-amplification invariant plane

Statement

Let A,Πgood,a,∣G⟩,∣B⟩ be as in Prepared unitary and success subspace for amplitude amplification, with 0<a<1, and let θ∈(0,π/2) be the unique angle satisfying sin⁡2θ=a. For Q:=−AS0A†Sgood, the subspace span⁡{∣B⟩,∣G⟩} is invariant. In the ordered orthonormal basis (∣B⟩,∣G⟩), the restriction of Q is (cos⁡(2θ)−sin⁡(2θ)sin⁡(2θ)cos⁡(2θ)). For a=0 the prepared vector spans an invariant bad line and Q∣ψ⟩=∣ψ⟩; for a=1 it spans an invariant good line and Q∣ψ⟩=−∣ψ⟩.

Facts & Assumptions

Given: The prepared unitary, success projection, and access operations in the Statement.

[F1]

Prepared unitary and success subspace for amplitude amplification: ∣ψ⟩=A∣0⟩=a ∣G⟩+1−a ∣B⟩, with normalized good and bad components when 0<a<1.

[F2]

Orthogonal-Projector Reflection and Access Contract: Sgood=I−2Πgood and S0=I−2∣0⟩⟨0∣; these are the S-sign reflections, distinct from RΠ=2Π−I.

[F3]

Projector Reflections Are Hermitian Unitary Involutions: each orthogonal-projector reflection SΠ is a self-adjoint unitary involution.

[F4]

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 sin⁡2x+cos⁡2x=1.

[F5]

Quarter-turn values and shifts by pi/2 and pi and Pi as twice the smallest positive zero of cosine: sin⁡(π/2)=1, cos⁡(π/2)=0, and π/2 is the first positive cosine zero. The derivatives of sine and cosine are cosine and minus sine gives sin⁡′=cos⁡, so sine is strictly increasing on [0,π/2] because cosine is positive before its first positive zero.

Proof

1.1givenF1F5algebra

Put c=1−a=cos⁡θ and s=a=sin⁡θ. The two components Πgood∣ψ⟩ and (I−Πgood)∣ψ⟩ are orthogonal because Πgood is an orthogonal projection. Their nonzero normalized vectors therefore form an orthonormal pair, and ∣ψ⟩=c∣B⟩+s∣G⟩. The angle θ is unique in (0,π/2): sine is continuous there, has endpoint values 0,1, and is strictly increasing because its derivative is the positive cosine before the first positive cosine zero.

2.1givenF1F2F3F4step 1.1algebra

In the ordered basis (∣B⟩,∣G⟩), Πgood=diag⁡(0,1), so Sgood=diag⁡(1,−1). Also AS0A†=I−2∣ψ⟩⟨ψ∣, since A∣0⟩=∣ψ⟩. The matrix of this latter reflection is [given, F1, F2, F3, F4, step 1.1, algebra] (1−2c2−2cs−2cs1−2s2)=(−cos⁡(2θ)−sin⁡(2θ)−sin⁡(2θ)cos⁡(2θ)). The product Q=−(AS0A†)Sgood is therefore the displayed rotation matrix. This proves invariance and the claimed restriction.

3.1givenF2F3algebra∎

If a=0, then Πgood∣ψ⟩=0, so Sgood∣ψ⟩=∣ψ⟩, while AS0A†∣ψ⟩=−∣ψ⟩; hence Q∣ψ⟩=∣ψ⟩. If a=1, then Sgood∣ψ⟩=−∣ψ⟩ and AS0A†∣ψ⟩=−∣ψ⟩, hence Q∣ψ⟩=−∣ψ⟩. No zero component is normalized.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Amplitude amplification with a fixed integer iteration count

Definition

Input a coherent sampler A, an orthogonal success projection Πgood, and a fixed integer k≥0, under the access contract of Prepared unitary and success subspace for amplitude amplification. Additionally supply the good/bad projective instrument {Πgood,I−Πgood}, charging each measurement and its implementation costs separately. Prepare ∣ψ⟩=A∣0⟩. In the displayed right-to-left operator convention, set Q:=−A(I−2∣0⟩⟨0∣)A†(I−2Πgood). Apply Q exactly k times. Then apply the projective instrument {Πgood,I−Πgood}. 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 Πgood 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-k procedure makes no controlled-A call. Any controlled or inverse access used by an enclosing procedure must be separately declared and charged. The scalar minus sign in Q is retained exactly.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Amplitude amplification with independently chosen phase rotations

Definition

Input a prepared sampler A, a success projection Πgood, an integer m≥0, and phases ϕ,φ∈[0,2π). In addition to A,A†, the access contract must supply the exact phase operations S0(ϕ)=I+(eiϕ−1)∣0⟩⟨0∣,Sgood(φ)=I+(eiφ−1)Πgood, and charge each call. Such access does not follow from a π-phase reflection alone. Prepare A∣0⟩, apply Q(ϕ,φ):=−AS0(ϕ)A†Sgood(φ) exactly m 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 m-fold sequence differs from the sequence without that scalar only by the global factor (−1)m. 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.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Exact success probability after amplitude amplification

Statement

Let a∈[0,1] be the initial success weight and let θ∈[0,π/2] be the unique angle satisfying sin⁡2θ=a. After exactly k≥0 standard amplitude-amplification iterates, the probability of the good outcome of {Πgood,I−Πgood} is sin⁡2((2k+1)θ). The endpoints a=0 and a=1 are included by direct evaluation, without normalizing a zero component.

Facts & Assumptions

Given: The sampler, success projection, and integer k in the Statement.

[F1]

Amplitude-amplification invariant plane: for 0<a<1, the ordered (∣B⟩,∣G⟩) matrix of Q is the rotation through 2θ; at a=0,1, the prepared vector is fixed up to phase.

[F2]

A unit-vector outer product is a density operator: the outer product of a unit vector is a density operator.

[F3]

Projective measurement outcome weights are probabilities: for a density operator ρ, the probability of the outcome projection Π is tr⁡(ρΠ).

[F4]

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 sin⁡2x+cos⁡2x=1.

[F5]

Quarter-turn values and shifts by pi/2 and pi: sin⁡(π/2)=1 and cos⁡(π/2)=0.

[F6]

Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on [0,π/2], so sin⁡2θ=a has a unique θ∈[0,π/2] for each a∈[0,1].

Proof

1.1givenF1F4F6induction

Assume 0<a<1. The initial coordinates in the invariant ordered basis are (cos⁡θ,sin⁡θ). Multiplication by the matrix in [F1] and the addition formulas in [F4] send (cos⁡t,sin⁡t) to (cos⁡(t+2θ),sin⁡(t+2θ)). Starting at t=θ, induction on k therefore gives coordinates (cos⁡((2k+1)θ),sin⁡((2k+1)θ)) after k iterates.

2.1givenF2F3step 1.1algebra

The good component is the second coordinate, so its squared norm is sin⁡2((2k+1)θ). The prepared unit vector gives a density operator by [F2], and [F3] identifies this squared component norm with the projective-measurement outcome probability.

3.1givenF1F5algebra∎

If a=0, then θ=0 and [F1] gives success probability 0=sin⁡2((2k+1)0). If a=1, then θ=π/2; [F1] changes only the global sign on each iterate, and [F5] gives sin⁡2((2k+1)π/2)=1. Thus the same formula holds at both endpoints.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Known-amplitude amplification with integer rounding

Definition

Input a coherent sampler with an exactly represented known success weight a∈[0,1]. For the finite rational-input procedure, a is given as a binary rational; exact algebraic inputs are also allowed when the supplied representation supports exact comparisons. If a=0, return fail without normalizing a good component. If a=1, prepare A∣0⟩, 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 0<a<1, set θ:=arcsin⁡a∈(0,π/2), using the principal inverse-sine and nonnegative-square-root conventions of Principal inverse sine and inverse cosine and Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0}. Then θ is the unique angle with sin⁡2θ=a. Set K:=⌈1/a⌉, equivalently the least positive integer K with K2a≥1. For each integer k=0,…,K, compute pk=sin⁡2((2k+1)θ) exactly by the rational recurrence x0=1,x1=1−2a,xn+1=2(1−2a)xn−xn−1 (n≥1),pk=(1−x2k+1)/2. Indeed, writing xn=cos⁡(2nθ), double-angle gives x0=1, x1=cos⁡(2θ)=1−2a, and cosine addition gives the displayed recurrence. Also sin⁡2((2k+1)θ)=(1−cos⁡((4k+2)θ))/2=(1−x2k+1)/2. Choose the least k attaining the maximum of this finite list. Run the fixed-k 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 a, every xn and pk is rational, so the comparisons are exact. No time bound for this classical preprocessing is claimed.

Remarks

For a general real a, 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.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Exact success amplification by attenuating the good branch

Definition

Input a prepared sampler A, its inverse A†, an orthogonal good projection Πgood, and an exactly represented known a∈[0,1] equal to the success weight. The model must supply the coherent flag unitary Cgood=Πgood⊗X+(I−Πgood)⊗I and its inverse, a clean flag qubit F, a clean temporary qubit T, 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 Cgood, and no finite-bit gate synthesis is asserted. The input data space is the possibly abstract space H and specified vector ∣0⟩ 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 A is required.

If a=0, return fail without normalizing a good component. If a=1, prepare A∣0⟩ and apply {Πgood,I−Πgood}. Supply and charge that instrument directly, or construct it by applying Cgood to data and a clean scratch bit, measuring only that bit, and applying Cgood†; 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 0<a<1, set θ:=arcsin⁡a∈(0,π/2), using Principal inverse sine and inverse cosine and Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0}, and define m=⌈π4θ−12⌉,θ′=π4m+2,r=sin⁡2θ′a. Since m≥π/(4θ)−1/2, we have 4m+2≥π/θ, hence 0<θ′≤θ<π/2. Sine is strictly increasing on [0,π/2], so 0<sin⁡2θ′≤sin⁡2θ=a, proving 0<r≤1; the square roots in the following rotation are the unique nonnegative roots. On the enlarged data, flag, and temporary registers, construct A′ by the following finite gate sequence:

  1. Start every added register in ∣0⟩ and apply A to the data.
  2. Apply Cgood to the data and temporary bit.
  3. Controlled on the temporary bit being 1, apply the flag rotation Rr=(1−r−rr1−r),Rr∣0⟩=1−r∣0⟩+r∣1⟩.
  4. Apply Cgood† to uncompute the temporary bit. This full unitary is A′; its inverse reverses these operations and uses A†.

The logical enlarged space is H′=H⊗F⊗T, with specified input ∣0′⟩=∣0⟩H∣0⟩F∣0⟩T and success projector Π′=Πgood⊗∣1⟩⟨1∣F⊗IT. Its required reflections are S0′=IH′−2∣0′⟩⟨0′∣ and Sgood′=IH′−2Π′. Select and charge the following access modes before execution.

  • Zero reflection. Either explicitly supply one direct S0′ call, or supply controlled access C(S0) to the original data reflection S0=IH−2∣0⟩⟨0∣. In the latter mode, initialize an external scratch qubit q to 0; apply X to F,T, Toffoli(F,T;q), C(S0) controlled by q on H, Toffoli(F,T;q), and X to F,T again. This uses one controlled-S0 call, two Toffolis and four X gates per enlarged zero reflection. Controlled S0 is an additional capability and is not inferred from ordinary S0 access.
  • Good reflection. In the constructed mode, apply Cgood to (H,q) with external scratch q=0, then CZ(q,F), then Cgood† to (H,q). This uses two flag calls and one CZ per Sgood′. An alternative direct mode explicitly supplies and charges Sgood′ instead. Here X, Toffoli and CZ 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 q starts and ends in 0 for each reflection and may be reused. It is external implementation workspace, not part of the logical input ∣0′⟩ or the projector defining S0′. The constructions implement the displayed logical operators on every vector of H′ with clean scratch; neither assumes T=0 to implement IT in the good projector.

Prepare A′∣0′⟩, apply exactly m iterates −A′S0′A′†Sgood′, then perform the projective instrument {Π′,I−Π′}. The terminal instrument is an explicitly supplied, separately charged capability. Alternatively construct it with two external clean bits q,d: apply Cgood on (H,q), Toffoli(q,F;d), measure only d in the computational basis to obtain the good/bad record, then reverse the Toffoli and the flag call. Both scratch bits return to 0 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 F,T; T is clean and F=1 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.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Phase-matching condition for amplitude-amplification rotations

Statement

Let 0<a<1, let ϕ,φ∈[0,2π), and restrict to ϕ≠π. In the ordered (∣G⟩,∣B⟩) basis of Prepared unitary and success subspace for amplitude amplification, the two diagonal entries of Q(ϕ,φ) coincide if and only if tan⁡(φ/2)=tan⁡(ϕ/2)(1−2a), where tan⁡t:=sin⁡t/cos⁡t when cos⁡t≠0. The matching phase is the unique φ∈[0,2π)∖{π} satisfying this equation. At ϕ=0 it is φ=0. If ϕ=π and a≠1/2, the diagonal entries coincide exactly at φ=π; if ϕ=π and a=1/2, both diagonal entries vanish for every φ. For a∈{0,1}, 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 0<a<1.

[F1]

Prepared unitary and success subspace for amplitude amplification: ∣ψ⟩=a ∣G⟩+1−a ∣B⟩, with orthonormal good and bad vectors.

[F2]

Amplitude amplification with independently chosen phase rotations: Q=−AS0(ϕ)A†Sgood(φ), with S0=I+(eiϕ−1)∣0⟩⟨0∣ and Sgood=I+(eiφ−1)Πgood.

[F3]

Proof

1.1givenF1F2algebra

In the ordered basis (∣G⟩,∣B⟩), write u=eiϕ and v=eiφ. Since A∣0⟩=∣ψ⟩, [given, F1, F2, algebra] AS0(ϕ)A†=I+(u−1)∣ψ⟩⟨ψ∣. Multiplying on the right by Sgood(φ)=diag⁡(v,1) and including the scalar minus gives Q=−(v((1−a)+au)(u−1)a(1−a)v(u−1)a(1−a)a+(1−a)u). This calculation also shows directly that the good/bad plane is invariant.

2.1givenF3F4step 1.1algebra

Equality of the diagonal entries is equivalent to [given, F3, F4, step 1.1, algebra] v=a+(1−a)u(1−a)+au. For ϕ≠π, cos⁡(ϕ/2)≠0, and after multiplying numerator and denominator by e−iϕ/2, the quotient is x+iyx−iy,x=cos⁡(ϕ/2),y=(1−2a)sin⁡(ϕ/2). By [F3], this equals eiφ exactly when tan⁡(φ/2)=y/x=(1−2a)tan⁡(ϕ/2); cross-multiplication of (1+it)/(1−it) shows the equivalence in both directions. On [0,2π)∖{π}, the half-angle tangent takes each real value exactly once, so the branch is unique.

3.1givenF1step 1.1step 2.1algebra∎

If ϕ=0, the quotient in step 2.1 is 1, hence φ=0. If ϕ=π, the diagonal equality becomes 2a−1=−eiφ(2a−1). For a≠1/2, this is equivalent to eiφ=−1, hence φ=π; for a=1/2, both diagonal entries are zero for every phase. At a=0 or 1, one normalized component in [F1] is absent, so a two-dimensional diagonal comparison is not defined.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Fixed-round amplitude amplification query count

Statement

For a fixed k-iterate procedure, the displayed factorization of Q uses k+1 forward calls to A, k inverse calls to A†, k good-subspace phase operations, and k 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 A, state-preparation synthesis, gates, and classical costs are separate access coordinates and are not inferred to be free.

Facts & Assumptions

Given: The fixed-k procedure and access contract.

[F1]

Amplitude amplification with a fixed integer iteration count: one initial preparation A∣0⟩, followed by exactly k factors Q=−AS0A†Sgood, then one final measurement.

[F2]

Quantum query complexity: query cost counts designated calls; gates and other cost coordinates are separate.

[F3]

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

1.1givenF1algebra

The initial preparation in [F1] contributes one forward A call. No inverse call occurs before the iterates.

1.2givenF1F2algebra

Each of the k displayed Q-factors contains exactly one A, one A†, one S0, and one Sgood. Adding these to the initial preparation gives k+1 forward A calls, k inverse A† calls, and k of each phase operation. The final instrument is not an oracle call unless the chosen model explicitly assigns it one.

2.1F2F3step 1.2∎

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.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Known-amplitude success bound

Statement

For 0<a<1, let θ∈(0,π/2) satisfy sin⁡2θ=a, and let k be the maximizer selected by Known-amplitude amplification with integer rounding. Its success probability is at least max⁡{a,1−a}. The a=0 branch returns fail, and the a=1 branch succeeds with probability 1.

Facts & Assumptions

Given: The known-amplitude procedure and its finite range 0≤k≤⌈1/a⌉.

[F1]

Known-amplitude amplification with integer rounding: k maximizes sin⁡2((2k+1)θ) over the stated finite range; k=0 is included.

[F2]

Exact success probability after amplitude amplification: k standard iterations have good probability sin⁡2((2k+1)θ).

[F4]

Sine and cosine are 1-Lipschitz on R: ∣sin⁡x−sin⁡y∣≤∣x−y∣, in particular sin⁡θ≤θ for θ≥0.

[F5]

Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on [0,π/2].

Proof

1.1givenF1F2algebra

If 1/2≤a<1, the candidate k=0 belongs to the finite search range and has success probability sin⁡2θ=a=max⁡{a,1−a} by [F2]. The maximizing k therefore has at least this probability.

1.2givenF3F5F6choosealgebra

Suppose 0<a<1/2. Let s=sin⁡(π/4)=cos⁡(π/4)>0, where positivity follows from strict increase in [F5]. By [F6], 1=sin⁡(π/2)=2s2, so s=1/2. Since sin⁡θ=a<1/2=s, [F5] gives 0<θ<π/4. Put r=π/(4θ)−1/2>0, and choose a nearest nonnegative integer k0 to r, breaking ties toward the smaller integer. Then ∣k0−r∣≤1/2, so ∣(2k0+1)θ−π/2∣≤θ. The addition and Pythagorean identities [F3] give sin⁡2((2k0+1)θ)≥cos⁡2θ=1−a.

2.1givenF1F2F4F7step 1.2algebra∎

Since sin⁡θ=a, [F4] gives θ≥a. Hence k0≤r+1/2=π/(4θ)≤π/(4a)<1/a by [F7], so k0≤⌈1/a⌉. Thus k0 lies in the algorithm's finite range, and [F1]–[F2] show that its selected maximizer has probability at least 1−a=max⁡{a,1−a}. The explicit zero and unit-weight branches give the stated endpoint behavior.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

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 1 for every 0<a≤1. The a=0 branch returns fail and makes no claim that a good output exists.

Facts & Assumptions

Given: The exact-success algorithm, its known weight a, and its supplied coherent flag operation, rotations, and the selected enlarged-reflection and terminal-instrument implementations.

[F1]

Exact success amplification by attenuating the good branch: for 0<a<1, the chosen m,θ′,r satisfy the displayed formulas, and every iterate uses the modified pair (A′,Π′) with the explicitly specified access modes.

[F2]

Exact success probability after amplitude amplification: a prepared state with good weight sin⁡2θ′ has good probability sin⁡2((2m+1)θ′) after m standard iterates.

[F3]

Projective measurement outcome weights are probabilities: the good measurement weight is the probability of that outcome.

[F4]

Conditional state for a projective measurement: on a positive-probability projective branch, the conditional state is supported in the measured projection range.

[F6]

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: sin⁡′=cos⁡, and cosine is positive before its first positive zero π/2; hence sine is increasing on [0,π/2].

Proof

1.1givenF1F6algebra

The algorithm sets m=⌈π/(4θ)−1/2⌉, so m≥π/(4θ)−1/2. Multiplying by 4θ>0 gives 4mθ+2θ≥π, hence 4m+2≥π/θ and 0<θ′=π/(4m+2)≤θ<π/2. By sine monotonicity in [F6], 0<sin⁡2θ′≤sin⁡2θ=a, so 0<r=sin⁡2θ′/a≤1 and the two nonnegative square roots used in the supplied flag rotation are defined.

1.2givenF1constructalgebra

In the constructed zero reflection, on fixed logical flag/temporary bits f,t, the four X gates and two Toffolis compute and then erase q=(1−f)(1−t). The data sees S0 exactly when f=t=0, and identity otherwise. This is I−2∣0⟩⟨0∣H⊗∣00⟩⟨00∣F,T=S0′. In the constructed good reflection, split any data vector as vg+vb with vg=Πgoodv. The first flag call records 1 on vg and 0 on vb in q; CZ(q,F) multiplies only vg with F=1 by −1, and the inverse flag call clears q. Thus it is I−2Πgood⊗∣1⟩⟨1∣F⊗IT=Sgood′ for arbitrary T. Linearity extends both calculations to every logical vector with clean external scratch. Direct modes supply these same operators by hypothesis.

1.3givenF1F3F4constructalgebra

For the optional constructed terminal instrument, the coherent computation into d records exactly the predicate defining Π′. Measuring only d therefore leaves the unnormalized logical branches Π′ρΠ′ and (I−Π′)ρ(I−Π′); reversing the conjunction and flag computation clears d,q within either branch without measuring the good component separately. This is the stated projective instrument. The direct mode supplies it by hypothesis.

2.1givenF1step 1.1constructalgebra

In the prepared state, the good and bad components are a ∣G⟩ and 1−a ∣B⟩. The coherent flag operation sets the temporary bit exactly on the good component; the controlled rotation places flag-1 amplitude r on that component and leaves the bad component with flag 0; uncomputing the temporary bit returns it to 0. Thus A′∣0′⟩ has good component ar ∣G⟩∣1⟩∣0⟩. Since ar=sin⁡2θ′, the modified pair (A′,Π′) has success weight sin⁡2θ′.

3.1givenF1F2F3F4F5step 2.1step 1.2step 1.3algebra

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 A′∣0′⟩, both with T=0 by step 2.1; it therefore retains T=0. The rotation theorem [F2] applied after m iterates gives the following good probability. [given, F1, F2, F3, F4, F5, step 2.1, step 1.2, step 1.3, algebra] sin⁡2((2m+1)θ′)=sin⁡2 ⁣((2m+1)π4m+2)=sin⁡2(π/2)=1. By the projective outcome law [F3], its good branch occurs with probability one. Its conditional output has support in ran⁡Π′ by [F4]; the success flag is 1 and the temporary bit was uncomputed to 0 in step 2.1.

4.1givenF1F3F4∎

If a=1, the algorithm's direct branch prepares a state in ran⁡Πgood, so [F3] gives good-outcome probability one and [F4] gives its conditional support. If a=0, it returns fail without normalizing a zero good component and makes no claim that a good state exists.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Unknown-amplitude search has no false positives and halts almost surely

Statement

For 0<a<1, let sin⁡2θ=a. For every integer M≥1, the second fresh sample with j uniform on {1,…,M} has good-outcome probability pM=1M∑j=1Msin⁡2((2j+1)θ)=12−12M∑j=1Mcos⁡((4j+2)θ)≥12−12M∣sin⁡(2θ)∣. For every a>0, the procedure Unknown-amplitude randomized search returns a good output with probability 1. If a=0, 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.

[F1]

Unknown-amplitude randomized search: every round begins with a direct fresh sample, and its second fresh sample uses a uniform j∈{1,…,Mℓ}; only verified good outputs are returned.

[F2]

Exact success probability after amplitude amplification: conditional on the second sample using j iterates, its good probability is sin⁡2((2j+1)θ).

[F3]

Projective measurement outcome weights are probabilities: the good/bad projective instrument assigns the good branch its Born probability.

[F4]

Conditional state for a projective measurement: a positive-probability good branch has a conditional state supported in the good projection.

[F5]

The addition formulas for complex trigonometric and hyperbolic functions: cos⁡(x+y)=cos⁡xcos⁡y−sin⁡xsin⁡y; ∣cos⁡x∣≤1 follows from Parity and the Pythagorean identity for sine and cosine.

Proof

1.1givenF2F5F6algebra

Assume 0<a<1, and let 0<θ<π/2 satisfy sin⁡2θ=a. The identity sin⁡2x=(1−cos⁡(2x))/2 gives pM=1M∑j=1Msin⁡2((2j+1)θ)=12−12M∑j=1Mcos⁡((4j+2)θ). The cosine sum is the real part of ei6θ∑r=0M−1ei4rθ. By [F6], this finite geometric sum has modulus ∣1−ei4Mθ∣∣1−ei4θ∣=∣sin⁡(2Mθ)∣∣sin⁡(2θ)∣≤1∣sin⁡(2θ)∣. Taking real parts therefore gives pM≥12−12M∣sin⁡(2θ)∣.

2.1givenF1F2step 1.1algebra

If 0<a<3/4, then sin⁡(2θ)=2a(1−a)≥a. Since Mℓ→∞, some finite round has Mℓ≥2/a, after which [F1]–[F2] give a conditional per-round success probability at least pMℓ≥1/4. If a≥3/4, the direct sample in each round succeeds with probability at least 3/4. 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.

3.1givenF1F3F4step 2.1algebra

Registers and randomness are fresh each round, so after r rounds beyond the finite threshold in step 2.1, the probability of still not returning is at most (3/4)r in the first case and (1/4)r 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.

4.1givenF1F3algebra∎

If a=0, every fresh preparation has zero projection onto ran⁡Πgood, so each good outcome has probability zero by [F3]. The procedure therefore never returns and runs forever, as specified in [F1].

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Success bound under an explicit amplitude-amplification phase mismatch

Statement

Let 0<a<1, sin⁡2θ=a with 0<θ<π/2, 0<ϕ<π, and θ≤ϕ. Let ϑ∈(0,π/2] satisfy sin⁡ϑ=sin⁡(ϕ/2)sin⁡(2θ),m=⌈π2ϑ−12⌉. Let φ0∈[0,2π)∖{π} be the phase-matched value from Phase-matching condition for amplitude-amplification rotations. Use its signed representative φ:=φ0 when φ0<π and φ:=φ0−2π when φ0>π, 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 α≥0 and α+2π if α<0; its phase operation is unchanged. Put C:=32π2(3+π). If δ≤Cϵ ϕa for ϵ>0, then after m iterates using (ϕ,φ′), the failure probability is at most 4a+ϵ. The factor ϕa multiplies the displayed constant. In the equal-phase case φ′=ϕ, the failure probability is O(a/ϕ) over the same parameter range.

Facts & Assumptions

Given: The exact phase iterates and parameter ranges in the Statement.

[F1]

Phase-matching condition for amplitude-amplification rotations: the canonical matched phase φ0∈[0,2π)∖{π} makes the two diagonal entries of the two-dimensional iterate equal and satisfies tan⁡(φ0/2)=(1−2a)tan⁡(ϕ/2).

[F2]

Prepared unitary and success subspace for amplitude amplification: ∣ψ⟩=a ∣G⟩+1−a ∣B⟩, with orthonormal good and bad vectors, and the bad projection is I−Πgood.

[F3]

Amplitude amplification with independently chosen phase rotations: S0(ϕ)=I+(eiϕ−1)∣0⟩⟨0∣ and Sgood(α)=I+(eiα−1)Πgood.

[F5]

exp⁡(x+iy)=ex(cos⁡y+isin⁡y), ∣exp⁡(x+iy)∣=ex, and eiπ+1=0 and Sine and cosine are 1-Lipschitz on R: ∣eix−eiy∣=2∣sin⁡((x−y)/2)∣≤∣x−y∣; also sin⁡t≤t for t≥0, by one-Lipschitzness and sin⁡0=0.

[F6]

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.

[F7]

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.

[F8]

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: sin⁡0=0, sin⁡′=cos⁡, cos⁡′=−sin⁡, and π/2 is the first positive cosine zero.

[F12]

The principal inverse tangent arctan⁡:R→(−π/2,π/2) and Principal arctangent: derivative, integral, power series, and the Gregory–Leibniz series: the principal arctangent takes real values into (−π/2,π/2), is increasing, and has derivative 1/(1+x2).

[F13]

Cofunction, supplementary, quarter-turn, and reflection identities for the six trigonometric functions gives sin⁡(π/6)=cos⁡(π/3) and cos⁡(2π/3)=−cos⁡(π/3); Double-angle and quadratic power-reduction identities gives cos⁡(2x)=2cos⁡2x−1; Pi is the first positive zero of sine gives sin⁡x>0 for 0<x<π.

[F14]

Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing and cosine strictly decreasing on [0,π/2].

[F15]

Quarter-turn values and shifts by pi/2 and pi: sin⁡(π/2)=1 and sin⁡(π/2+t)=cos⁡t, cos⁡(π/2+t)=−sin⁡t.

[F16]

A function differentiable at c is continuous at c: differentiability on an interval implies continuity at every point of that interval.

Proof

1.1givenF1F2F3F5F9F13F15algebra

By the addition and quarter-turn identities [F5], [F9], [F15], ei(α+2π)=eiα, so the canonical inputs specified in the Statement implement exactly the operators with the signed labels, and eiφ=eiφ0. In the ordered (∣G⟩,∣B⟩) basis, set u=eiϕ and v=eiφ. Since ∣u∣=∣v∣=1 by [F5], the phase operations act by unit-modulus scalars on orthogonal subspaces and are unitary. From A∣0⟩=∣ψ⟩ and the supplied phase operators, the iterate has matrix Q=−(v((1−a)+au)(u−1)a(1−a)v(u−1)a(1−a)a+(1−a)u). The diagonal entries coincide by [F1] and eiφ=eiφ0. The common diagonal is nonzero because the imaginary part of (1−a)+aeiϕ is asin⁡ϕ>0. The lower-left entry has modulus 2sin⁡(ϕ/2)a(1−a)=sin⁡(ϕ/2)sin⁡(2θ)=sin⁡ϑ. Thus the matched and implemented iterates are unitary and the matched matrix has equal diagonal entries.

2.1givenF1F2step 1.1algebra

Write the common diagonal as d and the lower-left entry as c. Unitarity gives ∣d∣2+∣c∣2=1, so ∣d∣=cos⁡ϑ because ∣c∣=sin⁡ϑ and ϑ∈(0,π/2]. Since d,c≠0, put η=d/∣d∣ and ζ=(c/∣c∣)η‾; both have modulus one, and d=ηcos⁡ϑ, c=ηζsin⁡ϑ. If b is the upper-right entry, column orthogonality d‾ b+c‾ d=0 gives b=−ηζ‾sin⁡ϑ. Hence Q=ηDR(ϑ)D−1, with D=diag⁡(1,ζ) and R(t)=(cos⁡t−sin⁡tsin⁡tcos⁡t).

3.1givenF2F7F9F13F14F15step 2.1algebra

Write mϑ=π/2+t. From m=⌈π/(2ϑ)−1/2⌉ we get ∣t∣≤ϑ/2. Quarter-turn, parity, and monotonicity identities give sin⁡(mϑ)=cos⁡t≥cos⁡(ϑ/2) and ∣cos⁡(mϑ)∣=∣sin⁡t∣≤sin⁡(ϑ/2). If a≥1/4, failure is at most 1≤4a. If a<1/4, put c=cos⁡(π/3)=sin⁡(π/6) by [F13]. Since 0<π/6<π, [F13] gives c>0, while the double-angle and supplementary identities give 2c2−1=cos⁡(2π/3)=−c. Thus (2c−1)(c+1)=0, and positivity yields c=1/2. Hence sin⁡θ=a<sin⁡(π/6), so θ<π/6 by [F14]. Because sin⁡ϑ=sin⁡(ϕ/2)sin⁡(2θ)≤sin⁡(2θ) and both angles lie in [0,π/2], [F14] gives ϑ≤2θ. The addition formulas [F9] and induction give R(ϑ)m=R(mϑ). The initial coordinates are (a,1−a), so the first coordinate of ηmDR(mϑ)D−1(a,1−a) has modulus [given, F2, F7, F9, F13, F14, F15, step 2.1, algebra] ∣acos⁡(mϑ)−ζ‾1−asin⁡(mϑ)∣≥1−a∣sin⁡(mϑ)∣−a∣cos⁡(mϑ)∣≥1−acos⁡(ϑ/2)−asin⁡(ϑ/2)≥(1−a)−a=1−2a. The last inequality uses ϑ/2≤θ, cosine decreasing and sine increasing on [0,π/2], and cos⁡θ=1−a, sin⁡θ=a. The scalar ηm has modulus one and D leaves the good coordinate unchanged. By [F7], the matched failure probability is therefore at most 1−(1−2a)2≤4a.

4.1givenF3F4F5F6F7step 3.1algebra

Let Q′ be the iterate with phase φ′. The arbitrary-phase definition gives [given, F3, F4, F5, F6, F7, step 3.1, algebra] Q′−Q=−AS0(ϕ)A†(eiφ′−eiφ)Πgood. For every unit vector x, the projection contraction in [F6] and unitarity give ∥(Q′−Q)x∥≤∣eiφ′−eiφ∣≤δ by [F5], hence ∥Q′−Q∥≤δ. Telescoping yields Q′m−Qm=∑r=0m−1Q′ m−1−r(Q′−Q)Qr, so unitarity gives ∥Q′m−Qm∥≤mδ. Set x=Qm∣ψ⟩ and y=Q′m∣ψ⟩ for ∣ψ⟩=A∣0⟩. Then ∥x−y∥≤∥Q′m−Qm∥≤mδ. By [F7], the failure probabilities are ∥Πbadx∥2 and ∥Πbady∥2. Contraction of Πbad and reverse triangle give ∣∥Πbadx∥2−∥Πbady∥2∣≤(∥Πbadx∥+∥Πbady∥)∥x−y∥≤2∥x−y∥≤2mδ. Thus implemented failure is at most 4a+2mδ by step 3.1.

5.1givenF5F8F10F11F14F15F16step 4.1algebra

For a<1/4, sin⁡(2θ)=2a(1−a)≥3a. Set x=ϕ/2∈(0,π/2) and g(x)=sin⁡x−2x/π. By [F8], [F15], g(0)=g(π/2)=0; by [F14], g′′(x)=−sin⁡x≤0. The derivatives in [F8], [F11] make g′ differentiable, hence continuous by [F16]; the mean value theorem [F10] applied to g′ gives g′(t)≤g′(s) for 0≤s<t≤π/2. The same facts make g continuous and differentiable, so [F10] on [0,x] and [x,π/2] gives slopes g(x)/x and −g(x)/(π/2−x); the first is at least the second, so g(x)≥0. Therefore sin⁡(ϕ/2)≥ϕ/π, sin⁡ϑ≥3ϕa/π, and ϑ≥sin⁡ϑ by [F5], [F8]. Also 1=sin⁡(π/2)≤π/2 by [F5], [F8], so 1/(2π)≤1. The ceiling gives [given, F5, F8, F10, F11, F14, F15, F16, step 4.1, algebra] m≤π2ϑ+12≤π223 ϕa+12≤π(π+3)23 ϕa, where the last inequality uses ϕa≤π. Under δ≤Cϵϕa with C=3/(2π2(3+π)), we obtain 2mδ≤ϵ/(2π)≤ϵ. Step 4.1 gives failure at most 4a+ϵ; when a≥1/4, the same bound is automatic since failure is at most 1≤4a.

6.1givenF1F8F10F11F12F16step 3.1step 5.1algebra∎

In the equal-phase case with a≤1/4, put T=tan⁡(ϕ/2)>0 and r=1−2a∈[1/2,1]. The matching condition [F1] and the principal inverse tangent [F12] give φ=φ0=2arctan⁡(rT) and δ=2(arctan⁡T−arctan⁡(rT)). Let f(s)=arctan⁡(sT). By [F11], [F12], f′′(s)=−2sT3/(1+s2T2)2≤0; differentiability and [F16] give the continuity needed to apply [F10] to f′, so f′ is nonincreasing. Applying [F10] to f on [0,r] and [r,1], the early secant slope is at least the late one; the secant slope on [0,1], their weighted average, is therefore at least the late slope. Thus f(1)−f(r)≤(1−r)(f(1)−f(0))≤(1−r)π/2, so δ≤π(1−r)=2πa. If δ>0, apply step 5.1 with ϵ=δ/(Cϕa); if δ=0, step 3.1 gives the matched bound. The resulting failure is at most 4a+(2π/C)a/ϕ≤(4π+2π/C)a/ϕ. For a≥1/4, 1≤2πa/ϕ, so the same big-O bound holds on the full range.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Arbitrary-phase amplification query count

Statement

With m arbitrary-phase iterates, the procedure uses one initial forward A, then m forward A calls, m inverse A† calls, m S0(ϕ) calls, and m Sgood(φ) 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 m, the arbitrary-phase algorithm, and the declared access/cost model.

[F1]

Amplitude amplification with independently chosen phase rotations: Q=−AS0(ϕ)A†Sgood(φ) is applied exactly m times after one initial preparation.

[F2]

Inverse Unitary Access: inverse calls are distinct declared access operations.

[F3]

Circuit-family and computation cost model and Quantum query complexity: query calls, phase gates, measurements, and classical costs are separate coordinates.

[F4]

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

1.1givenF1F2algebra

The initial preparation in [F1] uses one forward call to A. Each of the m factors of Q contributes exactly one A, one A†, one S0(ϕ), and one Sgood(φ), giving the stated counts. The projective instrument and optional verifier occur once after the loop.

2.1F3F4step 1.1∎

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 Q by −Q inside a controlled call changes the relative control phase and is not a free rewrite.

PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Amplitude-amplification access and resource accounting

Statement

One standard iterate expands as Q=−A(I−2∣0⟩⟨0∣)A†(I−2Πgood). It therefore uses one good-subspace phase operation, one zero-input phase operation, one forward A, and one inverse A†. The initial preparation adds one further forward A; optional final verification is separate. For ∣ψ⟩=A∣0⟩, the prepared-state S-sign reflection is Sψ:=I−2∣ψ⟩⟨ψ∣=AS0A†=−Rψ, where Rψ=2∣ψ⟩⟨ψ∣−I 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.

[F1]

Amplitude amplification with a fixed integer iteration count: the standard iterate has the displayed factorization and is applied k times after one initial preparation.

[F2]

Orthogonal-Projector Reflection and Access Contract: SΠ=I−2Π is the specified S-sign reflection, and reflection access/cost is explicit.

[F3]

Inverse Unitary Access and Controlled Unitary Access: inverse and controlled capabilities are separately granted and charged.

[F4]

Circuit-family and computation cost model and Quantum query complexity: query, gate, width, preparation, and classical costs are separate coordinates.

Proof

1.1givenF1algebra

Expanding Q in [F1] places Sgood once, S0 once, A† once, A once, and the scalar minus once. Repeating k times and adding the initial preparation gives k good phases, k zero-input phases, k inverse calls, and k+1 forward calls.

2.1givenF2F3F4step 1.1algebra∎

Since A is unitary and ∣ψ⟩=A∣0⟩, conjugation gives AS0A†=I−2∣ψ⟩⟨ψ∣=Sψ=−Rψ with the signs of [F2]. Implementing this S-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.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Known-amplitude amplification query cost

Statement

For 0<a≤1, the known-amplitude procedure uses O(a−1/2) calls to A, A†, and the good-subspace phase operation, with success probability at least 1/2. State preparation, zero-input reflections, final verification, exact arithmetic, gate synthesis, and any controlled access retain their separately declared costs. The a=0 branch returns fail and is outside this bound.

Facts & Assumptions

Given: The known-amplitude algorithm and the query/gate cost coordinates.

[F1]

Known-amplitude amplification with integer rounding: the selected integer satisfies k≤⌈1/a⌉, with one optional final verifier.

[F2]

Fixed-round amplitude amplification query count: a fixed k uses k+1 calls to A, k calls to A†, and k calls to each of the good and zero-input phase operations.

[F3]

Known-amplitude success bound: the success probability is at least max⁡{a,1−a} for 0<a<1, and equals 1 at a=1.

[F4]

Quantum query complexity: query cost counts designated oracle calls, while nonoracle gates use separate coordinates.

[F5]

Circuit-family and computation cost model: calls, gates, state preparation, and classical computation are distinct charged resources.

Proof

1.1givenF1F2algebra

For 0<a<1, [F1] gives k≤⌈a−1/2⌉≤a−1/2+1≤2a−1/2. By [F2], at most k+1 forward calls to A, k inverse calls to A†, and k good-phase calls occur. The optional verifier adds at most its one declared call.

2.1F3F4F5step 1.1algebra∎

The count in step 1.1 is O(a−1/2) in each of the three named access coordinates. The success lower bound follows from [F3]; at a=1 the direct branch uses one preparation and succeeds, which is also O(a−1/2). By [F4]–[F5], exact selection of k, gate synthesis, and other cost coordinates are not hidden in the query bound.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Exact-success amplitude amplification query cost

Statement

For 0<a≤1, the exact-success procedure uses O(a−1/2) forward calls to A, inverse calls to A†, and calls in each declared flag/reflection coordinate. In the 0<a<1 branch, the explicit preparation and m iterates use m+1 forward A calls, m inverse A† calls, and 2m+1 controlled flag rotations or their inverses.

With constructed good reflections, the total number of Cgood or inverse calls is 6m+2 and there are m CZ gates. With directly supplied enlarged good reflections, these counts are instead 4m+2 flag calls and m direct Sgood′ calls. Either mode implements exactly m logical good reflections.

With constructed zero reflections, there are m controlled-S0 calls, 2m Toffolis and 4m X gates. With direct enlarged-zero access, there are instead m direct S0′ calls. One external clean scratch bit suffices for all constructed reflections and is reusable; no controlled A 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 6m+4 flag calls (or 4m+4 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.

[F1]

Exact success amplification by attenuating the good branch: m=⌈π/(4θ)−1/2⌉, θ satisfies sin⁡2θ=a, and each use of A′ computes and uncomputes the good flag once.

[F2]

Quantum query complexity: query calls are counted separately from gates.

[F3]

Controlled Unitary Access and Inverse Unitary Access: controlled and inverse capabilities are explicit and separately charged.

[F4]

Clean and dirty ancillas and Circuit-family and computation cost model: clean workspace and gate, preparation, and classical costs are separate coordinates.

[F5]

Sine and cosine are 1-Lipschitz on R: sin⁡θ≤θ for θ≥0.

Proof

1.1givenF1F5algebra

In the nontrivial branch 0<a<1, m≤π/(4θ)+1/2. Since a=sin⁡θ≤θ by [F5] and a≤1, m≤(π/4+1/2)/a. The direct a=1 branch uses a constant number of calls.

1.2givenF1F3F4algebra

The initial A′ contributes one forward A, two flag calls and one controlled flag rotation. Each of the m iterates contains one A′ and one A′†, contributing one forward and one inverse A, four flag calls and two controlled rotations. Thus these parts contribute m+1 forward A, m inverse A†, 4m+2 flag calls and 2m+1 rotations. Each constructed good reflection contributes two further flag calls and one CZ, giving 6m+2 flag calls and m CZ gates. Direct good-reflection access instead contributes m calls of its own coordinate and leaves the flag total 4m+2.

1.3givenF1F3F4algebra

Each constructed zero reflection uses one controlled-S0, two Toffolis and four X gates; m repetitions give m,2m,4m, respectively. Direct zero-reflection access instead uses m direct S0′ 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 6m+4 or 4m+4 flag total. No other step invokes Cgood; the separately supplied terminal mode has no constituent flag count inferred.

2.1F1F2F3F4step 1.1step 1.2step 1.3∎

The bounds in steps 1.1–1.3 are O(a−1/2). 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.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Expected cost of unknown-amplitude search

Statement

For a>0, the expected total number of calls made by Unknown-amplitude randomized search to A, A†, the good and zero-input phase operations, and any one-call verifier is Θ(a−1/2). The lower bound is for this specified schedule; no general optimality statement is made outside an explicit black-box search model. For a=0, the expected query cost is infinite.

Facts & Assumptions

Given: The round schedule, fresh-register semantics, and access model of the unknown-amplitude procedure.

[F1]

Unknown-amplitude randomized search: Mℓ=⌈(3/2)ℓ⌉; each round uses one direct sample and, if it fails, one fresh preparation, uniform j∈{1,…,Mℓ}, and j standard iterates.

[F2]

Unknown-amplitude search has no false positives and halts almost surely: for uniform j=1,…,M, the amplification-attempt success probability is at least 1/2−1/(2M∣sin⁡2θ∣); all returned outputs are good and a>0 halts almost surely.

[F3]

Exact success probability after amplitude amplification: after j iterates the good probability is sin⁡2((2j+1)θ).

[F4]

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.

[F5]

Quantum query complexity and Circuit-family and computation cost model: oracle calls, gates, and classical work are separate resource coordinates.

[F6]

The addition formulas for complex trigonometric and hyperbolic functions: sine and cosine addition identities; ∣cos⁡x∣≤1 follows from Parity and the Pythagorean identity for sine and cosine.

[F7]

Sine and cosine are 1-Lipschitz on R: sin⁡x≤x for x≥0.

Proof

1.1givenF1F2algebra

For 0<a<3/4, write s=sin⁡(2θ)=2a(1−a)≥a. Once Mℓ≥8/s, [F2] gives amplification-attempt success at least 7/16, so the conditional probability of reaching the next round is at most (1−a)(9/16)≤9/16. If Mℓ≥8, then Mℓ+1≤32Mℓ+1≤138Mℓ, and the survival-weighted cost ratio of later rounds is at most (9/16)(13/8)=117/128<1.

2.1givenF1F4F5F7step 1.1algebrainduction

Let q=3/2. For every ℓ≥1, qℓ≥ℓ: it holds directly for ℓ=1,2, and if it holds for ℓ≥2, then qℓ+1≥(3/2)ℓ≥ℓ+1. Thus Mℓ≥ℓ. With N=⌈8/s⌉, we have MN≥N≥8/s, so the first threshold index L is at most N=O(1/s). If L≥2, then ML−1<8/s and ML=⌈qL⌉≤qML−1+1<12/s+1≤13/s; the same bound holds when L=1. Before that threshold the Mℓ grow geometrically, so their sum is O(1/s); the L direct preparations and fixed-cost verifications also cost O(1/s). 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 4Mℓ+4. After the threshold, [F1], step 1.1, and Mℓ+1≤(13/8)Mℓ make the survival-weighted worst-case round costs contract by at most (9/16)(13/8)=117/128<1. Since s≥a, the total is O(a−1/2). If a≥3/4, each direct sample succeeds with probability at least 3/4, and Mℓ+1≤2Mℓ for Mℓ≥2; worst-case round costs grow by at most a factor 2, so survival-weighted costs contract by at most 1/2, giving O(1)=O(a−1/2). Each bound applies to every finite prefix, and taking the supremum in [F4] proves the upper bound without an infinite-history expectation.

3.1givenF1F3F6step 2.1algebra

For a lower bound at small a, fix u=1/100 and let L be the first round with ML≥u/a. For every integer n≥1, induction with [F6] gives ∣sin⁡(nθ)∣≤nsin⁡θ: the base case is equality, and the addition formula bounds the next value by ∣sin⁡(nθ)∣+∣sin⁡θ∣. Therefore the success probability before round L is at most a+9aMℓ2, accounting for the direct sample and a(2Mℓ+1)2≤9aMℓ2 for the amplified sample. As proved in step 2.1, Mℓ≥ℓ; therefore L≤⌈u/a⌉. For sufficiently small a, L≥2, ML−1<u/a, and Mℓ≤(3/2)ℓ+1; geometric summation gives [given, F1, F3, F6, step 2.1, algebra] ∑ℓ<LMℓ2≤(3/2)2(3/2)2−1u2a+2(3/2)(3/2)−1ua+L=1.8u2a+6ua+L. Hence the chance of any earlier success is at most 16.2u2+54ua+10aL≤16.2u2+64ua+10a, which tends to 16.2u2<1/4. For all sufficiently small a, round L is reached with probability at least 1/2.

4.1givenF1F4step 3.1algebra

At round L, the direct sample fails with probability at least 1/2 for sufficiently small a. Conditional on its fresh amplification attempt, j is uniform on {1,…,ML}, so [given, F1, F4, step 3.1, algebra] E[j]=1ML∑j=1MLj=ML+12≥u2a. The probability of reaching and entering this attempt is at least 1/4, so this round alone contributes Ω(a−1/2) total access calls. For a bounded away from zero, the first direct sample always makes one A-call while a−1/2 is bounded, giving the same aggregate lower bound with a smaller constant.

5.1givenF2F4F5∎

If a=0, 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.

Sources