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.

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

Quantum Sampling, Expectation, and Monte Carlo

1 · Prerequisites

2 · Summary

This page fixes a finite probability law, an exactly encoded bounded observable, and the success event for estimating its expectation. It specifies the coherent sampler as a supplied unitary interface with explicit inverse, controlled access, value computation, rotations, and cost, then proves its measurement law. The classical sample mean has variance at most (b−a)2/(4n) and the corresponding Chebyshev failure bound. The quantum bounded-mean estimator reduces the rescaled expectation to a good-state probability and consumes QA13 amplitude estimation. The variance-aware estimator uses a finite coarse centering step, positive/negative decomposition, dyadic bins, an explicit omitted-tail bound, one-sided concentration for the finite medians, certified rational logarithm cutoffs, and separately counted state copies and reflections. A uniform Boolean indicator is the counting special case; coherent preparation and ordinary sampling costs remain distinct.

3 · Logical flowchart

4 · Definitions, theorems and proofs

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

Finite expectation-estimation task

Definition

A finite expectation-estimation task consists of a nonempty finite set X, a probability law p:X→[0,1] with ∑x∈Xpx=1, and an exactly encoded real-valued function g:X→[a,b], where a≤b are finite rationals. Its target is μ:=Ep[g]=∑x∈Xpxg(x).

For rational parameters ε>0 and 0<δ<1, an (ε,δ) estimator is a randomized or quantum procedure that outputs a real number μ~ satisfying Pr⁡(∣μ~−μ∣≤ε)≥1−δ. The task specifies the target law and success event only. A particular procedure must state how it accesses samples or coherent state preparation and must charge those resources separately.

A value that approximates an underlying real-valued observable to error τ defines a different task with target Ep[g~]; any claim about Ep[g] must add the encoding error τ to its error budget.

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

One-sided concentration bound for independent median trials

Statement

Let R≥1 be an integer, let Z1,…,ZR be independent Bernoulli random variables on a finite probability space with E[Zi]≤p<1/2, and put S=∑i=1RZi. For every t≥0, Pr⁡(S−ES≥t)≤e−2t2/R. Consequently, let R be odd and let T1,…,TR be independent finite-valued real estimates on a finite probability space. If I⊆R is an interval and Pr⁡(Ti∈I)≥1−p for every i, then their median (the middle order statistic) lies in I except with probability at most exp⁡(−2R(1/2−p)2).

Facts & Assumptions

Given: A finite probability space, an integer R≥1, and an independent Bernoulli family Z1,…,ZR with means pi=EZi≤p<1/2. For the median consequence, also the independent finite-valued estimates T1,…,TR, the interval I, and Pr⁡(Ti∈I)≥1−p for each i.

[F1]

Bernoulli random variables and binomial random variables as sums of independent Bernoulli trials: a Bernoulli variable takes values 0,1 with probabilities 1−pi,pi.

[F2]

Independent random elements: mutual independence means the generated event sigma-algebras factor on finite intersections.

[F3]

Expectation factors over a finite product of mutually independent random variables: expectations of finite products of independent finite-valued real variables factor.

[F4]

Markov's inequality on a finite probability space: for nonnegative W and c>0, Pr⁡(W≥c)≤E[W]/c.

[F7]

The mean value theorem, as the case g(x)=x of Cauchy's: for f continuous on [a,b] with a<b and differentiable on (a,b) there is c∈(a,b) with f(b)−f(a)=f′(c)(b−a): if a function is continuous on [a,b] and differentiable on (a,b), then its endpoint increment is its derivative at some interior point times b−a.

[F8]

Expectation of a real random variable on a finite probability space: the expectation of a finite-valued variable is the finite weighted sum of its values, including the Bernoulli formula.

[F9]

Linearity, monotonicity, and the modulus bound for expectation: expectation is linear for the finite-valued real random variables below.

[F10]

A function differentiable at c is continuous at c: a function differentiable at a point is continuous there.

[F11]

Expectation agrees with the published finite weighted sum identifies general expectations of finite random variables on this probability space with the finite weighted sums in [F8].

Proof

1.1givenF1F5F6F8algebra

For one Bernoulli variable Zi, [F1] and [F8] give EZi=pi. Define Mi(λ)=E[exp⁡(λ(Zi−pi))]=exp⁡(−λpi)(1−pi+piexp⁡(λ))>0 by its two possible values and [F5], and put Gi(λ)=ln⁡Mi(λ). Set qi(λ)=piexp⁡(λ)/(1−pi+piexp⁡(λ))∈[0,1]. Differentiating by [F6] gives Gi(0)=Gi′(0)=0 and Gi′′(λ)=qi(λ)(1−qi(λ))≤1/4, including pi=0 and pi=1.

2.1step 1.1F5F6F7F10algebra

At λ=0 the desired bound is equality. For λ>0, put Hi(t)=Gi(t)−t2/8 on [0,λ]. By step 1.1, Hi′′(t)≤0. The functions Hi and Hi′ are continuous by [F10], so the hypotheses of [F7] apply. For any 0<v≤λ, [F7] applied to Hi′ on [0,v] gives Hi′(v)−Hi′(0)=Hi′′(c)v≤0 for some c∈(0,v); since Hi′(0)=0, this shows Hi′(v)≤0. Applying [F7] to Hi on [0,λ] then gives Hi(λ)−Hi(0)=Hi′(d)λ≤0 for some d∈(0,λ). As Hi(0)=0, Gi(λ)≤λ2/8. Therefore E[exp⁡(λ(Zi−pi))]≤exp⁡(λ2/8) for every λ≥0.

3.1givenF2F3F5F8F9F11step 2.1algebra

By [F11], the general expectations in [F3] and [F9] agree with the finite weighted sums in [F8]. Thus [F8]–[F9] give ES=∑ipi and S−ES=∑i(Zi−pi). For λ≥0, put Wi=exp⁡(λ(Zi−pi)). Since each Zi is finite-valued, every event defined by Wi is a union of level sets of Zi, so σ(Wi)⊆σ(Zi); the independence in [F2] therefore makes the Wi independent. The exponential addition law [F5] and finite product factorization [F3] now give E[exp⁡(λ(S−ES))]=∏iE[Wi]≤exp⁡(Rλ2/8) by step 2.1.

4.1givenF4step 3.1algebra

For t>0, choose λ=4t/R>0 and apply [F4] to the nonnegative variable eλ(S−ES) at threshold eλt. Step 3.1 gives Pr⁡(S−ES≥t)≤e−λt+Rλ2/8=e−2t2/R. For t=0, the probability is at most one, equal to the stated bound.

5.1givenF1F2F8F9F11step 4.1algebra∎

Let Yi indicate the event Ti∉I. Each Yi is Bernoulli with mean at most p by [F1], [F8], and the interval-success hypothesis. Each Yi is a function of the finite-valued Ti, so every event defined by Yi is a union of level sets of Ti; hence σ(Yi)⊆σ(Ti) and [F2] makes the Yi independent. By [F11], [F9] applies to the same finite weighted-sum expectations as [F8], so ES=∑iEYi≤pR. If the odd median is outside I, at least (R+1)/2 estimates lie on one side of I and fail, so S=∑iYi≥R/2 and S−ES≥R(1/2−p). Apply step 4.1 with this t to get the stated median bound.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Rational natural-logarithm enclosure search

Definition

Input. Rational numbers x>0 and τ>0. Output. A positive integer N and a rational interval [L,U].

Compute y=(x−1)/(x+1) and initialize N=1. At each iteration compute, by exact rational arithmetic, SN=2∑j=0N−1y2j+12j+1,TN=2∣y∣2N+1(2N+1)(1−y2). If TN≤τ, return N and [L,U]=[SN−TN,SN+TN]. Otherwise replace N by N+1 and repeat. Each comparison is an exact rational comparison. Arithmetic and integer bit costs are charged separately; no running-time bound is part of this definition.

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

A terminating rational enclosure for the natural logarithm

Statement

For a rational x>0, put y=(x−1)/(x+1). For each integer N≥1, define the rational partial sum and remainder bound SN(x):=2∑j=0N−1y2j+12j+1,TN(x):=2∣y∣2N+1(2N+1)(1−y2). Then ∣y∣<1 and ∣ln⁡x−SN(x)∣≤TN(x). For every rational tolerance τ>0, the algorithm Rational natural-logarithm enclosure search terminates using rational comparisons. It returns the certified interval [SN(x)−TN(x),SN(x)+TN(x)], whose width is at most 2τ and which contains ln⁡x.

Facts & Assumptions

Given: A rational x>0, an integer N≥1, and, for the termination claim, a rational tolerance τ>0.

[F1]

The natural logarithm as the inverse of the exponential function defines ln⁡ as the inverse of exp⁡ on (0,∞); The real exponential function and the number e by a power series gives exp⁡(0)=1.

[F2]

The exponential is positive and satisfies exp⁡(−x)=1/exp⁡(x): exp⁡(u)>0 and exp⁡(−u)=1/exp⁡(u) for every real u.

[F9]

Rational natural-logarithm enclosure search starts at N=1, tests the rational bound TN(x)≤τ, increments N upon failure, and returns [SN(x)−TN(x),SN(x)+TN(x)] upon success.

Proof

1.1givenalgebra

Since x+1>0, we have 1−y=2/(x+1)>0 and 1+y=2x/(x+1)>0. Hence −1<y<1, so the denominator 1−y2 in TN(x) is positive; direct algebra gives (1+y)/(1−y)=x.

1.2F1F3F4algebra

Fix s with 0≤s<1. On (−1,1), set H(u)=ln⁡((1+u)/(1−u)). The quotient and chain rules [F3]–[F4] give H′(u)=2(1−u)21−u1+u=21−u2 and H(0)=0.

2.1givenF5step 1.2algebra

Put PN(u)=2∑j=0N−1u2j+1/(2j+1). By [F5], PN′(u)=2∑j=0N−1u2j. The finite telescoping identity (1−u2)∑j=0N−1u2j=1−u2N therefore gives H′(u)−PN′(u)=2u2N1−u2 and H(0)−PN(0)=0.

3.1step 2.1F6

If s=0 then H(s)−PN(s)=0 directly. If 0<s<1, the derivative difference in step 2.1 is continuous on [0,s]. Applying [F6] to H−PN gives the exact remainder H(s)−PN(s)=∫0s2u2N1−u2 du.

4.1step 3.1F5F6F7algebra

If s=0, the remainder and the stated upper bound are both zero. For 0<s<1, at every 0≤u≤s we have 0≤u2N and 1−u2≥1−s2>0, so 0≤2u2N1−u2≤2u2N1−s2. By [F7] and [F6], 0≤H(s)−PN(s)≤∫0s2u2N1−s2 du=2s2N+1(2N+1)(1−s2), where the last equality follows by applying [F6] to the polynomial antiderivative.

5.1givenF1F2step 1.1step 4.1algebra

If y≥0, set s=y; step 1.1 gives ln⁡x=H(s) and SN(x)=PN(s), so step 4.1 is the required bound. If y<0, set s=−y. Then x=(1−s)/(1+s)=1/X for X=(1+s)/(1−s)>0. By [F1]–[F2], ln⁡(1/X)=−ln⁡X, while SN(x)=−PN(s). Thus the absolute error is the same as in the nonnegative case. These cases also include y=0, where the partial sum and logarithm are both zero.

6.1givenF8F9step 1.1step 5.1algebra∎

If ∣y∣=0, then TN(x)=0 for every N. Otherwise put r=∣y∣∈(0,1). By [F8], r2N+1→0, while (2N+1)(1−r2)≥1−r2>0; hence TN(x)→0. Given τ>0, some integer N therefore satisfies the rational comparison TN(x)≤τ. By [F9], the search reaches such an N after finitely many rational tests. Step 5.1 certifies the returned interval, and its width 2TN(x)≤2τ is the stated one.

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

Finite termination of the dyadic estimator parameter searches

Statement

Let a>0 and C>0 be rational and let k≥1 be an integer. Each of the following exact rational searches terminates:

  1. increase an integer j≥0 until 2ja≥1;
  2. after fixing k, increase an integer m≥0 until 22ma2≥Ck.

The first successful exponent is the least one satisfying its comparison. The second returns the least power of two M=2m with M2a2≥Ck.

Facts & Assumptions

Given: Positive rationals a,C and integer k≥1.

[F1]

Every complete ordered field is Archimedean: for every real x there is a natural number n with x<n.

[F2]

Bernoulli's inequality (1+x)n≥1+nx: if x≥−1 and n is natural, then (1+x)n≥1+nx.

Proof

1.1givenF1F2algebra

Apply [F1] to 1/a and obtain a natural n>1/a. Then [F2] at x=1 gives 2n=(1+1)n≥1+n>1/a, so 2na>1. Thus the first search has a successful exponent no larger than n.

1.2givenF1F2algebra

After k is fixed, apply [F1] to Ck/(2a2) and obtain a natural m>Ck/(2a2). By [F2] at exponent 2m, 22m=(1+1)2m≥1+2m>Ck/a2, hence (2m)2a2>Ck. Thus the second search has a successful exponent no larger than m.

2.1givenstep 1.1step 1.2construct∎

Each tested comparison is between rationals and is decided by finite integer arithmetic. Since step 1.1 or step 1.2 supplies a successful exponent, incrementing from zero reaches one after finitely many tests; returning at the first successful test returns the least such exponent.

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

Classical bounded-sample mean baseline

Statement

Let G be a finite real random variable taking values in a finite interval [a,b] with a≤b, and let X1,…,Xn be independent copies of G, with n≥1. For X‾n=n−1∑i=1nXi and μ=E[G], E[X‾n]=μ,Var⁡(X‾n)=Var⁡(G)n≤(b−a)24n. Consequently, for every ε>0, Pr⁡(∣X‾n−μ∣>ε)≤(b−a)24nε2. The procedure uses exactly n independent samples. If each draw and data load costs Cdraw and Cload, their total is n(Cdraw+Cload); arithmetic for the encoded values is an additional separately charged cost. When a=b, every sample equals μ=a and the failure probability is zero.

Facts & Assumptions

Given: A finite law, a finite random variable G with a≤G≤b, and independent copies X1,…,Xn with the same law as G.

[F1]

Finite expectation-estimation task defines the target as the finite weighted expectation μ=E[G].

[F2]

Expectation of a real random variable on a finite probability space: E[Y]=∑ω∈ΩY(ω)w(ω).

[F3]

Independent random elements: random variables are independent when their generated sigma-algebras are independent.

[F4]

Expectation factors over a finite product of mutually independent random variables: expectations factor for finite families of independent finite-valued real random variables.

[F5]

Moments, variance, and covariance on a probability space defines variance by E[(Y−EY)2] and covariance by E[(Y−EY)(Z−EZ)].

[F6]

Variance and covariance identities for random variables: Cov⁡(Y,Z)=E[YZ]−E[Y]E[Z] and variance is bilinear as covariance.

[F7]

Variance of a finite sum as the sum of all variances and covariances gives the variance of a finite sum as the sum of variances and twice the sum of pairwise covariances.

[F8]

Linearity, monotonicity, and the modulus bound for expectation gives linearity of expectation for integrable random variables.

[F9]

Chebyshev's inequality for random variables: Pr⁡(∣Y−EY∣≥t)≤Var⁡(Y)/t2 for t>0.

[F10]

Expectation of a nonnegative or integrable random variable defines expectation by integration and the positive-negative decomposition. The nonnegative integral agrees with the simple integral on simple functions and The integral of a nonnegative simple function evaluate a nonnegative simple function by its finite sum of values times level-set probabilities on any probability space.

Proof

1.1givenF1F2F8F10algebra

For any finite-valued real random variable Y on its given probability space, its positive and negative parts are nonnegative simple functions. By [F10], both have finite integrals, and subtraction gives E[Y]=∑t∈Y(Ω)tPr⁡(Y=t). Thus all finite-valued variables below are integrable and square-integrable, and their general expectations equal their finite-law weighted sums, even when the underlying space is infinite. Since every Xi has the law of G, [F1], [F2], and [F10] identify E[Xi] with the same finite weighted sum μ. By [F8], E[X‾n]=n−1∑iE[Xi]=μ.

1.2givenF3F4F5F6F10algebra

If i≠j, [F3]–[F4] give E[XiXj]=E[Xi]E[Xj] for the general expectations; [F10] identifies each with the corresponding finite weighted sum. By [F5]–[F6], Cov⁡(Xi,Xj)=0.

1.3givenF5F7F10algebra

Apply [F7] to the finite sum; [F10] identifies the expectations defining all variances and covariances with their finite weighted sums. Since each Xi has the law of G, Var⁡(X‾n)=n−2∑iVar⁡(Xi)=Var⁡(G)/n.

1.4givenF2F5F8F10algebra

Put c=(a+b)/2. Pointwise, ∣G−c∣≤(b−a)/2, so [F2] and [F10] give E[(G−c)2]≤(b−a)2/4 for the finite weighted-sum expectation. Expanding the square and using [F5], [F8], and [F10] yields E[(G−c)2]=Var⁡(G)+(μ−c)2; hence Var⁡(G)≤(b−a)2/4. This also covers a=b, when both sides are zero.

2.1step 1.3step 1.4algebra

Substituting step 1.4 into step 1.3 proves the stated variance bound.

3.1givenF9F10step 1.1step 2.1algebra

For ε>0, [F10] identifies the expectation and variance of the finite random variable X‾n with those used by [F9]. Thus [F9] applied to X‾n and step 1.1 bounds the probability of ∣X‾n−μ∣≥ε by Var⁡(X‾n)/ε2. The event with strict inequality is a subset, so step 2.1 gives the displayed failure bound.

4.1givenconstructalgebra∎

Exactly n independent draws are taken by hypothesis; summing their declared draw and load costs gives n(Cdraw+Cload). The n−1 additions and one division used for the mean are encoded arithmetic operations and remain separate costs.

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

Uniform counting is finite indicator expectation

Statement

Let X be a finite nonempty set with px=1/∣X∣ for each x, let S⊆X, and define g(x)=1 for x∈S and g(x)=0 otherwise. Then the expectation task for (X,p,g) has target μ=E[g]=∣S∣∣X∣.

Facts & Assumptions

Given: The finite nonempty set X, its uniform probability law, and the indicator function g=1S of a subset S.

[F1]

Finite expectation-estimation task: the target is the weighted finite sum ∑x∈Xpxg(x).

[F2]

Finite probability spaces, outcome weights, events, and event probabilities: an event probability is the sum of the weights of its outcomes.

[F3]

Expectation of a real random variable on a finite probability space: expectation is the finite weighted sum over outcomes.

Proof

1.1givenF1algebra

For the uniform law, px=1/∣X∣ for every x∈X. By [F1], μ=∑x∈X∣X∣−11S(x).

2.1givenF2F3step 1.1algebra∎

The summand is ∣X∣−1 exactly for x∈S and zero otherwise. The sum therefore has ∣S∣ equal terms, so μ=∣S∣/∣X∣. By [F2]–[F3] this is also Pr⁡(S).

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

Coherent finite sampler and observable value

Definition

Let X be a finite nonempty set with probability law px≥0, ∑x∈Xpx=1, and let the value register contain an exact finite encoding of a real function g:X→[a,b], where a≤b are finite rationals. A coherent finite sampler for (X,p,g) is an explicitly supplied finite-dimensional unitary V on ordered sample, value, and work registers such that V∣0⟩=∑x∈Xpx ∣x⟩∣g(x)⟩∣wx⟩, where the sample labels ∣x⟩ are distinct computational-basis vectors and each work state ∣wx⟩ has norm one. Zero-probability labels may occur and need no special branch. The registers and their order use Finite registers and their ordered computational bases and Ordered tensor registers, their inner product, and wire permutations; each output is a pure state in the sense of Pure state and ray. The separate item Measurement law of a coherent sampler verifies the induced measurement law.

The access contract lists the actual circuits or oracle interfaces for V, V†, controlled V and controlled V†, value decoding, reversible arithmetic, any coherent predicate and controlled rotation, and the reflections used by the chosen estimator. Their availability is explicit under Controlled Unitary Access and Inverse Unitary Access. A forward unitary alone does not grant an inverse or a controlled call.

The resource record follows Circuit-family and computation cost model: charge state preparation, inverse and controlled access, data loading, value comparison and arithmetic, controlled-rotation synthesis and precision, good-state and initial-state reflections, gates, width, ancillas, and classical postprocessing separately. The state-preparation circuit and its costs are inputs; a state description is not a free QRAM or preparation oracle.

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

Measurement law of a coherent sampler

Statement

For a coherent sampler V with output state ∣ψ⟩=∑xpx∣x⟩∣g(x)⟩∣wx⟩ as in Coherent finite sampler and observable value, projective measurement of the sample register returns x with probability px. If the value register is measured too, the pair (x,g(x)) has the same probability. The work register is not required to be measured, and work states for different labels need not be orthogonal.

Facts & Assumptions

Given: The coherent sampler, its finite product registers, and the projective computational-basis measurement of the sample register.

[F1]

Coherent finite sampler and observable value: the output is the displayed finite sum with px≥0, ∑xpx=1, and unit work vectors.

[F2]

Finite registers and their ordered computational bases and The computational basis is orthonormal: distinct sample labels are orthogonal computational-basis vectors.

[F3]

Ordered tensor registers, their inner product, and wire permutations: the product register has the factorwise inner product and its ordered computational product basis.

[F4]

Finite projective measurements: a projective measurement assigns weight tr⁡(ρPx) to its projection Px.

[F5]

A unit-vector outer product is a density operator: for a unit vector ψ, ∣ψ⟩⟨ψ∣ is a density operator.

[F6]

Dirac Notation Conversion and Dirac Notation Coordinate Identity: ∣u⟩⟨v∣ has matrix [u][v]† in an ordered orthonormal basis.

[F7]
[F8]

For A∈Mm×n(F) and B∈Mn×m(F), tr⁡(AB)=tr⁡(BA): tr⁡(AB)=tr⁡(BA) for compatible finite-dimensional maps.

Proof

1.1givenF1F4F5

Since V is unitary and ∣0⟩ is a unit vector, ∣ψ⟩=V∣0⟩ has norm one. Thus [F5] supplies the density operator ρ=∣ψ⟩⟨ψ∣ required by [F4].

1.2F1F2F3algebra

For each sample label x, let Px=∣x⟩⟨x∣⊗Ivalue⊗Iwork. The distinct orthonormal sample labels in [F2] make these mutually orthogonal projections. If the labels do not exhaust the sample basis, include the residual projection P⊥=I−∑x∈XPx; it satisfies P⊥∣ψ⟩=0 by [F1], so its measurement probability is zero. By [F3], the projection of ∣ψ⟩ is Px∣ψ⟩=px∣x⟩∣g(x)⟩∣wx⟩, so ∥Pxψ∥2=px.

2.1F4F6F7F8step 1.2algebra

By cyclicity [F8], tr⁡(ρPx)=tr⁡(Px∣ψ⟩⟨ψ∣). The rank-one map here is ∣Pxψ⟩⟨ψ∣; [F6]–[F7] make its trace ⟨Pxψ,ψ⟩root. Since Px is an orthogonal projection, self-adjointness gives ⟨Pxψ,(I−Px)ψ⟩=⟨ψ,Px(I−Px)ψ⟩=0. Thus ⟨Pxψ,ψ⟩=∥Pxψ∥2=px by step 1.2. The measurement definition [F4] therefore assigns probability px.

3.1F1F2F3step 1.2algebra∎

Measuring value as well refines the event x by a computational-basis value outcome. The sample component ∣x⟩ is orthogonal to every other sample label, and its value register is the single basis vector ∣g(x)⟩; summing over work outcomes leaves squared norm px∥wx∥2=px. Distinct work states are not used to separate sample labels.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Quantum counting as an expectation special case

Definition

Input. A Boolean domain X={0,1}n with N=2n, a predicate f:X→{0,1}, a phase-register size M=2m for an integer m≥2 (so M≥4), and the uniform coherent access and controlled membership reflection required by Quantum counting by uniform-state amplitude estimation. Let S={x:f(x)=1}.

Use the unchanged QA13 counting estimator Quantum counting by uniform-state amplitude estimation with this M and its supplied access model, and return its exact algebraic fraction estimate μ~=t~/N=sin⁡2(πy/M) for the expectation task. Its real-valued count estimate t~=Nμ~ may also be reported, with count and expectation outputs explicitly distinguished. Do not round to an integer unless that additional postprocessing and its cost are explicitly requested. By Uniform counting is finite indicator expectation, this is the QA29 expectation task for the uniform law and observable g=1S; the applicable count guarantee is Quantum counting error and boundary cases, whose phase-size hypothesis M≥4 is met. Divide its count-error radius by N for the expectation-error radius, with the same success event and probability. This item defines no second amplitude-estimation or counting routine.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Amplitude-estimation expectation estimator

Definition

Input. A finite expectation-estimation task with an exact encoded observable g:X→[a,b], a coherent sampler V for its law, rational target ε>0, and rational failure probability 0<δ<1. For a<b, require ε≤b−a. The supplied access model must include every forward, inverse, controlled, value, predicate, and reflection operation that the chosen QA13 amplitude-estimation circuit invokes.

If a=b, return a. Otherwise compute the exact affine value q(x)=g(x)−ab−a∈[0,1]. Append a good flag to the coherent sampler. Reversibly compute q(x) in the declared value workspace, apply the supplied one-qubit rotation ∣0⟩⟼1−q(x)∣0⟩+q(x)∣1⟩ controlled by the sample/value registers, and uncompute all scratch used only for q. Let Aq denote the resulting state-preparation unitary, including V and the controlled rotation; let Pgood project onto flag ∣1⟩. Run the unchanged median-confidence estimator Median confidence amplification for amplitude estimation on (Aq,Pgood) with amplitude tolerance η=ε/(b−a) and failure probability δ, and call its estimate q~. Return μ~=a+(b−a)q~.

For a=b, the exact-return branch has no quantum call. When a<b, the input is a costed finite circuit/oracle description. Charge each use of Aq, Aq†, controlled versions, the good and initial-state reflections, value decoding, reversible arithmetic and uncomputation, the controlled rotation and its precision, phase estimation, state preparation, gates, width, ancillas, and classical output processing according to Circuit-family and computation cost model. No operation is free because it is described by the law p or observable g.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Variance-aware quantum Monte Carlo

Definition

Input. A coherent finite sampler V whose decoded real output v has finite range, a known rational upper bound σ≥0 with Var⁡(v)≤σ2, rational target ε>0, and rational desired failure probability 0<ρ<1. All sample, value, inverse, controlled, predicate, and rotation circuits are explicit inputs with separately recorded costs. Measurement law of a coherent sampler identifies the distribution of each measured output with the sampler law. Every observable supplied to PositiveMean⁡ is computed on fresh executions of V using its explicitly supplied, costed value, predicate, rotation, inverse, and controlled operations. For an observable depending on a previously measured classical value, the input supplies the corresponding circuits for each admissible value and charges their selection or computation; the measured value is held fixed while those circuits are used.

If σ=0, measure one fresh output and return it. Otherwise set ε′=min⁡(ε,σ/2) and reserve ε0=7ε′/8 for the ideal estimator. Define the following finite routine for any nonnegative finite-valued output h and rational parameters a,ρ1 with 0<a<1/2 and 0<ρ1<1:

  1. Let k be the least nonnegative integer with 2ka≥1, and let M=2m be the least power of two, with m≥0 an integer, for which M2a2≥106k. Their exact rational searches terminate by Finite termination of the dyadic estimator parameter searches. Moreover k≥2 because 2a<1; since Ma≥0 and (Ma)2≥106k, Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0} and Squaring is monotone on the nonnegatives give Ma≥1000k, hence M≥1000k/a>2000.
  2. For ℓ=0, define h0=h1[0,1). For 1≤ℓ≤k, define hℓ=2−ℓh1[2ℓ−1,2ℓ). Each hℓ lies in [0,1).
  3. Since M>2000, the target ηM=88/(7M) satisfies 0<ηM<1 and M≥4. For each ℓ=0,…,k, run Amplitude-estimation expectation estimator on hℓ over [0,1] with target ηM and failure probability 1/[10(k+1)]. This selects phase-register size exactly M under the current QA13 interface. Call the result uℓ and form P(h)=u0+∑ℓ=1k2ℓuℓ.
  4. Repeat this whole binned procedure an odd number R1 of fresh independent circuit executions, as required by Quantum query algorithm, where R1 is the least odd positive integer at least ⌈2U1/(3/10)2⌉+1. Here U1 is the upper endpoint of the certified logarithm interval for ln⁡(1/ρ1) from A terminating rational enclosure for the natural logarithm, computed with interval width at most 1/4. Return the median. This defines PositiveMean⁡(h,a,ρ1) for 0<ρ1<1.

For one outer trial, measure one fresh sampler output v0 and set m=v0/σ. Holding this coarse value fixed, let Y=v1/σ be the normalized output of a new sampler execution independent of the coarse measurement and define Bm(Y)=Y−m,h−,m(Y)=(−Bm(Y))1Bm(Y)<0/4,h+,m(Y)=Bm(Y)1Bm(Y)≥0/4. Run PositiveMean⁡ separately on h−,m and h+,m with a=ε0/(32σ) and ρ1=1/9, using fresh sampler executions independent of the coarse measurement and of the other call, conditional on the fixed m. If the results are u−,u+, return σ(m−4u−+4u+). Count the coarse state preparation and all fresh preparations used by both PositiveMean⁡ calls in the total preparation count; every controlled or inverse call remains separately charged. Let U0 be the upper endpoint of the certified logarithm interval for ln⁡(1/ρ) from A terminating rational enclosure for the natural logarithm, computed with interval width at most 1/4. Repeat the outer trial an odd number R0 of fresh independent circuit executions, as required by Quantum query algorithm, where R0 is the least odd positive integer at least ⌈18U0⌉+1, and output the median.

Here ln⁡ is the natural logarithm from The natural logarithm as the inverse of the exponential function. For each logarithm input x=1/ρ1 or x=1/ρ, its rational subroutine runs Rational natural-logarithm enclosure search on (x,1/8); A terminating rational enclosure for the natural logarithm certifies tail at most 1/8 and interval width at most 1/4; every ceiling uses the interval's upper endpoint. The procedure is a finite sequence of operations in the supplied exact-access model, and the accuracy theorem assumes exact value, predicate, rotation, and reflection operations. It makes no guarantee for approximate replacements: any finite-gate implementation needs a separate certified error analysis that transfers both output accuracy and success probability, with compilation, gate, precision, bit, and ancilla costs recorded. No state reflection or value-loading operation is free.

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

Quantum bounded-expectation guarantee and query cost

Statement

Let g:X→[a,b] be exactly encoded with a≤b, let V be the coherent sampler of Coherent finite sampler and observable value, and let μ=∑xpxg(x). If a=b, the algorithm Amplitude-estimation expectation estimator returns a=μ exactly. If a<b, then for rational 0<ε≤b−a and 0<δ<1 it returns μ~ with ∣μ~−μ∣≤ε with probability at least 1−δ. Writing q=(μ−a)/(b−a) and M for its QA13 phase-register size, the median output also obeys ∣μ~−μ∣≤(b−a)(2πq(1−q)M+π2M2) with probability at least 1−δ in either declared QA13 access mode. For a<b, in repeated controlled-Q access it uses exactly r(M−1) controlled-Grover calls, where M and r are the current QA13 median-interface parameters. In this mode its controlled-sampler/reflection query count is O((b−a)ε−1(1+ln⁡(1/δ))) for all 0<δ<1, and O((b−a)ε−1ln⁡(1/δ)) when 0<δ≤1/2. If a=b, the algorithm returns a exactly with no quantum query.

For a<b, in supplied controlled-power access it instead uses exactly rm controlled-power queries, where M=2m; sum their separately declared costs over all r runs. No M−1 constituent-call expansion is inferred for a supplied power.

The query bound is an oracle statement. Every controlled or inverse sampler call, good-state reflection, initial-state reflection, rotation, arithmetic operation, state preparation, and classical order-statistic computation retains its separately supplied cost.

Facts & Assumptions

Given: The finite coherent sampler, exact finite value encoding, the bounded interval [a,b], the parameters ε,δ in the Statement, and either declared QA13 access mode. The controlled-sampler/reflection bound assumes repeated controlled-Q access.

[F1]

Coherent finite sampler and observable value supplies V∣0⟩=∑xpx∣x⟩∣g(x)⟩∣wx⟩ with unit work vectors; Measurement law of a coherent sampler proves sample outcome probability px.

[F2]

Amplitude-estimation expectation estimator computes q(x)=(g(x)−a)/(b−a), rotates a flag with good probability q(x), runs the QA13 median estimator, and returns a+(b−a)q~.

[F3]

Amplitude-estimation additive error and success probability: for a single QFT estimate and M≥4, ∣q~−q∣≤2πq(1−q)/M+π2/M2 with probability at least 8/π2.

[F4]

Median confidence amplification for amplitude estimation chooses the least power of two M≥88/(7η) for target η and the least positive odd r satisfying 2r≥(2/δ)8, then returns the median of r fresh runs.

[F5]

Explicit median confidence guarantee for amplitude estimation states that this median has additive error at most η with probability at least 1−δ.

[F6]

In repeated controlled-Q access, Median amplitude-estimation query cost gives exactly r(M−1) controlled-Q calls and its stated logarithmic query bounds. The median threshold also gives M<176/(7η).

[F7]

Chernoff bound for independent bernoulli trials gives Pr⁡(∣S−ES∣≥u)≤2e−2u2/r for a sum of r independent Bernoulli indicators.

[F8]

Rational bounds for pi used in finite schedules gives π<22/7 and 8/π2>98/121.

[F9]

The natural logarithm as the inverse of the exponential function defines the natural logarithm, and The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t gives ln⁡2=∫12dt/t, hence 0<ln⁡2<1.

[F10]

Controlled Unitary Access and Inverse Unitary Access keep controlled and inverse calls explicit; Circuit-family and computation cost model separates oracle, gate, width, precision, and classical bit costs. Quantum query algorithm specifies fresh independent executions.

[F11]

Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm gives strict increase, ln⁡(xy)=ln⁡x+ln⁡y and ln⁡(1/x)=−ln⁡x for positive inputs. Iterating the product identity gives ln⁡(xn)=nln⁡x for a positive integer n. The natural logarithm as the inverse of the exponential function gives ln⁡(exp⁡u)=u.

[F12]

Amplitude-estimation query and precision complexity gives exactly m supplied controlled-power queries per QFT run at M=2m, with their separately declared costs.

Proof

1.1givenF1F2algebra

Since q(x)=(g(x)−a)/(b−a), the interval promise gives q(x)∈[0,1]. By [F1]–[F2], the good-flag probability after the controlled rotation is ∑xpxq(x)=(∑xpxg(x)−a∑xpx)/(b−a)=(μ−a)/(b−a)=q.

1.2givenF3F4

For one QAE run, [F3] gives the stated probability-error radius E=2πq(1−q)/M+π2/M2 with success at least 8/π2. Since fresh runs in [F4] are independent, if the median is outside [q−E,q+E], at least (r+1)/2 of their failure indicators are one.

1.3givenF3F4F6F10F12algebra

Suppose a<b. In repeated controlled-Q access, [F4] and [F6] give exactly r(M−1) controlled-Grover calls, M<176/(7η), and the stated logarithmic query bounds. Substitute η=ε/(b−a). In supplied controlled-power access, [F4] and [F12] give r runs of m power queries, hence exactly rm such queries with their declared costs summed. Neither access choice changes the ideal QFT output law in [F3]. The separate input-access costs in [F10] are not converted into gates without the supplied implementations.

2.1givenF7F8step 1.2algebra

Set p0=98/121. By [F8], each failure indicator has mean at most 1−p0. If S is their sum, the median-failure event entails S−ES≥r(p0−1/2). Applying [F7] to this containing event bounds its probability by 2e−cr, where c=2(75/242)2=5625/29282 and 8c>1.

3.1givenF4F9F11step 2.1algebra

Put L=ln⁡(2/δ)>0. Taking logarithms of the positive threshold 2r≥(2/δ)8 in [F4] and applying the product law repeatedly as in [F11] gives rln⁡2≥8L. Because 0<ln⁡2<1 by [F9], r>8L, and 8c>1 gives cr>L. By [F11], ln⁡(δ/2)=−L and ln⁡(e−cr)=−cr<−L, so strict increase implies 2e−cr<δ. Therefore the median error radius is at most E with probability at least 1−δ. The same event implies error at most η whenever M≥88/(7η) and 0<η≤1, because q(1−q)≤1/2, π/M≤η/4, and π2/M2≤η2/16≤η/16.

4.1givenF2F5step 3.1algebra

For the algorithm choose η=ε/(b−a)≤1. By [F2], ∣μ~−μ∣=(b−a)∣q~−q∣. The median guarantee [F5] gives the requested additive error; step 3.1 supplies the stronger radius, and multiplication by b−a gives the Statement.

5.1givenF1algebra∎

If a=b, the value is constant g(x)=a for every x, so μ=a by the probability normalization and the exact-return branch has zero error and zero quantum calls.

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

Dyadic positive-mean estimator under an L2 bound

Statement

Let h be a nonnegative finite-valued output of a coherent sampler, s=∥h∥2=(E[h2])1/2, and let a,ρ1 be rational with 0<a<1/2 and 0<ρ1<1. Let PositiveMean⁡(h,a,ρ1) be the subroutine defined in Variance-aware quantum Monte Carlo. Its output u satisfies ∣u−E[h]∣≤a(1+s)2 with probability at least 1−ρ1. For k=⌈log⁡2(1/a)⌉, its calls use O(kln⁡(k+1)(1+ln⁡(1/ρ1))) prepared output-state copies and O(a−1k3/2ln⁡(k+1)(1+ln⁡(1/ρ1))) uses of the supplied state reflection when its binned QAE calls use repeated controlled-Q access. The accuracy and prepared-copy bounds also hold in supplied controlled-power access; in that mode sum the separately declared power-query costs rather than infer this reflection count. All input access, band comparison, value arithmetic, controlled rotation, and finite-precision costs remain separately charged.

Facts & Assumptions

Given: The finite-valued nonnegative sampler output h, rational a,ρ1 with 0<a<1/2, 0<ρ1<1, and the subroutine in Variance-aware quantum Monte Carlo. For the state-reflection count use the repeated controlled-Q implementation of its binned QAE calls; accuracy and the prepared-copy bound permit either access mode.

[F1]

Variance-aware quantum Monte Carlo defines k, M, the bands [0,1) and [2ℓ−1,2ℓ), their scaled observables, and the median repetitions.

[F2]

Quantum bounded-expectation guarantee and query cost: for an observable w∈[0,1] of mean q, a phase register M gives error radius 2πq(1−q)/M+π2/M2 at the stated confidence, and each QAE run uses M−1 controlled-Grover calls in repeated controlled-Q access, or m separately priced supplied-power queries when M=2m.

[F3]

Amplitude-estimation expectation estimator lets the call in [F2] select exactly the chosen M by setting target ηM=88/(7M).

[F4]

One-sided concentration bound for independent median trials: a median of R independent trials with failure probability at most p<1/2 fails with probability at most e−2R(1/2−p)2; Quantum query algorithm specifies fresh independent executions.

[F5]

Coherent finite sampler and observable value requires the sampler and inverse, value, comparator, rotation, and reflection implementations to be supplied and charged separately.

[F6]

Holder's inequality for random variables with exponents 2,2 gives E[∣XY∣]≤(E[X2])1/2(E[Y2])1/2.

[F7]

Expectation of a real random variable on a finite probability space: expectation is the finite weighted sum for the sampler law; in particular E[1E]=Pr⁡(E).

[F8]

The natural logarithm as the inverse of the exponential function fixes the natural logarithm used to choose the finite repetition count.

[F10]

A terminating rational enclosure for the natural logarithm returns an interval of width at most 1/4 containing ln⁡x for every positive rational x; its upper endpoint U satisfies ln⁡x≤U≤ln⁡x+1/4, and its loop terminates.

[F11]

Expectation agrees with the published finite weighted sum identifies the general expectations used in [F6] with the finite weighted sums in [F7].

Proof

1.1givenF1F7algebra

The intervals [0,1),[1,2),…,[2k−1,2k) are disjoint and cover [0,2k). Write hℓ for the scaled band output in [F1], qℓ=E[hℓ], and T=E[h1h≥2k]. By [F7] and finite-sum additivity, E[h]=q0+∑ℓ=1k2ℓqℓ+T. Since h≥2k on the tail, 0≤T≤2−kE[h2]=s2/2k≤as2.

1.2givenF2F3step 1.1algebra

By [F2]–[F3], the ℓth estimate has error at most 2πqℓ(1−qℓ)/M+π2/M2 except with probability 1/[10(k+1)]. A union bound over k+1 bands makes all estimates satisfy these bounds with probability at least 9/10. On that event, the deterministic estimation error is at most 2πM∑ℓ=0k2ℓqℓ+π2M2∑ℓ=0k2ℓ+T.

1.3givenF1F2F3F10algebra

The least-dyadic choice in [F1] gives 1000k/a≤M<2000k/a, since this positive threshold exceeds 2000. Each binned call has O(1+ln⁡(k+1)) median repetitions. In repeated controlled-Q access it has M−1=O(k/a) controlled-Grover calls per repetition by [F1]–[F3]; each includes one supplied state reflection. There are k+1 bins. The outer R1 repetitions are O(1+ln⁡(1/ρ1)) because [F10] makes U1≤ln⁡(1/ρ1)+1/4. Each repetition prepares one fresh state in either access mode. Therefore the total state-copy count is O(kln⁡(k+1)(1+ln⁡(1/ρ1))), and in repeated access the total reflection count is O(a−1k3/2ln⁡(k+1)(1+ln⁡(1/ρ1))). In supplied-power access each repetition instead makes m power queries, whose actual declared prices are summed; no reflection expansion is assumed.

2.1step 1.2F6F7F11algebra

By [F11], the general expectations in the Hölder application [F6] equal their finite weighted-sum values in [F7]. For the lowest band, [F6] with X=h and Y=1h<1 gives q0=E[h1h<1]≤s, since E[Y2]=Pr⁡(h<1)≤1 by [F7]; hence q0≤s≤1+s. For ℓ≥1, h≥2ℓ−1 on its band, so (2ℓqℓ)2=2ℓE[h1band]≤2E[h21band]. Finite Cauchy–Schwarz on the k band terms gives ∑ℓ=1k2ℓqℓ≤2k s, because the bands are disjoint. Thus ∑ℓ=0k2ℓqℓ≤(1+2k)(1+s).

3.1givenF1F9step 1.1step 1.2step 2.1algebra

The parameter choice in [F1] gives M2a2≥106k with Ma≥0, so [F9] implies M≥1000k/a; also k≥2 because 2a<1, and minimality gives 2k−1a<1, hence 2k<2/a. Thus 1+2k≤(1+2)k. By [F9], 2π(1+2)/1000<176/7000<0.026 and 4π2/(106k)<0.00004. Thus the first error term in step 1.2 is less than 0.026a(1+s), and the second less than 0.00004a. Together with T≤as2 from step 1.1, their sum is at most a(1+s)2, since 0.026(1+s)+0.00004+s2≤(1+s)2 for s≥0.

4.1givenF1F4F8F10step 1.2step 3.1algebra

A single binned execution succeeds with probability at least 9/10 by step 1.2, hence at least 4/5, and has the stated error by step 3.1. For its median over R1 independent executions, a failure requires at least half the runs to fail; their failure probability is at most 1/5, so the deviation from its mean is at least 3R1/10. By [F4] and the chosen R1≥2ln⁡(1/ρ1)/(3/10)2, this probability is at most exp⁡(−2R1(3/10)2)≤ρ1: the algorithm uses R1≥⌈2U1/(3/10)2⌉+1 and [F10] gives U1≥ln⁡(1/ρ1). This proves the confidence claim.

5.1F5step 1.3∎

The reflection count is an oracle coordinate only. By [F5], sampler preparation/inverse, controlled access, data loading, band comparison, value arithmetic, and rotation compilation are additional declared costs.

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

Variance-aware quantum Monte Carlo guarantee

Statement

Let v be the finite-valued real output of a coherent sampler with Var⁡(v)≤σ2 for a known rational σ≥0, and let rational ε>0. For each rational 0<ρ<1, the algorithm Variance-aware quantum Monte Carlo returns μ~ with ∣μ~−E[v]∣≤ε with probability at least 1−ρ. If σ=0, it returns the exact mean after one output preparation. For σ>0, put z=σ/ε and L=max⁡(2,z). In the exact coherent-access model, its resource counts are O ⁣((1+ln⁡(1/ρ))ln⁡L ln⁡ln⁡(ee+L)) output-state preparations and O ⁣((1+ln⁡(1/ρ))L(ln⁡L)3/2ln⁡ln⁡(ee+L)) uses of the supplied state reflection in repeated controlled-Q access, up to universal constants. Accuracy and the preparation bound hold in either declared access mode; in supplied controlled-power access sum the separately declared power costs instead of applying this reflection bound. Each state reflection is implemented through the supplied sampler and its inverse; these bounds do not turn variance alone into coherent access. A finite-gate approximation needs a separate certified error analysis before it can inherit this theorem.

Facts & Assumptions

Given: The finite coherent sampler, variance promise Var⁡(v)≤σ2, rational parameters ε>0 and 0<ρ<1, and the exact finite procedure in Variance-aware quantum Monte Carlo.

[F1]

Moments, variance, and covariance on a probability space defines Var⁡(Y)=E[(Y−EY)2] for square-integrable real Y.

[F2]

Chebyshev's inequality for random variables bounds Pr⁡(∣Y−EY∣≥t) by Var⁡(Y)/t2.

[F3]

Linearity, monotonicity, and the modulus bound for expectation gives linearity for the finite integrable variables used below.

[F4]

Dyadic positive-mean estimator under an L2 bound: for nonnegative finite-valued h, PositiveMean⁡(h,a,ρ1) returns u with ∣u−Eh∣≤a(1+∥h∥2)2 with probability at least 1−ρ1, and has the prepared-copy bound in either access mode and the state-reflection bound in repeated controlled-Q access proved there.

[F5]

Variance-aware quantum Monte Carlo sets ε′=min⁡(ε,σ/2), draws a coarse sample, then uses fresh sampler executions for the positive and negative parts of B/4 with the coarse value fixed, and takes the prescribed outer median.

[F6]

One-sided concentration bound for independent median trials proves the one-sided additive tail bound for independent Bernoulli failures; Quantum query algorithm specifies fresh independent executions.

[F7]

The natural logarithm as the inverse of the exponential function defines the natural logarithm used in the confidence schedule and the positive-cutoff resource bounds.

[F8]

Expectation of a real random variable on a finite probability space: for a finite law, expectation is its finite weighted sum, so a sum of nonnegative terms can equal zero only if each positive-weight term is zero.

[F9]

A terminating rational enclosure for the natural logarithm returns an interval of width at most 1/4 containing ln⁡x for each positive rational x; its upper endpoint satisfies ln⁡x≤U≤ln⁡x+1/4 and is computed by a terminating rational loop.

[F10]

Measurement law of a coherent sampler identifies each measured output with the finite sampler law.

[F11]

Expectation agrees with the published finite weighted sum identifies the general expectations in [F1]–[F3] with the finite weighted sums in [F8].

[F12]

Amplitude-estimation expectation estimator forms the amplitude-estimation state preparation by appending the observable-controlled rotation to the supplied sampler. Amplitude estimation and counting input/output contract defines the Grover iterate from that complete state-preparation unitary, so its initial-state reflection is about the value-rotated preparation.

Proof

1.1givenF1F8F10F11constructalgebra

Suppose σ=0. By [F10], the fresh measured output has the finite sampler law; [F11] identifies the general expectation in [F1] with its finite weighted sum. Then E[(v−Ev)2]=0. By [F8], this finite expectation is a sum of nonnegative terms, so every outcome of positive probability has v=Ev. A fresh measurement therefore returns the mean with probability one.

1.2givenF1F2F5F10F11algebra

Now suppose σ>0 and write Y=v/σ, μ′=E[Y]. By [F10]–[F11], the measured coarse value and the general moments have the finite laws and expectations used in [F1]–[F2]. Scaling gives Var⁡(Y)≤1. In one trial the algorithm observes m from the same law as Y; [F2] gives Pr⁡(∣m−μ′∣≥3)≤1/9.

1.3step 1.2F1F5F10F11algebra

Condition on the fixed coarse value m and let Y denote the normalized fresh output specified by [F5]. On the event ∣m−μ′∣<3, the centered value Bm(Y)=Y−m satisfies ∥Bm(Y)/4∥22=E[(Y−m)2∣m]16=Var⁡(Y)+(μ′−m)216<1016<1. The identity follows by writing Y−m=(Y−μ′)+(μ′−m) and using the conditional mean E[Y∣m]=μ′ to remove the cross term; the fresh draw is independent of m. By [F10]–[F11], these conditional expectations are finite weighted sums for the conditional sampler law. Since 0≤h±,m≤∣Bm∣/4, both positive parts also have conditional L2 norm less than one.

2.1givenF3F4F5F11step 1.3algebra

Here ε0=7ε′/8 and a=ε0/(32σ)≤1/64. Condition on any good coarse value m. On the good coarse-sample event, [F4] applied to both fresh conditional outputs with ρ1=1/9 yields ∣u±−E[h±,m(Y)∣m]∣<4a except with conditional probability at most 2/9. By finite-sum linearity, identified with general linearity by [F11] and [F3], E[Y∣m]=m+4(E[h+,m(Y)∣m]−E[h−,m(Y)∣m]). Thus the normalized trial estimate m+4(u+−u−) differs from E[Y]=μ′ by less than 4(4a+4a)=32a=ε0/σ. Multiplying by σ gives error less than ε0≤ε′≤ε in the exact coherent-access model.

3.1step 1.2step 2.1algebra

The coarse-sample failure probability is at most 1/9, and conditional on any good coarse value the two positive-estimation failures together have probability at most 2/9. A union bound therefore gives each outer trial success probability at least 2/3.

4.1givenF5F6F9step 3.1algebra

The outer trials use fresh independent preparations and measurements. If their odd count is R0, a failed median requires at least R0/2 trial failures. [F6] bounds that probability by exp⁡(−R0/18) because each trial fails with probability at most 1/3; the algorithm sets R0≥⌈18U0⌉+1 with U0≥ln⁡(1/ρ) by [F9], so this is at most ρ. This proves the accuracy guarantee.

5.1givenF4F5F7F9step 4.1algebra

Let z0=σ/ε0=(8/7)L. Then a−1=32z0=Θ(L) and k=⌈log⁡2(32z0)⌉=Θ(ln⁡L) for L=max⁡(2,σ/ε). By [F4], one positive estimate uses O(ln⁡L ln⁡ln⁡(ee+L)) copies in either access mode and O(L(ln⁡L)3/2ln⁡ln⁡(ee+L)) state reflections in repeated controlled-Q access at confidence 1/9. Each outer trial uses two such estimates and one coarse sample; [F9] gives R0=O(1+ln⁡(1/ρ)). This yields the stated preparation bound in either mode and the reflection bound in repeated access; supplied-power implementations retain their separate declared power costs from [F4].

6.1F5F12step 5.1∎

In each binned amplitude-estimation call, the initial-state reflection is for the complete state preparation, including the observable-controlled rotation, by [F12]. The coarse centering measurement is a separate preparation of the unrotated sampler V; V(2∣0⟩⟨0∣−I)V† alone is not a bin reflection unless that complete preparation is exactly V. Sampler, inverse, controlled, rotation, value-computation, and reflection implementations remain explicitly supplied and charged. The proof counts copies and state reflections separately and infers no gate or query implementation from the variance promise.

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

Coherent query-to-circuit cost translation

Statement

For a QA29 execution, group its complete value-rotated sampler preparations into the distinct supplied unitaries Aj, and let Nj be the number of fresh standalone preparations of Aj and Qj the number of controlled Grover rounds using it. Also let Vt range over the supplied unrotated sampler preparations used for coarse measurements, with Nt0 such fresh preparations. If each controlled Grover round for Aj is the explicit product of one controlled Aj call, one controlled Aj† call, one controlled initial-state reflection, one controlled good-state reflection, and its control phase, then the exact primitive-call cost is ∑jNjCAj,prep+∑tNt0CVt,prep+∑jQj(CAj,c+CAj†,c+CS0,j,c+CSgood,j,c+Cphase,j), where every C is the declared cost of that operation. The preparation counts exclude the controlled Aj and Aj† occurrences inside Grover rounds, which are already included in the Qj terms. With a single Aq, no unrotated coarse preparations, and Nprep=Nq, this reduces to the homogeneous formula NprepCAq,prep+Q(CAq,c+CAq†,c+CS0,c+CSgood,c+Cphase). Value decoding, band comparisons, reversible arithmetic, controlled rotations, uncomputation, phase estimation, ancilla workspace, circuit description, and classical output/median computations add their own declared gate, width, bit, or oracle costs. If a complete reflection is instead supplied as a named oracle, charge that oracle's declared cost separately and do not also expand it into its components. No bare query bound becomes a gate bound without these implementations.

Facts & Assumptions

Given: The finite circuit and access model for Coherent finite sampler and observable value, the QA29 bounded-mean and variance-aware procedures, and the cost coordinates in Circuit-family and computation cost model.

[F1]

Coherent finite sampler and observable value requires explicit forward, inverse, controlled, data, value, rotation, and reflection access.

[F2]

Controlled Unitary Access: controlled access is a separately declared operation and does not follow from ordinary access.

[F3]

Inverse Unitary Access: inverse access and its charge are recorded separately from forward access.

[F4]

Circuit-family and computation cost model keeps named queries, ordinary gates, circuit description, width, ancillas, precision, and classical computation as separate coordinates.

[F5]

QFT-based amplitude estimation and Amplitude estimation and counting input/output contract specify the Grover-iterate factors and separately declared controlled accesses. Quantum bounded-expectation guarantee and query cost counts the exact median rounds for bounded expectation in repeated controlled-Q access; Variance-aware quantum Monte Carlo guarantee counts copies in either mode and state-reflection uses in repeated access. Their supplied controlled-power alternatives retain separate declared prices.

Proof

1.1givenF1F2F3F5algebra

For each Aj, [F1]–[F3] show that one controlled Grover round contains exactly its five declared components. Repeating that product Qj times contributes Qj calls to each corresponding component cost. The standalone preparations contribute ∑jNjCAj,prep, and the separate coarse sampler preparations contribute ∑tNt0CVt,prep. Summing these disjoint operation occurrences gives the displayed exact primitive-call cost.

1.2givenF1F4algebra

The remaining classical and quantum operations form finite subcircuits appended to or interleaved with those rounds. By [F4], their gate, width, ancilla, bit, and description costs are added in the corresponding coordinates, not absorbed into a unit-cost query. If the full reflection is a supplied oracle, the declared alternative counts that one oracle call rather than both implementations.

2.1givenF4F5step 1.1step 1.2∎

Under the Statement’s explicit component-product hypothesis, applying the same occurrence-by-occurrence accounting to the repeated-access counts in [F5] proves the query-to-circuit translation for both QA29 estimators, including their distinct value-rotated preparations and any unrotated coarse samples. In supplied controlled-power mode, sum the actual power-query prices from [F5] instead of expanding them as Qj component rounds; the standalone and coarse preparations are still charged. Since no operation is omitted or assigned zero cost, the conclusion makes no gate-cost claim without a supplied implementation.

5 · Examples, counterexamples and false statements

None yet.

Sources