Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-adaptedPipeline-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.

T-count guarantees for Clifford+T Rz synthesis

Statement

For the ancilla-free, on-the-nose Rz(θ) problem with ε>0, the procedure first returns its zero-T Clifford whenever ε≥c0=∣1−eiπ/8∣. In the remaining range 0<ε<c0, it has the following guarantees with its exact-real comparison and norm-solver assumptions.

  1. In complete mode with a factoring oracle and a complete factorization-based solver for t∗t=ξ, the first successful candidate yields a circuit of minimum T-count among all one-qubit Clifford+T circuits satisfying the operator norm bound. The direct branch for ε≥c0 is also optimal because it has T-count zero.
  2. In bounded-factorization mode, for 0<ε<c0, under Ross–Selinger Hypothesis 8.3, interpreted quantitatively as [A1] below, if m is the returned T-count and m′′ is the second-smallest T-count among non-equivalent feasible solutions, then the expected number of non-equivalent feasible solutions of T-count strictly below m is O(log⁡(1/ε)), and E[m]≤E[m′′]+O(log⁡log⁡(1/ε)) as ε→0. Both expectations include the arithmetic-instance randomness of [A1]; m′′ is almost surely defined and integrable in this range. If m′′ is deterministic in the chosen model, its expectation is simply m′′. For c0≤ε<1/2, the direct branch returns m=0, so there are no feasible solutions of smaller T-count and the same mean bound is immediate whenever m′′ is defined.
  3. For 0<ε<1/2, with the efficient iterator and calibrated capped-prime implementation specified below, the expected arithmetic-operation time is O(polylog⁡(1/ε)). In the range c0≤ε<1/2, the direct branch takes constant arithmetic work. These are not bit-time bounds for arbitrary unencoded real inputs.

Two determinant-one solutions are equivalent when their upper-left entries u agree; the T-count of a class is the least count attained in that class. The nontrivial near-optimality assertion concerns the unbounded candidate stream, without a finite total candidate budget. The source's notation E[m]=m′′+O(log⁡log⁡(1/ε)) is used here only in the upper bound sense of its Proposition 8.8. In the explicit random-arithmetic model [A1], the second-best class is random as well, so its count must also be averaged. No lower bound relative to that class is asserted.

Facts & Assumptions

Given: The exact-real comparisons, the procedure in Ancilla-free Clifford+T Rz approximation, and the displayed input.

[F1]

The Rz approximation procedure is correct when it returns gives correctness for all ε>0 and successful termination in COMPLETE mode with an unbounded candidate limit, valid complete factorizations when required, and terminating exact-real operations (almost surely for the efficient randomized norm mode).

[F2]

Determinant-one reduction for optimal Rz approximation: below c0=∣1−eiπ/8∣ all feasible matrices have determinant one; at or above c0 a determinant-one Clifford solution of T-count zero exists.

[F3]

Denominator exponent and optimal T count for determinant-one unitaries supplies the following interface: for a feasible candidate u of least exponent k and any solution t, the smaller optimal T-count of U and TUT† is f(k)=max⁡(0,2k−2), and no matrix in its u-class has count below f(k).

[F4]

Exponent growth of the Rz scaled grid supplies the increasing distinct candidate sequence, k2=O(1+log⁡(1/ε)), and kj≤k2+2⌈log⁡2j⌉.

[F5]

Size and residue of the Rz candidate norm integer: a candidate's reduced integer n is nonnegative, is zero or 1(mod8), and satisfies n≤4k. Its two disk inequalities also give 0≤ξ,ξ∙≤1 for the residual ξ=1−∣u∣2.

[F6]

Prime norm numerators congruent to one modulo eight are solvable: double positivity and prime n≡1(mod8) or n=1 imply solvability of the norm equation.

[F7]

Conditional stopping bounds for prime-tested Rz candidates proves all fixed stopping-time moments and the logarithmic expectation bound from a joint-failure product estimate; independence of actual solver successes is not required.

[F8]

Complete scaled-grid enumeration with expected polynomial prefix cost gives the default iterator's finite-layer completion and all fixed prefix-work moments. The second moment through j global outputs is polynomially bounded in j, kj, and L=1+log⁡(1/ε): completed layers contain at most j earlier outputs and at most kj+1 layers, while the current layer has the displayed prefix-moment bound.

[F9]

Efficient exact cyclotomic norm solving with a supplied integer factorization gives a complete expected-polynomial solver with a valid supplied factorization, including polynomial cost in the candidate exponent on these bounded grid inputs.

[F10]

H-count and T-count optimality of exact Clifford+T synthesis gives exact optimal compilation with polynomial coefficient cost. The fixed small-exponent base cases are covered by the same compiler's finite lookup and reduction.

[F11]

Certified capped norm attempts succeed on prime residuals proves that the calibrated capped prospective prime attempts accept only exact certificates, have polynomial cost on every candidate, and succeed with probability at least 1/2 on an actual prime numerator. Zero/unit numerators have explicit complete branches. Conditioning on all arithmetic data makes the calls independent in their fresh solver bits; averaging gives the joint-failure product bound from independent modelled prime indicators, without asserting unconditional independence of the actual successful calls.

[F12]

The nontrivial real-conjugation automorphism of the eighth cyclotomic field: ∙ is a field automorphism of K=Q(ω) preserving D. In particular it is injective: applying its inverse to x∙=0 gives x=0.

[A1]

Quantitative prime model: clauses 2--3 adopt an idealized stochastic model of candidate arithmetic in the sense of Ross--Selinger Hypothesis 8.3. The iterator and solver coins are drawn independently of the underlying modelled arithmetic instance, and solver streams are independent of one another. For each fixed enumerator/tie-choice framework, the model assumes that the indicators Ij of prime or zero/unit norm numerators are independent, with probabilities pj≥c/(kj+1), for a constant c>0 uniform in the input and tie choices. Other numerical data can be correlated. This is a model assumption before conditioning on all numerical candidate data; after those data are fixed, primality is fixed too. In particular, fixing an actual input and drawing iterator bits does not make its integers random or prove this hypothesis. The expectations in clauses 2--3 refer to this explicit idealized arithmetic model together with the algorithmic coins. The uniform lower bound is the quantitative reading of Hypothesis 8.3 used here; [F5] gives log⁡n=O(kj+1) for n>1. Zero/unit cases succeed outright. The model is not an established number-theoretic theorem about each deterministic input stream.

[A2]

For the probabilistic and runtime clauses use the efficient scaled-grid iterator and the calibrated capped-prime branch of the stated procedure, with fresh independent bits at each norm call and no finite total candidate limit. Bounded mode makes no extra factor-suggestion attempt. Complete mode instead supplies valid complete factorizations and uses the complete efficient solver. Every returned matrix is compiled by the optimal local exact compiler. The range c0≤ε<1/2 returns before either iterator or norm solver is called; its exact integer-part operation is counted as one arithmetic operation.

Proof

1.1F1F2F3F4givenalgebra

If ε≥c0, the direct branch from [F2] returns a feasible zero-T Clifford, which is globally optimal by nonnegativity of T-count. Suppose instead 0<ε<c0. Then [F1] gives a first solvable candidate in COMPLETE mode. Since the stream is ordered by exponent and the solver is complete, its exponent k is the least exponent of any solvable candidate. By [F3], taking the smaller compiled count returns f(k), the minimum across determinant-one feasible classes, because f is nondecreasing. By [F2] this is the global minimum.

1.2F2F5F6F7F11A1A2algebra

If c0≤ε<1/2, the direct branch returns m=0, so no feasible solution has T-count below m and the expected lower-count is zero; also E[m]=0≤E[m′′] whenever m′′ is defined. Suppose 0<ε<c0. For the bounded-factorization branch let J be the first successful mandatory prime-attempt index, using preassigned fresh bit streams along the candidate sequence. For each enumerator/tie-choice framework, condition first on all its arithmetic data D. By [F11], Pr⁡(J>j∣D)≤∏i=1j(1−Ii/2). Averaging over the arithmetic model [A1] gives Pr⁡(J>j)≤∏i=1j(1−pi/2)≤∏i=1j(1−c/(2(ki+1))). This uses independence of the modelled indicators only; actual successful calls may be correlated after averaging over numerical inputs. The procedure succeeds no later than J. Apply the joint-failure version of [F7], with c replaced by c/2: J is finite almost surely, E[J]=O(L), and E[log⁡2J]=O(1+log⁡L). All constants are uniform in the iterator tie choices, so these bounds survive averaging over its coins.

2.1F2F3F4step 1.2algebra

By [F3], the returned count satisfies m≤f(kJ). Every feasible class of count below m therefore has exponent strictly below kJ, since its class minimum is f(k) and f is nondecreasing. By [F2] these classes cover all feasible solutions. Distinct classes have distinct candidates and occur before index J, so their number is at most J−1. Taking expectations proves the lower-count solution bound.

2.2F2F3F4F5F6F7F11F12A1step 1.2algebra

The model has infinitely many prime or zero/unit candidates almost surely. Indeed, for each integer r≥1, the growth bound [F4] implies that for every sufficiently large m, ∑i=2m2m+1−1pi≥c 2m/(k2+2m+3). These block lower bounds imply ∑i=r∞pi=∞. Independence in [A1] gives Pr⁡(Ii=0 for every r≤i≤N)=∏i=rN(1−pi)≤exp⁡(−∑i=rNpi)→0. Thus with probability one good indices occur after every finite r, so there are infinitely many. By [F5], each candidate has ξ,ξ∙≥0. If n=0, then ξ∙ξ=0 in the field K gives ξ=0 or ξ∙=0. The latter also implies ξ=0 by [F12], so the solver returns t=0. If n=1 or n is prime, then n>0 makes both embeddings strictly positive; for prime n, [F5] gives n≡1(mod8), so [F6] makes the norm equation solvable. Distinct candidates give distinct u-classes, so the best and second-best feasible classes exist almost surely. Choose the best and second-best feasible classes, breaking equal-count ties by increasing exponent, and let their exponents be k′ and k′′. Since their class counts are f(k) and f is nondecreasing, this choice has k′≤k′′. The two classes are distinct candidates, so k2≤k′′. By [F3,F4], m≤2kJ≤2k′′+4⌈log⁡2J⌉≤m′′+2+4⌈log⁡2J⌉≤m′′+6+4log⁡2J. To check integrability of the benchmark, use the deterministic bound K=⌈log⁡2(512/ε2)⌉≥k2 from [F4], and let H be the second index with IH=1. If each of the blocks 1,…,r and r+1,…,2r contains a good index, then H≤2r. By [A1,F4] and the same failure-product bound, Pr⁡(H>2r)≤2exp⁡ ⁣(−crK+2⌈log⁡2(2r)⌉+1). The tail comparison in [F7] gives finite moments of H. The first two good indices give two feasible classes, so m′′≤2kH by [F3], and [F4] makes m′′ integrable. Also m≤2kJ is integrable by step 1.2. Taking expectations of the pathwise inequality and applying step 1.2 now gives E[m]≤E[m′′]+O(1+log⁡L), which is the stated asymptotic bound.

2.3F4F7F8step 1.2algebra

If c0≤ε<1/2, the direct branch takes constant arithmetic work, including one exact integer-part operation and reducing exponents modulo 8. Suppose 0<ε<c0. Write Cj for the iterator work through its jth global candidate, with no norm calls interleaved. The exponent sequence kj depends only on the number of distinct candidates in each layer, so it is unchanged by the iterator's randomized tie order. By [F4,F8], for some fixed D, E[Cj2]≤C(j+1)2(L+1+log⁡(j+1))D. The joint-failure estimate of step 1.2 and [F7] give the stopping tail uniformly for each enumerator/tie-choice framework in [A1], hence also after averaging over the independent iterator coins: Pr⁡(J>j)≤exp⁡(−j/(a+bln⁡j)), with a=O(L) and fixed b>0. Cauchy--Schwarz, applied separately to each event J=j, therefore gives E[CJ]≤∑j≥1E[Cj2]Pr⁡(J=j). For completeness, the product bound follows by expanding the nonnegative expectation of (X/E[X2]−Z/E[Z2])2 with X=Cj and Z=1{J=j}; if either second moment vanishes its term is zero. This sum is polynomial in L. Indeed, for j≥a the tail proof of [F7] bounds its exponential factor by exp⁡(−c1j/a); bound logarithms by powers of j and compare the resulting polynomial-times-exponential sum with its integral, using y=t/a. The part j<a is also polynomial. Thus no independence between iterator delay and J is assumed.

3.1F3F4F5F7F9F10F11A2step 1.2step 2.3algebra∎

In capped mode [F11,A2] bound all candidate work through J by Jpoly⁡(1+kJ), plus the successful exact compilation. In oracle mode take J to be the first prime/zero/unit model index, which has the same tail and moment bounds and is solvable by [F6]. Then [F9] supplies the same bound in conditional expectation: condition on the preceding history before each call, and sum its uniform polynomial expected bound over the calls that are reached. Integer-factor oracle calls cost one operation; their factorization outputs have polynomial length by [F5]. The stopping bounds [F4,F7] make the expectation of these polynomial expressions finite and polynomial in L. By [F3,F10], successful exact compilation also has polynomial cost in kJ+1: its entry denominators are at most kJ and squared-entry exponent at most 2kJ, with only finitely many small cases. Combining this with step 2.3 proves the expected polynomial arithmetic runtime for the actual efficient implementations. It includes charged exact-real arithmetic and comparisons, but supplies no bit-time guarantee for unencoded real parameters.

Remarks

The complete coefficient-box iterator and divisor-search norm solver remain valid alternatives for completeness. Their costs are not used in the expected polynomial bound. Capped prospective executions never infer unsolvability from an unproved prime promise: only a verified exact norm certificate is accepted. The candidate-primality model remains an explicit number-theoretic hypothesis.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

57 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources