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.

Block-Encoding Linear Systems and Variable-Time Amplification

1 · Prerequisites

2 · Summary

This page fixes the block-encoded QLSP promise, its normalization δ=γ/α, and the required state-preparation and controlled/inverse access. The supported pseudoinverse target is established in finite singular coordinates. The fixed-time QSVT route applies the odd transform to the adjoint projected-unitary encoding, preserving its domain and codomain. Its finite polynomial generator includes a binomial reciprocal approximation, an erf/Chebyshev sign approximation, a corrected even cutoff, and strict range and reciprocal certificates. Its success probability depends on the input state.

The variable-time route uses orthogonal stopped branches and their root-mean-square stopping time. Generic relative-probability estimation and finite lower-bound amplification retain explicit inverse/control/reflection access, confidence budgets and finite caps. The tight variable-time production expression uses supplied finite probability/schedule certificates and charges their construction, including any probability-acquisition oracle calls. A distinct finite uniform implementation states its positive probability floor, confidence, estimation overhead and resource cap. The explicit estimated CKS construction specifies the good-or-unfinished projector, requires clean state-preparation work, and budgets simulator and finite-value errors across every QPE call site before using its local low-target, probability-estimation and finite-cap suppliers.

The sparse CKS constructor retains its finite Fourier-table mode with explicit positive normalized PREPARE amplitudes, distinct cancelling identity terms at both local and common normalization, and coefficient phases in SELECT. Its table generation, clean work, actual adjoint/control circuits and implementation errors are separately charged; this construction alone does not certify Fourier approximation, efficient table generation or uncapped termination. It also provides an explicit efficient QSVT inverse mode. The latter uses actual sparse block encodings, gapped phase tests, common normalization, a terminal bad branch, reversible bucket erasure, and a final clean-work success test. Its local stopping, output-error and resource proofs give the nearly linear condition-number query bound; the gate bound is stated only with explicit uniform costs for preparation, sparse access, controlled/inverse circuits, reflections, simulation, and phase implementation. QSVT execution checks the exact returned phase product before use. All coefficient and phase generation, exact algebraic comparison, arithmetic bit implementation and compiler construction costs remain separate; no total bit-time bound follows from the quantum count. The conditional LCU identity does not construct an unspecified SELECT circuit.

3 · Logical flowchart

4 · Definitions, theorems and proofs

LemmaStatement: AI-adaptedProof: AI-adaptedOpen item page →

A bounded even window from an odd sign approximant

Statement

Let 0<η<1, 0<g≤t, and s>0 satisfy s+t≤1. Let S be an odd real polynomial such that ∣S(y)∣≤1 for y∈[−1,1] and ∣S(y)−sgn⁡(y)∣≤η/2 whenever y∈[−1,1] and ∣y∣≥g. Define R(x)=1−η2(S(x+t)+S(t−x))+η2,D(x)=1−S(x+t)+S(t−x)2 for x∈[−s,s]. Then R and D are even polynomials, each has degree at most deg⁡S, and 0≤R(x)≤1 for all x∈[−s,s]. On ∣x∣≤t−g, 1−η≤R(x)≤1 and ∣D(x)∣≤η/(2(1−η)). On ∣x∣≥t+g, 0≤R(x)≤η and ∣D(x)−1∣≤η/(2(1−η)). Globally, −η2(1−η)≤D(x)≤1+η2(1−η). The inner or outer interval may be empty, in which case its corresponding assertion is vacuous.

Facts & Assumptions

Given: η,g,t,s,S satisfy the hypotheses in the Statement; sgn⁡(y)=1 for y>0 and −1 for y<0.

[A1]

S is odd and ∣S(y)∣≤1 on [−1,1].

[A2]

For y∈[−1,1] with ∣y∣≥g, S(y) differs from sgn⁡(y) by at most η/2.

Proof

1.1givenA1algebra

Replacing x by −x interchanges the two summands in each definition, so R and D are even. Each summand is a translate of S and has degree at most deg⁡S; addition and scalar multiplication do not increase that bound.

1.2givenA1A2algebra

Put u=t+x and v=t−x. Since ∣x∣≤s and s+t≤1, each of u,v is at most t+s≤1 and at least t−s≥2t−1≥−1; also u+v=2t≥2g. If both u,v≥g, [A2] gives S(u)+S(v)≥2−η. Otherwise one of them, say u, is less than g, and then v=2t−u>2g−u>g; [A1]–[A2] give S(u)+S(v)≥−1+(1−η/2)=−η/2. In every case [A1] also gives S(u)+S(v)≤2. Thus −η/2≤S(u)+S(v)≤2, and substitution into the formula for R yields η(1+η)/4≤R(x)≤1−η/2, which implies 0≤R(x)≤1.

2.1givenA1A2step 1.2algebra

If ∣x∣≤t−g, both u=t+x and v=t−x are at least g. Their sign approximations lie in [1−η/2,1] by [A1]–[A2], so 2−η≤S(u)+S(v)≤2. Substituting gives 1−η+η2/2≤R(x)≤1−η/2, hence 1−η≤R(x)≤1. Since D(x)=(1−η/2−R(x))/(1−η), the interval R(x)∈[1−η,1] gives ∣D(x)∣≤η/(2(1−η)).

3.1givenA1A2step 1.1algebra

If x≥t+g, then u≥g and v≤−g. By [A1]–[A2], S(u)∈[1−η/2,1] and S(v)∈[−1,−1+η/2], so ∣S(u)+S(v)∣≤η. Evenness gives the same conclusion for x≤−(t+g). Substitution into R gives R(x)∈[η2/2,η−η2/2]⊆[0,η]. The identity for D in step 2.1 then gives ∣D(x)−1∣≤η/(2(1−η)).

4.1givenstep 1.2algebra∎

Step 1.2 gives R(x)∈[0,1]. Using D(x)=(1−η/2−R(x))/(1−η), its minimum over that interval is −η/(2(1−η)) and its maximum is 1+η/(2(1−η)). This proves the global bound.

Remarks

With a=1+t0, the OP1A expression 1+(S((x−t0)/a)−S((x+t0)/a))/2 is the D above after substituting x/a for the lemma variable and t0/a for t. The lemma domain uses s=1/a, so s+t=1, and g=δ/(4a) gives t=3g; its inner and outer thresholds are t−g=δ/(2a) and t+g=δ/a. For OP1A, take η=2v with its parameter v=e/(1000Pmax⁡); then the required approximation error is η/2=v. Subject to the OP1A SignPoly certificate proving that error and the bound ∣S∣≤1, all evaluations stay on [−1,1], where OP1A states those properties. It does not prove the separate Chebyshev interpolation, inverse approximation, Bernstein-refinement termination, or bit-cost obligations of OP1A. The displayed formula in Gilyén et al. Lemma 29 is not invoked here.

DefinitionDefinition: AI-adaptedProof: Not applicableOpen item page →

Coherent variable-time algorithm model

Definition

A finite coherent variable-time algorithm has a finite family of stopping times 0<t1<⋯<tm=Tmax⁡, a designated output space, and a finite clock/step register. A run is unfinished at stage j if it has not entered a stopping subspace by tj; otherwise it is stopped. The stopping subspaces are pairwise orthogonal, and the output register labels each stopped branch as good or bad. Every later stage is controlled on the unfinished projector, so a stopped branch is not advanced. Admissibility requires the first-stop subspaces to exhaust the reachable state at Tmax⁡ for every allowed input; no branch remains unfinished after the final stage. The input specifies each stage unitary, its inverse and every controlled form used, and the gate/query cost for each.

For a normalized input state, let pi be the Born probability mass in the subspace that first stops at ti. These are nonnegative masses of orthogonal subspaces whose sum is the reachable state at the final time, so pi≥0 and ∑i=1mpi=1. Define the root-mean-square stopping time Tav:=(∑i=1mpiti2)1/2. Let psucc be the total Born probability of the good-output subspace. When psucc>0, the good output means the normalized conditional state of the declared good projector; it is defined only on that positive-probability branch. The mean stopping time ∑ipiti is a different quantity and is not substituted for Tav.

A measured adaptive procedure qualifies only if it has a finite coherent implementation with the same stopped/unfinished branch semantics and the required inverse/coherent access. Measurement records used to choose a circuit may be classical construction data; no intermediate measurement is inserted into a branch whose later inverse must erase that record. All stopping times, branch probabilities, reflections, inverses, controlled calls, and state preparation remain explicit resource inputs. Complexity statements use an actual normalized primitive-operation coordinate: positive counts are at least one, and the declared interval budgets include the preparation, controlled/inverse and input/selected-reflection operations used in the construction. Other weighted time coordinates may be recorded, but arbitrary uncharged subunit weights do not inherit logarithmic operation-count bounds.

A supplied-probability production regime must specify finite probability/schedule certificates rather than infer them from black-box unitary access. For h+1≤n dyadic intervals indexed j=0,…,h, initialize s−1=r−1=1 and require psucc>0. The original good-or-unfinished masses satisfy 1≥sj−1≥sj≥psucc>0 and sh=psucc, so qj=rj−1sj/sj−1 is defined. Supply odd multipliers dj=2kj+1 and certificates for the actual amplified selected masses satisfying rj≥1/(16n) and rj≥(1−2/(5n))dj2qj; an unamplified interval has dj=1 and rj=qj. Supply also a rational ℓ with rh/2≤ℓ≤rh. These are the finite schedule inequalities for the supplied-data production regime. Data may use exact rational/algebraic representations, certified rational enclosures with the stated valid inequalities, or a separately declared exact-real representation/comparison resource. The finite construction and verification cost Cbuild includes every oracle call used to acquire or certify probability information, as well as classical arithmetic, list generation and output costs. No zero-query method obtaining these data is assumed. A uniform regime without those certificates must instead state its supplied probability floor, confidence and complete estimation/production costs. Branch probabilities defined above remain valid analysis quantities even when they are unknown to the implementation.

DefinitionDefinition: Literature-sourcedProof: Not applicableOpen item page →

Block-encoded QLSP input and singular-gap promise

Definition

Let A:Cn→Cm with m,n≥1, 0<α, and 0<γ≤α. The input is an exact or approximate (α,a,ϵBE) block encoding of A under the access contract of Block-encoding oracle and implementation cost model, together with the QLSP state-output data of Quantum linear-systems state-output task. The latter means a supplied unitary prepares a normalized ∣b/∥b∥∣⟩ from a designated zero input, b∈ran⁡A∖{0}, the target is A+b/∥A+b∥ on the domain register, and every singular vector with nonzero coefficient in b has singular value at least γ.

Put Aˉ=A/α and δ=γ/α∈(0,1]. The support-gap promise then says every nonzero supported singular value of Aˉ is at least δ; it makes no promise about singular values in (0,δ) outside the support of b. In the QSVT branch below we use δ≤1/2 and 0<ϵ≤δ as additional algorithm inputs. The block-encoding approximation and all phase, inverse, controlled, reflection, and state-preparation access costs are separate input data. A finite polynomial or a matrix alone is not an oracle.

The QSVT target map is (δ/2)Aˉ+=(γ/2)A+. It has the same normalized output on b as A+ because γ/2>0. The scale conversion and nonzero normalization of this target are established by Normalization and nonzero success weight of the supported pseudoinverse target ↗.

LemmaStatement: AI-adaptedProof: AI-adaptedOpen item page →

Projected block identity for a supplied LCU circuit

Statement

Let Aj:Cn→Cn have exact (αj,aj,0) block encodings Uj, let βj≠0, and put Λ=∑j∣βj∣αj>0. Set a=max⁡jaj and extend each component to the common ordered ancilla/system register by U~j=I2a−aj⊗Uj, with unused ancillas preceding its original ancillas. Let P be a supplied unitary with P∣0⟩=∑j∣βj∣αj/Λ∣j⟩, and let the separately supplied unitary SELECT act as U~j with phase βj/∣βj∣ on index j. With W=P†SELECTP, the all-zero coefficient and component-ancilla block of W is ∑jβjΛAj. This is a conditional matrix identity. It does not construct SELECT from an XOR-valued function oracle or assign a cost to any supplied operation.

Facts & Assumptions

Given: Finite square matrices Aj, their exact block encodings, nonzero coefficients βj, and the supplied unitaries P and SELECT.

[A1]

P∣0⟩=∑j∣βj∣αj/Λ∣j⟩, SELECT applies (βj/∣βj∣)U~j on index j, and W=P†SELECTP.

[F1]

Finite block encoding: for an exact (αj,aj,0) block encoding, the all-zero ancilla compression of Uj is Aj/αj.

[F2]

Block-encoding oracle and implementation cost model: access to SELECT and its component circuits is separately supplied and costed.

[F3]

Dirac Notation Conversion: the ket ∣x⟩ denotes vector x, and the bra ⟨x∣ denotes the functional z↦⟨z,x⟩root.

Proof

1.1givenA1F2F3algebra

Put wj=∣βj∣αj/Λ and ζj=βj/∣βj∣. The weights are nonnegative and sum to one by the definition of Λ. By [A1], the initial coefficient register is ∑jwj∣j⟩, and SELECT applies ζjU~j in the orthogonal index-j subspace, so ⟨0∣P†SELECTP∣0⟩=∑jwjζjU~j on the component and data registers. This is an identity on already supplied operations; [F2] keeps SELECT construction and component costs separate.

2.1A1F1F2F3step 1.1algebra∎

Project the common a-ancilla register onto its all-zero input and output. The identity extension contributes one on the unused zero ancillas, so by [F1] each extended component still compresses to Aj/αj. Hence the resulting data block is ∑jwjζjAj/αj=∑j(∣βj∣αj/Λ)(βj/∣βj∣)(Aj/αj)=∑jβjAj/Λ. The coefficient and component registers were both projected onto their specified zero states, so this is exactly the claimed all-zero block.

LemmaStatement: AI-adaptedProof: AI-adaptedOpen item page →

Normalization and nonzero success weight of the supported pseudoinverse target

Statement

In the block-encoded QLSP model, let ∣b⟩ be the normalized codomain input, let ∥A∥op≤α, and suppose ∣b⟩=∑j=1rβj∣uj⟩ is supported on positive singular values σj≥γ>0. Then (δ/2)Aˉ+∣b⟩∥(δ/2)Aˉ+∣b⟩∥=A+∣b⟩∥A+∣b⟩∥,∥(δ/2)Aˉ+∣b⟩∥2≥δ24,δ=γ/α,Aˉ=A/α. In particular the ideal inverse-branch success probability is positive and has the stated crude lower bound.

Facts & Assumptions

Given: The finite-dimensional map and singular-gap promise of Block-encoded QLSP input and singular-gap promise, with ∥b∥=1.

[F1]

Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: there are orthonormal singular vectors uj,vj and positive singular values σj with Avj=σjuj on the supported singular subspace.

[F2]

Quantum linear-systems state-output task: the normalized input has b≠0, b∈ran⁡A, and every nonzero supported singular coefficient has σj≥γ.

[F3]

The Moore--Penrose pseudoinverse A+ as the solution of the four Penrose equations: B=A+ exactly when ABA=A, BAB=B, and AB,BA are self-adjoint.

[F4]

Every finite real or complex matrix has a unique Moore--Penrose pseudoinverse: the matrix satisfying the four Penrose equations exists and is unique.

[F5]

The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: on a nonzero finite-dimensional domain, ∥A∥op is the maximum of ∥Av∥ over unit vectors v.

Proof

1.1givenF1F3F4constructalgebra

By [F1], in ordered orthonormal singular bases write A=UΣV∗ with positive diagonal entries σ1,…,σr. Define B=VΣ+U∗ by replacing each positive σj with 1/σj and leaving zeros zero. Direct multiplication gives ABA=A, BAB=B, AB=Udiag⁡(Ir,0)U∗ and BA=Vdiag⁡(Ir,0)V∗, both self-adjoint. Thus [F3] makes B a Moore–Penrose inverse, and [F4] gives B=A+=∑jσj−1∣vj⟩⟨uj∣.

2.1givenF1F2F5step 1.1algebra

Since b is normalized and its coefficients in the orthonormal singular vectors are βj, ∑j∣βj∣2=1. Each vj is a unit vector and Avj=σjuj, so [F1] and [F5] give σj=∥Avj∥≤∥A∥op≤α. Step 1.1 therefore yields ∥A+b∥2=∑j∣βj∣2/σj2≥α−2>0. Thus its normalized state is defined.

2.2givenF1step 1.1algebra

The singular values of Aˉ=A/α are σj/α with the same left and right vectors. Repeating the construction in step 1.1 gives (A/α)+=αA+ because α>0. Hence (δ/2)Aˉ+b=(γ/2)A+b, and multiplication by the positive scalar γ/2 preserves the normalized vector.

3.1givenF1F2F5step 2.2algebra∎

By [F2], coefficients outside the supported positive singular subspace vanish. By [F1] and [F5], each unit right singular vector satisfies σj=∥Avj∥≤∥A∥op≤α. Since δ=γ/α, step 2.2 gives ∥(δ/2)Aˉ+b∥2=∑j=1r∣βj∣2(γ/(2σj))2≥∑j=1r∣βj∣2γ2/(4α2)=δ2/4. This is the ideal QSVT flag weight; any implementation error requires a separate error budget.

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

QSVT regularized pseudoinverse transformation

Definition

Input. An exact or approximate projected-unitary encoding of Aˉ=A/α, its supplied inverse and every controlled form used, left/right singular-space projectors, a unitary preparing normalized ∣b⟩ in the promised left singular space, rational 0<e≤δ=γ/α≤1/2, and explicit block, phase, reflection, state-preparation, arithmetic, and gate costs. The algorithm returns a success flag and the conditional right-space state, or the declared failure result.

Bare-gap generation branch (binding OP1A). Run the finite InversePoly($\delta,e$) construction in the binding OP1A section of research/quantum-algorithms-planning/operational-contracts.md: set κ0=2/δ, u=e/(100δ), b=⌈κ02ln⁡(κ0/u)⌉, and J=⌈bln⁡(4b/u)⌉ using certified upper endpoints. Generate the finite binomial sums aj=4(−1)j2−2b∑i=j+1b(2bb+i) and P(x)=(δ/2)∑jajT2j+1(x) by the Chebyshev recurrence. Retain Pmax⁡=1+2δ(J+1) as the declared coarse bound.

Run SignPoly(g,v) from OP1A with t=3δ/4, a0=1+t, g=δ/(4a0), and v=e/(1000Pmax⁡). The routine evaluates the declared erf Chebyshev interpolant with its finite node, tail, coefficient-rounding, and division steps and returns its rational odd polynomial and ellipse/tail certificate. Form Ccut(x)=1+S((x−t)/a0)−S((x+t)/a0)2,p(x)=P(x)Ccut(x)1+e/10. Generate every product coefficient with the stated total rounding budget. Check exact odd parity and degree. Run the OP1 exact critical-point check for ∣p(x)∣≤1 on [−1,1]. Construct the reciprocal certificate on [δ,1] by the specified dyadic rational partitions and nonnegative Bernstein coefficients for both ex±(xp(x)−δ/2). Refine precision when intervals are undecided; on an actually failed certificate halve u,v and regenerate. Any declared cap returns CONSTRUCTION_TIMEOUT; any failed exact certificate returns its stated non-success branch.

On a successful polynomial certificate, set the rational phase-synthesis tolerance to e/100 and call Real bounded-polynomial QSP phase synthesis in efficient-numerical mode with the checked real odd polynomial p, its degree, and that tolerance. Retain the exact pre-angle target p0 produced by its deterministic shrink/round rule, complementary pair B,C, exact phase-scalar descriptors, and numerical phase certificates. Charge its target shrink/round error and numerical-angle/compiler errors to the separate phase term in the supplied error budget. Before any QSVT call, form the ordered matrix product from the returned exact phase-scalar descriptors, using the recurrence in QSP signal matrix and ordered phase sequence and coefficient arithmetic in the basis C[x]⊕1−x2 C[x]. Compare its four entries coefficientwise with (p0+iB1−x2 C(−1)d+11−x2 C∗(−1)d(p0−iB)). This finite exact check validates the phase list actually returned by the peeling routine, rather than relying on existence of some phase list. Charge its arithmetic and certificate output with phase generation. If any comparison fails, return PHASE_PRODUCT_ERROR with the generated polynomial record and mismatch witness, and do not execute QSVT. Only after the check passes may the execution use the returned phase list. The subsequent rational-angle and optional compiler errors remain separately bounded by the returned phase certificates and the supplied error budget; the exact product check does not replace those bounds. No exact phase rotation or finite-basis compiler is free.

Execution. Execute the QA24 odd QSVT sequence on the adjoint projected-unitary encoding of Aˉ, with left and right projectors swapped, using the generated phase list and the separately supplied controlled/inverse access. The ideal supported singular-value multiplier is p(σ/α); the intended target is (δ/2)Aˉ+∣b⟩=(γ/2)A+∣b⟩. Apply the declared success projector and return its conditional state only on a positive-probability success branch. The scalar polynomial, block-encoding, phase-synthesis, and circuit-implementation errors are separate terms in the supplied error budget.

An optional certified-input branch accepts finite polynomial, phase, and reciprocal-certificate lists; it verifies their parity, interval, identity, and Bernstein checks before execution and returns INVALID if a check fails. It does not prove that bare rational inputs can be converted into such a certificate.

Remarks

This is the binding OP1A procedure, not merely an existence-based choice of polynomial. lem-qa-27-even-sign-window proves a bounded-window estimate for its declared sign approximant and shows why the printed formula of Gilyén et al. Lemma 29 is unnecessary for this cutoff. The separate polynomial-degree result establishes its uncapped termination, interpolation, coefficient/cutoff margins, certificate refinement, degree, and the exact link from the returned phase list to its completed polynomial pair. Finite caps retain their timeout result. Exact-root/phase generation and implementation use the actual QA23 contract; all generation, comparison and arithmetic bit costs stay separately charged, with no total bit-time bound inferred from this Definition.

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

Childs–Kothari–Somma sparse QLSP oracle model

Definition

Fix N≥1, a sparsity bound d≥1, and an N×N Hermitian matrix A with ∥A∥op≤1. The sparse QLSP promises that the normalized input state ∣b⟩ is supported on eigenvectors with ∣λ∣≥1/κ for some declared κ≥1; equivalently these are singular values at least 1/κ. The QLSP target is the normalized state proportional to A+b from Quantum linear-systems state-output task. The zero matrix is excluded by the nonzero supported-state promise.

The access input supplies the following reversible operations and records every forward, inverse, and controlled call separately.

  1. Row location. For each row i and slot ℓ∈[d], a total finite function f(i,ℓ) returns the ℓth nonzero column in that row, or a designated invalid sentinel for a padded slot. The input supplies a reversible in-place row permutation implementing (i,ℓ)↦(i,f(i,ℓ)) on valid slots, together with a completion on every padded basis input and its inverse.
  2. Reverse location. For each valid nonzero entry (i,j), a reversible map returns its unique slot ℓ. Its completion on invalid and padded inputs is specified and charged. This reverse map is an explicit capability; it is not inferred from forward XOR access.
  3. Values. A finite-precision reversible oracle returns the encoded complex entry Aij at valid pairs and zero at invalid pairs. Its value precision and the induced matrix approximation error are stated separately.
  4. Input preparation. A supplied unitary B prepares ∣b⟩ from a designated zero state. B, B†, controlled calls, and their circuit/query/gate costs are explicit. No state loading, QRAM, or coordinate list is free.

The paper's row-location and value XOR oracles may be included as component access, but they do not by themselves certify the in-place reversible permutations, reverse map, or their implementation costs. In particular Sparse Hamiltonian row and value oracles defines total XOR row-location and value maps; this item requires the stronger reversible-location capabilities above whenever the sparse block-encoding construction is used. The parameter d, support condition number κ, value precision, oracle query count, gate cost, and classical data cost remain separate.

TheoremStatement: AI-adaptedProof: AI-adaptedOpen item page →

Gapped pseudoinverse polynomial degree and error

Statement

For rational 0<e≤δ≤1/2, the uncapped bare-gap OP1A construction terminates and returns an odd real polynomial p of degree O(δ−1log⁡(1/e)) satisfying ∣p(x)∣≤1 on [−1,1], p(0)=0, and sup⁡x∈[δ,1]∣p(x)−δ2x∣≤e. For a normalized block Aˉ=A/α whose supported singular values lie in {0}∪[δ,1], this gives the singular-space approximation pSV(Aˉ†)≈(δ/2)Aˉ+=(γ/2)A+ on the supported input, where δ=γ/α.

In the uncapped phase-generation route, the exact phase list returned by QSVT regularized pseudoinverse transformation has ordered QSP product equal to the completed polynomial pair used by its generator, and the algorithm's coefficientwise product check passes before QSVT execution. Numerical angle and compiler errors remain subject to their separate certificates; a failed exact product check returns PHASE_PRODUCT_ERROR and is never treated as a successful transform.

Facts & Assumptions

Given: Rational 0<e≤δ≤1/2 and the uncapped OP1A construction. Certified upper endpoints for the integer bounds are chosen within one of their real ceilings; arbitrary larger endpoints have their actual degree charged separately.

[F1]

OP1A specifies the finite binomial sums, odd Chebyshev interpolant, cutoff, exact range test, reciprocal Bernstein subdivision, and returned-phase product check (QSVT regularized pseudoinverse transformation).

[F2]

The real-polynomial extraction acts by the declared polynomial on the supported singular vectors (Real bounded polynomial extraction in QSVT).

[F3]

The Gaussian normalization is ∫−∞∞e−x2dx=π (The Gaussian integral ∫−∞∞e−x2 dx=π).

[F4]

A holomorphic function on an annulus has its locally uniformly convergent Laurent expansion and contour coefficient formula (Laurent expansion on an annulus, Laurent coefficients are given by contour integrals and are unique).

Proof

1.1givenF1algebra

Put κ0=2/δ, u=e/(100δ) and fb(x)=(1−(1−x2)b)/x, with its polynomial value at zero. For ∣x∣≥1/κ0, ∣fb(x)−1/x∣≤κ0exp⁡(−b/κ02)≤u. To identify its Chebyshev coefficients, expand sin⁡2bθ=2−2b(2bb)+21−2b∑r=1b(−1)r(2bb+r)cos⁡(2rθ), obtained by expanding (eiθ−e−iθ)2b. Multiplying ∑j=0b−1ajT2j+1(x) by x and using 2xTn=Tn+1+Tn−1 telescopes the binomial tails to 1−(1−x2)b. This proves the stated coefficient formula.

1.2F1F3F4algebra

Write H(z)=erf⁡(βz), h=g/2, q=h+1+h2 and L=ln⁡(16/v). The defining erf series is entire by the ratio test, and [F3] gives ∣H(x)∣≤1 on the real line. On the ellipse of parameter q, ∣Im⁡z∣≤h. Integrating vertically from the real axis gives ∣H(z)∣≤1+2βhexp⁡(β2h2)=C. The Laurent expansion of H((w+w−1)/2) and [F4] give Chebyshev coefficients bounded by 2Cq−l. Put N=n+1 and θj=(j+1/2)π/N. At these nodes, cos⁡((l+2N)θj)=−cos⁡(lθj), cos⁡((2N−l)θj)=−cos⁡(lθj), and cos⁡(Nθj)=0. Repeated reduction therefore interpolates every unresolved Tl as ±Tr for 0≤r<N, or as zero; each folded mode has sup norm at most one. Subtracting the original mode costs at most twice its coefficient, so summing the omitted modes bounds interpolation error by 4Cq−n/(q−1), at most v/32 under OP1A's stopping condition. Odd symmetrization cannot increase this error because H is odd. The declared aggregate evaluation and rounding errors contribute at most v/32 more, so the pre-rescaled interpolant differs uniformly from H by at most v/16. After division by 1+v/4, its output S satisfies ∣S∣<1, and differs from H/(1+v/4) by at most v/16. The Gaussian tail inequality 1−erf⁡(z)≤e−z2 for z≥0 follows, for 0≤z≤1/π, by differentiation of e−z2−erfc⁡(z), and thereafter by the integral bound erfc⁡(z)≤e−z2/(πz). Hence ∣S(x)−sign⁡x∣<v/2 when ∣x∣≥g.

2.1step 1.1algebra

For completeness, if X is a sum of 2b independent fair bits, Eexp⁡(s(X−b))=cosh⁡(s/2)2b≤exp⁡(bs2/4): the last inequality follows by integrating tanh⁡z≤z for z≥0. Markov's inequality and minimization at s=2r/b yield Pr⁡[X−b≥r]≤exp⁡(−r2/b). Consequently the omitted coefficient sum beyond J is at most 4bexp⁡(−J2/b)≤u, and ∣Tn(x)∣≤1 on [−1,1] proves uniform truncation error at most u. Thus P=(δ/2)g differs from δ/(2x) by at most δu=e/100 on ∣x∣≥δ/2, and ∣P∣≤2δ(J+1)<Pmax⁡ globally.

3.1step 2.1step 1.2algebra

For t=3δ/4, a=1+t, monotonicity of H gives 0≤Ccut(x)≤1+v/16 on [−1,1]: nonnegativity uses ∣S∣≤1, and the upper bound uses x−t<x+t in step 1.2. If ∣x∣≤δ/2, the two shifted arguments have opposite signs and magnitude at least g, so Ccut(x)≤v/2. If ∣x∣≥δ, their signs agree and ∣Ccut(x)−1∣≤v/2. Therefore inside [−δ/2,δ/2], ∣PCcut∣≤Pmax⁡v/2≤e/2000; outside it, ∣PCcut∣≤(1+e/100)(1+v/16). Division by 1+e/10 gives a strict global bound below 1−e/20. The total coefficient error e/1000 preserves a strict range margin. On [δ,1], the unrounded reciprocal error after division is at most e/100+Pmax⁡v/2+e/20<e/8; rounding retains error below e/4. Both reciprocal certificate polynomials are therefore strictly positive, by at least 3eδ/4. Parity-preserving coefficient rounding leaves p odd, hence p(0)=0.

4.1step 3.1F1algebra

All generation loops terminate. The binomial and Chebyshev sums are finite; q>1 makes the interpolation tail test terminate; and the explicit entire-function Taylor remainder tends to zero by the ratio test. Certified arithmetic refines positive strict inequalities finitely. For any fixed certificate polynomial r of degree D and a cell [a,a+w], its Bernstein coefficient is r(a)+∑k=1jr(k)(a)wk(jk)/(k!(Dk)). On the compact interval, the absolute difference from r(a) tends uniformly to zero as w→0. Thus the positive margin in step 3.1 guarantees a finite dyadic level with every coefficient positive. The exact critical-point test succeeds by the strict global margin, and no actual failed-certificate regeneration is needed at adequate precision. This proves deterministic termination in the uncapped mode; a declared finite cap retains its timeout branch.

5.1step 2.1step 1.2step 3.1step 4.1F2algebra

Since e≤δ, b=O(δ−2ln⁡(1/e)), J=O(δ−1ln⁡(1/e)), and ln⁡Pmax⁡=O(ln⁡(1/e)). Also g=Θ(δ), ln⁡q=Θ(g), ln⁡C=O(ln⁡(1/v)) and ln⁡(1/v)=O(ln⁡(1/e)); therefore the least interpolation degree is O(δ−1ln⁡(1/e)). Multiplication adds degrees and rounding does not increase them, proving the stated degree bound. This does not assign a bit-time or gate bound to the coefficient generation or Bernstein refinement. On each supported singular vector, apply [F2] to this odd polynomial; the finite SVD then turns the uniform scalar error into operator error at most e. Finally Aˉ+=αA+ gives (δ/2)Aˉ+=(γ/2)A+.

6.1F1step 1.2step 4.1algebrainduction∎

It remains to link the phase list emitted by the QA23 peeling procedure to the exact completed pair. At each nonconstant peel, its unit scalar ωn is chosen with ωn2=aℓ/bℓ−1; the explicit square-root formula and coefficient checks give this identity exactly. The simultaneous updates in that procedure are the coefficients of right multiplication of the current source-convention matrix by Z(−ψn)WS∗. Therefore the saved peel is reversed by multiplication by WSZ(ψn). At the terminal constant pair, the stored base phase gives its exact diagonal matrix; each degree-padding block is the exact identity. Induction over the finite peel list, followed by reversing its stored order, reconstructs the original source-convention matrix. The stated convention conversion then gives the exact reflected QSP product with upper-left entry p0+iB and the other three entries of the returned completed pair. Thus the coefficientwise product check in [F1] passes for every uncapped promised construction. It uses finitely many coefficient-array operations, all charged to the phase-generation/certificate arithmetic coordinate; exact arithmetic failures still return PHASE_PRODUCT_ERROR before execution. Numerical angle and compiler certificates concern later implementations and are not part of this exact identity.

LemmaStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Efficient coherent amplitude-grid rounding

Statement

For every integer k≥2, put M=2k. There is a deterministic uniformly generated finite reversible circuit with the action

∣y,z,0w⟩⟼∣y,zXORaM(y),0w⟩

for every k-bit integer 0≤y<M and every (2k+1)-bit target z, where aM(y) is an integer satisfying

0≤aM(y)≤M2,aM(0)=0,∣aM(y)M2−sin⁡2(πyM)∣≤34M2.

Circuit generation time, gate count in X, CNOT and Toffoli, serial depth, and clean workspace are all polynomial in k. The identity holds on arbitrary coherent inputs and with finite reference registers. Its actual inverse and coherent controls have the same polynomial resource order. The algorithm uses only bounded exact integer/rational arithmetic with fixed loop counts depending on k; it performs no real equality test or equality-dependent precision refinement. The output encodes the rational aM(y)/M2 by its numerator and the known fixed denominator.

Facts & Assumptions

Given: k≥2, M=2k, and a k-bit input y.

[F1]

The principal arctangent has derivative 1/(1+x2) and its integral formula. (Principal arctangent: derivative, integral, power series, and the Gregory–Leibniz series).

[F4]

The finite Taylor remainder is bounded by the derivative bound times ∣x∣n/n!. (A uniform derivative bound gives a uniform Taylor remainder bound).

[F6]

A finite Boolean DAG admits compute-copy-reverse with the declared linear gate/work overhead. (Reversible embedding of a Boolean circuit, Gate, workspace, and serial-depth costs of reversible embedding).

Proof

1.1givenF1F2F3algebra

Put a=arctan⁡(1/5) and b=arctan⁡(1/239). Principal monotonicity and tan⁡(π/4)=1 give 0<b<a<π/4. The tangent double-angle formula gives tan⁡(2a)=5/12<1, so 2a<π/4 and 0<4a<π/2. A second doubling gives tan⁡(4a)=120/119>1, hence 4a>π/4>b. The subtraction formula gives tan⁡(4a−b)=120/119−1/2391+(120/119)(1/239)=1. All denominators are positive, and 0<4a−b<4a<π/2. Injectivity of the principal tangent branch therefore proves 4a−b=π/4, or π=16arctan⁡(1/5)−4arctan⁡(1/239). This is a local proof of the needed Machin identity.

2.1F1step 1.1algebra

For 0≤x<1 and any integer J≥1, the exact finite geometric identity is 11+t2=∑j=0J−1(−1)jt2j+(−1)Jt2J1+t2. Integrating from zero to x and using the arctangent integral yields ∣arctan⁡x−∑j=0J−1(−1)jx2j+12j+1∣≤x2J+12J+1. This is a finite bound, requiring no limit test during the algorithm. Set J=k+8 and form the exact rational π^=16∑j=0J−1(−1)j(2j+1)52j+1−4∑j=0J−1(−1)j(2j+1)2392j+1. Step 1.1 and the finite integral estimate above give ∣π^−π∣≤2052J+1≤11024M2, because 52k≥22k=M2 and 20⋅1024<517. In particular 0<π^<4: for the lower bound, π/4=∫01(1+t2)−1 dt>1/2 gives π>2; for the upper bound, step 1.1 and arctan⁡(1/5)<1/5 give π<16/5, and the displayed error is below 1/1024.

3.1F3F4step 2.1algebra

Set x=π^y/M, so 0≤x<4, and set the even integer n=16(k+4). Compute the exact rational sine polynomial S(x)=∑j=0n/2−1(−1)jx2j+1(2j+1)!. Every derivative of sine has absolute value at most one. The Taylor remainder bound at degree n−1 gives ∣S(x)−sin⁡x∣≤4nn!≤(32n)n/2≤2−n/2≤14096M2. Indeed the last n/2 factors in n! are at least n/2, so n!≥(n/2)n/2, and n≥96≥64. Finally n/2=8(k+4)≥2k+12 gives the stated precision.

3.2step 2.1algebra

All rational computations above have polynomial bit length in k. For the arctangent sum at q∈{5,239}, one may take as an unreduced common denominator Dq=∏j=0J−1(2j+1)q2j+1, whose bit length is O(J2+Jlog⁡(J+1))=O(k2). Obtain each numerator by exact division of this known multiple, then sum with the indicated signs. A common denominator for π^ is D5D239, still of O(k2) bits; the same bound holds for its numerator. Therefore x=P/Q can be written with integer P≥0, Q>0 of O(k2) bits, without rational reduction.

4.1F3F5step 2.1step 3.1algebra

The derivative bound for sine and the mean value theorem give ∣sin⁡x−sin⁡(πy/M)∣≤∣π^−π∣y/M≤1/(1024M2). Put s=sin⁡(πy/M) and d=5/(4096M2). Step 3.1 implies ∣S(x)−s∣≤d<1 and ∣s∣≤1. Consequently ∣S(x)2−s2∣≤d(2+d)≤3d=154096M2<14M2. Thus the exact rational square r=S(x)2 approximates the desired probability with absolute error strictly below 1/(4M2).

5.1givenstep 4.1algebra

If y=0, set aM(y)=0 explicitly. Otherwise write the exact rational r=U/V with integers U≥0 and V>0, without requiring cancellation to lowest terms. Use integer division to compute q=⌊2M2U+V2V⌋,aM(y)=min⁡(M2,max⁡(0,q)). The floor rule is deterministic nearest-grid rounding, breaking rational half-grid ties upward. Hence ∣q/M2−r∣≤1/(2M2). Clipping to [0,1] cannot increase distance from the true probability s2∈[0,1]. Step 4.1 therefore gives ∣aM(y)/M2−s2∣<14M2+12M2=34M2. For y=0, the exact target is zero, so the bound also holds. Every comparison in this procedure compares finite integers, including any tie; there is no comparison against an exact transcendental number.

6.1step 3.1step 3.2algebra

A common denominator for the sine polynomial is D=Qn−1(n−1)!. Its jth integer numerator term is (−1)jP2j+1Qn−2j−2(n−1)!(2j+1)!. All exponents are nonnegative and every indicated division is exact. The powers, factorials, terms, common denominator, and signed partial sums have O(k3) bits: n=O(k), log⁡P,log⁡Q=O(k2), and log⁡((n−1)!)=O(klog⁡(k+1)). Summing O(k) terms adds only O(log⁡(k+1)) extra bits. Thus S=A/D can be computed with O(k3)-bit signed integers; U=A2, V=D2, and the final integer division in step 5.1 have the same bit-length order.

7.1step 5.1step 3.2step 6.1constructalgebra

There are only polynomially many arithmetic operations: products for the two denominators, powers and factorials, O(k) Taylor terms and their exact divisions, and one final quotient/clamp. Schoolbook addition, subtraction and comparison of L-bit integers use O(L) elementary Boolean operations, multiplication uses O(L2) operations by summing shifted partial products, and long division uses O(L2) operations by O(L) shift/compare/subtract stages. Signed integers can use a sign bit and a magnitude of the fixed safe length; all denominators are known positive. The operation counts and safe register lengths depend only on k. Unroll their loops and implement data branches by Boolean selection between the two computed results. Thus a deterministic classical generator produces a Boolean DAG for y↦aM(y) of polynomial size and description length in k, in polynomial time. This also covers generation of the rational constants; no constant table of exponential length or unit-cost unbounded integer arithmetic is assumed.

8.1F6step 7.1constructalgebra∎

Apply compute-copy-reverse to that Boolean DAG: evaluate its nodes in fresh clean bits, XOR-copy its (2k+1) output bits to z, and reverse every evaluation gate. The inspected reversible embedding theorem gives the asserted XOR action, polynomial elementary gate count, serial depth and clean workspace, all restored to zero. The Boolean circuit's uniform generation proof in step 7.1, followed by the finite node-gadget compiler, gives polynomial-time generation of the actual reversible gate list. The clean identity extends by linearity to coherent inputs and finite references. Its actual reversal has identical gate count. For an external control, either use a compute/controlled-copy/uncompute construction on the same Boolean function, or control the fixed reversible gate list; the former directly gives a constant-factor resource increase and restores all scratch. No real-number refinement or measurement occurs. This proves the Statement.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Relative estimation of a promised coherent success probability

Definition

Rounding mode. Select exact-cyclotomic (the original finite comparison mode below) or efficient-grid. In efficient-grid mode replace only RoundedAE output rounding: run Efficient coherent amplitude-grid rounding on the measured k-bit label y, with M=2k, and return aM(y)/M2. Its range is [0,1], zero label returns zero, and absolute error is at most 3/(4M2)<M−2. All following thresholds, medians, caps and scale choices are unchanged. The helper supplies actual uniform polynomial-in-log⁡M generation, elementary reversible gates and work, with actual inverse/control versions; use those costs in this mode.

Input. An arbitrary finite-dimensional amplitude-estimation instance from Amplitude estimation and counting input/output contract, with unitary sampler A, initial vector ∣0⟩, supplied orthogonal success projection Π, and unknown probability p=∥ΠA∣0⟩∥2; rational parameters 0<pmin⁡≤1, 0<c<1/4, and 0<β<1; and the promise p=0 or p≥pmin⁡.

Use the repeated controlled-unitary access mode with Q=−AS0A∗Sgood from that task definition. Controlled A, controlled A∗, controlled S0, controlled Sgood, and the control phase are explicitly supplied or implemented with declared costs. An ordinary preparation A∣0⟩ is also available and charged. Ordinary uncontrolled sampler access alone does not supply these controlled capabilities.

Output. A rational estimate p^∈[0,1]. The procedure uses independent fresh estimator workspaces, measures and discards them, and returns only classical data. Any subsequent use of a sampler starts a fresh execution from its declared initial vector.

Instructions. Set Mj=4⋅2j. Determine the least integer L≥0 with ML2pmin⁡≥1024 by doubling and rational comparison. Set δ=min⁡{1/16,β/(L+2)}. Choose the least positive odd integer r with (4/5)r≤δ, using rational multiplication and comparison.

For each dyadic integer M≥4, define the following two subprocedures.

  1. RoundedAE⁡(M) runs QFT-based amplitude estimation with label size M, obtaining the exact real cyclotomic output z=sin⁡2(πy/M). If y=0, return zero. Otherwise use Finite exact comparison of real cyclotomic values and binary search among the integers 0≤t≤M2 to find the largest t with t/M2≤z, and return t/M2. Equality is decided by the same exact comparison procedure; z=1 returns 1.
  2. MedAE⁡(M) runs r independent copies of RoundedAE⁡(M) and returns their middle order statistic, using rational comparisons.

For j=0,…,L in order, compute bj=MedAE⁡(Mj). If bj≥256/Mj2, stop this loop at J=j, choose the least power of two N≥16MJ/c, and return the output of a fresh MedAE⁡(N). If no such detection occurs through j=L, return zero without a final estimation call.

Query, preparation, ordinary-gate, measurement and classical-bit costs are separate coordinates. All exact comparisons, cyclotomic encoding, rational arithmetic, sorting, and output writing are charged as classical bit operations under Classical bit-operation cost. The comparison supplier asserts termination, without a polynomial bit-cost bound.

TheoremStatement: AI-adaptedProof: AI-adaptedOpen item page →

Relative probability estimation with a charged finite cap

Statement

For every promised input of Relative estimation of a promised coherent success probability, the procedure terminates. If p=0, it returns p^=0 with certainty. If p>0, then Pr⁡{∣p^−p∣≤cp}≥1−β.

Let C count all invocations of the declared sampler and inverse capabilities: each controlled A, controlled A∗, and initial ordinary A preparation is counted once in this total, while their individual resource coordinates remain distinct. Put p∗=max⁡{p,pmin⁡}, and let L,r,ML be the algorithm's finite parameters. Then EC=O ⁣(rcp∗),r=O ⁣(1+log⁡L+2β),L=O ⁣(1+log⁡1pmin⁡). Every execution satisfies the charged cap C<65rMLc<4160rcpmin⁡. With probability at least 1−β, both ∣p^−p∣≤cp and C<4160r/(cp∗) hold; when p=0, both hold deterministically. Thus the expected sampler-and-inverse count is O ⁣(1+log⁡((2+log⁡(1/pmin⁡))/β)cmax⁡{p,pmin⁡}).

These bounds require the algorithm's explicit controlled-access contract. They do not identify a controlled black-box call with an ordinary uncontrolled black-box call. Controlled reflections, control phases, QFT and other ordinary gates, measurements, and classical postprocessing retain separate charged costs. In the retained exact-cyclotomic mode, rounding uses finitely many exact algebraic comparisons and produces a rational with O(log⁡N) bits in each of numerator and denominator at a final scale N; no polynomial or polylogarithmic classical-bit bound is asserted. The optional efficient-grid mode instead has the helper's uniform polynomial-in-log⁡M rounding gates, work and generation, while preserving every probability/query bound. Estimation measures only its own construction workspaces, so a subsequent fresh sampler execution, conditional on the returned classical transcript, retains that sampler's prescribed output state and conditional good state.

Facts & Assumptions

Given: A promised input and all access capabilities of Relative estimation of a promised coherent success probability, with rational pmin⁡,c,β in its stated ranges. All estimator preparations and measurements use independent fresh workspaces, as required by that algorithm.

[F1]

The finite schedule, rational rounding grid, medians, detection threshold and final scale are defined in Relative estimation of a promised coherent success probability.

[F2]

The generic coherent sampler, success projection and signed iterate, including their separately declared controlled and inverse accesses, are defined in Amplitude estimation and counting input/output contract.

[F3]

For dyadic M≥4, the raw QFT estimator outputs z=sin⁡2(πy/M), with its exact cyclotomic representation (QFT-based amplitude estimation).

[F4]

The raw output satisfies ∣z−p∣≤2πp(1−p)/M+π2/M2 with probability at least 8/π2, and equals zero with certainty at p=0 (Amplitude-estimation additive error and success probability).

[F5]

The circle constant satisfies 3<π<22/7 (Rational bounds for pi used in finite schedules).

[F6]

One raw estimator uses exactly M−1 controlled-Q calls; each has one controlled A, controlled A∗, controlled S0, controlled Sgood and control phase. Its initial state preparation is separate (Amplitude-estimation query and precision complexity).

[F7]

Real cyclotomic values admit a terminating exact comparison procedure, including equality, without an asserted polynomial bit-cost bound (Finite exact comparison of real cyclotomic values).

[F8]

Classical comparisons, encoding, arithmetic and output writing are charged separately from quantum query and gate costs (Classical bit-operation cost).

[F9]

The efficient-grid helper returns a rational in [0,1], is exactly zero for y=0, has output error at most 3/(4M2)<M−2, and has uniform polynomial-in-log⁡M reversible resources (Efficient coherent amplitude-grid rounding).

Proof

1.1givenF1F2F3algebra

The dyadic sequence Mj=4⋅2j has unbounded squares, so its positive rational threshold in [F1] is eventually reached. Since pmin⁡≤1, its least cap index has L≥3, and minimality gives ML−12pmin⁡<1024, hence ML<64/pmin⁡. The geometric sequence (4/5)r tends to zero, so the least positive odd r in [F1] exists. The final scale is a finite dyadic ceiling of a rational number and satisfies 16MJ/c≤N<32MJ/c. Every raw call has dyadic size at least four. Thus all schedule choices are executable by finite rational arithmetic.

2.1F1F3F7F8F9step 1.1algebra

For each raw output z∈[0,1], the rounding instruction finds t=⌊M2z⌋ by finite binary search with [F7], including equality and the endpoint z=1. Its returned rational b=t/M2 satisfies 0≤z−b<M−2, with equality b=z when M2z is integral, and returns exactly zero when y=0. Binary search uses O(log⁡M) comparisons. Its rational output has O(log⁡M) numerator and denominator bits. Every comparison terminates by [F7], and all its internal refinement and output operations remain charged under [F8]. In efficient-grid mode [F9] supplies the same range, zero branch and M−2 error directly, with its separately proved finite polynomial resource bound; no exact-comparison refinement is used in that mode. There are at most L+1 detection medians and one final median, each with finitely many calls, so the entire procedure terminates.

2.2givenF1F2F6step 1.1algebra

By [F6], one rounded call at size M uses M−1 controlled A calls, M−1 controlled A∗ calls and one ordinary A preparation, for 2M−1 sampler-and-inverse invocations. A median costs at most 2rM such invocations, with separately charged r(M−1) occurrences of each controlled reflection and control phase. Since ∑j=0LMj<2ML, detection costs less than 4rML. A final median, if invoked, has size N<32ML/c and costs less than 64rML/c. Thus every execution, including unsuccessful estimates reaching the cap, has C<4rML+64rML/c<65rML/c<4160r/(cpmin⁡), because 4c<1.

3.1givenF1F4F5step 2.1algebra

By [F5], 8/π2>8/(22/7)2>4/5, 2π<8, and π2<16. Therefore [F4] and step 2.1 imply that each rounded output lies in the interval IM=[p−8p/M−17/M2,p+8p/M+17/M2] with failure probability at most 1/5. Let Bi indicate failure of copy i in a median, and put B=∑i=1rBi. Independence gives E4B=∏iE4Bi≤(8/5)r. Since 1{B≥r/2}≤4B/4r/2, taking expectations gives Pr⁡{B≥r/2}≤(4/5)r≤δ. If fewer than half of the samples miss IM, their middle order statistic lies in IM: an order statistic outside that interval would put at least (r+1)/2 samples on the same outside side. Consequently each median misses IM with probability at most δ. This also holds conditional on every earlier classical transcript, because the chosen size is then fixed and this median uses independent fresh workspaces.

4.1givenF1step 3.1algebra

Call a median good when it belongs to IM, and put x=Mp. At a good detection stage, x2−8x−17≤M2b≤x2+8x+17. A good stage that detects therefore has x>11, since for 0≤x≤11 its upper bound is at most 121+88+17=226<256. A good stage with x≥32 certainly detects, since x2−8x−17 is increasing there and is at least 751>256. For a positive promised p, MLp≥32, so a good cap stage detects.

5.1givenF1F4step 1.1step 2.1step 3.1step 4.1algebra

If detection occurs at a good stage J, then the fresh final scale has x′=Np≥16MJp/c>176/c. When its final median is good, ∣p^−p∣/p≤8/x′+17/(x′)2<c/22+17c2/1762<c, using 0<c<1/4. At most L+2 medians are invoked, and each has conditional failure probability at most δ by step 3.1. The union bound therefore makes the probability of any invoked bad median at most (L+2)δ≤β. On the complementary event, a positive input detects by the cap and satisfies the relative estimate just proved. At p=0, [F4] gives raw output zero with certainty; step 2.1 and the algorithm's zero-label branch make every rounded value and median zero. No positive threshold is met, so the algorithm returns zero exactly.

5.2givenF1step 3.1step 4.1algebra

Suppose p>0. Let j∗ be the first index with Mj∗p≥32. It exists by the promise and satisfies j∗≤L, j∗>0, and Mj∗<64/p. For analysis, preassign independent hypothetical median outcomes to all detection stages, and reveal them only if reached; this finite product of independent experiments has exactly the procedure's law. To reach stage j∗+t≤L, every one of the t preceding stages beginning at j∗ must have a bad median, since a good one at these scales would detect by step 4.1. Thus Pr⁡{reach j∗+t}≤δt. If S is the sum of sizes of invoked detection stages, finite summation and δ≤1/16 give ES<2Mj∗+Mj∗∑t≥1(2δ)t≤(2+1/7)Mj∗<3Mj∗. The infinite geometric sum here is only an upper bound on a finite expected cost.

6.1givenF1step 1.1step 5.1step 2.2step 5.2algebra

Detection costs at most 2rS. If detection occurs, MJ≤S and the final median costs less than 64rMJ/c; otherwise that cost is zero. Hence EC≤(2+64/c)rES<200rMj∗/c<12800r/(cp). If p=0, there is no final median and C<4rML<256r/pmin⁡. Both cases imply EC=O(r/(cp∗)). On the probability-1−β event of step 5.1, a positive input stops by j∗, so the deterministic calculation of step 2.2, with Mj∗ replacing ML, gives C<65rMj∗/c<4160r/(cp). For p=0 the deterministic cap already gives the claimed p∗ bound. This establishes the simultaneous probability assertion.

7.1givenF1F6F8step 2.1step 6.1algebra∎

Minimal dyadic threshold choice gives L=O(1+log⁡(1/pmin⁡)). Since r is the least positive odd integer with (4/5)r≤δ, it is at most two above the real threshold log⁡(1/δ)/log⁡(5/4), apart from the harmless minimum value one. Also 1/δ=max⁡{16,(L+2)/β}, so r=O(1+log⁡((L+2)/β)). Substituting into step 6.1 gives the stated expected bound. Rounding's precision and finite comparison count are those of step 2.1, and [F8] keeps their actual bit costs, along with the ordinary quantum resources in [F6], separate from this query bound. Finally, by [F1] every measured estimation workspace is discarded and the output is classical. Conditional on any resulting transcript, a subsequent fresh execution initializes its own declared input and applies its own prescribed sampler. Its output state, and therefore its conditional good state when that event has positive probability, is precisely that prescribed for the fresh sampler; the measured construction registers are not inputs to it.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Finite amplification from a supplied success lower bound

Definition

Input a finite-register coherent preparation U with good projection P, as in Prepared unitary and success subspace for amplitude amplification, and represented rational parameters 0<p0≤1 and 0<β<1. The success promise is p:=∥PU∣0⟩∥2≥p0. Supply U† under Inverse Unitary Access, the reflections S0=I−2∣0⟩⟨0∣ and Sg=I−2P under Orthogonal-Projector Reflection and Access Contract, and the controlled versions of all operations used under Controlled Unitary Access. The good/bad instrument is the projective measurement {P,I−P} of Finite projective measurements. It may be supplied directly or implemented by preparing an ancillary control in ∣+⟩, applying controlled Sg, applying a Hadamard to the control and measuring it, with outcome 1 designated good. These implementations and register initialization have their actual declared costs.

By exact rational comparisons compute the least power of two M satisfying M2p0≥4, and the least positive integer R satisfying (3/4)R≤β. Set b=log⁡2M. More general exact parameter representations are allowed only when they support these finite comparisons.

For trials 1,…,R, carry out the following instructions, stopping at the first return.

  1. Prepare U∣0⟩ on a fresh register and perform the good/bad instrument. On a good outcome, return that register. On a bad outcome, discard it.
  2. Draw exactly b fresh independent unbiased random bits, interpret them as an integer j∈{0,…,M−1}, and prepare U∣0⟩ on a fresh register. Apply exactly j iterates Q=−US0U†Sg of Amplitude amplification with a fixed integer iteration count, then perform the good/bad instrument. On a good outcome, return that register. On a bad outcome, discard it and proceed to the next trial.

If all R trials fail, return an explicit failure symbol. Preparations, bits and instruments are fresh between attempts. A classical-output specialization may additionally measure and verify the returned output, charging this work separately; it does not replace the good/bad projective instrument when a conditional quantum state is requested.

LemmaStatement: AI-adaptedProof: AI-adaptedOpen item page →

Finite amplification preserves the good state with a deterministic call cap

Statement

Under the inputs and promise of Finite amplification from a supplied success lower bound, that finite procedure succeeds with probability at least 1−β. Conditional on success, its returned register has exactly the density operator ∣g⟩⟨g∣, where ∣g⟩=PU∣0⟩/p. This includes all output and workspace registers of the original conditional good state.

Its deterministic caps are 2RM total calls to U,U†, R(M−1) zero-input reflections and R(M+1) good reflections, including the controlled good-reflection calls implementing at most two instruments per trial. It uses at most Rlog⁡2M unbiased random bits. Consequently its primitive-call cap is O(p0−1/2(1+ln⁡(1/β))), or O(p0−1/2ln⁡(1/β)) when β≤1/2. Query calls, gates, initialization, instruments, control variants and classical preprocessing are separately charged.

Facts & Assumptions

Given: The finite schedule, fresh operations, access capabilities and rational parameters of the algorithm.

[F1]

Finite amplification from a supplied success lower bound specifies M,R, direct attempts, independent uniform indices and the explicit failure branch.

[F2]

Amplitude-amplification invariant plane and Exact success probability after amplitude amplification give the invariant-plane rotation and success probability sin⁡2((2j+1)θ) when p=sin⁡2θ.

[F3]

Projective measurement outcome weights are probabilities, Conditional state for a projective measurement and A unit-vector outer product is a density operator give the outcome probabilities and normalized density operator on positive-probability branches.

[F4]

The addition formulas for sine and cosine, Double-angle and quadratic power-reduction identities and Parity and the Pythagorean identity for sine and cosine give sine addition, sin⁡2x=(1−cos⁡(2x))/2 and ∣sin⁡x∣≤1.

[F5]

Amplitude-amplification access and resource accounting, Controlled Unitary Access and Circuit-family and computation cost model separately charge the four factors of an iterate, control variants and gate/classical work.

[F6]

The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t gives the increasing natural logarithm on positive reals and its integral formula.

Proof

1.1givenF2F3algebra

For 0<p<1, write U∣0⟩=cos⁡θ∣h⟩+sin⁡θ∣g⟩, where 0<θ<π/2. By [F2], QjU∣0⟩=cos⁡((2j+1)θ)∣h⟩+sin⁡((2j+1)θ)∣g⟩. On every positive-probability good branch its projection is a scalar multiple of ∣g⟩, so [F3] gives exactly ∣g⟩⟨g∣. Direct attempts give the same conditional state. If p=1, every direct attempt succeeds and returns this state; no zero-probability component is normalized.

1.2givenF2F4algebra

For 0<p<1, sine addition in [F4] gives sin⁡((4j+4)θ)−sin⁡(4jθ)=2cos⁡((4j+2)θ)sin⁡(2θ). Summing over j=0,…,M−1 and using sin⁡(2θ)>0 gives ∑jcos⁡((4j+2)θ)=sin⁡(4Mθ)/(2sin⁡(2θ)). Thus the mean success probability of the uniform-index attempt is aM=1/2−sin⁡(4Mθ)/(4Msin⁡(2θ))≥1/2−1/(4Msin⁡(2θ))≥1/2−1/(2Msin⁡(2θ)).

1.3givenF1F3F5algebra

A trial has at most two preparations and M−1 iterates. By [F5], it uses at most M+1 forward calls, M−1 inverse calls, M−1 zero reflections and M−1 iterate good reflections. Each of at most two instruments adds one controlled good reflection: on a vector v, the control construction has joint state ∣0⟩⊗(I−P)v+∣1⟩⊗Pv immediately before measurement, which is exactly the required instrument. Thus the displayed per-trial caps hold, and only the second attempt draws log⁡2M random bits.

2.1givenF1F4step 1.2algebra

If 0<p<3/4, then sin⁡(2θ)=2p(1−p)≥p≥p0. Since M≥2/p0, step 1.2 implies aM≥1/4. The whole trial succeeds with probability p+(1−p)aM≥aM≥1/4. For 3/4≤p≤1 the direct attempt succeeds with probability at least 3/4. Hence every promised input has trial success probability at least 1/4.

3.1givenF1F3step 1.1step 2.1inductionalgebra

Conditional on any preceding failures, freshness leaves the next trial's success probability at least 1/4. Finite induction bounds total failure by (3/4)R≤β. Every successful branch returns the state of step 1.1; summing its scalar branch weights and dividing by total success probability therefore gives the same density operator, even after forgetting the index, stopping trial and earlier failure outcomes.

4.1givenF1F6step 1.3algebra∎

Minimality of the power of two M gives 2/p0≤M<4/p0. Also R≤1+ln⁡(1/β)/ln⁡(4/3), by applying [F6] to (3/4)R≤β and the minimal positive integer choice. Multiplying the finite per-trial counts by R proves the call and randomness caps and their asymptotic bounds.

Remarks

For gate costs CU,Cinv,C0,Cg of the supplied implementations, with Cg covering both used good-reflection control variants and instrument ancilla overhead charged explicitly, the quantum gate cap is R((M+1)CU+(M−1)Cinv+(M−1)C0+(M+1)Cg+O(log⁡M)). Register initialization is included in its actual supplied preparation cost. Binary counters and comparisons admit O(RMlog⁡M) elementary classical bit operations; exact arithmetic constructing M,R is separate finite preprocessing. A padded coherent circuit implementation must use and charge the supplied controlled operations. The logarithmic bound retains an additive 1 for β arbitrarily close to 1.

LemmaStatement: AI-adaptedProof: AI-adaptedOpen item page →

Low-target amplification has a controlled multiplicative loss

Statement

Let n≥1 be an integer. Let a coherent sampler have success weight q>0, and suppose an estimate q^>0 satisfies ∣q^−q∣≤q/100 and q^≤1/(9n). Choose the least integer k≥0 such that (2k+1)2q^≥1/(9n), and put d=2k+1, x=d2q^, y=d2q. Applying k standard iterates of Amplitude amplification with a fixed integer iteration count gives success weight r satisfying 19n≤x≤1n,100101x≤y≤10099x,y(1−25n)≤r≤y. In particular 1/(16n)≤r≤min⁡{1,100/(99n)}, and the positive-probability conditional good state is unchanged. The total number of sampler/inverse calls in this fixed amplification is exactly d, charging reflections separately.

For any s≤n such amplifications, indexed by i, with the same parameter n, their multiplicative losses obey ∏i=1sridi2qi≥35,∏i=1sdi≤53∏i=1sriqi.

Facts & Assumptions

Given: The coherent sampler, relative estimate, integer n and least crossing index k in the Statement; all sampler inverse and reflection operations required by the fixed amplification are supplied.

[F1]

Exact success probability after amplitude amplification gives r=sin⁡2(dθ) for θ=arcsin⁡q; Amplitude-amplification invariant plane keeps the good component collinear with the original good component.

[F2]

Principal inverse sine and inverse cosine and For −1<y<1, (arcsin⁡y)′=1/1−y2 and (arccos⁡y)′=−1/1−y2 give arcsin⁡0=0 and (arcsin⁡u)′=(1−u2)−1/2 for ∣u∣<1.

[F4]

The addition formulas for sine and cosine and Parity and the Pythagorean identity for sine and cosine give sine addition and ∣sin⁡u∣,∣cos⁡u∣≤1 for real u.

[F5]

Amplitude-amplification access and resource accounting counts k+1 forward calls, k inverse calls and k calls to each reflection.

[F6]

Bernoulli's inequality (1+x)n≥1+nx gives (1−a)n≥1−na for 0≤a≤1 and integer n≥1.

Proof

1.1givenalgebra

Since q^>0, some finite k crosses the target. If the least index is k=0, the crossing and q^≤1/(9n) force x=1/(9n). If k≥1, minimality gives (d−2)2q^<1/(9n), so dq^<1/(3n)+2q^≤1/n and x<1/n. The relative estimate gives 99q/100≤q^≤101q/100, hence 100/101≤q/q^≤100/99. Multiplying by x proves the bounds on y, and also q≤100/(891n)<1.

2.1givenF2F3step 1.1algebra

Put u=q. For 0≤v≤u, [F2] gives 1≤(arcsin⁡v)′≤(1−q)−1/2. Applying [F3] to arcsin⁡ on [0,u] yields q≤θ≤q/1−q. Therefore z=dθ satisfies y≤z2≤y/(1−q)≤(100/(99n))/(1−100/891)=900/(791n).

3.1givenF3F4step 2.1algebra

For v≥0 define f(v)=sin⁡v−v+v3/6. By [F3] and [F4], f′′′(v)=1−cos⁡v≥0 and f′′(0)=f′(0)=f(0)=0. Three applications of the mean value theorem imply successively f′′(v)≥0, f′(v)≥0 and f(v)≥0. Thus sin⁡z≥z−z3/6. Step 2.1 gives z2≤900/791<6, so this lower bound is positive and may be squared: sin⁡2z≥z2(1−z2/6)2≥z2(1−z2/3)≥y(1−300/(791n))≥y(1−2/(5n)). The factor 1−300/(791n) is positive because n≥1, which justifies replacing z2 by its lower bound y.

4.1givenF1F4step 1.1step 3.1inductionalgebra

Sine addition and [F4] give ∣sin⁡((h+1)θ)∣≤∣sin⁡(hθ)∣+sin⁡θ for integer h≥1. Finite induction yields ∣sin⁡(dθ)∣≤dsin⁡θ, so [F1] gives r≤d2q=y. Together with step 3.1 this proves the multiplicative loss bound. Since y≥100/(909n), it also gives r≥(100/(909n))(3/5)=20/(303n)>1/(16n); the upper bounds r≤100/(99n) and r≤1 follow from step 1.1 and [F4]. In particular r>0, and the collinearity in [F1] shows that conditioning on success preserves the original good state.

5.1givenF5F6step 4.1algebra∎

By [F5], this fixed amplification makes k+1+k=2k+1=d sampler/inverse calls and k calls to each reflection. For s≤n instances, the preceding bounds give ∏i=1sri/(di2qi)≥(1−2/(5n))s≥(1−2/(5n))n≥3/5 by [F6]. All factors are positive, so rearranging this product inequality and taking nonnegative square roots gives ∏i=1sdi≤5/3∏i=1sri/qi, as claimed.

Remarks

The upper bound x≤1/n concerns the estimated quadratic weight. A one-percent estimate allows the actual amplified weight r to exceed 1/n; the proved bound r≤100/(99n) retains this distinction. No estimate is treated as an exact amplitude input to the known-amplitude maximization procedure.

TheoremStatement: AI-adaptedProof: AI-adaptedOpen item page →

Variable-time amplitude-amplification theorem

Statement

Let a finite coherent variable-time algorithm satisfy Coherent variable-time algorithm model, with positive success probability p, maximum stopping count Tmax⁡≥1 and RMS stopping count Tav. Use the declared normalized operation-count coordinate, with actual preparation, controlled/inverse and input/selected-reflection costs included in the interval budgets. Put LT=max⁡(2,Tmax⁡) and n=1+⌈log⁡2LT⌉. The following resource regimes are distinct.

Supplied probability/schedule data. Suppose finite certified amplification-schedule data are supplied as in the model: on dyadic interval j, with original good-or-unfinished mass sj, previous selected mass rj−1 and actual qj=rj−1sj/sj−1, the odd multiplier dj=2kj+1 has resulting selected probability rj≥1/(16n) and rj≥(1−2/(5n))dj2qj. Unamplified intervals have dj=1,rj=qj. Supply a rational ℓ with rh/2≤ℓ≤rh for the final selected mass. Let Cbuild charge the actual finite construction/verification of these data and lists, including every oracle invocation used to obtain probability information. The resulting production procedure returns the exact conditional good state with success at least 1/2 at total cost Cbuild+O ⁣(Tmax⁡ln⁡LT+Tavp(ln⁡LT)3/2). The original logarithmic production bound is retained in this explicit probability-input regime. It does not assert free exact probability access or a uniform method obtaining those data at zero query cost. Repeating production O(ln⁡(1/ρ)) times gives success at least 1−ρ, with the actual construction cost charged once if its certified lists are reused.

Uniform finite estimated implementation. Instead supply only a positive rational success floor 0<p0≤p, failure 0<ρ<1/2, and the actual controlled/inverse/reflection access. No branch-probability advice is assumed. There is a finite estimated construction, described in the proof, preserving the exact conditional good state and succeeding with probability at least 1−ρ. Put c=1/100, qmin⁡=p0/(64n), and let r be the median count of Relative estimation of a promised coherent success probability at floor qmin⁡ and individual failure ρ/(16n). On a joint event of probability at least 1−ρ its complete construction-plus-production stage-call cost is O ⁣((r/c)n5/2(Tmax⁡+Tavp)). Every execution has the separately charged deterministic cap K=⌈225(r/c)n3Tmax⁡P0⌉,P0=min⁡{a∈N:a2p0≥1}. Exhaustion returns RESOURCE_TIMEOUT. State preparation, oracle/control/reflection implementation, finite list generation, output rounding and classical arithmetic/bit costs retain their actual separate coordinates; construction oracle calls are already counted in this cap. The efficient-grid rounding mode may be used for its proved polynomial-logarithmic postprocessing resources. This theorem makes no unproved unknown-p expected-time claim and does not equate this finite uniform overhead with the first regime's tighter production expression.

Facts & Assumptions

Given: The variable-time model in the Statement, its actual declared access/cost coordinate, and the data of the selected regime.

[F1]

Stopped branches are orthogonal and fixed by later stages (Coherent variable-time algorithm model).

[F2]

Ordinary amplification preserves the selected normalized component and gives selected probability sin⁡2(darcsin⁡q) (Exact success probability after amplitude amplification).

[F3]

Low-target amplification with a relative-1/100 estimate has selected probability at least 1/(16n) and multiplicative loss at most 2/(5n); the product loss over at most n amplified stages is bounded by 5/3 in the cost recurrence (Low-target amplification has a controlled multiplicative loss).

[F4]

The generic finite estimator supplies its joint relative-error and call-cost event with count at most 4160r/(cq), with the explicit controlled access and separately charged rounding costs (Relative probability estimation with a charged finite cap).

[F5]

Lower-bound capped amplification preserves the exact conditional selected state and has finite call cap 2RM with M<4/plow and R≤1+ln⁡(1/β)/ln⁡(4/3) (Finite amplification preserves the good state with a deterministic call cap).

Proof

1.1givenF1constructalgebra

Group the original operation-count execution into dyadic deadlines, assigning each stopped branch the first deadline after its original stopping count. All counts are positive integers in the declared coordinate. Treat an original stage as indivisible: group all stages ending by each deadline and use twice that deadline as its padded cumulative budget. The interval then covers every grouped whole-stage call. This changes maximum and RMS counts by at most four and leaves stopped branches untouched. There are at most n intervals with increments Δj summing to at most 4Tmax⁡. Their input/selected-reflection and preparation/control budgets are included, rather than treated as free additional operations. We retain this factor in the numerical constants below.

2.1F1F2step 1.1algebra

Let sj be the original probability of being already good or still unfinished at deadline j, with s−1=1. It decreases, is at least p>0, and has final value p. Construct Bj by running the preceding amplified list and continuing the original algorithm only on unfinished branches. Inductively its selected component is proportional to the original selected component, with probability qj=rj−1sj/sj−1; initially r−1=1. Amplify by the chosen odd multiplier. By [F2] this preserves the conditional selected state, and at the last deadline that state is the exact original conditional good state.

3.1F2F3step 2.1algebra

Let vj be the production-list cost and dj its amplification multiplier. Then vj≤dj(vj−1+Δj), with v−1=0. The supplied-regime certificate or [F3] gives dj≤rj/qj(1−2/(5n))−1/2 on amplified intervals, with no loss on unamplified intervals. Expand the recurrence. For each summand, ∏ℓ=jhrℓ/qℓ=rhsj−1rj−1p. The total loss is at most 5/3, and rj−1≥1/(16n) (with initial value one), so vh≤6nrh/p∑jΔjsj−1. The same bound holds for every prefix with its corresponding ri,si.

3.2F2F3F4step 2.1algebra

In the uniform regime use [F4] with c=1/100, floor qmin⁡=p0/(64n) and failure β=ρ/(16n) at each of at most n intervals. All estimation workspaces are fresh construction data, discarded before production. On the estimator-good event, a returned q^>1/(9n) uses d=1 and actual r=q>(100/101)/(9n)>1/(16n), with loss one. Otherwise choose the least odd d with d2q^≥1/(9n); search only through k≤⌈1/qmin⁡⌉ and return failure if no crossing is found. [F3] gives the same surviving floor and loss bound in this case. Inductively qj≥p/(16n)≥p0/(16n)>qmin⁡, so every estimator promise is met on this joint event; a zero estimate or exhausted search is then impossible. The actual upper bound r≤1/n is neither claimed nor used.

4.1F1F5step 1.1step 3.1algebra

Write uj−1 for original unfinished mass at the preceding deadline. Since sj−1≤p+uj−1 and Δjuj−1≤2Tav by the dyadic stopping convention (also at the first interval, because stopping counts are at least one), S:=∑jΔjsj−1≤4(Tmax⁡p+nTav). In the supplied-data regime apply [F5] at lower bound ℓ≥rh/2 and constant failure 1/2. Its O(rh−1/2) factor cancels rh in step 3.1, proving production cost O(Tmax⁡n+(Tav/p)n3/2). Substitute n=O(ln⁡LT) and add the actual Cbuild, including its probability-acquisition oracle calls. Independent repetitions give the stated confidence. No construction-cost bound follows solely from existence of true-probability-selected multipliers.

5.1F3F4F5step 3.1step 4.1step 3.2algebra

The prefix version of step 3.1 and rj−1≥1/(16n) give the next sampler cost bi the bound bi/qi≤10nS/p. Use step 4.1 and [F4] to charge every estimation call. Summing at most n stages gives at most 218(r/c)(n3/2Tmax⁡+n5/2Tav/p) with slack for dyadic padding. Final production has vh≤6nS/p. Apply [F5] with floor 1/(18n) and failure ρ/4: its range is M<17n, and its trial count R is at most 32r. Thus its complete additional cost fits within 220(r/c)n5/2(Tmax⁡+Tav/p), again with slack for the already charged reflection/interval overhead. This proves the stated joint-event bound and includes the quantum cost of acquiring probability data.

6.1F1F2F4F5step 3.2step 5.1algebra∎

The computable integer P0 satisfies P0≥1/p0 and P0<2/p0. Since Tav≤Tmax⁡ and p≥p0, the joint-event cost in step 5.1 is below K. Count all construction, production, inverse/control/reflection stage calls and final amplification against K, stopping before an excess. The resource timeout therefore never occurs on the joint estimator-good event. Its complement has probability at most nβ≤ρ/16 by [F4] and the union bound. Conditional on the good construction event, final capped amplification fails with probability at most ρ/4. Total failure is at most 5ρ/16<ρ. Every heralded good branch has the same conditional original state by step 2.1, even after averaging the classical construction transcript. The procedure is finite on every branch by its explicit caps.

Remarks

The probability-resource inputs in the model distinguish supplied certified schedule data from unknown black-box probabilities. The tight production expression charges the former through Cbuild, including any oracle calls needed to obtain them; the finite uniform variant states its floor, confidence, estimation overhead and cap separately. An unknown-probability uniform worst-case bound cannot be inferred from the ideal-list recurrence: already a one-stage hidden-label rotation family yields the finite-transcript/continuity obstruction documented in the owner repair evidence. This corrects an ambiguous local resource interpretation and does not refute the cited source theorem under its intended conventions. No unproved unknown-p expected-time claim is used here.

TheoremStatement: Literature-sourcedProof: AI-adaptedOpen item page →

QSVT inverse-state output and success cost

Statement

Let m be the generated odd polynomial degree and let ζ bound the total operator error of one QSVT success block relative to F=(δ/2)Aˉ+, including scalar approximation, block-encoding, and phase-synthesis errors. If ∥A∥op≤α and the normalized input is supported on singular values at least γ, then ∥F∣b⟩∥2≥δ2/4, where δ=γ/α. If ζ<δ/2, the implemented success weight pimpl satisfies pimpl≥(δ/2−ζ)2. Conditional on success of one unamplified attempt, let w be its phase-fixed success vector. The unit representative w/∥w∥ differs in vector norm from A+∣b⟩/∥A+∣b⟩∥ by at most 2ζ/∥F∣b⟩∥≤4ζ/δ. The amplified returned quantum state has this same ray: for any unit representative ψ of that state there is ω∈C with ∣ω∣=1 such that ∥ωψ−A+∣b⟩/∥A+∣b⟩∥∥≤2ζ/∥F∣b⟩∥≤4ζ/δ. This terminal-state convention leaves the coherent phase and operator-error bound of the actual QSVT success block fixed as stated above. Put pideal=∥F∣b⟩∥2, so pideal≥δ2/4. In particular, ζ≤δ/4 gives pimpl≥δ2/16.

An unamplified attempt of degree m uses exactly m block-encoding signal calls in the QSVT sequence. Applying the supplied unknown-amplitude amplification procedure costs expected O(m/pimpl) signal calls, with state preparation, controlled/inverse calls, reflections, phase gates, synthesis, and classical certificate generation charged separately. When the degree theorem is established, m=O(δ−1ln⁡(1/e)), so this becomes O(δ−1ln⁡(1/e)/pimpl) expected signal calls, and the crude ζ≤δ/4 bound gives O(δ−2ln⁡(1/e)). This is an expected-cost statement; it does not assert a fixed worst-case stopping time.

Facts & Assumptions

Given: The block-encoded QLSP instance, a successful polynomial/phase certificate including the exact returned-phase product check, and ζ<δ/2 for the actual success block. The phase-approximation and circuit-implementation errors in ζ are measured relative to that verified ideal sequence.

[F1]

Gapped pseudoinverse polynomial degree and error: on [δ,1], the generated odd polynomial approximates δ/(2x) and has degree O(δ−1ln⁡(1/e)).

[F2]

Normalization and nonzero success weight of the supported pseudoinverse target: F=(δ/2)Aˉ+ has ∥F∣b⟩∥≥δ/2 and its normalized output is the QLSP target.

[F3]

QSVT action on singular subspaces: the odd sequence on the adjoint PUE acts on each supported singular pair with scalar multiplier p(σ/α), and uniform scalar error gives the corresponding operator error.

[F4]

QSVT signal and reflection query counts: a degree-m QSVT sequence makes exactly m signal calls, and phase/reflection and controlled-call counts remain separate.

[F5]

Expected cost of unknown-amplitude search: for positive success weight a, the unknown-amplitude procedure has expected query cost Θ(a−1/2), with gates and classical costs separate.

[F6]

Amplitude-amplification invariant plane: each standard Grover iterate acts on the span of the normalized good and bad components, and its good component is a scalar multiple of the same normalized good vector.

[F7]

Unknown-amplitude randomized search: each round starts with a fresh preparation and returns only after the good projector accepts.

[F8]

Unknown-amplitude search has no false positives and halts almost surely: on a positive initial good weight, the search returns a good output with probability 1.

[F9]

QSVT regularized pseudoinverse transformation: before execution, the algorithm multiplies the exact returned phase-scalar list and checks its four polynomial entries against the returned completed pair; a mismatch returns PHASE_PRODUCT_ERROR without a QSVT call.

Proof

1.1givenF1F3F9algebra

Write the finite SVD A=∑jσj∣uj⟩⟨vj∣. Since b=∑jβjuj is supported on σj≥γ, applying the odd transform to Aˉ† maps each uj to vj with multiplier given by the verified phase-sequence polynomial. By [F9] this ideal polynomial is exactly the generated completed-pair target before numerical phase approximation; its total difference from the intended p transform, including polynomial shrink and phase/circuit errors, is included in ζ. The target multiplier is δ/(2(σj/α))=γ/(2σj), the coefficient of F=(δ/2)Aˉ+; [F1] and [F3] therefore bound the operator error on the supported subspace by ζ.

1.2givenF2step 1.1algebra

Put v=F∣b⟩ and let w be the implemented success vector. Then ∥w−v∥≤ζ. By [F2], ∥v∥≥δ/2, so reverse triangle inequality gives ∥w∥≥δ/2−ζ>0 and pimpl=∥w∥2≥(δ/2−ζ)2. Moreover, ∥w∥w∥−v∥v∥∥≤∣∥v∥−∥w∥∣+∥w−v∥∥v∥≤2ζ∥v∥≤4ζδ. The conditional state is defined because ∥w∥>0.

2.1givenF2F4step 1.2algebra

By [F2], pideal=∥v∥2≥δ2/4. In the implemented case, if ζ≤δ/4, step 1.2 gives pimpl≥δ2/16. By [F4], one attempt uses m block-encoding signal calls, and phase/reflection and controlled-call resources remain separate.

3.1givenF1F4F5F6F7F8step 1.2step 2.1algebra∎

Put ∣G⟩=w/∥w∥ for the one-attempt good vector. By [F6], after any integer number j of amplitude-amplification iterates the unnormalized good component is sj∣G⟩ for a scalar sj. On a positive-probability good branch sj≠0, and the normalized ket is (sj/∣sj∣)∣G⟩; its phase can differ from that of ∣G⟩. Each such branch has exactly the density operator ∣G⟩⟨G∣, including after the stopping history is forgotten. Thus any returned unit representative is ψ=c∣G⟩ with ∣c∣=1, and choosing ω=c‾ gives ωψ=∣G⟩ and the error bound of step 1.2. This identifies the terminal state ray without rephasing any coherent circuit or controlled call. Fresh rounds use the same preparation circuit, and [F7] returns only on that good measurement; [F8] supplies eventual success for pimpl>0. Applying [F5] to the actual success weight pimpl gives expected O(pimpl−1/2) attempts, hence expected O(m/pimpl) signal calls. If [F1] is established, substitute m=O(δ−1ln⁡(1/e)); if ζ≤δ/4, step 2.1 gives pimpl−1/2≤4/δ. All other resource coordinates remain separate by [F4]–[F5].

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Finite CKS sparse QLSP with variable-time inverse estimation

Definition

Inputs. A finite Hermitian d-sparse A with ∥A∥op≤1, normalized ∣b⟩ supported on eigenvalues ∣λ∣≥1/κ, rational 0<e<1 and rational failure budget 0<ρ<1/3, the full reversible row/reverse-location and entry-value access of Childs–Kothari–Somma sparse QLSP oracle model, and supplied B,B† preparing ∣b⟩. The preparation contract is B(∣0⟩I∣0⟩WB)=∣b⟩I∣0⟩WB for a declared preparation-work register WB; stage lists act as identity on WB. Every controlled, inverse, state-preparation, simulation, reflection, arithmetic, classical table, precision, and compilation cost is an input coordinate.

Modes. The input selects efficient-qsvt or the original fourier-table inverse constructor, and retains its declared capped or uncapped construction policy. The Fourier table, coefficient-generation and common-normalization instructions below are the complete original alternate mode. Their generic table/preparation costs remain charged. The complexity guarantee uses efficient-qsvt; no such guarantee is inferred for an arbitrary supplied Fourier SELECT circuit or generic coefficient table.

Finite-precision matrix and simulation budget (both modes). Let A~ be the Hermitian sparse matrix decoded from the finite-precision value oracle, and require a certified induced error ∥A−A~∥op≤ϵval; exact value access is the case ϵval=0. Require A~ij=0 whenever (i,j) is absent from the supplied location lists; the lists must cover every nonzero decoded entry. A decoded entry outside those lists, a non-Hermitian decoded table, an entry with ∣A~ij∣>1, or a missing error certificate returns INVALID_ACCESS. Construct the exact sparse block encoding with compression A~/d and normalization d by the QA25 supplied-permutation UL†UR circuit using the known entry bound h=1 (not the unknown maximum entry). Use the Hermitian row-location and reverse-location permutations on swapped system registers to supply the column enumerations; charge the swaps and every inverse/control form. The value flag circuit is: On a valid value slot use the flag rotation (A~ij−1−∣A~ij∣21−∣A~ij∣2A~ij‾), with value query/unquery as in that circuit. This changes only the value amplitude in the QA25 supplied-permutation circuit, so its row/reverse-location, value-query, uniform-state-preparation, inverse, and controlled-call counts are unchanged and separately charged. The location maps enumerate the support of A and may therefore list additional zero-valued entries of A~; their flag-zero contribution is zero. In efficient-qsvt mode, for each QSVT stage, ϵBE,j is a certified bound on its actual PUE compression error relative to A/d, including at least ϵval/d and any block-circuit error; the stage is admissible only if 4DjϵBE,j≤ηI/8.

Let Q be the finite multiset of simulator-call sites in one complete A list and one complete A′ list, including every dyadic QPE power and coherent repetition. At call site q, the QA25 circuit uses the exact encoding of A~/d to simulate e±iA~tq, and has a certified clean-input isometry error ξq relative to that unitary; the actual controlled or inverse form has the same bound and is separately charged. Choose the value precision and simulator precisions so that ∑q∈Qξq+ϵval∑q∈Q∣tq∣≤ηS. Here ηS is the total clean-subspace error for the two base lists, not an error claim on arbitrary dirty work inputs. The matrix term follows from the finite-dimensional Duhamel bound ∥e±iAt−e±iA~t∥op≤∣t∣ϵval; the clean-subspace unitary hybrid then sums all call-site errors. If these value, block, or simulation budgets cannot be certified, return INVALID_ACCESS before production. Their bit precision and access costs remain explicit.

Efficient inverse mode. Put m=⌈log⁡2κ⌉+1 and e∗=min⁡(e,ρ) and use this strengthened accuracy in all efficient-mode budgets below. Set n=m+1, ϕj=2−j and αmax⁡=2/ϕm. Use the exact QA25 sparse block encoding of A~/d specified above, with every inverse/control form used and its precision/cost; its relative error to the ideal A/d is charged in ϵBE,j. For each stage generate the OP1A polynomial from QSVT regularized pseudoinverse transformation with gap δj=ϕj/d and error ej=min⁡(δj/2,ηI/8); this invokes its scalar generation instructions only, rather than assuming the stage input has a global gap ϕj. Execute the QA24 real odd QSVT circuit on the adjoint encoding, with its actual real-part-extraction control and zero-workspace success projector. Write pj for the generated OP1A polynomial. Before phase-synthesis shrink/round and implementation errors, the real odd QSVT compression on the ideal block A/d has eigenvalue multiplier sgn⁡(λ)pj(∣λ∣/d), which approximates ϕj/(2λ) within ej for ∣λ∣≥ϕj. The actual compression additionally incurs the certified QSVT input-block, phase-synthesis and implementation errors; off that supported subspace it is simply the declared bounded circuit. Compute a success flag for the whole zero-workspace projector, and dilute its successful component by a separately supplied/constructed flag rotation of amplitude ϕm/ϕj. The diluted target multiplier is 1/(αmax⁡λ) on ∣λ∣≥ϕj, with total compression error at most ηI under the combined budget below; it is an approximation even with exact block access. No unspecified PREPARE or SELECT operation occurs in this mode.

In this mode choose the least admissible dyadic QPE scales and least admissible odd repetition counts, and construct the corresponding simulator circuits at their declared precision. Set ηI=e∗/(4096mαmax⁡). Choose ζ=ηS as the largest dyadic number no greater than min⁡(e∗/(4096mαmax⁡),1/(4096mκ2)), so each is greater than half that minimum. In the finite call-site multiset Q, let Q0=∣Q∣ and T0=∑q∣tq∣. Request the same simulator tolerance ξ=ηS/(2max⁡(1,Q0)) at every call site and require ϵvalT0≤ηS/2 as well as the stage block-error tests. Use the least admissible simulator degrees for these requested tolerances. Smaller actual certified errors are allowed, but do not cause a smaller tolerance to be requested or additional simulator repetitions. For each stage j, pass phase-synthesis tolerance ej/100 to its QSP call and allocate the scalar approximation error ej, QSVT input-block error, polynomial shrink, angle, compiler and circuit errors jointly so the actual diluted inverse compression error relative to the target multiplier is at most ηI. The ϵBE,j constraint above includes the actual generated degree Dj and the finite-value/block error of A~/d relative to A/d. For a stage with Nj≥1 implemented phase/flag/projector slots, request tolerance ηI/(8Nj) at each such slot (including errors from phase descriptors, angles and compilation in this allocation). Sum their actual errors within this budget. These concrete tolerance choices are part of the efficient constructor; higher implementation costs supplied by the access model remain separately charged. If an OP1A polynomial/phase constructor returns a declared non-success status, propagate it before any QSVT call or success flag; the theorem's success guarantee applies when uncapped construction completes. The QA25 small-time-aware simulator is invoked only through its clean-input isometry contract, with an initially clean embedding and the controlled/inverse clean-subspace hybrid of Unitary hybrids on a preserved clean-work subspace. Within repeated calls and reversal, retain the actual work coherently; only the ideal comparison trajectory has clean work, and actual approximate work is not reset or discarded. Numerical accuracy, all signal/query/gate counts, coefficient/phase generation and arithmetic bit implementation are separate input cost coordinates. The QA23 efficient numerical arithmetic mode grants its stated ideal exact-algebraic operation count only.

Registers and stopping semantics. Put m=⌈log⁡2κ⌉+1. Use clock bits C1,…,Cm, success bit F, system register I, separate phase workspaces Pj, and coefficient workspace Q. Once a clock bit first records a stopped branch, every later stage is controlled on all earlier clock bits being zero. All clock, outcome, and step branches are orthogonal; there are no intermediate measurements in a branch later inverted.

Finite Fourier inverse (fourier-table mode). For each requested ϕ∈(0,1] and error e0>0, GenerateInverse(φ,e₀) chooses rational Y,Z>0 by increasing integer squares until e−ϕ2Y2/2/ϕ≤e0/8,2Ye−Z2/2/2π≤e0/8. Set Ly=Z2, Lz=1+Z2+YZ, and choose positive dyadic Δy,Δz with 2YZ(LyΔy+LzΔz)/2π≤e0/8. Increase Y,Z to multiples of those steps and recheck. For j=0,…,J−1, J=Y/Δy, and k=−K,…,K−1, K=Z/Δz, use yj=jΔy, zk=kΔz, and cjk=iΔyΔzzke−zk2/2/2π for the controlled simulator e−iAyjzk. Round the coefficients to exact rational complex values c~jk with total absolute error at most e0/8. In lexicographic (j,k) order, omit zero rounded coefficients and call the remaining list βℓ, retaining each associated simulation time. Put λϕ=∑ℓ∣βℓ∣ and choose a certified rational upper bound αϕ≥max⁡(1,λϕ) for this rounded list. Execute the normalized coefficient construction below with normalization a=αϕ; the coefficient phases belong to SELECT, not PREPARE. If c~jk are the used rounded coefficients and ξjk bounds the clean-input simulation error relative to e−iA~yjzk, require 1αϕ∑j,k∣c~jk∣(ξjk+∣yjzk∣ϵval)≤e0/16. This includes both the simulator's own precision error and the value-table error by the Duhamel bound. Allocate all other PREPARE/SELECT and controlled/inverse implementation errors jointly to at most e0/16, so their total normalized LCU-block error is at most e0/8. If these finite budgets cannot be certified, return INVALID_ACCESS (or the declared construction timeout when its cap is reached). The analytic identity being discretized is 1x=i2π∫0∞ ⁣dy∫Rze−z2/2e−ixyz dz(∣x∣≥ϕ). The coefficient PREPARE/SELECT block is the conditional identity proved in Projected block identity for a supplied LCU circuit. The chosen cutoffs and finite coefficients do not by themselves certify the approximation or its gate/bit cost.

Normalized coefficient construction (fourier-table mode). Given the retained rounded list and a normalization a≥λϕ, a>0, append two distinct identity-term labels with coefficients +(a−λϕ)/2 and −(a−λϕ)/2 if a>λϕ; append neither if equality holds. Keep the original ordered labels followed by the positive and negative padding labels, without merging their cancelling terms. Denote this nonzero coefficient list by (γℓ,Vℓ)ℓ<M, where an original Vℓ is its indicated simulation and a padding Vℓ is the identity. Even when the rounded list is empty, the two padding terms give M≥1 and total absolute coefficient sum a. Choose q=⌈log⁡2M⌉, or a larger declared common index width, and D=2q. Form the exact positive normalized table aℓ={∣γℓ∣/a,0≤ℓ<M,0,M≤ℓ<D. Use this table, whose squared amplitudes sum to one, in QC24 State Preparation, following the unit-component-scale LCU interface of LCU block-encoding construction. Its first nonzero amplitude is positive real, so its omitted reference phase is zero. Supply exact arithmetic descriptors for the amplitudes and angles in that supplier's ideal continuous-gate model; square roots need not have exact finite rational coordinate encodings. Include the actual PREPARE work in a declared clean register WP within Q, so P∣0q,0WP⟩=∑ℓ<Maℓ∣ℓ,0WP⟩. Retain the complete unitary circuit, not only its zero-input state, and use its literal reversed adjoint circuit for P†.

Supply the full SELECT unitary on all physical index labels: for ℓ<M it applies (γℓ/∣γℓ∣)Vℓ to the system and its declared simulation work, and for M≤ℓ<D it applies identity. It acts as identity on WP; all component work spaces are embedded in a common register with unused wires idle. In particular the two slack labels apply +I and −I, respectively. Coefficient phases are not loaded into PREPARE or unprepare, where they would cancel. The returned LCU circuit is P†SELECTP, with its success projector testing the coefficient index, WP and component work all zero. After this block, coherently XOR that all-zero predicate into the initially zero success bit F, using a supplied or explicit reversible predicate circuit and its charged control/work costs; this flagged circuit is the Fourier inverse call used by the stage list. Apply the conditional LCU identity to the actual component compressions with scale one; their deviations from the ideal evolutions are charged by the weighted simulation budget above, without assuming full-space simulation accuracy on dirty work. Retain all work coherently, and supply every controlled or adjoint form actually used, including the coefficient phases under an outer control; reverse the complete circuits for adjoints rather than an ideal postselected state.

Charge the complete explicit table's generation, exact descriptors, reading, storage and angle arithmetic, each PREPARE/SELECT/adjoint/control call, register and clean-work width, and precision and compilation separately. The QC24 expanded circuit uses O((q+1)D) ideal bounded-arity occurrences and serial depth per generic PREPARE, with at most max⁡(q−1,0) reusable clean work bits; it grants no finite-alphabet exactness or bit-time bound. A finite implementation instead supplies certified table/angle/whole-circuit errors, including controlled and adjoint forms, within the already allocated e0/16 nonsimulation LCU error budget. For example, whole-unitary PREPARE error δP and additional SELECT error δsel must include 2δP+δsel in that budget; compile complete controlled blocks so no discarded scalar becomes a relative phase. A raw rounded table without these certificates is not an implementation. This construction adds no efficient coefficient-generation, Fourier-approximation or uncapped-termination guarantee.

Common normalization (fourier-table mode). Set L=⌈log⁡2(1024mκ/e)⌉ and ζ=e/2L. Generate at every ϕj=2−j with error mζ and set αmax⁡=max⁡jαϕj. Rebuild each stage from its original rounded coefficient list (discarding its earlier slack labels) by the normalized coefficient construction with a=αmax⁡: append the explicit pair ±(αmax⁡−λϕj)I/2 when its slack is positive. Use the maximum of the resulting index widths as a common q and zero-pad every amplitude table to D=2q; embed all stage work in the common Q. Rebuild PREPARE, SELECT and their required adjoint/control circuits at these sizes and recheck their actual error and cost certificates. The weighted simulation error uses denominator αmax⁡ for these rebuilt blocks; the added identity terms have no simulation error. If mαmax⁡ζ>e/256, increment L and regenerate. Also require ηS≤min⁡(e/(4096mαmax⁡),1/(4096mκ2)) in the finite-precision simulator budget above. A declared finite cap returns CONSTRUCTION_TIMEOUT; an uncapped run relies on the separate termination and growth proof.

Gapped phase estimation and stages. Use QPE on controlled eiA~ with its dyadic powers constructed through the actual QA25 clean-work simulator. For each ϕj, GPE(φ_j,ζ) uses a dyadic phase scale at least 64π/ϕj, an odd number r≥8ln⁡(1/ζ2)+8 of coherent QPE repetitions on the same eigencomponent, and reversible majority comparison of the unwrapped phase magnitude with 3ϕj/2. Threshold equality selects the large branch. The ideal comparison is QPE for A with promise cases ∣λ∣≤ϕj and ∣λ∣≥2ϕj; the transition band is unconstrained. The finite-precision implementation uses A~, and its entire call-site error relative to that ideal QPE is bounded by the ηS allocation above. Retain all phase work in Pj and make no intermediate measurement.

At stage j, conditional on the active prefix C1=⋯=Cj−1=0, run GPE into Cj,Pj. On the same prefix and Cj=1, execute the common-normalized inverse circuit of the selected mode on F,Q,I; otherwise leave the branch unchanged. Let Aj be this stage list, A=Am⋯A1, and let Aj′ replace its inverse call by a flip of F, with A′=Am′⋯A1′. The inverse lists are literal reversal with the corresponding inverse calls. The Q-budget in the finite-precision contract includes the simulator call sites of both complete lists.

Terminal bad branch (both modes). Add a clean terminal bit T. After the last GPE/inverse stage, coherently set T=1 on the branch with all clock bits zero and leave its success flag zero. This branch is stopped and bad at the final stopping time; it is no longer unfinished. Append the same terminal-bit computation to A′ and reverse it inside (A′)†. Thus all branches stop by tm, including phase-test failures; the last stopping subspace is the orthogonal union of the ordinary last-stage stop and this terminal-bad branch. For 1≤i≤m, define the good-or-unfinished projector as the orthogonal sum of (a) branches with F=1, T=0, and first-stop clock word C1=⋯=Cj−1=0,Cj=1 for some j≤i (later clock bits remain zero), and (b) branches with F=0, T=0, and C1=⋯=Ci=0. Previously stopped bad branches and the terminal branch T=1,F=0 are excluded. Since T is set after stage m, the unfinished term is empty at i=m. The final target is only F=1. These projectors act as identity on the clean WB factor.

Finite variable-time amplification wrapper (both modes). Pad cumulative stage counts to increasing dyadic stopping times, preserving stopped branches. Each interval budget includes the supplied input/selected reflections, controlled/inverse list implementations and reversible clock predicates; their costs remain explicit. Form the first sampler by preparing B∣0⟩ and running the first interval. Later Bi runs the prior amplified list and the original continuation on unfinished branches only. The initial reflection is about the all-zero state before B; A′ contains the eigenvalue stages and does not undo B. The preparation-work factor WB stays zero throughout.

Let n=m+1, c=1/100 and pmin⁡=1/(256nαmax⁡2). Use Relative estimation of a promised coherent success probability with Bi, the good-or-unfinished projector (the final target is F=1), relative error c, failure ρ/(16n) and floor pmin⁡. The efficient-QSVT mode selects its efficient-grid rounding branch; the Fourier-table mode retains its declared rounding branch. This is an arbitrary-sampler estimate, not a Boolean marked-count estimate. Every controlled sampler/inverse and reflection is supplied or built gatewise from an explicit circuit and charged; missing access returns INVALID_ACCESS. All estimator registers are fresh construction data, discarded before fresh production execution. A returned estimate q^i=0 gives ESTIMATION_FAIL. If q^i>1/(9n), use Vi=Bi. Otherwise choose the least nonnegative integer k with (2k+1)2q^i≥1/(9n), within k≤⌈1/pmin⁡⌉; exact rational comparisons or integer binary search implement this selection. A missing crossing gives ESTIMATION_FAIL. Execute exactly k ordinary iterates with this sampler and projector. The inequality (2k+1)2q^i≤1/n concerns the estimate; no identical actual-success upper bound is assumed.

At the final interval apply Finite amplification from a supplied success lower bound to the selected sampler with lower bound 1/(18n) and failure ρ/4. Copy/measure a separate success record before applying (A′)† to erase internal phase/clock/flag work on the successful branch. In efficient-qsvt mode also apply the supplied/constructed projective instrument onto zero for every work/clock/internal-flag register, including WB, after this uncompute; return the system only if every tested register is zero, and set the external herald to failure otherwise. This makes the conditional returned system state pure; its work-check error/failure is budgeted with e∗. The instrument and its controlled-zero reflection/cost are included in H. Return the system and external heralding record; a failed branch returns FAIL.

For each chosen quantum resource coordinate, construct an integer H≥1 from the actual original-stage, controlled/inverse, selected/input-reflection, dilution and predicate lists, so their interval cost is at most H2j−1; enlarge H to include all actually needed gatewise-control depths. For gate coordinates also include the uniform upper bound for the finite estimator's QFT, efficient-grid rounding, rational medians and loop/predicate overhead over every allowed scale through its declared cap; these scales are a finite explicit function of pmin⁡,c,ρ. Since each sampler-list cost is at least one, this common per-call polynomial-logarithmic factor absorbs that ordinary overhead without treating it as an oracle call. Pad cumulative original stage times to tj=H2j. Let r be the actual median repetition count of the shared estimator, using its floor and confidence. In efficient-qsvt mode impose the additional total primitive-cost cap K=⌈230(r/c)Hαmax⁡n4⌉. Count construction estimation, list invocations, production, inverse/control/reflection calls and final amplification against this cap and return RESOURCE_TIMEOUT before exceeding it. Each coordinate uses its actual H and corresponding cap. Classical coefficient/phase construction, exact algebraic comparisons, output rounding, compiler construction and arithmetic bit work keep their own charged coordinates. The original Fourier mode retains its original declared construction/estimation caps; its distinct table and SELECT costs are not hidden by the efficient-mode quantum cap.

Remarks

This is the binding OP6 constructor with its declared additional efficient inverse mode. It defines a finite capped procedure and a separate uncapped source mode; the source CKS theorem does not automatically prove the capped wrapper's failure probability, success amplitude, or resource bounds. Every sparse simulation must use the explicitly supplied reversible location permutations and the QA25 simulator access chain; QA20 XOR row/value access alone does not supply those permutations. The efficient-QSVT mode has its separate local common-scale, stopping, estimated-amplification and quantum-resource proofs. The retained Fourier-table mode keeps all of its coefficient-generation/table/SELECT costs. Both modes charge classical generation, comparison, compiler construction and arithmetic bit work separately; quantum gate efficiency does not imply a total bit-time bound.

LemmaStatement: AI-adaptedProof: AI-adaptedOpen item page →

CKS stopping-time and success-mass instantiation

Statement

For the CKS dyadic eigenvalue-resolution procedure with m=⌈log⁡2κ⌉+1 stages, a supported eigenvalue λ is routed to one of two adjacent stopping intervals by the source's gapped phase-estimation test; the transition-band and estimator-failure mass must be included in the error budget. If ck are the input spectral amplitudes, the source analysis gives stage costs tj=O~(d2j), maximum time Tmax⁡=O~(dκ), and, up to the allocated approximation error, a success amplitude proportional to 1/(αmax⁡λ) on eigenvalue λ. Consequently Tav2=O~ ⁣(d2∑k∣ck∣2λk2),psucc=Θ~ ⁣(1αmax⁡∑k∣ck∣2λk2). In the explicitly declared efficient-qsvt mode of the local constructor, the proof below establishes these bounds with its actual charged interval budget. The source coefficient estimate αmax⁡=O~(κ) then gives Tav/psucc=O~(dκ). These are the source-efficient stopping quantities; the proof below establishes the corresponding finite estimated-wrapper floor, normalization, error and stopping bounds in this mode, while the retained Fourier-table mode keeps its distinct actual costs.

Facts & Assumptions

Given: The efficient-qsvt mode with m stages, n=m+1, ϕj=2−j, α=2/ϕm, its declared value/block/simulation error budgets at strengthened internal accuracy ϵ∗=min⁡(ϵ,ρ) and actual interval-cost bound H. The state-preparation workspace is clean as specified by the algorithm. In the error estimates below write ε=ϵ∗, so ε≤ϵ and ε≤ρ. Put X=A+, x=∥Xb∥, and let p denote its final good probability.

[F1]

The constructed stage circuit and resource/error budgets are those of Finite CKS sparse QLSP with variable-time inverse estimation.

[F2]

The proved OP1A polynomial and real QSVT extraction have the stated uniform scalar and input-block/phase error bounds (Gapped pseudoinverse polynomial degree and error, Real bounded polynomial extraction in QSVT, QSVT robustness, approximation error, and resources).

[F3]

The variable-time model preserves all stopped branches and defines RMS time from their orthogonal probabilities (Coherent variable-time algorithm model).

[F4]

The generic probability estimator has its promised relative-error, finite cap and confidence bounds (Relative probability estimation with a charged finite cap).

[F5]

The low-target lemma proves surviving probability at least 1/(16n) and multiplicative loss at most 2/(5n) per amplified stage (Low-target amplification has a controlled multiplicative loss).

[F6]

The clean-subspace unitary hybrid controls reference registers, coherent controls, actual inverses and repeated products along the ideal clean trajectory (Unitary hybrids on a preserved clean-work subspace). Actual work is retained coherently rather than reinitialized.

[F7]

The finite-precision value model supplies a Hermitian A~ with ∥A−A~∥op≤ϵval, and the simulator-call-site bounds sum to ηS over one A list and one A′ list (Finite CKS sparse QLSP with variable-time inverse estimation).

Proof

1.1givenF1F2F7algebra

In the finite Hermitian eigenbasis write b=∑kckvk, Avk=λkvk, where 1/κ≤∣λk∣≤1. Thus 1≤x≤κ. The supplied-permutation sparse block circuit uses the certified entry bound h=1 for the decoded Hermitian matrix A~. Hermiticity lets the row enumeration on the swapped system register serve as the column enumeration, and the supplied reverse-location map makes each matching slot unique. Since ∣A~ij∣≤1, its value flag matrix is unitary and has flag-zero amplitude A~ij on the zero input. The row and column neighbor states have coefficient 1/d on each listed slot, so their unique matching pair contributes A~ij/d to the all-zero flag compression; the support-coverage promise ensures every nonzero decoded entry is listed, any listed slot whose decoded value is zero contributes zero, and padded sentinels have no overlap. Hence the actual PUE block is exactly A~/d, within ϵval/d of the ideal A/d. On the ideal block A/d, eigenvalue λ gives normalized eigenvalue λ/d. The odd stage polynomial with gap δj=ϕj/d approximates the target multiplier sgn⁡(λ)ϕj/(2∣λ∣)=ϕj/(2λ) within its declared scalar error for ∣λ∣≥ϕj. Diluting by ϕm/ϕj gives the common ideal multiplier 1/(αλ), where α=2/ϕm. By [F2], the actual QSVT block on A~/d differs from the ideal transform of A/d by at most 4DjϵBE,j plus the declared polynomial/phase errors; these are included in the per-stage compression budget ηI. The real-extraction success projector includes its control and all zero workspace. The finite SVD therefore gives the ideal supported target Xb/α, with actual stage compression within ηI. Also 4κ≤α<8κ (the endpoint inequalities may be replaced by non-strict upper bounds).

1.2F1algebra

In the ideal comparison circuit, QPE at dyadic label size M≥64π/ϕ estimates the eigenphase modulo 2π. The exact Fourier kernel obeys Pr⁡[dcirc(y/M,λ/(2π))≥a]≤1/[2(Ma−1)]: indeed each label probability is at most 1/[4M2dcirc2], since ∣sin⁡(πu)∣≥2∣u∣ for ∣u∣≤1/2, and summing each of the two reciprocal-square tails uses ∑s≥Rs−2≤1/(R−1). Taking a=ϕ/(4π) gives failure at most 1/30. Circular phase error below ϕ/2 places the unwrapped phase magnitude on the correct side of 3ϕ/2 for each of the two promises. Since ∣λ∣≤1<π, this unwrapping is unambiguous on the good event. For r0 independent coherent QPE copies on this eigenvector, the squared amplitudes of label strings factor. If B counts incorrect comparisons, E[4B]≤(11/10)r0, hence Pr⁡[B≥r0/2]≤(11/20)r0. The declared odd r0≥8ln⁡(1/ζ2)+8 makes this at most ζ2. A reversible majority stores this decision without measurement, so the wrong-branch amplitude is at most ζ.

1.3F1F6F7algebra

For a simulator call at signed time t, differentiating e−iA(t−s)e−iA~s and integrating from 0 to t gives ∥e±iAt−e±iA~t∥op≤∣t∣∥A−A~∥op≤∣t∣ϵval. Thus call site q differs from the ideal e±iAtq by at most ξq+∣tq∣ϵval. Taking controlled direct sums or adjoints preserves that norm bound. By [F6] and the budget in [F7], each complete actual base list is within ηS of its ideal-A comparison on clean inputs, including arbitrary references; actual simulator work remains coherent.

2.1step 1.2algebra

For fixed supported λ, let j∗ be the first stage with 2ϕj∗≤∣λ∣. It exists by the chosen m, and 2j∗≤4/∣λ∣. Before stage j∗−1, the low-eigenphase promise holds, so stopping there has probability at most ζ2 per stage. At j∗ the high-eigenphase promise holds, so failing to stop has probability at most ζ2. The intermediate stage is unconstrained and either branch is allowed. Apart from a total probability at most (m+1)ζ2≤2mζ2, all histories stop at j∗−1 or j∗, and satisfy ∣λ∣≥ϕj at their inverse stage. This is the full adjacent-stage ambiguity analysis; it makes no unique-estimate assumption.

3.1F1F3F6step 1.1step 2.1algebra

Correct histories stop by time 4H/∣λ∣. Orthogonality of eigenvectors and histories gives ideal RMS square at most 16H2∑k∣ck∣2/λk2, with wrong-history mass contributing at most 16H2κ2(2mζ2). By step 1.3, the actual controlled simulations have total clean-input isometry difference at most ηS on the base list, with a reference register; the diagonal stopping-time-squared observable on the orthogonal clock histories has norm at most 16H2κ2. For unit vectors at distance at most ηS, the difference of its expectations is at most 2ηS times this norm, by expanding the two quadratic forms and applying the triangle inequality. Consequently Tav2≤16H2x2+16H2κ2(2mζ2+2ηS)≤17H2x2, using [F1]'s budgets and x≥1. Thus Tav≤5Hx, while Tmax⁡=H2m≤4Hκ≤2Hα. The inverse stage occurs only after stopping, so its unsuccessful workspace does not affect any later stopping probability.

3.2F1F2F6step 1.1step 2.1algebra

In the ideal-A comparison circuit let the joint eigenvalue/history projection select first stops with ∣λ∣≥ϕj. Its complement, including a final no-stop history, has mass at most 2mζ2 by step 2.1. On valid histories, compare the actual successful inverse compression with the common scalar X/α; summing the stage errors conservatively gives mηI. On the complement, the actual projected output has norm at most 2mζ by contractivity, while the comparison vector produced by A′Xb/α has norm at most (κ/α)2mζ≤2mζ/2. By step 1.3, simulation hybrids contribute at most ηS for A and at most (κ/α)ηS for the comparison circuit A′. Therefore, with all auxiliary inputs clean and internal F=0, ∥ΠFAB∣0⟩−A′(∣0⟩F,workXb/α)∥≤mηI+3mζ+2ηS≤ε128α. This compares projected output vectors and uses no full-space simulator bound.

4.1step 3.1step 3.2algebra

Put D=ε/(128α). Step 3.2 gives ∣p−x/α∣≤D, hence p≥x2/(4α2) and Tav/p≤10Hα. Applying the actual unitary (A′)† preserves the vector error. For nonzero vectors v,w, the triangle inequality gives ∥v/∥v∥−w/∥w∥∥≤2∥v−w∥/∥w∥; apply it with ∥w∥=x/α≥1/α to obtain conditional output error at most ε/64. The external herald is copied or measured before this uncompute; the comparison internal flag is clean and any actual residual is included in the vector error. The preparation-work register WB was clean initially and is untouched by A′ and (A′)†. Finally project all work, including WB, onto zero as specified in [F1]. Before that test, the pure joint conditional vector is within ε/64 of target times clean work, so the test fails with probability at most ε2/4096≤ρ/4096. Its successful normalized system vector is within ε/32≤ϵ of the desired vector by the same normalization inequality.

5.1F3F4F5step 4.1algebra

Let si be the original good-or-unfinished mass at interval i, defined by the algorithm's projector for 1≤i≤m: the orthogonal union of branches with F=1, T=0, and first-stop clock word C1=⋯=Cj−1=0,Cj=1 for some j≤i (later clock bits remain zero), and branches with F=0, T=0, and C1=⋯=Ci=0. Previously stopped bad branches and the terminal bad branch are excluded; since T is set after stage m, the unfinished term is empty at i=m. It is at least p because all future good mass lies in the unfinished branch; the clean WB factor does not change this mass. If the prior amplified selected mass is ri−1, then the next sampler has qi=ri−1si/si−1. At the pre-stage index set r0=s0=1: preparation has run, every clock bit and F,T is zero, and the entire state is unfinished. In particular q1=s1≥p and r0≥1/(16n), establishing the induction base. Suppose inductively ri−1≥1/(16n); then qi≥p/(16n)≥1/(64nα2)>pmin⁡. On the estimator-good event, q^i>1/(9n) gives the unamplified ri=qi>(100/101)/(9n)>1/(16n), with loss one. If 0<q^i≤1/(9n), [F5] gives the same floor and the claimed multiplicative loss. A zero estimate or exhausted bounded crossing does not occur on this event. The induction proves every promised estimator floor and the final amplifier's lower bound 1/(18n). Fresh production after every classical construction transcript and ordinary amplification preserve the exact conditional good state of the actual sampler.

6.1F1step 3.1step 3.2step 4.1step 5.1algebra∎

Step 3.1 and step 4.1 give precisely the source-scale RMS and success quantities: Tav2=O~(d2∑k∣ck∣2/λk2), p=Θ~(α−1(∑k∣ck∣2/λk2)1/2) and Tav/p=O~(dκ) when the actual quantum interval budget is H=d poly⁡(log⁡(dκ/ϵ),log⁡(1/ρ)) (with the declared sparse/control/implementation overhead). Here the concrete chosen common normalization is α=O(κ); all supplied nonstandard costs remain in H. The original Fourier/table alternate mode retains its distinct charged construction and SELECT costs; its cost is not substituted for this efficient-mode estimate.

TheoremStatement: AI-adaptedProof: AI-adaptedOpen item page →

CKS nearly-linear condition-number guarantee

Statement

Let A be an N×N Hermitian matrix with at most d nonzero entries in each row, ∥A∥op≤1, supplied with the full sparse access model of Childs–Kothari–Somma sparse QLSP oracle model. Its finite-precision values must decode to a Hermitian A~ with certified ∥A−A~∥op≤ϵval, and the exact QA25 encoding and simulator-call certificates must satisfy the budgets in Finite CKS sparse QLSP with variable-time inverse estimation. Let ∣b⟩ be a normalized state supported on eigenvalues with ∣λ∣≥1/κ for declared κ≥1, prepared by a supplied clean-work unitary B. For targets 0<ϵ<1 and 0<ρ<1/3, execute the constructor at supplied rationals ϵ/2<e≤ϵ and ρ/2<β≤ρ, with access and construction certificates for these requests. The uncapped efficient-qsvt constructor, or a finite-cap construction that completes its certificates, outputs with probability at least 1−ρ a conditional pure system state admitting a unit representative within vector-norm error ϵ of A+∣b⟩/∥A+∣b⟩∥, for every fixed 0<ρ<1/3. Here the output is conditioned on its classical execution transcript: for any unit representative ψ of its ray, there exists ω∈C, ∣ω∣=1, such that ∥ωψ−A+∣b⟩/∥A+∣b⟩∥∥≤ϵ. This terminal-state phase convention does not change any coherent stage, block-encoding, or controlled-operation phase specified by the access contract.

For the prescribed precision schedule and least admissible OP1A degree bounds just specified, the query bound is O ⁣(dκ poly⁡ ⁣(log⁡dκϵ,log⁡1ρ)) calls in each declared row-location, reverse-location, value, and input-preparation query coordinate; inverse and coherent forms retain their separate coordinates. A construction-cap exhaustion returns its declared timeout and is not included in this success guarantee. If the support of ∣b⟩ has the smaller condition number κ′<κ, κ may be replaced by κ′. The output is a quantum state; no classical coordinate list is promised.

The separate gate-efficient conclusion holds only under this explicit gate specialization: every required forward, inverse and controlled form of B, row-location, reverse-location, value access, and the A~/d block encoding has a uniform circuit using at most g0=polylog⁡(N,d,κ,1/ϵ,1/ρ) gates per call; state preparation, selected/input reflections, reversible clock predicates, dilution rotations, and the final zero-work instrument and controlled reflections also use at most g0 gates per invocation; and each QA25 simulation at time t and clean-input error ξ has a uniform circuit using O((d∣t∣+log⁡(1/ξ))g0) gates, with the same bound for every required controlled or inverse form. The QFTs, reversible phase comparisons and majority circuits, and efficient-grid rounding circuits used by the probability estimator must also have uniform polylogarithmic gate counts at every allowed scale. A uniform phase compiler must implement each QSVT phase within its allocated error using at most g0 gates. Under these conditions the total quantum gate count is O(dκ polylog⁡(N,d,κ,1/ϵ,1/ρ)). Query bounds remain separate from these gate bounds. Classical polynomial/phase generation, exact algebraic comparison, median/schedule arithmetic, arithmetic bit implementation and compiler construction costs remain separate coordinates; no polylogarithmic total bit-time bound is inferred.

Facts & Assumptions

Given: The sparse supported QLSP input, certified finite-precision and simulation budgets, clean-work preparation, and the efficient-qsvt mode with completed polynomial/phase construction and its finite confidence/resource caps. In this proof write ϵ,ρ for its rational input parameters e,β; a guarantee for them implies the requested real-target guarantee. Use the least admissible OP1A degree bounds, with certified integer upper endpoints within one of the corresponding real ceilings, as in the polynomial-degree supplier.

[F1]

Finite CKS sparse QLSP with variable-time inverse estimation specifies the actual QSVT-stage, gapped-phase, probability-estimation and finite amplification circuits and their budgets.

[F2]

CKS stopping-time and success-mass instantiation proves Tmax⁡≤2Hα, Tav/p≤10Hα, α=2/ϕm≤8κ, conditional target error at most ϵ/64, and all positive estimator floors. The final zero-work instrument returns a pure system state with error at most ϵ and additional failure at most ρ/4096.

[F3]

Relative probability estimation with a charged finite cap supplies the finite generic estimator and its joint accuracy-and-cost event: with failure at most β, sampler/inverse calls are at most 4160r/(cq), where r is the actual median repetition count. Its classical cyclotomic comparisons and rounding costs are separate.

[F4]

Low-target amplification has a controlled multiplicative loss gives each amplified stage loss at most 2/(5n) and surviving probability at least 1/(16n); unamplified large-estimate stages have loss one. The product loss over at most n stages is bounded by 5/3 in the cost recurrence.

[F5]

Finite amplification preserves the good state with a deterministic call cap supplies finite heralding with failure at most ρ/4, preserving the exact conditional good-state density operator.

[F6]

Actual QA24 signal/phase counts and QA25 simulation/sparse-access costs are explicit (QSVT signal and reflection query counts, Qubitization query and gate resources, Correctness and access cost of sparse block encoding); the h=1 supplied-permutation specialization has the same call counts, with its exact A~/d compression established in step 1.1 of [F2].

[F7]

The gate-efficient specialization in the Statement bounds each preparation/access/controlled/inverse, reflection/predicate/instrument, simulator, and compiled phase implementation uniformly, while keeping gate and query coordinates separate.

[F8]

Gapped pseudoinverse polynomial degree and error: the bare-gap OP1A construction with rational 0<ej≤δj≤1/2 and least admissible bounds has degree O(δj−1log⁡(1/ej)).

Proof

1.1F1F2F4algebra

For each quantum coordinate construct H from the finite stage/control/inverse/reflection/dilution lists as in [F1]. For gate coordinates its computed bound also includes the QFT/efficient-grid rounding/median overhead over the estimator's finite allowed scales, so the sampler-call estimate multiplies actual ordinary-gate overhead rather than ignoring it. The assigned dyadic times have increments Δj, and every interval's reflection-pair and reversible-predicate cost is included in its increment. Set r0=s0=1 and v0=0, before the first interval. Let sj be original good-or-unfinished mass, rj the amplified selected mass, qj=rj−1sj/sj−1 and vj the amplified circuit cost. With dj=2kj+1 the ordinary amplification multiplier, vj≤dj(vj−1+Δj). Here the dj sampler/inverse invocations plus kj reflection pairs fit this allocated budget; none of those costs is free.

1.2F1F2F6F7F8algebra

To evaluate H, put e∗=min⁡(ϵ,ρ) and Λ=1+log⁡(dκ/e∗). Since m=O(1+log⁡κ) and α≤8κ, the prescribed ηI=e∗/(4096mα) and largest-dyadic ζ=ηS give log⁡(1/ηI),log⁡(1/ζ),log⁡(1/ηS)=O(Λ). The exact choice ej=min⁡(ϕj/(2d),ηI/8) likewise has log⁡(1/ej)=O(Λ). The degree supplier with the stated least bounds gives Dj=O(d2jΛ), so log⁡Dj=O(Λ). Across both base lists, there are Q0=O(m2Λ) QPE simulator sites and total absolute time T0=O(κΛ). Hence the requested simulator tolerance ηS/(2max⁡(1,Q0)) has inverse logarithm O(Λ). The value budget can be met at ϵval≤min⁡{ηS/(2max⁡(1,T0)),dmin⁡j(ηI/(32Dj))2}; this sufficient requested bound also has inverse logarithm O(Λ). Actual fixed access must meet the requests or the constructor returns INVALID_ACCESS. Phase tolerance ej/100 and per-slot tolerance ηI/(8Nj) have inverse logarithm O(Λ) because the explicit stage has Nj=O(Dj+poly⁡(m,Λ)) slots. Smaller certified actual errors do not trigger additional precision requests. Thus an inverse stage has gap δj=ϕj/d and polynomial degree O(d2jΛ), and exactly that many signal calls plus one more phase slot by [F6]. The real-extraction, dilution and success-projector circuits are explicit. Gapped phase estimation uses the least admissible dyadic label size O(2j) and O(log⁡(1/ζ)) coherent repetitions. At each QPE power, the actual QA25 small-time-aware simulation has O(d∣t∣+log⁡(1/η)) signal cost, with a separately counted zero-signal branch for sufficiently small time; summing its dyadic evolution times gives O(d2j) and summing the additive precision term gives only additional logarithmic factors. Controlled/inverse calls and sparse block construction carry their actual costs. Thus the query-coordinate interval bound is H=O(d polylog⁡(dκ/ϵ,1/ρ)), with an additional O(log⁡(d+1)) factor only if the optional sorted-XOR sparse bridge is chosen. Under the explicit gate specialization in the Statement, the B and sparse-access calls, controlled/inverse forms, QA25 simulator, phase compiler, reflections, clock predicates, dilution rotations and final instrument have the stated uniform gate costs; substituting these bounds into the same interval list gives H=O(d polylog⁡(N,d,κ,1/ϵ,1/ρ)) for the gate coordinate. No bare matrix or arbitrary black-box unitary is assigned free access.

2.1F2F4step 1.1algebra

Put Si=∑j≤iΔjsj−1 and S=Sm. Expanding the recurrence and substituting qj telescopes the probability factors. The product loss in [F4], together with rj−1≥1/(16n), gives vi≤6nri/si Si. Also sj−1≤p+uj−1, where u is original unfinished mass. The first dyadic increment is at most Tav and later increments equal the preceding deadline, so Δjuj−1≤Tav. Thus by [F2], S≤Tmax⁡p+mTav≤12nHαp. Consequently the next unamplified sampler's cost bi=vi−1+Δi satisfies biqi≤10nSp≤128n3/2Hα. These estimates also hold at the initial interval with r0=s0=1 and v0=0.

3.1F1F2F3F4step 2.1algebra

Use confidence β=ρ/(16n) for each of at most n generic estimator invocations and relative error c=1/100. On the intersection of their joint accuracy-and-cost events, [F3] and step 2.1 bound the total quantum estimation cost by n⋅4160(r/c)⋅128n3/2Hα<220(r/c)n5/2Hα. The floors and both scheduler branches are valid by [F2]. The final production cost is at most 72n3/2Hα, since rm≤1 in the bound for vm.

4.1F1F3F5step 3.1algebra

The final lower-bound amplifier has p0=1/(18n), dyadic trial range M<418n<17n, and R≤1+ln⁡(4/ρ)/ln⁡(4/3). Its sampler/reflection budget is therefore at most 213Rn2Hα. The median repetition choice in [F3] implies R≤32r by comparing its defining geometric confidence inequality with (3/4)R≤ρ/4. The final cost is at most 218rn2Hα. All these costs fit strictly below the specified cap K=⌈230(r/c)Hαn4⌉. Thus on the good confidence event the resource-timeout branch is never reached, and on every transcript the primitive-cost budget is at most K.

5.1F1F2F3F5step 4.1algebra

The union bound for the estimator events is at most nβ≤ρ/16, including their joint cost failures. Conditional on the good construction transcript, [F5] fails with probability at most ρ/4. The final zero-work test has additional failure at most ρ/4096 by [F2]. Hence the finite solver succeeds with probability at least 1−5ρ/16−ρ/4096≥1−ρ. For a fixed good construction transcript, [F5] gives the same conditional good-state density operator as the actual sampler on every successful terminal amplification branch. Let g be its phase-fixed one-attempt good unit vector, to which [F2] applies. A unit ket on any such branch is cg with ∣c∣=1. Applying the actual internal uncompute and projecting work onto zero multiplies the resulting canonical system vector by the same c; normalization preserves this unit phase. Thus choosing the representative with this phase removed gives exactly the normalized vector estimate of [F2], and every other unit representative satisfies the stated bound after multiplication by a unit scalar. The external herald is recorded before uncomputing internal flag/bucket work. No relative phase between eigencomponents or coherent stages is changed. All numerical implementation errors used here are the deterministic vector bounds already allocated in [F1], so they are not omitted probabilistic failures.

6.1F1F2F3F6step 4.1step 5.1step 1.2algebra∎

Since n=O(1+log⁡κ), α≤8κ and r=O(1+log⁡((2+log⁡(1/pmin⁡))/ρ)), the cap in step 4.1 is O(dκpolylog⁡(dκ/ϵ,1/ρ)) in the query specialization, and has only the stated polynomial-logarithmic gate overhead. Fixing a constant ρ<1/3 gives the original source target. If a smaller support-gap promise 1/κ′ is supplied, run the same construction with that declared parameter and replace κ throughout. Output remains a quantum state. Classical polynomial/phase generation, exact algebraic comparisons, arithmetic bit implementation and compiler construction remain separately charged coordinates; this quantum gate/query result asserts no polylogarithmic total bit-time for them. The retained full Fourier-table and capped alternates preserve their actual costs and are not used to infer the efficient-mode bound.

5 · Examples, counterexamples and false statements

None yet.

Sources