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.
Phase-Estimation Linear-System Algorithms
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Amplitude Amplification
- Amplitude Estimation and Counting
- Binary Operations, Monoids, Groups and Subgroups
- Block Encodings
- Boolean Circuits and Nonuniform Complexity
- Bounded Linear Operators and Quotient Spaces
- Channels, Kraus, Choi, and Stinespring Representations
- Circuit Syntax, Denotational Semantics, and Measurement
- Classical and Quantum Error-Correcting Codes
- Clifford+T Exact and Approximate Synthesis
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Coordinate and Path Transport
- Complex Differentiability and the Cauchy–Riemann Equations
- Complex Norms and Realification
- Complex Power Series and Analytic Functions
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Computational Problems, Promises, and Cost Models
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Connectedness
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Continuous-Gate Universality and Exact Synthesis
- Continuous-Time Quantum Walks
- Controlled Gates, Phase, and Entanglement
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Equivalent Forms of Completeness
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- Finite Fourier Analysis and the Fast Fourier Transform
- Finite-Dimensional Complex Inner-Product Spaces and Matrix Interfaces
- Formal Languages, Encodings, and Decision Problems
- Foundations of the Real Numbers for Analysis
- Free Modules, Exact Sequences, Projective and Injective Modules
- Fundamental Trigonometric Identities
- Further Trigonometric Identities and Inverse Functions
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hamiltonian Simulation and Product Formulas
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Combinations of Unitaries and Taylor Simulation
- Linear Independence, Bases and Dimension
- Linear Recurrences and Rational Generating Functions
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurements, POVMs, and Instruments
- Metric Spaces
- Modules, Submodules, Quotient Modules and the Isomorphism Theorems
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Order, Zorn's Lemma, and the Axiom of Choice
- Partitions of Unity and Paracompactness
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Properties of the Integral and the Working FTC
- Pure and Mixed States, Ensembles, and Schmidt Decomposition
- Quantum Fourier-Transform Circuits
- Quantum Phase Estimation
- Quantum Signal Processing
- Quantum Singular-Value Transformation
- Qubitization and Near-Optimal Hamiltonian Simulation
- Qubits, Bloch Sphere, Pauli Algebra, and One-Qubit Gates
- Registers, Tensor Products, and Partial Trace
- Relations, Functions, and Quotients
- Resource Bounds and Machine Invariance
- Reversible Computation, Ancillas, and Coherent Oracles
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Separation Axioms: the Hierarchy
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Splitting Fields
- State Preparation, Isometry Synthesis, and Limits
- Strongly Continuous Semigroups and Hille Yosida
- Subspaces, Products, and Quotients
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- Symmetric Polynomials and the Fundamental Theorem of Symmetric Functions
- Tensor Products of Modules
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Exponential Function
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Logarithm and General Powers
- The Moore--Penrose Pseudoinverse and Regularised Least Squares
- The Polynomial Hierarchy and Relativization
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Trigonometric and Oscillatory Examples in One Variable
- Turing Machines, Configurations, and Computation
- Uniform Circuit Families, Promise Problems, and Complexity
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page specifies the state-output QLSP task, a rectangular Hermitian dilation, and the finite sine-window HHL circuit in the signed-eigenvalue convention. It proves the sine-window kernel moment, reciprocal-filter stability, postselection normalization, capped amplification, and the resulting conditional state error under explicit preparation and simulator error budgets. The direct simulator resource sum is proved. The sparse-row query specialization follows from the explicit sorted-XOR access bridge and the clean-workspace simulation mode.
The sparse-query specialization is proved through the costed sorted-XOR block encoding and the QA25 clean-input simulator. The access definition retains full-operator simulation and additionally permits the explicit clean-workspace mode; its proof includes actual inverse circuits and error accumulation without assuming intermediate work is clean. Classical table generation, arithmetic, phase compilation, gate and bit-time resources remain separate.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Odd-well and even-ill reciprocal filter
Definition
For and real estimate , put and define the odd well amplitude and even ill amplitude by where for , for , and for . The three flag amplitudes are , where . Labels are nothing, well, ill, respectively. This definition applies to every real decoded grid point, including points outside the supported spectrum.
Finite sine-window phase state
Definition
For a power of two , the sine-window vector is For any integer interval , define its unnormalized sine mass The closed trigonometric formula for is proved by the assigned prefix-mass lemma. The chosen OP5 table variant stores these interval masses and their conditional split angles; it charges its full table and rotation size, arithmetic, interval-refinement, angle-bit, and finite gate-synthesis costs. This definition does not assign a polylogarithmic implementation cost.
Hermitian dilation for a rectangular linear system
Statement
For , define using the adjoint of The adjoint is characterised by by . Then is Hermitian; its nonzero eigenvalues are for the positive singular values of , its kernel is , and . When has positive rank, its nonzero condition number is preserved; the output is tagged in the domain summand.
Facts & Assumptions
Given: A finite-dimensional map and its singular system.
Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: has orthonormal singular pairs with positive values ; in these bases its matrix is diagonal with entries and zero on the remaining coordinates.
The adjoint is characterised by : , so the adjoint of a block matrix swaps the blocks and takes their adjoints.
The Moore--Penrose pseudoinverse as the solution of the four Penrose equations: a pseudoinverse satisfies , , and are self-adjoint; Every finite real or complex matrix has a unique Moore--Penrose pseudoinverse: each finite matrix has exactly one such pseudoinverse.
Proof
The block matrix of is . Its adjoint, by [F2], is the same block matrix, so .
Multiplying the SVD in [F1] gives and . Therefore and . After division by these are unit eigenvectors. Orthonormality of the singular pairs makes all such vectors mutually orthogonal.
In the SVD bases, write with positive diagonal entries . The diagonal matrix that replaces each positive entry by and leaves zero entries zero satisfies , , and both products and are diagonal projections. Unitary transport shows satisfies the four equations in [F3], so uniqueness gives and .
The equation is equivalent to and , so . Together with step 1.2, the nonzero eigenvalue magnitudes are exactly the positive singular values, each appearing with both signs. Thus when there is positive rank their maximum-to-minimum ratio is unchanged.
The vectors from step 1.2 together with orthonormal bases of and form an orthonormal eigenbasis of the direct sum. Define on this basis by , , and on the kernel. Then and are self-adjoint projections, while diagonal multiplication gives and . Thus satisfies [F3], and uniqueness gives . Since , this definition gives . Complete the positive left singular vectors to the left singular basis from [F1]. The remaining basis vectors have zero singular coordinates, so the diagonal SVD gives for each; hence they span the complementary part . Thus every has a decomposition with . Since , its positive left-singular coordinates vanish, so and the formula in step 1.3 gives . By step 2.1 , so . Applying the positive-pair calculation to the other summands gives for arbitrary , including .
The reciprocal filter defines valid three-outcome amplitudes
Statement
For every real and , . Hence in Odd-well and even-ill reciprocal filter is real, and the three displayed amplitudes have squared moduli summing to one.
Facts & Assumptions
Given: The piecewise functions in Odd-well and even-ill reciprocal filter.
Odd-well and even-ill reciprocal filter and Parity and the Pythagorean identity for sine and cosine: in the transition band the two nonzero functions are one half times sine and cosine of the same angle; on each plateau they are constants or one reciprocal term.
Proof
If , then and , so their squared sum is at most .
If , the identity gives . If , the sum is . Thus all cases give the bound, and .
Quantum linear-systems state-output task
Definition
Let be a finite-dimensional linear map, , and let , where is the image defined in Kernel and image of a linear map. The quantum linear-systems state-output task (QLSP) is to prepare the normalized domain-register state where is the Moore–Penrose pseudoinverse. By Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition, write in left singular vectors; the promised support gap is a supplied rational or exactly represented such that every with has singular value . The input includes a costed unitary mapping its designated all-zero input to in the codomain register, tensored with a fixed work state. Its inverse, controlled access, and resource coordinates are specified in the separate HHL access model. If is multiplied by , the normalized representative is multiplied by , so its pure-state ray is unchanged. The task returns a quantum state (and may return a success flag); it does not promise a classical list of coordinates.
Relative stability of the HHL filter on supported eigenvalues
Statement
Let , , and with . Set . For the well/ill amplitude pair from Odd-well and even-ill reciprocal filter,
Facts & Assumptions
Given: The supported eigenvalue and filter definition.
Odd-well and even-ill reciprocal filter and The reciprocal filter defines valid three-outcome amplitudes: ; on the transition band its coordinates are one half times sine and cosine with angle slope .
Sine and cosine are -Lipschitz on : each of sine and cosine changes by at most the change in its real argument.
Proof
At the transition angle is , so [F5] makes the transition values , matching the lower plateau; at the angle is , so [F4] makes them , matching the reciprocal branch. Hence is continuous on each fixed-sign half-line. On the reciprocal branch, for , On the transition branch, [F2] bounds each coordinate change by , so the two-coordinate norm changes by at most . The lower plateau is constant, and by [F3]. Splitting any same-sign interval at the two breakpoints and adding these bounds proves the global same-sign Lipschitz estimate .
Write . If has the same sign as and , both values use the reciprocal branch, and If the signs differ (including zero), then , and the norm difference is at most by [F1]. Dividing by gives at most .
It remains that the signs agree and . If , step 1.1 gives a norm difference at most . Since , the ratio is at most , using and [F3]. If , crossing below implies and . By [F1] the ratio is at most . These cases establish the claimed inequality.
Sine-window normalization and positive prefix weights
Statement
For a power of two and integers , In particular, , so is normalized, and every nonempty interval has .
Facts & Assumptions
Given: The sine window and interval mass in Finite sine-window phase state.
Finite geometric sum for phase-estimation amplitudes: finite geometric sums satisfy when .
Finite sine-window phase state: is the sum of the indicated nonnegative sine squares.
, , and , , and the complex exponential extends the real exponential, and The addition formulas for sine and cosine: , , the exponential is multiplicative, and sine/cosine satisfy their addition formulas.
Sine chord and linear bounds: for .
Proof
Put . By [F4], . Also [F5] gives , so . Reindexing [F1] gives The real part of the last expression is by the sine addition formula [F4]. Applying [F3] to the defining sum [F2] proves the displayed formula for .
Setting in the formula of step 1.1 makes its sine difference zero, so . The squared norm of is .
If , choose an integer in . Then lies between and , so its angle lies in . The chord bound [F5] gives , and [F6] reflects this lower bound to the upper half of the interval. That summand is at least and all other summands are nonnegative by [F2].
The QLSP target is nonzero
Statement
Under the hypotheses in Quantum linear-systems state-output task, , so the normalized target is well-defined.
Facts & Assumptions
Given: A finite-dimensional map and .
Kernel and image of a linear map: means that some satisfies .
The Moore--Penrose pseudoinverse as the solution of the four Penrose equations: ; Every finite real or complex matrix has a unique Moore--Penrose pseudoinverse: this pseudoinverse exists and is unique.
Proof
By [F1], choose with . The Penrose equation in [F2] gives .
If , then , contradicting step 1.1 and the hypothesis . Hence and the normalized QLSP target is defined.
Operator error for the finite sine-prefix rotation table
Statement
Let , and let and be as in Finite sine-window phase state. In the binary prefix tree, order the register bits from root to leaf. At level , each interval node has midpoint and split . Apply to the next bit, controlled on the preceding prefix that names , encoding bit as the left child and bit as the right child. Starting from , this ideal prefix circuit prepares . If a finite state-preparation circuit contains controlled rotations and each implemented rotation differs from its ideal rotation by operator norm at most , the product unitary differs from the ideal product by operator norm at most . In the OP5 table variant let , and , so the preparation error is less than ; using the same bound for its inverse gives the stated unpreparation cost.
Facts & Assumptions
Given: A finite list of controlled rotations and a per-rotation operator-error bound.
Linear isometries, and orthogonal or unitary operators on finite-dimensional inner product spaces: unitary operators preserve vector norm.
The inner-product norm is definite, homogeneous, and satisfies the triangle inequality: the norm of a finite sum is at most the sum of the norms.
Sine chord and linear bounds: for , and for .
Parity and the Pythagorean identity for sine and cosine: sine is odd and .
The addition formulas for sine and cosine: the sine and cosine addition formulas hold; substituting them into the displayed rotation matrices gives the corresponding angle-addition rule.
Finite sine-window phase state: the leaf weights are and the target amplitudes are .
Sine-window normalization and positive prefix weights: , and every nonempty interval has positive mass.
Proof
The real -rotation matrix is . For any unit vector , [F5] and [F4] give Taking the supremum over unit and using [F3] and [F4] yields . A controlled rotation is block diagonal with identity and this rotation on its control subspaces, so its operator error obeys the same bound.
For each leaf , put . If , [F3] gives ; if , [F8] reduces positivity to and the same bound. Thus each leaf weight is positive, and [F7] makes every split ratio lie in . The rotation sends to , so its branch amplitudes are exactly the square roots of the right- and left-child mass fractions. Induction from the root shows that leaf has amplitude , by [F6] and [F7]. With left encoded by , interval leaf has computational label . Its amplitude equals that of label because and [F8] gives . Hence the ideal circuit prepares .
For products and , insert and subtract one factor at a time. This writes their difference as a sum of terms, each containing one between unitary products. By [F1] the outer products preserve norm, and [F2] bounds the sum by . For , and this is less than . Applying the same estimate to the inverse rotation list, whose ideal angles are negated and whose synthesis uses the same per-angle tolerance, gives the same bound for inverse preparation.
HHL state-preparation and simulation access model
Definition
For a Hermitian on a finite-dimensional register, with operator norm as in The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||, the HHL access instance supplies: (i) a unitary with for a fixed normalized work state (which may be ) and declared costs for and any controlled forms used; (ii) for every requested real and tolerance , a controlled simulation circuit with operator-norm error at most from , and separately declared inverse/negative-time costs; and (iii) separate actual resource functions , , for each forward or inverse sine-table preparation, for its one-time classical table generation/data bits, , , , , and , and costs for reversible arithmetic, registers and finite-precision gate synthesis. Here is the negative-sign Fourier circuit and its positive-sign inverse, is the per-attempt reversible decode/filter arithmetic cost, and are the per-call reflection and well-verification costs. These functions count the stated circuit implementation in the chosen gate/access model; they assert no polylogarithmic bound on table generation or rotation synthesis. The positive exponential sign is the OP5 convention. An implementation of from matrix entries or a sparse oracle is additional data and must include its own proof and cost. A bare matrix, sparsity promise, or list of amplitudes is not a circuit. A rational scale may be supplied; after replacing by , the supported gap gives .
Clean-workspace simulation mode. The original full-operator-norm access mode remains admissible. Alternatively, supply a unitary dilation with a fixed clean-work embedding and , including arbitrary timing/control/reference registers. The ideal operation leaves this simulator workspace in zero; other ideal HHL operations do not touch it. Actual output work may be dirty. Supply actual circuit inverses and controls and charge their full workspace and query costs. Unitary hybrids on a preserved clean-work subspace proves the same clean-input error for the actual adjoint, coherent controls and arbitrary references, and proves accumulation along the ideal all-clean trajectory. The inverse used in HHL uncomputation/amplification is the literal reverse physical circuit, not a separately approximated negative-time routine. Include simulator work in the joint output comparison and the ideal all-zero algorithm registers. A full-space error on arbitrary dirty inputs is neither required nor inferred in this alternative mode.
Second moment of the signed sine-window phase kernel
Statement
Let , , , and let be the least power of two at least . For any , prepare Finite sine-window phase state, apply the controlled phases and the negative-sign Fourier transform, then decode to signed . With probability , put . Then
Facts & Assumptions
Given: The sine-window circuit and OP5 parameter range.
Exact binary QFT circuit correctness: the negative-sign Fourier transform has basis amplitudes , so the measured amplitude is the finite Fourier sum of the prepared coefficients.
Finite geometric sum for phase-estimation amplitudes: finite exponential sums equal their geometric-series quotient when the ratio is not one; the coincident-ratio case is their continuous finite-sum limit.
Sine chord and linear bounds: for .
Sine and cosine are -Lipschitz on : cosine changes by at most the change in its real argument.
Sine chord and linear bounds: for .
Proof
Put and . Expanding sine into its two exponentials and summing the two geometric series from [F2] gives the amplitude At a removable zero this formula means its continuous limit. By [F1], and .
For , set and . Signed decoding and give ; also . Since , , hence . On one has : on put and apply [F7] to get using [F3]; on the remaining interval, by [F5] and [F6], while . Therefore Using and in step 1.1 yields .
The outcomes with contribute at most because their total probability is at most one. For the rest, group integers by , ; each shell has at most two integers. Step 2.1 gives where . By [F3], , so the total is less than .
Signed phase decoding has no alias on the promised spectrum
Statement
Let , , , and let be the least power of two with . For with , phase estimation using powers of has exact eigenphase angle on an eigenvector of eigenvalue . This lies strictly in ; signed decoding for and otherwise uses the unique centered representative. Its eigenvalue grid is , with spacing .
Facts & Assumptions
Given: A self-adjoint finite-dimensional , the OP5 scale, and as above.
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: a normal finite-dimensional complex endomorphism has an orthonormal eigenbasis; implies is normal.
Unitary and differential identities for finite matrix dynamics: ; on an eigenvector with eigenvalue , replacing by gives .
Quantum phase estimation and Exact binary QFT circuit correctness: phase estimation uses Fourier-basis labels modulo .
Proof
By [F1], choose an orthonormal eigenbasis and let . The root inner product is linear in its first argument and conjugate-linear in the second (Dirac Notation Conversion). Self-adjointness therefore gives so is real. Also , so .
On this eigenvector, has eigenvalue , where is the unique representative of modulo in . Each controlled power has eigenphase , so phase estimation encodes this same phase modulo one.
Since , by [F4]. Thus the centered representative of the phase angle is exactly , with no alias by a multiple of . Centered decoding gives the stated signed integer and adjacent eigenvalue grid values differ by .
Finite capped amplification succeeds with a supplied lower bound
Statement
Let a unitary flagged preparation have well probability , , and exact inverse access. Set , for . In each of fresh rounds, draw uniform bits; reject the round without queries if the resulting integer , and otherwise run amplitude-amplification iterations from , then verify the well flag. The probability that all rounds fail is at most . The conditional well state in every successful round is the same pure-state ray as the normalized well component of . The total number of calls is at most .
Facts & Assumptions
Given: A fixed unitary state preparation, its inverse, and an orthogonal well-flag projection.
Amplitude-amplification invariant plane: the initial good and bad components span an invariant plane for the amplification iterate.
Exact success probability after amplitude amplification: if , after rounds the success probability is .
Amplitude amplification with a fixed integer iteration count: one iterate consists of the supplied preparation, its inverse, and the two declared reflections.
Inverse Unitary Access: every inverse call is an explicitly supplied access with a separately chargeable cost.
Sine chord and linear bounds: for .
The addition formulas for sine and cosine and Double-angle and quadratic power-reduction identities: sine addition gives , and the double-angle formulas give and .
Proof
For , the addition identity in [F6] gives . Summing over telescopes, so . The double-angle identities in [F6] therefore give , and the corresponding cosine-square sum has a plus sign. Here the denominators are positive except at the separately treated endpoint . Put . For , . The finite sine-square identity from [F6] gives average success For , put . The cosine-square version of [F6] gives average success . If its sine numerator is nonnegative this is at least . If it is negative, then , and [F5] gives , so the magnitude of the fraction is at most . The average is again greater than . At , every iteration succeeds. Thus uniform accepted has average success at least for every .
Since , the random-bit draw is accepted with probability and, conditioned on acceptance, is uniform on . Each fresh round therefore succeeds with probability at least . Independence of fresh preparation, bits and verification gives total failure at most , since [F7] gives and . Therefore the failure is at most .
At most iterations occur in one round, each using one and one besides the initial ; hence each call count is at most , and their sum is at most . The good component remains collinear by [F1, F3]; its scalar rotation coefficient may be negative, but every positive-probability well branch therefore has the same pure-state ray as the normalized initial well component.
HHL finite sine-window phase-estimation algorithm
Definition
Input a self-adjoint with , a unit input state supported only on eigenvalues satisfying , and a supplied finite exact representation of the cutoff that supports certified arithmetic and rational comparisons. Supply costed and controlled/inverse simulation access as in HHL state-preparation and simulation access model. The accuracy and failure inputs are exact rational values and , with positive binary-encoded integers and , . Rectangular systems use Hermitian dilation for a rectangular linear system: choose a supplied rational scale , use , and set from the QLSP support gap . The QLSP definition supplies whenever the left singular coefficient of is nonzero; the dilation eigenvalues on this input support are , so . On prepare the normalized codomain-supported input with the tagged preparation . Implement its block with the supplied tag-controlled form of and charge that controlled preparation cost. The QLSP promise 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:
-
Apply the supplied (or for a rectangular system) to prepare the input and its fixed work state, set , choose the least power of two by certified comparisons, and let . Initialize the phase register to in big-endian order . This carrier chooses OP5's explicit table variant for preparing Finite sine-window phase state. Build the complete binary prefix tree on the leaves. At each level and for each interval node at that level, put and compute the child masses and from the formula in Sine-window normalization and positive prefix weights. Store and apply to wire , controlled on the preceding wires matching the path to ; encode bit as the left child and bit as the right child. The root has no controls. Thus the ideal circuit prepares by Operator error for the finite sine-prefix rotation table. Put . Each nonempty mass is at least by Sine-window normalization and positive prefix weights. Use certified interval arithmetic with absolute mass error at most ; refine until each stored angle and its finite gate synthesis together give controlled-rotation operator error at most . The cases and use the identity and rotations, respectively. Store each other angle with at least bits. There are rotations; Operator error for the finite sine-prefix rotation table bounds their total operator error by from the displayed combined per-node operator tolerance. The table contains bits and controlled rotations. Charge its one-time construction/data cost and each forward/inverse preparation cost 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- table and rotation resources rather than assuming a loaded amplitude table.
-
In either the original full-space or alternative clean-workspace simulation mode, initialize all simulator work in zero and retain it coherently. For , set and allocate to both its forward controlled call and its reverse call. Apply to the system controlled on wire being , and act as identity on its branch. In the declared order , a phase label has bits with , so the ideal controlled list applies . Apply the negative-sign QFT, decode to signed for and otherwise, and set . The total forward evolution time is , and the sum of the simulation error allocations is . This uses the signed convention in Signed phase decoding has no alias on the promised spectrum.
-
Reversibly compute the flag angles and sign from using Odd-well and even-ill reciprocal filter. Use the two-qubit computational basis with labels , , , and unused label . Write , , , and . These are defined at every decoded grid point because The reciprocal filter defines valid three-outcome amplitudes gives , , and , so . First apply to conditioned on , acting as identity on the subspace. Next apply to conditioned on , acting as identity on the subspace. Here with the exact convention and unitary formula of Exact one-qubit gates and rotations and Pauli formula for an axis rotation. Finally apply in the ordered flag basis, where if and otherwise (in particular at zero, where ). The resulting full flag unitary is : the two conditional rotations act as on the indicated two-label subspaces and as identity on their orthogonal complements, and is diagonal unitary. All three factors fix the unused label . On the product gives , since and . Uncompute the arithmetic. Synthesize the phase-controlled map with uniform operator error at most , charged through and .
-
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 and its exact circuit inverse . Let 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 . Apply the finite capped amplification procedure proved in Finite capped amplification succeeds with a supplied lower bound with success projection , lower bound 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 and . Measure 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 , reflection, verification and costs remain separate inputs.
Ideal inverse amplitude and HHL postselection probability
Statement
For the ideal exact-eigenvalue version of HHL finite sine-window phase-estimation algorithm, on a normalized supported on , the well-flag vector is . Its probability satisfies , and its normalized state is the QLSP target.
Facts & Assumptions
Given: A self-adjoint , a normalized , and the support promise.
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: a normal finite-dimensional complex endomorphism has an orthonormal eigenbasis; implies is normal.
The Moore--Penrose pseudoinverse as the solution of the four Penrose equations and Every finite real or complex matrix has a unique Moore--Penrose pseudoinverse: the pseudoinverse is the unique matrix satisfying , , and self-adjointness of and .
Odd-well and even-ill reciprocal filter: on the supported spectrum and .
Quantum linear-systems state-output task: the target is the normalized pseudoinverse action on the supported input.
The adjoint is characterised by and Dirac Notation Conversion: , and the root inner product is linear in its first argument and conjugate-linear in its second.
Proof
In the eigenbasis from [F1], if , self-adjointness and [F5] give so every is real. Define for and for . Diagonal multiplication gives , , and equal to the orthogonal projection onto the nonzero-eigenvalue span; both products are self-adjoint. Thus satisfies [F2], and uniqueness gives .
Expand in [F1], with . Put ; then and every has , so [F3] multiplies it by . Step 1.1 therefore gives the well vector . Its normalization is the state in [F4].
Orthonormality gives . For , , so each weight factor lies in . Their convex average lies in the same interval, proving .
HHL capped postselection amplification cost
Statement
For the OP5 HHL attempt with and failure target , the capped schedule uses at most calls in total to and , where and . Thus it uses calls to the supplied preparation form (the tagged in dilation mode) and separately to its inverse, multiplied by their actual supplied costs.
Facts & Assumptions
Given: OP5 access costs and the lower success bound.
Finite capped amplification succeeds with a supplied lower bound: each round uses at most calls to and at most calls to , over rounds.
HHL finite sine-window phase-estimation algorithm: each contains one call to the supplied preparation form and each one call to its inverse. In rectangular mode this form is the tagged from the Definition, and its controlled/gate cost is the actual declared cost for that access.
Circuit-family and computation cost model: sequential costs add and every inverse or controlled access has its own declared cost.
Proof
By [F1], the total number of preparation and inverse-preparation calls is bounded separately by each. Since for and , each count is with an absolute constant.
Each preparation call invokes the supplied preparation form once, and each inverse preparation invokes its actual inverse once by [F2]. Their circuit/query/gate costs therefore multiply the two counts separately and add by [F3]. No call to a controlled form, simulator, reflection, or verifier is included unless it appears in the declared circuit.
HHL cost under direct controlled-simulation access
Statement
Let , , , and . The capped HHL circuit uses at most calls to each of and , at most calls to each supplied preparation form (the tagged in dilation mode) and its inverse, and one table construction . Each or contains two sine-table preparation/unpreparation circuits, one forward and one inverse QFT, the flag circuit, and controlled simulation calls at signed times ; its absolute evolution times sum to less than . Therefore the total absolute simulation time is less than . More precisely, the simulation charge is the actual sum over all calls of . The remaining charge is where and are the actual reflection and verification counts. The table itself has data bits and controlled rotations; no polylogarithmic table-generation or finite-rotation synthesis bound is asserted.
Facts & Assumptions
Given: The finite OP5 circuit and its declared simulator resource function.
HHL finite sine-window phase-estimation algorithm: the attempt uses the signed times , reverses each phase and prepares/unprepares the sine table.
Finite capped amplification succeeds with a supplied lower bound: at most calls are made in each direction.
Hamiltonian simulation error and resources, Circuit-family and computation cost model, and HHL state-preparation and simulation access model: simulator, the actual supplied preparation form (including in dilation mode), QFT, table, reflection, verifier, and gate resources are separate additive cost coordinates.
Proof
The geometric sum of forward times is . The reverse list has the same absolute times, so one or call uses less than . By [F2], there are at most calls in each direction, giving total absolute time below . Since , , and , the stated order follows.
Each or circuit contains one forward and one inverse QFT, two sine-table circuits, one flag circuit, and one forward/reverse simulation list by [F1]. Multiplying their actual counts by the separate cost functions in [F3] gives the displayed additive charge; the fixed table is generated once, and every B, inverse B, reflection, and verifier use is counted in its own coordinate.
Normalization is stable under a small flagged-vector error
Statement
Let be an ideal flagged vector with . If and either or , then and .
Facts & Assumptions
Given: The two vectors and the stated lower and error bounds.
Ideal inverse amplitude and HHL postselection probability: the ideal well vector has norm at least .
The inner-product norm is definite, homogeneous, and satisfies the triangle inequality: ; applying it to and gives .
Proof
Under the absolute-error alternative, the reverse triangle inequality from [F2] gives . Under the relative alternative, because . Thus both normalizations exist.
Add and subtract and use [F2]: The absolute alternative makes this at most . The relative alternative makes it at most .
OP5 HHL returns the QLSP state within the requested error
Statement
Under the promises and precision allocations in HHL finite sine-window phase-estimation algorithm, let be the actual joint success vector for one prepared attempt, where rectangular-mode success includes the domain-tag projection. Write and for the ideal joint vector, including the unchanged preparation work and clean algorithmic registers. For and , the conditional returned joint pure-state ray (including unchanged preparation work) has a unit representative within vector norm of the normalized QLSP target tensored with the preparation work, clean algorithmic registers and well flag, and the capped amplification returns FAIL with probability at most . The same assertion holds for the Hermitian dilation, with the output in its tagged domain summand.
Facts & Assumptions
Given: The OP5 algorithm, a normalized input supported on , and the stated ideal simulator and circuit-error contracts.
Ideal inverse amplitude and HHL postselection probability: and ; tensoring the unit work, clean-register and well-flag factors gives .
Second moment of the signed sine-window phase kernel: conditional on each eigenvalue, the signed kernel obeys .
Relative stability of the HHL filter on supported eigenvalues: the well/ill flag-amplitude perturbation is at most times the ideal well amplitude.
Finite capped amplification succeeds with a supplied lower bound: probability at least of a verified well outcome, and its normalized good component is preserved.
Normalization is stable under a small flagged-vector error: relative flagged-vector error at most gives normalized-vector error at most .
HHL finite sine-window phase-estimation algorithm: the forward and actual inverse simulation calls have total full-space operator error, or total clean-input isometry error in the alternative mode, at most and the flag rotation has operator error at most this amount.
Operator error for the finite sine-prefix rotation table: the sine preparation and its inverse each have operator error at most .
Unitary hybrids on a preserved clean-work subspace accumulates local clean-input errors along the ideal all-clean workspace trajectory, including actual adjoints, controls and reference systems.
Hermitian dilation for a rectangular linear system: . For , , the diagonal Penrose construction gives . Thus the ideal well vector is fixed by the domain-tag projection.
Proof
First take the exact sine preparation, exact simulations and exact flag rotation. Before reversing phase estimation, different decoded labels are orthogonal. For a fixed eigenvalue , the well-flag projection keeps only the coordinate, so the squared error is By [F2] and [F3], this is at most . Summing with the eigenbasis weights shows that the exact-kernel well vector differs from by at most . Reversing the phase transform is unitary and preserves this norm bound.
Replacing the exact preparation, simulations and flag map by their implementations changes the attempt on its clean initial input by at most the sum of their norm errors. In the full-space mode this is ordinary unitary telescoping; in the clean-workspace mode [F7] applies because all ideal other gates leave simulator work untouched and ideal simulations return it to zero. The actual intermediate work need not be clean. In either mode the sum consists of two sine-table preparation uses, the total forward/reverse simulation budget, and one flag map, at most . The success projection is contractive and fixes : in rectangular mode this follows from [F8], and otherwise it is just the well flag. Applying it to both the exact-kernel comparison and the implementation error therefore gives using and . Hence and the implemented well probability exceeds .
The exact filter on supported eigenvalues is , so is the target. The normalization inequality in [L1] applies because step 2.1 gives relative error below : directly, . By [F4], every successful amplified branch is the same ray as ; choose the representative to obtain the stated distance. The preparation work factors as and is untouched by the HHL circuit; the ideal uncomputation leaves the other algorithmic registers zero and the measured flag in . Tensoring these unit vectors does not change any norm above. For a rectangular map with and , Hermitian dilation for a rectangular linear system gives ; the singular values of the scaled dilation are , so . This positive scalar cancels on normalization, leaving the ideal QLSP ray in the tagged domain summand. The actual successful vector also lies in that summand because includes its domain projection. Tracing out work gives the corresponding output density state.
HHL sparse-query and state-preparation cost
Statement
With the exact sorted QA20 XOR location/value interface and separately supplied uniform preparation, value-decoding, flag arithmetic and the certified QA25 phase-generation mode, the sparse-oracle specialization is: for a -sparse Hermitian instance with , supported gap , and target state error , the phase-estimation HHL method uses sparse-row/value queries and calls to and separately to , multiplied by their supplied costs. For fixed constant , this specializes to the displayed query order without an additional failure logarithm; for variable , include the factor . Arithmetic, gate/bit time, phase generation, uniform preparation, reflections and the OP5 sine table remain separately charged; the displayed asymptotic concerns sparse-oracle calls. Padding to the register of the sorted-access construction extends by zero, and the supplied input preparation remains supported on the original labels. Under direct simulation access, the simulator contribution is instead the explicit sum in HHL cost under direct controlled-simulation access.
Facts & Assumptions
Given: The finite OP5 parameters, exact sorted sparse access, norm/gap promise, and separately charged operations in the Statement.
Clean sparse-state preparation from sorted XOR locations constructs an exact block encoding of with normalization by taking entry bound , using location calls and value calls per encoding, adjoint or coherent control.
Qubitization query and gate resources and Correctness of the small-time-aware simulator give clean-input simulation error at most and signal calls for each nontrivial signed time, with exact identity on the stated small-time branch. Classical phase generation and other gate costs are separate.
Unitary hybrids on a preserved clean-work subspace supplies coherent-control, reference and actual-adjoint bounds and a hybrid along the ideal clean-work trajectory.
HHL finite sine-window phase-estimation algorithm and HHL cost under direct controlled-simulation access give , the least power of two at least , , , , fewer than absolute simulation time per or , and at most calls in each direction.
OP5 HHL returns the QLSP state within the requested error gives the requested state and amplification success guarantee with the declared OP5 precision budgets, including clean-workspace simulation.
Unitary and differential identities for finite matrix dynamics: is unitary and differentiable with derivative . With , the inner-product norm triangle inequality (The inner-product norm is definite, homogeneous, and satisfies the triangle inequality) gives by integrating the derivative on each unit vector and taking the operator-norm supremum.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: bounds for every unit vector .
Proof
Apply [F1] with , valid because . The extra padded system labels carry zero eigenvalues; the input remains in the original supported subspace, so its nonzero gap and inverse-state target do not change. The full unitary oracle circuits, controls and reversals act on all physical labels, including invalid labels, as constructed in [F1]; no padded-branch overlap contributes a matrix value.
Put . For each phase time , certified arithmetic selects a rational with and a rational simulator tolerance with ; their construction cost remains in the separately charged arithmetic/phase-generation coordinates. Invoke QA25 at rational signed time and tolerance . By [F2], its clean-input error from is at most , and by [F6]–[F7] the time-rounding error from is at most . Thus each effective forward call has clean-input error at most . Use its actual adjoint for the reverse call; [F3] gives the same clean-input error without assuming full-space accuracy on dirty inputs. The effective errors sum to as required in OP5, so [F5] applies with the stated state and failure guarantees.
In one or , sum the loose signal-call bound in [F2] over all signed rational times . Since , their absolute values sum to less than by [F4], so this uses signal calls; also makes . Multiplying by [F1]'s location/value conversion and then by the at most preparation/inverse-preparation calls gives sparse-oracle calls, with a possibly smaller constant value-query count. Literal reversals and coherent controls change only constants already covered by [F1]–[F3].
Since , . With , , and , the expression in step 3.1 is . For fixed constant this gives the displayed order. The separate and counts are at most each by [F4]. Padding only appends clean high index bits to their input/output register convention; no extra sparse query is needed for this embedding. Their actual implementation and any controls used remain charged as supplied costs. All other direct-simulation resource coordinates stay in [F4]'s explicit sum, so no table, phase-generation, gate or bit-time claim is inferred from the sparse-query bound.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Aram W. Harrow, Avinatan Hassidim, and Seth Lloyd, Quantum algorithm for linear systems of equations
- Andrew M. Childs, Robin Kothari, and Rolando D. Somma, Quantum algorithm for systems of linear equations with exponentially improved dependence on precision
- Andrew M. Childs, Lecture Notes on Quantum Algorithms