Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-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.

HHL finite sine-window phase-estimation algorithm

Definition

Input a self-adjoint H with ∥H∥≤1, a unit input state ∣b⟩ supported only on eigenvalues satisfying 1/κ≤∣λ∣≤1, and a supplied finite exact representation of the cutoff κ≥1 that supports certified arithmetic and rational comparisons. Supply costed B,B† and controlled/inverse simulation access as in HHL state-preparation and simulation access model. The accuracy and failure inputs are exact rational values ϵ=pϵ/qϵ and ρ=pρ/qρ, with positive binary-encoded integers and 0<pϵ≤qϵ, 0<pρ<qρ. Rectangular systems A:Cn→Cm use Hermitian dilation for a rectangular linear system: choose a supplied rational scale Λ≥∥HA∥, use H=HA/Λ, and set κ=Λ/γ from the QLSP support gap γ. The QLSP definition supplies σj≥γ whenever the left singular coefficient of b is nonzero; the dilation eigenvalues on this input support are ±σj/Λ, so 1/κ≤∣λ∣≤1. On (Cm⊗W)⊕(Cn⊗W) prepare the normalized codomain-supported input (b/∥b∥,0) with the tagged preparation BA:=B⊕ICn⊗W. Implement its B block with the supplied tag-controlled form of B and charge that controlled preparation cost. The QLSP promise b∈ran⁡(A) removes the kernel component, and the output is tagged in the domain summand. All parameter comparisons, reversible arithmetic and finite-precision synthesis use the separately charged routines in the access model. The algorithm is the finite OP5 program:

  1. Apply the supplied B (or BA for a rectangular system) to prepare the input and its fixed work state, set t0=2048κ/ϵ, choose the least power of two T≥8(t0+1) by certified comparisons, and let L=log⁡2T. Initialize the phase register to ∣0L⟩ in big-endian order qL−1⋯q0. This carrier chooses OP5's explicit table variant for preparing Finite sine-window phase state. Build the complete binary prefix tree on the T leaves. At each level ℓ=0,…,L−1 and for each interval node [a,b) at that level, put m=(a+b)/2 and compute the child masses WT(a,m) and WT(m,b) from the formula in Sine-window normalization and positive prefix weights. Store r=WT(a,m)/WT(a,b) and apply Ry(2arcsin⁡r) to wire qL−1−ℓ, controlled on the preceding ℓ wires matching the path to [a,b); encode bit 1 as the left child and bit 0 as the right child. The root has no controls. Thus the ideal circuit prepares ∣ΨT⟩ by Operator error for the finite sine-prefix rotation table. Put ϵΨ=ϵ/(4096κ). Each nonempty mass is at least T−2 by Sine-window normalization and positive prefix weights. Use certified interval arithmetic with absolute mass error at most ϵΨ2/(106L2T4); refine until each stored angle and its finite gate synthesis together give controlled-rotation operator error at most ϵΨ/(100T). The cases r=0 and r=1 use the identity and π rotations, respectively. Store each other angle with at least ⌈log⁡2(100πT/ϵΨ)⌉+2 bits. There are T−1 rotations; Operator error for the finite sine-prefix rotation table bounds their total operator error by ϵΨ/100 from the displayed combined per-node operator tolerance. The table contains O(Tlog⁡(T/ϵΨ)) bits and T−1 controlled rotations. Charge its one-time construction/data cost GΨ(T,ϵΨ) and each forward/inverse preparation cost CΨ(T,ϵΨ) from HHL state-preparation and simulation access model, including reversible lookup, control and finite gate synthesis. Thus the sine-preparation unitary and its inverse each have operator error at most ϵΨ; this variant pays linear-in-T table and rotation resources rather than assuming a loaded amplitude table.

  2. In either the original full-space or alternative clean-workspace simulation mode, initialize all simulator work in zero and retain it coherently. For j=0,…,L−1, set tj=2jt0/T and allocate ηj=ϵ/(8192κL) to both its forward controlled call SH(tj,ηj) and its reverse call. Apply SH(tj,ηj) to the system controlled on wire qj being 1, and act as identity on its 0 branch. In the declared order qL−1⋯q0, a phase label τ has bits xj with τ=∑j=0L−12jxj, so the ideal controlled list applies e+iHτt0/T. Apply the negative-sign QFT, decode y to signed k=y for y<T/2 and k=y−T otherwise, and set λ~=2πk/t0. The total forward evolution time is ∑j<Ltj=t0(1−1/T)<t0, and the sum of the 2L simulation error allocations is ϵ/(4096κ). This uses the signed convention in Signed phase decoding has no alias on the promised spectrum.

  3. Reversibly compute the flag angles and sign from λ~ using Odd-well and even-ill reciprocal filter. Use the two-qubit computational basis ∣q1q0⟩ with labels ∣nothing⟩=∣00⟩, ∣well⟩=∣01⟩, ∣ill⟩=∣10⟩, and unused label ∣11⟩. Write p=∣fκ(λ~)∣, r=1−p2, α=2arcsin⁡p, and β=2arcsin⁡(gκ(λ~)/r). These are defined at every decoded grid point because The reciprocal filter defines valid three-outcome amplitudes gives p≤1/2, 0≤g≤1/2, and r≥3/2, so g/r≤1/3<1. First apply Ry(α) to q0 conditioned on q1=0, acting as identity on the q1=1 subspace. Next apply Ry(β) to q1 conditioned on q0=0, acting as identity on the q0=1 subspace. Here Ry(θ)=exp⁡(−iθY/2) with the exact convention and unitary formula of Exact one-qubit gates and rotations and Pauli formula for an axis rotation. Finally apply Ds=diag⁡(1,s,1,1) in the ordered flag basis, where s=−1 if λ~<0 and s=+1 otherwise (in particular at zero, where fκ(0)=0). The resulting full flag unitary is DsG02(β)G01(α): the two conditional rotations act as Ry on the indicated two-label subspaces and as identity on their orthogonal complements, and Ds is diagonal unitary. All three factors fix the unused label ∣11⟩. On ∣00⟩ the product gives h(λ~)∣00⟩+fκ(λ~)∣01⟩+gκ(λ~)∣10⟩, since cos⁡(β/2)=h/r and sin⁡(β/2)=g/r. Uncompute the arithmetic. Synthesize the phase-controlled map with uniform operator error at most ηR:=ϵ/(4096κ), charged through Cflag and Carith.

  4. Reverse the QFT, every actual controlled simulation circuit, and sine preparation, retaining the flag and all simulator work. In clean-workspace mode the ideal trajectory has this work in zero; Unitary hybrids on a preserved clean-work subspace bounds the complete attempt on that ideal trajectory without assuming actual intermediate work is clean. This gives a unitary flagged preparation V and its exact circuit inverse V†. Let Πgood be the well-flag projection in Hermitian mode and the product of the well-flag projection and tagged domain projection in rectangular mode; these two projections act on distinct registers and commute. Let p=∥ΠgoodV∣0⟩∥2. Apply the finite capped amplification procedure proved in Finite capped amplification succeeds with a supplied lower bound with success projection Πgood, lower bound plow=1/(16κ2) and failure target ρ. Its success reflection and verification test both the well flag and the domain tag in rectangular mode; charge their actual costs to Cref and Cver. Measure {Πgood,I−Πgood} and return the conditional state, tagged output and success bit on success; return FAIL otherwise.

The circuit uses no uniform-register phase-tail estimate: its phase distribution is the sine-window kernel proved in Second moment of the signed sine-window phase kernel. Its GΨ,CΨ,Csim,CQFT+/−,Cflag, reflection, verification and B/B† costs remain separate inputs.

Depends on

Used by

Dependency tree · two levels

99 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