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.
Quantum Signal Processing
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Circuit Syntax, Denotational Semantics, and Measurement
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- 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
- 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-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
- 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 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
- 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
- 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
- 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
- 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
- Strongly Continuous Semigroups and Hille Yosida
- 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 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 Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Turing Machines, Configurations, and Computation
- Uniform Circuit Families, Promise Problems, and Complexity
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
The page fixes the Hermitian-reflection signal matrix, ordered phase product, coefficient-conjugation convention, and controlled scalar convention. It proves the equivalence between admissible polynomial pairs and phase sequences, completes bounded real parity polynomials, and gives a constructive synthesis specification with exact validation, phase extraction, certified numerical approximation, and separate query and implementation costs.
The local prerequisite route supplies Sturm counting, interval sign certification, and exact algebraic root isolation needed by the critical-point validator and complementary-pair construction. The complete modes retain finite root isolation. The efficient numerical mode supplies exact multiplicity/Sturm input validation, bounded-height rational rounding and bounded-grid roots, counted quadratic tower completion and peeling, and buffered certified atan2. It proves polynomial arithmetic count in degree and logarithmic precision in an explicitly charged ideal exact-algebraic field/order tower/DAG model; coefficient encoding/access and implementation bit costs remain separate. No finite-basis phase compilation or polynomial bit-time guarantee is inferred.
An optional supplied-complement branch accepts real coefficient parameters through an explicitly charged ideal-real field/equality/order interface. It validates the full complement identity before use, then constructs positive half-angle root descriptors and applies the same buffered phase loop without algebraic root isolation of those parameters. Its finite termination is conditional on that interface; it does not extend the bare-target arithmetic bound to parameter-oracle implementation.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Real-root intervals certify the sign of a real polynomial
Statement
Let be nonzero, and list all its distinct real roots in in increasing order, including roots at the endpoints. On every open component of after removing these roots, has constant sign. Therefore, if an exact sample point in each nonempty component has , and the endpoint/root values are also checked, then for every . Conversely, if on the interval, all these checks pass.
Facts & Assumptions
Given: A nonzero real polynomial and its finite set of distinct real roots in .
Fundamental theorem of algebra: every nonconstant complex polynomial has a complex root: every nonconstant complex polynomial has a root.
Division algorithm for polynomials over a field: division by a nonzero polynomial over a field gives a unique quotient and a remainder that is zero or has degree strictly below the divisor.
A nonreal root of a real polynomial comes with its complex conjugate: each nonreal root of a real polynomial occurs with its conjugate.
The reals form a field: the real numbers are a field, so polynomial coefficient and factor arithmetic take place in a field.
The reals form a totally ordered field: the real numbers carry a compatible total order, which determines signs of real factors and polynomial values.
Proof
Repeated use of [F1] and [F2] factors over into linear factors with multiplicity. For a root of multiplicity , write with . Conjugating coefficients gives and , so the conjugate has exactly the same multiplicity. Thus, consistently with [F3], nonreal factors pair as , which is strictly positive for real when . The remaining factors are real linear factors for the real roots .
On an open interval containing no real root, each real factor is either strictly positive throughout or strictly negative throughout by [F5]; every paired nonreal factor is positive throughout, and the real leading coefficient has fixed sign. Thus has one constant sign on that interval.
Each root value is zero, and the endpoints are checked separately. Step 2.1 shows each exact sample determines the sign on its entire root-free component, so the finite checks imply on all of . If everywhere, every sample and endpoint check plainly passes.
Sturm signed remainders count distinct real polynomial roots
Statement
Let be an ordered subfield and let be nonconstant and square-free, where square-free means . Put , , and, while the next remainder is nonzero, set . For , let be the number of sign changes in after deleting zero entries, where is the last nonzero member. If , , and , then the number of distinct real roots of in is .
Facts & Assumptions
Given: An ordered subfield , a nonconstant with , and with .
Division algorithm for polynomials over a field: division by a nonzero polynomial over a field gives a quotient and a remainder of strictly smaller degree, with the quotient and remainder unique.
The formal derivative of a polynomial: if , then .
Field and Ordered field: is a field with a compatible total order; since , every root considered below is ordered as a real number.
Intermediate value theorem, by bisection with a canonical left-half rule: a continuous function on takes every value between and : a continuous real function on a closed interval takes every value between its endpoint values.
The reals form a field and The reals form a totally ordered field: is a field with a compatible total order, so division in and signs of real polynomial values are defined.
Proof
Each nonzero remainder has degree smaller than its divisor by [F1], so the chain terminates. The Euclidean algorithm preserves the common divisors of and , and their gcd is by the square-free hypothesis; hence the last nonzero member is a nonzero constant. A nonzero polynomial has only finitely many real roots: repeatedly divide by at each distinct root in ; each division lowers degree, so there can be no more roots than the original degree.
For each intermediate index , the division identity is . If , then . No two consecutive members can vanish at one point: the identity would propagate a common zero to the final nonzero constant. Thus both neighbors are nonzero and have opposite signs at .
A polynomial with keeps its sign in some interval about : division by gives , and the finite polynomial is bounded on by the sum of the absolute values of its coefficients times the corresponding powers of . Taking small enough makes . Therefore, near a zero of an intermediate , its two neighboring members keep their opposite signs; whether is positive, negative, or zero, those three entries contribute exactly one sign change. Intermediate zeros do not change , including at an endpoint where is nonzero.
If is a root of , then : otherwise the Euclidean algorithm and [F1] give polynomials with , and evaluating at would give . Division in gives by [F6]. Expanding in powers of , the coefficient of in is ; the formal derivative formula [F2] says this coefficient is . By step 3.1, keeps the sign of near , so changes sign exactly once there, from the opposite sign to the same sign as . The first pair therefore loses exactly one sign change as passes left to right through .
The chain has finitely many roots by step 1.1. Every chain member is a real polynomial and so is continuous by [F4]; if its sign changed between two consecutive zeros, [F5] would give an additional zero. Thus between the finitely many chain-root locations all signs are fixed by [F6]. At every intermediate-member zero the variation is unchanged by step 3.1, and at every root of it decreases by one by step 4.1. Since , neither endpoint is a root of ; summing the changes from to gives equal to the number of distinct roots of in .
Exact interval boundedness by multiplicity strata and Sturm counts
Statement
Let be an ordered subfield with charged ideal exact field operations, equality tests and order tests. Given of degree at most , whether for all can be decided in such operations, without root isolation or coefficient-height assumptions. This is an arithmetic-count claim; implementation bit costs and input encoding/access remain separate.
Facts & Assumptions
Given: The ordered field, polynomial, degree bound and charged ideal exact operations in the Statement.
Sturm signed remainders count distinct real polynomial roots counts roots of a squarefree polynomial between nonroot endpoints by its signed negative-remainder chain.
Division algorithm for polynomials over a field gives exact division and degree descent. The monic gcd of two base-field polynomials is unchanged after extending the coefficient field allows multiplicity analysis over the complex field without changing the base-field gcd. Fundamental theorem of algebra: every nonconstant complex polynomial has a complex root splits complex polynomials into linear factors, with multiplicities.
The formal derivative of a polynomial gives the formal derivative formula. Expanding in powers of shows that in characteristic zero the th derivative reduces multiplicity to when .
A nonzero real polynomial of degree has no more than distinct real roots bounds the number of roots; Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function and Intermediate value theorem, by bisection with a canonical left-half rule: a continuous function on takes every value between and give sign constancy away from roots.
Proof
Set and when . The zero polynomial accepts; a nonzero constant accepts exactly when positive. Otherwise evaluate and reject a negative endpoint. Normalize to monic. Put and for , so . For a complex root of of multiplicity , its multiplicity in is : while , [F3] gives derivative multiplicity exactly , and once the root has left it cannot reappear in the gcd. Characteristic zero follows from .
Define for and . Each is monic squarefree with roots exactly the roots of of multiplicity at least . Hence is an exact polynomial quotient, with precisely the roots of original multiplicity , each once. This follows over by the multiplicity formula and factorization in [F2], and division in has zero remainder because its scalar extension does. The product is monic squarefree with exactly the odd-multiplicity roots of ; the empty product is . These are gcd, derivative, exact division and multiplication operations over , with no individual roots computed.
Remove and from whenever the corresponding endpoint is a root, each at most once, obtaining . If is nonconstant, its endpoints are nonzero, and [F1] counts its distinct real roots in ; for constant the count is zero. A positive count rejects: near an interior odd-multiplicity root , write with . Continuity gives a strict fixed sign for near , so the odd power gives opposite signs for on the two sides, both inside the interval.
If the count is zero, all interior real roots of have even multiplicity. Between successive roots its sign is constant by [F4], and crossing an even root preserves that sign by the factorization from step 3.1. Thus all nonroot points of have one strict sign. Among the fixed rational points , , at least one is not a root by [F4]. Find the first by exact Horner evaluation and accept exactly when its value is positive. All interior values are then positive or zero, and the checked endpoint values are nonnegative. Conversely nonnegative passes all checks. Since is equivalent to , this is the required exact decision, including invalid inputs.
All polynomial degrees are at most . Schoolbook long division costs field operations. A gcd or signed Sturm chain has at most degree decreases, costing operations/tests including leading-zero detection. There are gcd computations; derivatives, exact quotients and products cost in total, and endpoint/sample evaluation costs . Hence the total is . Every normalization divides only a verified nonzero leading coefficient. Exact divisibility and polynomial identities follow from steps 1.1–2.1 and may also be verified by multiplication within this budget. No refinement loop, coordinate sign oracle or implementation bit-time bound is used.
Certified complex-polynomial root isolation in exact algebraic arithmetic
Definition
The coefficient model is the exact algebraic model: coefficients and algebraic roots are represented by defining polynomials and rational isolators, with exact addition, multiplication, inversion of nonzero values, conjugation, equality, order, and real-sign decisions. Every such operation is charged as one exact algebraic operation. The algorithm makes no bit-complexity claim. A root descriptor consists of its defining square-free polynomial, an isolating rectangle containing exactly that root, and its multiplicity; exact algebraic operations refine these descriptors when needed.
ROOTS(p,b) takes a nonzero with rational or exact-algebraic coefficients and an integer . The zero polynomial returns INVALID; a nonzero constant returns the empty root list.
-
Compute by monic Euclidean remainders and set . The polynomial has each distinct root of exactly once.
-
If , put and enumerate rational until the strict inequality is certified. Search rational in increasing dyadic denominator and then lexicographic numerator order until the open rectangle has no root on its boundary, each vertex value of has nonzero imaginary part, and the restriction of to each directed edge is not the zero polynomial. The strict Cauchy bound puts every root inside every such rectangle.
-
To count a rectangle, first certify that its boundary is root-free: on each directed edge restrict to , , and use the exact polynomial gcd and Sturm count to decide whether and have a common zero there. Require also that every vertex has nonzero imaginary value and that no edge restriction is identically zero. If any condition fails for a proposed subdivision, enumerate rational vertical and horizontal cuts in the middle third of the corresponding side ranges, by increasing dyadic denominator and then lexicographic numerator, and use the first pair for which all four child rectangles satisfy these conditions.
-
On each directed edge of an admissible rectangle, isolate every distinct zero of in using the square-free Sturm sequence of . There are no endpoint zeros because the vertices have nonzero imaginary value. At each isolated zero, the boundary-root certificate gives ; exact sign refinement decides whether or . For , add if changes from negative to positive, add if it changes from positive to negative, and add if it does not change sign. For , add . The sum over the four counterclockwise edges is the rectangle's distinct-root count.
-
Discard rectangles with count zero. If the count is one and , where are its rational side lengths, retain its open interior. Otherwise subdivide by Step 3 and recount the four children. The open interiors are pairwise disjoint and their root-free boundaries ensure no root is omitted or duplicated.
-
For each retained rectangle , find its original multiplicity as the least for which has no root in . If is a nonzero constant, its count is zero. Otherwise is square-free and its boundary is root-free because divides . For in that order, form and test that its imaginary value is nonzero at all four vertices and its imaginary restriction to each of the four directed edges is not the zero polynomial. Use the first passing , and apply the boundary and crossing routines of Steps 3–4 with replaced by on the same rectangle, without subdividing. The resulting count is zero or one and decides common-root membership. The finite scalar search and its admissibility are proved in Correctness and termination of certified complex-polynomial root isolation ↗. This derivative test ends by , since is a nonzero constant.
The ROOTS return record is the input polynomial, its square-free part , and a list of records : is an open rational rectangle of diameter at most containing exactly one root of , and is that root's multiplicity in the input. The defining polynomial is over the declared exact coefficient field; it need not be a flattened rational minimal polynomial.
The same carrier supplies REALROOTS(h,w), with positive rational width threshold (default ), used for exact interval-sign checks. For a real nonzero polynomial with exact real-algebraic coefficients, replace it by its square-free part. Test and record roots at and directly, and divide out each corresponding linear factor once when present; the residual square-free polynomial has root-free endpoints. Isolate its roots in as follows: start with that open interval, use the Sturm variation drop to count roots, discard count-zero intervals, retain count-one intervals once their rational width is at most the requested threshold, and otherwise bisect at the first rational in the middle third that is not a root. Every interval endpoint is kept root-free. Return the original polynomial and an increasing list of exact-root descriptors: endpoint roots have singleton rational isolators, and interior roots have open rational isolators of width at most , the residual square-free defining polynomial, and their original multiplicities computed by the derivative/gcd test of Step 6 (using Sturm membership for an interior interval, and direct derivative evaluation for an endpoint singleton). A nonzero constant returns the empty list. A zero polynomial is handled separately by the caller.
SIGNCERT(h) decides whether throughout . If , accept. Otherwise check , call REALROOTS(h,1). Refine each interior isolator by the same middle-third Sturm subdivision, retaining its unique root, until its closure lies in and the closures of all distinct-root isolators are strictly separated, including the endpoint singleton isolators. Choose one rational sample in each nonempty open gap between these separated isolators and the endpoints (or if there are no roots). Accept exactly when every sample value is nonnegative. Exact algebraic comparisons determine all branches. SIGNCERT and REALROOTS use the same exact operation model and have no hidden numerical zero test.
This is a finite exact-algebraic procedure, not a polynomial-time bit algorithm. The root-separation, boundary-search, sign-certificate, Sturm, and winding-count proofs are supplied by Correctness and termination of certified complex-polynomial root isolation ↗. No arithmetic operation count implies a bit bound.
Correctness and termination of certified complex-polynomial root isolation
Statement
For every nonzero rational or exact-algebraic complex polynomial and integer , under the exact algebraic operation model declared in Certified complex-polynomial root isolation in exact algebraic arithmetic, the algorithm terminates and returns pairwise-disjoint open rational rectangles of Euclidean diameter at most , each containing exactly one distinct root and together containing every root. Each rectangle carries the algebraic root descriptor and the original multiplicity. The supplied REALROOTS and SIGNCERT routines also terminate and return the stated exact real-root and interval-sign certificates. No bit-complexity bound is asserted.
Facts & Assumptions
Given: A nonzero polynomial with rational or exact-algebraic coefficients and an integer , with the exact arithmetic and comparison operations of Certified complex-polynomial root isolation in exact algebraic arithmetic.
Certified complex-polynomial root isolation in exact algebraic arithmetic defines square-free reduction, a strict Cauchy bound, admissible rectangles, the signed positive-ray crossing count, subdivision, multiplicity testing, REALROOTS, and SIGNCERT.
Sturm signed remainders count distinct real polynomial roots: for a square-free real polynomial and root-free endpoints, the signed-remainder variation drop equals the number of distinct roots in the open interval.
Division algorithm for polynomials over a field: division over a field gives a quotient and a remainder of strictly smaller degree; a polynomial vanishing at is divisible by .
The formal derivative of a polynomial: the formal derivative of is .
Fundamental theorem of algebra: every nonconstant complex polynomial has a complex root: every nonconstant complex polynomial has a complex root.
Every nonzero complex number has a unique polar form with and : every nonzero has a unique polar representation with .
Real-root intervals certify the sign of a real polynomial: a nonzero real polynomial has constant sign on each open interval between consecutive real roots; checking one point in each root-free gap and checking the endpoints certifies its sign on .
is a field, every element is uniquely , and every nonzero element has inverse : is a field, so the complex polynomial Euclidean operations and coefficient arithmetic are defined.
The reals form a field and The reals form a totally ordered field: is a totally ordered field, so the real-root isolation, exact order tests, and sign comparisons are defined.
Proof
The Euclidean gcd in [F1] terminates because each nonzero remainder has smaller degree by [F3]. By induction on degree, [F5] and [F3] factor over the field [F10]: take a root, divide by its linear factor, and repeat on the lower-degree quotient. At a root of multiplicity , write with . Differentiation by [F4] gives for and . Also has multiplicity exactly at , so contains that root once. Thus square-free reduction preserves exactly the distinct roots, and the least derivative order with no common root at is its original multiplicity. It remains to verify the membership implementation.
Put for a degree- polynomial. If , then and Hence . The exact comparisons and increasing rational enumeration in [F1] therefore find a strict rational bound; any rectangle whose two half-widths exceed that bound contains every root in its interior.
For nonconstant square-free , each root has finite real and imaginary coordinates, so only finitely many vertical or horizontal offsets pass through a root. Only finitely many horizontal offsets can make identically zero as a polynomial in : otherwise every coefficient polynomial in would vanish identically, which would force to be the zero bivariate polynomial; writing first on the real axis and then differentiating its coefficient expansion in shows this is impossible for nonconstant . The vertical case is identical. Each vertex condition is the zero set of a nonzero polynomial in . A nonzero bivariate polynomial cannot vanish on an open rectangle: fixing one coordinate on an interval makes each coefficient polynomial in the other coordinate vanish on an interval and hence identically. The finitely many forbidden coordinate lines and vertex zero sets thus cannot fill the open rational search region . Rational pairs are dense there, so the outer-bound enumeration in [F1] finds an admissible rectangle.
On each edge, simultaneous vanishing of and is equivalent to a root of their gcd. The vertex test excludes endpoint roots, so [F2] decides whether such a root lies in the edge interior. At each zero of , boundary-root-freeness implies ; the sign of this exact nonzero algebraic value is decidable by refinement, and the square-free Sturm sequence isolates every zero of . Thus every crossing and its direction in [F1] is finitely and exactly determined.
REALROOTS is correct at each subdivision by [F2]: its square-free polynomial first records any roots at and , divides out those endpoint linear factors using [F3], and applies Sturm to the residual, whose endpoints are root-free. The selected interior cut is not a root, so the two open children partition the residual roots. The polynomial has finitely many distinct roots by repeated division and degree decrease [F3]. If there are at least two, the minimum separation of its finite root set is positive in the real order [F11]; repeated bisection eventually makes every positive-count interval narrower than both that separation and the requested width. Each level has finitely many intervals, so the recursion terminates and outputs disjoint isolators for all real roots in , together with the endpoint roots tested separately.
In a parent rectangle already satisfying the admissibility tests, the same finite-exclusion argument gives an admissible cut pair in the product of the two middle-third intervals. Cut coordinates that pass through roots are finite in number; offsets making an edge imaginary restriction identically zero are finite; vertex-zero conditions along an old side are nonzero univariate polynomials because that side's imaginary restriction is not identically zero; and conditions at a new cut intersection are nonzero bivariate polynomials by the argument in step 1.3. Their finite union has empty interior. The exhaustive dyadic enumeration therefore finds cuts for which all four child boundaries satisfy the exact tests.
Let traverse an admissible rectangle counterclockwise. Each edge restriction is polynomial, avoids zero, has nonzero imaginary-part polynomial, and has no endpoint with zero imaginary part. It therefore meets the positive real ray only at the finitely many interior zeros isolated in step 1.4. For , define as the unique in its polar representation; existence follows by applying [F8] to and adding . This branch is continuous: on each open semicircle avoiding the cut, the unit-circle parametrization is one-to-one, and the chord identity shows that nearby circle points have nearby angles. Thus on every subarc between positive-ray intersections, is continuous. At an upward crossing its one-sided values approach and , so adding to the subsequent branch continues the lift and increases its integer offset by one. A downward crossing decreases the offset by one, and a non-crossing contact leaves it unchanged. The curve is closed and its starting vertex is off the ray, so the lifted argument's total increment divided by is exactly the signed crossing sum in [F1].
For nonzero real , REALROOTS returns all roots in by step 1.5, and the additional isolator refinement terminates: the finite distinct interior roots have positive distances from each other and from , and each refined interval contracts by at least . Thus their closures eventually separate strictly. Every component between consecutive actual roots contains the rational sample in the gap between their isolators; the two outer components are treated the same way. By [F9] this sample determines the sign on that whole component, including the portions inside isolators up to their roots; the root values themselves are zero and the endpoints are tested separately. Thus the routine accepts exactly when on the whole interval. The branch accepts directly.
Step 1.1 factors over its distinct roots. Continuous argument lifts add under multiplication, so the winding increment of is the sum of the increments of these linear factors. Fix one root not on the rectangle boundary. Enumerate rational directions with by increasing positive denominator and then numerator pair, and take the first whose line is not parallel to a rectangle side and whose line through contains no rectangle vertex. Only finitely many directions are forbidden, while rational directions are dense, so this search terminates. Normalize the chosen vector to a unit scalar ; its norm is nonzero. Rotating the curve by the constant unit scalar does not change its total argument increment, and makes the chosen direction the positive real ray. If is inside the convex rectangle, the ray leaves it exactly once; counterclockwise orientation puts the interior on the left, so this outward crossing is upward and contributes . If is outside, the ray either misses the rectangle or enters and exits it, contributing a downward crossing and an upward crossing whose signs cancel. Thus the winding increment of divided by is exactly for an interior root and otherwise. Summing over the distinct roots shows that the signed crossing count of in step 2.2 is exactly the number of roots inside the rectangle. Since is square-free, this is the number of distinct roots.
For a retained rectangle containing the unique root of , let , . This gcd is nonzero. A constant has zero roots; otherwise divides square-free , so it is square-free and has no boundary root. At a vertex , vanishes for at most one real , since . On an edge write . The polynomial can be identically zero for at most one : two such values would force , contradicting boundary-root-freeness. Thus the four vertices and four edges exclude at most eight scalars, and one of passes all exact tests. The nonzero scalar preserves roots and square-freeness. Steps 1.4, 2.2 and 3.1 therefore count its roots on the unchanged rectangle, giving one exactly when . Each derivative test terminates, and step 1.1 gives the least zero-count order as the original multiplicity, by . For REALROOTS, root-free interval endpoints also remain root-free for gcd divisors; [F2] decides interior membership, constants have zero count, and endpoint singletons use direct derivative evaluation.
A cut line contains no root by step 2.1, and each parent boundary is root-free by admissibility. The four child interiors therefore partition the parent's roots without omission or duplication; their exact counts are correct by step 3.1. Discarding count-zero children and continuing preserves exactly the roots inside the initial rectangle, which contains all roots by step 1.2.
Each subdivision cut lies strictly inside the corresponding middle third, so each child's side lengths are at most of its parent's. The finite set of distinct roots has a positive minimum pairwise distance when it has at least two elements. After finitely many levels, every rectangle has diameter below that separation and below ; hence it cannot contain two roots. If there is one root, only the precision condition is needed. The finite four-child tree then terminates. Every retained rectangle contains exactly one root, their open interiors are pairwise disjoint, and step 4.1 supplies the correct multiplicity.
Bounded-grid rational root isolation and rounded numerical QSP input
Definition
This is the efficient numerical variant explicitly authorized by OP0/OP1; the complete exact/complete numerical modes retain their own root schedule. Its cost coordinate charges rational field arithmetic, including exact integer arithmetic on loop indices, rational comparisons, and exact input-coefficient comparisons. In particular, each integer midpoint division by in a bounded binary search is charged. Exact input-coefficient equality/order tests are explicitly ideal charged resources; coefficient encoding/access and implementation, including any algebraic refinement or minimal-polynomial conversion, are separate costs. It asserts no Turing or bit-time bound.
ROUND-QSP(p,d,δ) receives a real coefficient polynomial of degree at most , parity , with on , and rational . Put . Initialize and increment it until . Set . Set if and if . For each permitted coefficient of , set the integer , initialize and , and repeat while : set , compare with , and set if , otherwise set . Let . If , set this rounded coefficient to that mesh value; otherwise compare with and choose the nearer of and , taking the lower point in a tie. Keep all other coefficients zero. For the only permitted coefficient is the constant coefficient and this same search rounds it; no interpolation is used. Return the resulting dyadic polynomial and the integer polynomial obtained from by multiplying by .
GRID-ROOTS(P,b) receives a nonzero rational real polynomial and . If is constant, return the empty root list. Otherwise let . First divide every coefficient by the nonzero leading coefficient, using rational field operations. Only then clear the denominators of these monic coefficient ratios and remove integer content. Compute integer gcds by Euclidean division, obtaining each quotient by bounded integer binary search rather than a free floor primitive. Use the square-free reduction, winding count, multiplicity test and real Sturm counts of Certified complex-polynomial root isolation in exact algebraic arithmetic, with the following bounded search and rational sign implementations.
At any coordinate interval , set , where . Choose the least dyadic denominator for which the middle third contains at least consecutive grid points . Take its first points. For outer half-widths use intervals , with rounded upward to an integer; the search need not start at zero. Test all pairs of the two -point sets in lexicographic order, using precisely the existing root-free-boundary, nonzero-vertex-imaginary-part, and nonzero-edge-imaginary-polynomial tests. Use the first admissible pair. If none exists return INTERNAL_ERROR. For subdivision use the two parent coordinate intervals and their middle thirds, so every child width is at most of its parent width. This bounded search replaces the unbounded global dyadic-pair enumeration only in this numerical alternate.
Implement each edge sign , where , by rational root isolation of the square-free part of (omit a nonzero constant factor, and handle separately). Use Sturm counts of and in each product-root isolator to identify the -roots; retain only those with -count one and -count zero, refining as needed. Use a rational sample therein for the sign of . Boundary root-freeness ensures that is not a common root. Endpoint roots are tested and factored out before open-interval Sturm counting. The sign change of at is its pair of rational endpoint signs. For sign refinement avoid roots of when choosing cuts. The one-dimensional Sturm subdivisions use the first nonroot among dyadic grid points in the middle third, with the same bounded-grid rule. Euclidean gcd, division, and negative-remainder Sturm chains use exact rational field operations. Stop and return isolators by the original diameter/count rule.
Polynomial arithmetic cost for rounded-input bounded-grid root isolation
Statement
Let be a nonzero real rational polynomial of degree . Let bound the binary lengths of its integer coefficients after clearing denominators and removing content. The efficient alternate GRID-ROOTS(P,b) terminates and has the same root/multiplicity correctness as ROOTS. It uses exact rational arithmetic and comparison operations. No cost for a rational operation is silently identified with its bit cost.
For bounded real of degree at most and parity , put and . ROUND-QSP(p,d,δ) uses exact coefficient comparisons and rational arithmetic, and returns a parity-preserving dyadic with , , and an integer multiple of with degree at most and coefficient height . Consequently its root isolators to bits cost arithmetic operations independently of the original coefficient heights in this declared coefficient-access model.
This does not assert polynomial arithmetic complexity for refining the resulting algebraic QSP phases, nor bit complexity for the Euclidean-remainder implementation, nor efficient reading of an arbitrarily long input encoding.
Facts & Assumptions
Given: The inputs and exact rational/input-comparison model in the Statement.
Bounded-grid rational root isolation and rounded numerical QSP input defines rounding and bounded-grid root isolation.
Correctness and termination of certified complex-polynomial root isolation establishes correctness of the original winding/Sturm/root/multiplicity procedure for admissible cuts. Only its finite correctness, not a resource claim, is used.
Sturm signed remainders count distinct real polynomial roots identifies the signed-remainder variation drop with the open-interval distinct-root count after endpoint handling.
The discriminant of a monic polynomial as the coefficient expression of defines the discriminant of a monic polynomial with integer coefficients by an integer coefficient polynomial . The discriminant is and vanishes exactly when a monic polynomial has a repeated root states that this discriminant is and is nonzero exactly when the polynomial has no repeated root.
Proof
For interpolate at , . The Lagrange basis is . The numerator's sum of absolute coefficients is at most ; the absolute denominator is . Therefore each coefficient of has absolute value at most , and, since , every coefficient of has absolute value at most . This interpolation identity follows because subtracting the interpolant leaves a polynomial of degree at most with distinct zeros. For use . Hence , independently of any encoding of the original coefficients.
We give explicit coarse separation estimates sufficient for counting subdivisions. For a primitive integer polynomial of degree and coefficient magnitude at most , every root has by the Cauchy argument: outside that radius the leading monomial strictly dominates the geometric sum of the others. Every primitive integer divisor of has leading coefficient dividing that of and all its roots among those of . Its coefficients, by expanding its linear factors, thus have magnitude at most . The assertion that primitive integer divisors may be used here follows from Gauss's lemma: products of primitive polynomials are primitive, since reduction modulo any prime gives a product of two nonzero polynomials over a field; clearing denominators of a rational factorization and comparing contents then gives the integral factorization. Consequently the primitive square-free part, and every gcd with another integer polynomial, has coefficient height . This is an output coefficient-growth bound; it does not bound the internal Euclidean fractions.
For the root-isolation input , if , the constant branch in [F1] returns the empty list, which is correct and takes constant work; assume below. Put equal to the square-free part of and . This is a nonzero real bivariate polynomial of total degree at most : if vanished everywhere, its derivative and its derivative would force by the coefficient expansion, contrary to nonconstancy. A nonzero bivariate polynomial of total degree vanishes at at most points of a product of two -point sets. Indeed, if its leading nonzero coefficient as a polynomial in has -degree , at most -values annihilate that coefficient; at every remaining there are at most -zeros, giving at most . Each fixed old edge restriction of is nonzero by admissibility, so it has at most forbidden new vertex coordinates. There are at most root real coordinates and root imaginary coordinates, and at most coordinates making vanish identically along a vertical or horizontal line: such a coordinate must annihilate any chosen nonzero coefficient polynomial. The new center-vertex condition excludes at most pairs. Old-edge vertex, root-line, and identically-zero-edge restrictions together exclude fewer than pairs. The analogous four outer-corner polynomials are nonzero and obey the same bound. Therefore gives an admissible pair both outside and inside, so INTERNAL_ERROR is unreachable. At most candidate pairs are tested at each node. A univariate nonzero polynomial similarly excludes at most candidates, proving the one-dimensional bounded search.
Let and . The least- rule gives and, unless , . Since , the shrink factor lies in . For each scaled coefficient, binary search over the integer mesh indices in , where , finds the lower mesh point and exact comparison with its midpoint resolves the rounding tie. Since the interpolation bound gives , this search interval contains the needed cell and takes exact comparisons and rational arithmetic operations, including each integer midpoint division by two. Rounding error per coefficient is at most , so . Thus and . Parity is preserved because forbidden coefficients remain exactly zero. The integers have length , and the convolution coefficients of have length . Minimality of gives , proving the claimed height and rounding cost, also when . Zero leading rounded coefficients only lower the actual degree.
Let be the primitive square-free integer part of , of degree . Define . Its leading coefficient is one, and its -th coefficient for is , an integer. Its distinct roots are , with . By [F4], is a nonzero integer and . If is the least separation of its roots, all other pairwise distances are at most , so . Therefore the separation of the roots of obeys . Step 1.2 bounds by and by , so . Constants and degree-one polynomials need no separation estimate. This argument uses only the two actual local discriminant suppliers in [F4], with no resultant multiplicativity premise.
Every child side length lies between one third and two thirds of its parent side length. The initial side lengths have logarithm , by the original Cauchy bound. By step 2.2, after levels every rectangle has diameter less than both and the least distinct-root separation, and hence has count at most one. At every level at most positive-count rectangles exist, because their disjoint interiors each contain a root by [F2]. Each is replaced by at most four children, so there are tested tree nodes, not . A side at level has length at least its initial length times . The least dyadic denominator containing middle-third points therefore has exponent ; all coordinates have numerator and denominator length . Even if the interval already contains many integers, only its first grid points are tested. This last restriction is essential: unrestricted lexicographic enumeration of all pairs in a very wide interval has no polynomial bound merely from a finite forbidden-coordinate count.
For root analysis with (the constant case is settled in step 1.3), integer parts and grid generation are charged operations rather than free primitives. For a rational operand of numerator/denominator length at most , find its bounding signed powers of two by doubling, then find its floor by binary search through the bounded integer interval, using rational comparisons and additions; compare exactly with the resulting integer to obtain the ceiling and strict open-interval endpoints. Before denominator clearing, normalize the input by its nonzero leading coefficient in rational field operations. If is its primitive integer representative with height , each resulting monic coefficient ratio is , whose reduced numerator and denominator lengths are , independently of an arbitrarily large common rational scalar in the original . The product of these at most denominators has length ; using that product as common denominator gives integer coefficients of length . Their content is found by integer Euclidean gcds. Each division quotient is obtained by the bounded binary search just described, with polynomial-length integer operands. Integer remainders decrease in magnitude; after at most two nonterminal divisions the larger nonzero operand has at least halved (if the first remainder exceeds half the previous divisor, the next is smaller than its complement). Thus the number of divisions per gcd is linear in the initial operand length. Content removal and denominator clearing therefore cost rational arithmetic and comparisons. The resulting primitive integer representative has height at most and is the input used in step 1.2 and step 2.2 and step 1.3 and step 3.1. In particular the outer is obtained in operations from the original coefficient ratios. To generate a grid, begin with denominator one and double it, recomputing the strict lower/upper admissible integer numerators by this binary search, until their difference gives at least points. Step 3.1 bounds the number of doublings by ; every rational tested has polynomial numerator/denominator height in , because it is a parent coordinate or width times such a dyadic denominator. Each integer-part search therefore costs operations. Writing the first consecutive grid numerators costs further additions. This bound also applies to any one-dimensional bounded grid once its coordinate-height and denominator-doubling bounds are established. The least in rounding is likewise found by sequential denominator doubling and exact comparison with , with iterations; mesh-cell integer selection is the bounded binary search already charged in step 2.1. No floor, ceiling, or denominator selection is treated as unit-cost.
Each rational edge substitution into has degree at most . Clearing the rational denominators after binomial expansion gives real and imaginary integer polynomials with coefficient height : each term uses at most coordinate factors of length and one coefficient of height , and there are at most terms per coefficient. This also applies to all proposed edges, since they use the same bounded-coordinate grids. Products of two such edge polynomials have polynomial degree and height. Their primitive square-free parts and gcds have polynomial output height by step 1.2, and their distinct roots have separation by step 2.2. The same facts apply to the gcds used for multiplicity tests, since the -th derivative has coefficient height and its gcd is a divisor of .
Polynomial division of degree-at-most- rational polynomials takes field operations, and Euclidean and negative-remainder chains have at most nonzero stages. A Sturm evaluation at rational endpoints thus takes field operations and comparisons, regardless of the rational operand sizes. Square-free reduction and every boundary gcd test have the same polynomial arithmetic bound. Isolate each edge's -roots on with the bounded one-dimensional search, first handling endpoint factors. The separation estimate for the square-free product proves that levels suffice to separate distinct -roots and distinguish each -root from all noncommon -roots. A root of on the edge is not a root of by the certified boundary test. Refinement therefore eventually puts in an interval containing no -root; [F3] certifies this last fact by zero -root count, and a rational sample gives the nonzero sign of there. The sign change of is its two endpoint signs. At every level at most positive -root intervals are retained (at most when isolating the product). For a depth- interval in , its length is at least and its endpoints have dyadic height ; the grid denominator therefore requires doublings. The grid integer parts, ceilings, and written candidate coordinates are consequently charged by step 4.1 within the same polynomial operation bound. Endpoint handling, bounded-grid cuts, all root counts, and all refinements therefore take rational arithmetic operations. A nonzero constant has no crossings; an identically zero was already excluded by the grid.
Combining nodes, candidates per node, polynomial edge costs from step 5.1, and at most derivative/gcd multiplicity tests per retained root proves rational arithmetic cost. All accepted boundaries satisfy exactly the conditions in [F2], so its winding, partition, and multiplicity arguments prove correctness unchanged. Substituting and from step 2.1 gives the claimed rounded-input root cost. The proof counts field operations; it never bounds Euclidean intermediate operand lengths or the precision required by later algebraic phase calculations, so it makes none of those additional assertions.
Integration boundary
The cited source's p.12 paragraph and Corollary 10 state an efficient classical generation claim. They are context for this local construction, not premises replacing steps above. Theorem 4 is unnecessary for this root supplier; Theorems 3 and 5 are used only by completion/peeling consumers.
Completion, peeling and phase approximation are supplied separately by the local completion/peel arithmetic lemma and buffered phase theorem. This root theorem supplies their exact bounded-height root list; it does not assert floating-point peeling stability or a Turing compiler bound.
QSP signal matrix and ordered phase sequence
Definition
Let , put using the nonnegative real square root, and define the Hermitian-reflection signal matrix For each real , define . For an integer and real phase list , the length- QSP sequence is the ordered matrix product where the product is written left to right in increasing and matrix multiplication acts right to left. For this is . This definition fixes the sign of the off-diagonal signal entry, both endpoint phases, and the product order.
The phases are in matrix order: when the factors are applied as chronological circuit layers, the rightmost factor acts first, in accordance with Denotational semantics of a finite layered circuit. In the ordered signal basis, if both coordinates are nonzero, applying multiplies the ratio of the second coordinate to the first by ; if either coordinate is zero, that relative phase is undefined, while the displayed matrix action remains defined. This is the relative phase convention fixed by Relative Phase.
Buffered certified rational phase approximation
Definition
PHASEAPPROX(ω,η) takes a unit scalar and positive rational tolerance . Coordinates may be exact algebraic, or exact real expression-DAG nodes in the following explicitly selected ideal-real model. A finite input table labels real constants by their stipulated values; a constant is a parameter with an oracle interface, not a finite rational encoding of an arbitrary real. DAG nodes denote rational constants, those parameters, field operations (division only by a tested nonzero value), and uniquely specified nonnegative square roots. The interface supplies exact equality and order tests on all such expressions, including comparisons with rationals; each call and each field/node operation is charged, together with rational arithmetic and written descriptors. An implementation may additionally return certified rational enclosures, but no enclosure-based equality decision is presumed. This ideal interface is an explicit resource assumption; arbitrary Cauchy names alone do not supply it. Algebraic inputs retain the original exact-algebraic operation model. Implementation and parameter-oracle costs are separate, with no Turing-time claim. Put . Reject a failed unit promise as INVALID.
- Compute a rational interval of width at most for . For each arctangent use consecutive partial sums of as the enclosure. Increment until and use sums through indices . Combine the two intervals outward.
- Check coordinates for exact zero. If , set ; if , set ; if , set ; if , set . In these axis branches proceed to instruction 5. The zero vector returns INVALID.
- Set and . While , set and . Compute rational Taylor sums for cosine and sine at with error at most . Retain at least indices ; increment until twice the next absolute term is at most . The successive-term ratios after this index are at most . Form the exact real expression . If , set . Otherwise if , set . Otherwise set . Equality takes this last branch.
- If , set ; if , set ; if , set ; if , set .
- Set to the rational midpoint of . Find by repeated halving until . Round to a multiple of within , obtaining ; this can be done by binary search among the dyadic grid points in , charging every comparison and written bit. Return , , and the rounding bound as the phase certificate.
Use the returned rational phase in from QSP signal matrix and ordered phase sequence. All branches and operation counts are explicit; no coordinate-isolator refinement or equality test involving a transcendental sine/cosine value is invoked. In the ideal-real variant all coordinate equality/order calls use the explicitly supplied interface. This definition makes no Turing-time or finite-basis compilation claim.
Admissible polynomial pair for Hermitian-reflection QSP
Definition
For an integer , a pair is QSP-admissible of degree bound when:
- or , and every exponent with nonzero coefficient in is congruent to modulo ;
- or , and every exponent with nonzero coefficient in is congruent to modulo ;
- the formal polynomial identity holds, where if .
The zero polynomial satisfies every degree bound and both parity conditions. On real , coefficient conjugation gives . The bound is nominal; a polynomial may have smaller degree of the same parity.
Facts & Assumptions
Given: An integer and an admissible pair as defined above.
Real and imaginary parts, complex conjugation, and modulus: complex conjugation fixes real numbers and .
Verification
For real , conjugating each coefficient of and using gives ; the same calculation gives . Hence the polynomial identity implies for every real .
If , then both summands are nonnegative, so and . Taking nonnegative square roots yields and . At the degree convention forces , so the second bound also holds at both endpoints.
Hermitian-reflection and SU(2) QSP convention conversion
Statement
Put , , , and . Then For , define . If is the SU(2)-convention phase list with , for , and , then The affine phase-list map is invertible. The scalar is part of the identity: in a control-first block it acts on the active control branch and cannot be discarded as a global phase.
Facts & Assumptions
Given: , real phases, and the definitions of and in QSP signal matrix and ordered phase sequence.
QSP signal matrix and ordered phase sequence fixes , , the ordered product, and the control-relevant phase convention.
Euler's formula: for every real gives for real .
, and the complex exponential extends the real exponential gives and hence .
Real and imaginary parts, complex conjugation, and modulus: conjugation fixes real numbers and sends to .
Controlled Unitary Access: control-first access to a two-dimensional target has block matrix when that controlled call is explicitly supplied.
Quarter-turn values and shifts by pi/2 and pi gives and ; together with [F2], these give and .
Proof
By [F2, F6], , and [F3] gives . Multiplying the three matrices entry by entry therefore gives , since [F4] gives .
By [F2, F6], the diagonal entries of and are and , respectively. Multiplication gives .
Rearranging step 1.1 yields . Substitution in each signal factor and combination of adjacent diagonal phases by [F3] gives .
Replacing each by the right side of step 1.2 adds to the initial phase, leaves each intermediate phase unchanged after its two adjacent shifts cancel, and subtracts from the final phase. The resulting SU(2) list is exactly the stated , and the scalar remains . Each phase shift is affine with coefficient , so the map and its inverse are bijections on .
When the operation model explicitly supplies the controlled call on a control-first qubit and two-dimensional target, [F5] gives . Substituting on the active branch gives , which differs from unless , because the inactive block remains . Thus is a relative phase under control and must be retained.
Unitarity, determinant, and polynomial form of a QSP sequence
Statement
For every and phase list of length , is unitary with determinant . There are polynomials such that where or with parity , or with parity , and as a formal polynomial identity.
Facts & Assumptions
Given: , , and real phases .
QSP signal matrix and ordered phase sequence: , , and .
Euler's formula: for every real : for real .
, and the complex exponential extends the real exponential: for complex .
Real and imaginary parts, complex conjugation, and modulus: conjugation fixes real numbers, sends to , and .
For the displayed complex matrices, ; “unitary” means .
Proof
Since , direct multiplication gives , , and . Thus , so is unitary in the matrix convention [F5].
We prove the polynomial form by induction on . For , , so and satisfy the degree and parity bounds and .
By [F2] and [F4], ; by [F3], . Thus and . Each factor is unitary with determinant , so the signal factors give and .
Write a unitary matrix as with determinant . The cofactor formula gives ; by [F5], . Equating entries yields and . Applying this with shows the displayed lower row is forced by the first row.
Suppose the representation holds at degree . Multiplying on the right by gives and . These are polynomials with degree bounds and and parities and . The lower row then has the required form by step 3.1.
Put . The scalar phase in each recurrence factor cancels with its coefficient conjugate. Expanding the first norm gives Expanding the second gives The mixed terms cancel and the unmixed terms sum to . Thus the identity is preserved as a formal polynomial identity, and induction from step 1.2 proves it for every .
A nonnegative even polynomial has a bounded parity complement
Statement
Let and let be even, of degree at most , and nonnegative on . Then there are such that where , , has parity , and has parity . The zero polynomial is both even and odd and satisfies every degree bound.
Facts & Assumptions
Given: An integer and an even real polynomial with and on .
The polynomial ring over a commutative ring as finitely supported coefficient sequences with convolution: a polynomial is a finitely supported coefficient sequence, and multiplication is coefficient convolution.
Degree, leading coefficient and monic polynomial, with the zero polynomial having no degree: a nonzero polynomial has degree equal to the largest exponent with nonzero coefficient; the zero polynomial has no degree.
Fundamental theorem of algebra: every nonconstant complex polynomial has a complex root: every nonconstant complex polynomial has a complex root.
Division algorithm for polynomials over a field: division by a nonzero polynomial over a field gives a unique quotient and a remainder that is zero or has degree strictly below the divisor.
Square roots exist: a unique with ; the positives are : every nonnegative real number has a unique nonnegative real square root.
A nonreal root of a real polynomial comes with its complex conjugate: a nonreal root of a real polynomial occurs with its complex conjugate.
Real and imaginary parts, complex conjugation, and modulus: complex conjugation fixes real numbers, conjugates products, and .
is a field, every element is uniquely , and every nonzero element has inverse : the complex numbers form a field containing , with the displayed coordinate arithmetic.
The reals form a field and The reals form a totally ordered field: is a field with a compatible total order, so real polynomial division and sign comparisons are defined.
Proof
If , choose . Otherwise evenness makes for some . By [F3], [F8], and repeated use of [F4], factor over into its finite multiset of roots with multiplicity.
The root multiset, with multiplicities, is invariant under because substituting preserves the order of a zero, and under conjugation as follows: if with , conjugating the entire coefficient factorization gives and . Hence conjugate roots have exactly equal multiplicities, strengthening the root existence in [F6]. The multiplicity at zero is even because every nonzero coefficient of an even polynomial has even exponent. Every real root with has even multiplicity: write with . Division by gives for a polynomial . On a bounded interval around , is bounded (each of its finitely many monomials is bounded); choosing the interval small enough makes , so has the sign of there by [F9]. If were odd, would then have opposite signs on the two sides of , contrary to .
Pair the roots into the following classes, choosing one representative from each symmetric class. A zero root of multiplicity contributes . A real pair with and multiplicity at each root contributes ; this is a polynomial because is even. A real pair with and multiplicity contributes , where and . A pure-imaginary pair with and multiplicity contributes , where and .
A nonreal quadruple with and common multiplicity contributes . Put and , and set . Since , the two cases and give , so all displayed square roots are real by [F5]. Define . For , its quartic norm is ; because the quartic roots are the nonreal numbers , it is strictly positive on the real interval. Direct expansion gives , the product of the four linear root factors.
Let be the product of the nonnegative real factors associated with these root classes: for zero roots, for interior real pairs, for exterior real pairs, for pure-imaginary pairs, and the quartics from step 1.4. Then for a nonzero real constant , because both sides have the same roots with the same multiplicities and the same degree. Enumerate reduced rationals in by increasing positive denominator and then increasing numerator, and take the first outside the finite root set; this search terminates because a nonzero polynomial has finitely many roots by step 1.1. There by the nonnegativity hypothesis and , and by its displayed factors, so by [F9]. Let by [F5].
Multiply the corresponding root-class factors defined above to form , retaining the interior and zero factors as real factors. Repeated use of shows that for real polynomials . Their factor identities give for every . Both and are polynomials; their difference vanishes at infinitely many real points, so it is the zero polynomial, since a nonzero polynomial has at most its degree many roots by repeated division by linear factors.
In each root class, the real part and the coefficient of have opposite parities; a real zero or interior factor has only a real part. The multiplication rule in step 3.1 preserves this parity relation. If , the degrees of the factors give and : every imaginary term contains at least one factor whose imaginary coefficient has degree at least one below that factor's real degree. When , the pair has a unique parity profile determined by its nonzero component: has parity if , and otherwise has parity . If , then has degree at most , while , whose parity is , has degree at most ; both terms of would then have degree at most , contradicting . Thus and the required parities hold.
If , let be the parity profile from step 4.1. If , multiply by . Its conjugate product is , and the multiplication rule changes the profile from to . It raises the degrees by at most one, so the new bounds are and . If , no adjustment is needed. This also covers or , since the profile is read from the nonzero component. Thus the resulting meet the required bounds and parities, completing the identity.
Correctness and arithmetic resource bound for buffered phase approximation
Statement
Given exact real coordinates represented in either model of Buffered certified rational phase approximation with and rational , let . In a model charging one operation for each ideal exact field operation and order/equality comparison, the procedure Buffered certified rational phase approximation returns a certified rational angle with . It requires rational arithmetic operations and exact field operations/comparisons. It does not refine an algebraic isolator. The rational output has bits after a final dyadic rounding. This is not a claim about algebraic operation implementation, intermediate rational bit lengths, parameter-oracle implementation, or Turing time. The ideal-real conclusion is conditional on the stated equality/order interface, not on arbitrary Cauchy-name access. If , then .
Facts & Assumptions
Given: The algorithm Buffered certified rational phase approximation, the exact unit vector and tolerance above, and access to the charged exact field operations, including comparison with rational numbers.
Sine is positive and cosine is strictly decreasing on (0,2), with cos 2 at most -1/3 gives for ; parity gives for .
The subtraction formulas for sine and cosine gives the determinant identity used below.
Sine and cosine defined by their real power series and The sine and cosine power series converge absolutely for every real argument supply the series. Principal arctangent: derivative, integral, power series, and the Gregory–Leibniz series, The principal inverse tangent , and Cofunction, supplementary, quarter-turn, and reflection identities for the six trigonometric functions supply principal arctangent, its integral and series, and . If on then for every partition ; in particular every constant function is integrable, with supplies Darboux integral bounds.
Euler's formula: for every real , , and the complex exponential extends the real exponential, and Conjugation is an involutive real-field automorphism, , and modulus is definite, multiplicative, and subadditive identify the complex unit scalar and give the triangle/product modulus laws.
QSP signal matrix and ordered phase sequence defines as the diagonal with entries . The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||, The norm induced by a real or complex inner product, and The computational basis is orthonormal fix the operator norm and the orthonormal signal basis.
The alternating series test: if is nonincreasing with then converges, the sum lies between any two consecutive partial sums, and the error after terms is at most : for decreasing nonnegative terms tending to zero, the alternating-series remainder lies between zero and the first omitted signed term; consecutive partial sums enclose the sum.
The complex exponential by its power series defines , and The complex exponential series converges absolutely for every complex argument states this series converges absolutely for every .
Proof
First compute rational sine and cosine approximations at any rational to absolute error . For each series, retain at least the terms through index and use the recurrence of successive terms. Subsequent absolute-term ratios are at most and decrease: for cosine they are , and for sine they are . Twice the first omitted absolute term bounds the tail. Increment the index until this rational bound is at most . The geometric decrease gives terms and arithmetic operations, uniformly in . The returned partial sums therefore satisfy .
The integral formula and in [F4] give : on the two cells of the partition , the decreasing integrand has lower sum and upper sum . Thus . First check the coordinates for exact zero; an axis input takes instruction 2 of the algorithm. Otherwise set , by exact comparisons and signs, and initialize . It contains by [F1] and . While its width exceeds , set , , and compute as in step 1.1. Form the exact real expression . If , replace by . If , replace by . Otherwise replace the bracket by . These are two exact comparisons against rational buffers; equality belongs to the third branch. No comparison with an exact transcendental value is made.
Let by [F3]. Since , . Also because . By [F2], the sign of is the sign of , and . Thus either definite comparison in step 2.1 retains and halves the bracket. In the third branch, implies , so the intersection also retains and has width at most . It is nonempty. Every iteration contracts by at least a factor , independently of how close the unknown phase is to a midpoint.
Obtain a rational enclosure for of width at most by Machin's identity . For completeness, put , . The integral in [F4] gives , so by step 2.1. Sine/cosine addition and their quotient give , , and . Injectivity of the principal tangent gives . For each arctangent the positive terms decrease to zero for , so [F7] shows that consecutive alternating partial sums enclose its value, and their separation is at most after the first terms. Choose by incrementing until and take the outward linear combination of the two enclosures. This uses rational operations. All displayed denominators are positive; all angles in these tangent identities are in its nonsingular principal range.
The loop terminates in iterations, returning rational containing with . Its comparison count is linear in the number of iterations. In an iteration with width , step 1.1 needs rational operations. The total is therefore . The exact real expressions compared are only rational linear combinations of the fixed coordinates . No algebraic-coordinate approximation, root isolation, normalized-vector division, or sensitivity bound occurs in these instructions.
On an axis, the explicit OP0 branches build as follows: if , use ; if , use ; if , use ; if , use . The zero vector is excluded by the unit promise (the general atan2 procedure returns INVALID there). No angular bisection is needed on an axis. Otherwise use the exact signs of to build a rational interval for a phase of : if use ; if use ; if use ; if use . Reflection, quarter-turn and parity identities give , and . Let be its rational midpoint. Choose the least nonnegative integer with by repeated halving, and round to a multiple of , obtaining with . Thus . Put . By [F8], the exponential series converges absolutely and . By [F5], and , so . The phase lies in a fixed bounded interval, so this dyadic has bits. The constructed interval and rounding bound are the certificate.
Put . By [F5] and [F6], has diagonal entries . On a vector with orthonormal coordinates , its squared output norm is . Thus every unit vector has output norm , and the operator norm is exactly . Together with the operation counts and termination above, this proves all claims.
Constructive factorization of an admissible QSP polynomial pair
Statement
For every integer , a pair is QSP-admissible of degree bound if and only if there is a real phase list such that The converse is constructive: a leading-coefficient phase peel reduces the degree at each nonconstant stage. The polynomial identity, determinant signs, product order, and phase convention are exactly those in Admissible polynomial pair for Hermitian-reflection QSP and QSP signal matrix and ordered phase sequence.
Facts & Assumptions
Given: An integer and polynomials .
Admissible polynomial pair for Hermitian-reflection QSP: the degree bounds and parities are and , and as a polynomial identity.
Unitarity, determinant, and polynomial form of a QSP sequence: a length- reflection sequence has the displayed determinant- matrix form and its upper entries are an admissible pair.
Hermitian-reflection and SU(2) QSP convention conversion: for , the reflection sequence is times the explicitly phase-shifted SU(2) sequence; the map between phase lists is invertible and the scalar is retained under control.
Every nonzero complex number has a unique polar form with and : every nonzero complex number has polar form with .
Euler's formula: for every real : for real .
Over an integral domain, degrees add under multiplication of nonzero polynomials: for nonzero polynomials over a domain, the degree of a product is the sum of the degrees.
Division algorithm for polynomials over a field: division by a nonzero polynomial over a field gives a unique quotient and a remainder that is zero or has degree strictly below the divisor. In particular, division by leaves the constant remainder , so implies divides .
QSP signal matrix and ordered phase sequence: in the stated left-to-right, right-to-left matrix order; for , .
For displayed complex matrices, and “unitary” means ; and continue to mean coefficient conjugation of polynomials.
Proof
If the pair comes from a phase list, Unitarity, determinant, and polynomial form of a QSP sequence gives exactly the stated matrix form, degree/parity bounds, and polynomial identity for the sequence defined in [F8]. This proves the forward implication.
Let and suppose the pair is admissible. Then and is constant with . Set from the unique principal polar representation [F4]; [F5] gives . By [F8], , the required matrix.
Let . Parity gives and for constants . Evaluating the identity at and gives . Set and by [F4], so [F5] gives and ; then set , . By the order in [F8], direct multiplication of gives entries , , , and , exactly the four entries in the Statement for .
Now let and assume the converse has been constructed at every smaller nominal degree. Put and . Multiplication by unit complex scalars preserves the bounds, parities and coefficient-conjugate identity in [F1]. The corresponding source-convention matrix is For real , the diagonal entries of are , and the off-diagonal entries cancel as and its conjugate. Thus ; together with from [F1], this makes unitary by [F9]. Also and by direct multiplication using , while every is unitary with determinant by [F2, F9]. Thus the peel multiplies by unitary matrices.
If is constant, then the identity at gives . For every it then gives , hence throughout that interval. If were nonzero of degree , choose distinct points in ; repeated division by their linear factors using [F7] would force a divisor of degree of , contradicting [F6]. Thus . The parity of the nonzero constant forces even. Set by [F4], so [F5] gives . Direct multiplication using gives and therefore . This identity is the length-two phase product . Insert it on the left of the current sequence; the adjacent and initial combine to by [F3], so the result is again a standard phase list and has two additional signal factors. Repeating this times pads the constant sequence to nominal degree .
Otherwise let , with leading coefficients for and for . The identity forces and : if , the highest term of has degree and cannot cancel; if , the degree- term cannot cancel. At degree , the coefficients therefore satisfy . Thus has modulus one. Set using [F4]; then [F5] gives .
Multiply on the right by , where . The result has the same form with The possible degree- coefficient of and degree- coefficient of both equal zero by . Their parities then give and , the bounds for nominal degree . The right multiplier and are unitary with determinant , so their product is also unitary with determinant . The cofactor formula gives , whereas [F9] gives . Equating entries yields and . Since and , this is the required lower row . If , then and ; expanding their coefficient-conjugate products cancels the two mixed terms and leaves So is admissible at nominal degree .
Put and , the matrix in step 2.1. The pair is admissible at nominal degree , since the unit scalars preserve degree, parity and the coefficient-conjugate identity. Apply the reflection-convention induction hypothesis to this pair. Its displayed matrix is entrywise: the lower-row factors are and . By [F3], convert that reflection phase list to a source-convention list with , hence . Reversing the peel gives , so appending constructs the required finite source-convention list. Each induction call has strictly smaller nominal degree; steps 1.2, 1.3 and 1.5 supply the bases and constant padding.
For , apply the inverse affine phase map in [F3] to obtain a reflection phase list . Since , its upper-left entry is , its upper-right entry is , and its lower entries are and . Thus it is the required reflection sequence and the converse follows. Together with the forward implication and both base cases this proves the equivalence for all .
Completion of a bounded real parity polynomial
Statement
Let and let have degree at most , parity , and for every . Then there is a QSP-admissible pair of degree bound such that on . In fact, the completion is exact, so for every it also satisfies .
Facts & Assumptions
Given: An integer and a real polynomial with the stated degree, parity, and interval bound.
A nonnegative even polynomial has a bounded parity complement: an even real polynomial of degree at most that is nonnegative on has with the required degree bounds and parities.
Admissible polynomial pair for Hermitian-reflection QSP: admissibility requires the stated degree/parity bounds and .
Real and imaginary parts, complex conjugation, and modulus: conjugation fixes real coefficients and sends to .
Proof
Put . Since , and hence are even. Its degree is at most , and the interval bound on gives for every .
Apply [F1] to obtain real polynomials with , degree bounds , and parities .
Define and . By [F3], and , so and . Their sum in the admissibility identity is therefore . The degree bounds and parities of also give the required bounds and parities of ; hence the pair is admissible by [F2].
For real , the real part of is exactly . Thus the uniform error is zero and is at most every .
Arithmetic cost of exact tower completion and QSP phase peeling
Statement
Let be parity-compatible, of degree at most , with on . Let bound the binary lengths of every coefficient numerator and denominator of . Suppose its complete exact root list, multiplicities and fixed-precision rational isolating rectangles are supplied. In a model charging ideal exact algebraic field/order/equality operations and permitting finite extension tower/DAG descriptors, root-class completion and QSP phase peeling use operations and polynomially many descriptor nodes and written index bits. Positive roots use counted bisection with known rational upper bounds. For a unit peel ratio , choose if and otherwise with ; either square root of gives the exact factorization. Root generation, numerical phase approximation, expanded minimal-polynomial conversion, input encoding/access and operation implementation bit costs remain separate.
Facts & Assumptions
Given: The rational target and supplied complete exact root list in the Statement; rational and algebraic operations, comparisons, and descriptor construction are charged.
A nonnegative even polynomial has a bounded parity complement gives the complement existence, parity correction and degree bounds. The particular root-class norm identities used for the cost calculation are verified directly below.
Constructive factorization of an admissible QSP polynomial pair gives phase factorization of an admissible pair. The unit-ratio and cancellation calculations for the selected root are supplied directly below.
Hermitian-reflection and SU(2) QSP convention conversion gives the fixed eighth-root multiplications and complete phase-list conversion.
Square roots exist: a unique with ; the positives are gives the positive real square root of a positive real number.
Proof
For an exact algebraic with , select one square root by:
If , return (then necessarily ). Otherwise put , , and return .
Given an existing exact real algebraic value and a known rational , compare with zero. If equal, return rational zero. Otherwise initialize . While , put and compare with exactly. Equality returns the rational value . If , put ; if , put . After the loop, return the tower descriptor consisting of over the existing field and the rational isolating interval , specifying its unique nonnegative root.
Here , so the positive square root exists, is nonzero, and has the root-selection description , over the existing real algebraic field. Its two roots are distinguished immediately by sign. One has because , whence , , and . Therefore and . The case returns . No small-denominator numerical approximation is performed; the division is exact. There is no conditioning assumption.
For , the roots are , distinct, and only the positive root belongs to . The square function is strictly increasing on this nonnegative interval, so each branch preserves and excludes the negative root. Every iteration halves the width and uses rational or exact field operations and one exact comparison. Hence the routine uses operations/comparisons and writes a degree-two defining equation plus its rational isolator. A root at the original right endpoint is permitted in the closed isolator; the root is still unique. If open endpoints are required, start with ; this adds at most one iteration and makes the positive root interior unless a midpoint equality has already returned it rationally.
In a model requiring conversion at every step to a rational defining polynomial and a rational isolator, the quadratic relation has an algebraic coefficient. Converting it to a rational defining polynomial requires elimination, and converting all subsequent values into that representation can be expensive. The descriptor routine does not bound that conversion cost. A tower of quadratic extensions may have degree , even though its construction writes only degree-two tower equations and rational isolators.
This replaces a generic call ROOTS(,1) by a constant number of field operations and exact comparisons and the explicit quadratic-root descriptor routine below. It may choose the other square root from the existing lexicographic-rectangle rule. Either root gives the leading-term cancellation and an exact factorization: subsequent phases change coherently with that choice. The synthesis algorithm selects this formula in every mode; the efficient-numerical cost bound here uses its known upper bound rather than a bound search.
For the half-angle radicand , one has after the branch, so is known without search. One bisection suffices for a closed width- isolator; at most two suffice with the open-endpoint initialization. This is an actual counted descriptor-construction loop, not a free ROOTS call or a radical oracle. Subsequent field operations and order/equality queries on these tower values remain the explicit charged primitives of the declared exact algebraic comparison/field model. These are ideal exact equality/order resources charged per use; their implementation is not supplied by the descriptor loop.
Suppose the rational completion polynomial has nonzero coefficient numerators and denominators of absolute value at most . A rational Cauchy bound can be chosen with , because the leading coefficient ratio is at most . Every classified root coordinate then has absolute value at most . In the exterior class and the imaginary class , so and ; thus works. For a quadruple put . Then , so works for . Writing , direct expansion gives . Since , . Hence , and works for . All these descriptor-construction loops therefore use operations/comparisons per radical. They do not require roots to be well separated, and they do not approximate the input algebraic coordinates.
Write . Expanding the pair multiplication rule gives . The factors , , and have norms respectively , , and . For a quadruple put . Step 3.3 gives , and expansion gives . Consequently the pair has norm , the monic polynomial with roots . These identities verify the radicands and the norm factors directly. There is also no uncontrolled reciprocal scale hidden in the final . The squared norms of the unscaled elementary factors are, respectively, , , , , and the monic degree-four root polynomial for a quadruple. For the quadruple, the coefficient is . Thus the product norm has leading coefficient or . If is nonconstant, its leading coefficient is minus the square of the leading coefficient of the rounded target, and implies . Hence , and one can compute the rational upper bound to construct ; alternatively use the absolute value of the target leading coefficient directly. If is a nonzero constant, and suffices. The unit-norm parity correction does not alter or this bound. These estimates count only the quadratic descriptors after the exact root list has already been obtained; they supply no bound for generating that root list.
At a nonconstant peel, comparison of the highest coefficients in forces and , so and is unit. For either unit square root , the leading terms in and below are and ; parity lowers the resulting degree bounds by one. Direct expansion preserves the admissibility norm identity. The selected root therefore implements the same exact cancellation used for [F2]. Computing it, selecting the unit root above with its counted tower descriptor, and conjugating the root are charged operations/comparisons. The simultaneous coefficient-array updates , take field operations at nominal degree . Degree/parity scans take exact comparisons; there are at most peels. Thus the peel itself takes field operations/comparisons, including the quadratic-root descriptor constructions. If every full polynomial coefficient identity is recomputed naively after every peel, budget field operations instead; this remains polynomial. Padding and multiplication by the fixed eighth roots of unity use additional operations and at most one fixed descriptor construction with . The base constant is already a unit algebraic scalar and needs no Arg oracle.
There are at most roots counting multiplicity and therefore elementary complement factors and quadratic descriptors. Schoolbook polynomial-array pair multiplication and final coefficient-identity checks use field operations in total; root classification and symmetry checks use exact comparisons. Each descriptor writes a degree-two equation whose coefficients reference existing nodes, and an isolator of rational bits from its known bounded endpoint. Every field operation writes one referenced node rather than expanding prior expressions. Thus all certificate equations and operation lists have polynomially many nodes, indices and bits in ; the supplied root descriptors are referenced. These are arithmetic/descriptor costs, and make no claim about implementing the ideal equality/order tests or field operations.
Real bounded-polynomial QSP phase synthesis
Definition
Inputs and model. Input a real polynomial or with exact algebraic real coefficients, a declared degree bound , the required parity , and a positive rational tolerance . The exact algebraic arithmetic model charges one operation for each ideal exact algebraic field operation and equality/order test, and charges rational arithmetic, root refinement, numerical operations and written output separately. Intermediates may be stored as a finite extension tower/DAG, with defining polynomials over previously constructed fields and rational isolators. Original input reading, expanded rational minimal-polynomial conversion and operation implementation bit costs are separate coordinates. Modes are exact, complete-numerical, and efficient-numerical (the default numerical mode); the first two retain the complete OP0 schedule. No polynomial bit-time or finite-basis gate bound is implicit. An optional finite-phase compiler must terminate on each requested phase and return either a unitary circuit with a certified operator-error bound or a declared failure. The optional supplied-complement mode also accepts exact real polynomials as a proposed certificate; it skips only their generation, not validation or phase synthesis. These coefficients are parameters in the ideal-real expression-DAG/interface model of Buffered certified rational phase approximation; all derived field expressions and square-root nodes must be supported by its charged equality/order interface. The original target remains rational/exact-algebraic. In either numerical mode the supplied certificate must complete the actual produced in Step 2. No claim identifies these ideal-real inputs with arbitrary computable-real names or includes their oracle implementation in the efficient bare-target bound.
Positive-root descriptors. When a nonnegative real expression requires a square root, test and return zero in that case. Otherwise retain the exact node defined by . Construct its rational isolator by doubling from until , and bisect using comparisons of the rational midpoint squared with until width at most (or any requested positive rational width). An equality returns the exact midpoint singleton; otherwise retain the half containing the positive root. All comparisons, doublings, bisections and descriptor writes are charged. This constructs a uniquely specified root by order and square-root existence, with a finite bound search, rather than calling general polynomial ROOTS on ideal-real coefficients.
-
Validate the target. Check the degree and parity coefficient conditions exactly. In
efficient-numericalmode use Exact interval boundedness by multiplicity strata and Sturm counts on the original polynomial and return INVALID exactly when its interval promise fails. This uses only polynomially many field/order operations and no input-root isolation. In the other two modes compute the formal derivative . If is zero, check . Otherwise callREALROOTS(p')from Certified complex-polynomial root isolation in exact algebraic arithmetic, retain all roots in including endpoints, and evaluate exactly at those algebraic roots and at . ReturnINVALIDif any value is outside . This finite critical-point check certifies the full interval bound by the extreme-value and Fermat theorems. -
Set the numerical target. Put . In exact mode put ; in
complete-numericalmode put . Inefficient-numericalmode use ROUND-QSP from Bounded-grid rational root isolation and rounded numerical QSP input: shrink by and parity-preservingly round each coefficient to dyadic error at most . Its output has and . Thus either numerical mode has on and there. Clipping the shrink amount at keeps the target bounded for every positive tolerance. -
Build or validate the complementary pair. Set . First, in
supplied-complementmode, verify by exact coefficient arithmetic that , that have the required degree bounds, and that their parities are and ; returnCERTIFICATE_ERRORon failure, and on success go directly to Step 5, retaining the supplied pair even when . Without a supplied pair, if , set and go directly to Step 5. Only in the remaining case callGRID-ROOTS(R,1)from Bounded-grid rational root isolation and rounded numerical QSP input in efficient-numerical mode andROOTS(R,1)in the other modes. The former uses the rounded rational coefficients and bounded normalized cut grids, not the complete mode's unbounded lexicographic pair search. Verify the exact root symmetries and certificate on , and group roots by the following classes, retaining multiplicities: zero; real pairs with ; real pairs with ; purely imaginary pairs with ; and nonreal quadruples with . Sort descriptors by the rational isolating-rectangle coordinates, lexicographically. A failed symmetry or nonnegativity check returnsINVALID. -
Construct the pair. Start an unscaled pair . For a zero root of multiplicity , multiply by times. For an interior real pair of multiplicity at each root, is even; multiply by times. For an exterior real pair of multiplicity , multiply by times. For an imaginary pair of multiplicity , multiply by times. For a nonreal quadruple of common multiplicity , put and multiply by times. Each pair represents ; multiply pairs by Set . The factor identities show that has exactly the roots of , with the same multiplicities, and each root-class factor is nonnegative on ; hence for a positive constant . To see positivity, choose a rational outside the finite root set; then and . Compute as the ratio of the leading coefficients of and , and set using the nonnegative algebraic square root. Set . In efficient-numerical mode every positive square root in this step is represented by its degree-two tower equation and an explicitly bisected nonnegative rational isolator as in Arithmetic cost of exact tower completion and QSP phase peeling; the known root-bound-based upper endpoints make the descriptor loops polynomial. No generic ROOTS call with algebraic coefficients or flattened minimal polynomial is hidden in this instruction. Determine the parity profile from the nonzero component: has parity and has parity , with the zero polynomial allowed either parity. Since , these components are not both zero. If , multiply once by , whose squared modulus is . Verify the exact identity , the degree bounds and both parities; a failed identity returns
CERTIFICATE_ERROR. -
Make the admissible pair. For the reflection convention of QSP signal matrix and ordered phase sequence, set and . Then coefficient conjugation gives . OP1's source SU(2) completion packages an in its off-diagonal coefficient; this item keeps for the reflection signal. Step 6 forms the corresponding source-normalized pair, and step 7 maps the complete phase list back using Hermitian-reflection and SU(2) QSP convention conversion, including its scalar . Never use one convention's off-diagonal formula with the other's phases.
-
Peel phases. Form and , and initialize an empty peel list. For nominal degree , if is constant, verify and , verify that is even, and store the base phase scalar . Initialize the residual source phase-scalar list with . To pad to degree , prepend length-two identity blocks ; represent each block by phase scalars and merge adjacent phase scalars by multiplication in matrix order. An odd constant case returns CERTIFICATE_ERROR. After completing the constant branch and its padding, exit the peel loop and proceed to Step 7. Otherwise let , read leading coefficients , verify and , and put . In every mode choose when ; otherwise construct the positive root descriptor by the preceding instructions (first returning when the radicand is , otherwise using strict upper bound ) and set . It has unit modulus and square by Arithmetic cost of exact tower completion and QSP phase peeling. Since , ; in the nonexceptional case so and division is valid. This rule applies to ideal-real supplied coefficients without invoking algebraic ROOTS. Either square-root choice makes the exact leading-term cancellation valid. Set , append to the peel list with index , and update:
using the old right-hand sides simultaneously. Verify the coefficient identity after each peel. The cancelled leading terms lower the nominal degree by one. Return CERTIFICATE_ERROR if any exact check fails. The loop terminates after at most peels.
-
Convert and approximate phases. Append the reverse of the indexed peel list to the residual base phase-scalar list to obtain the source phase scalars in matrix order. If , take the sole reflection phase scalar to be . If , convert them to reflection phase scalars by the inverse map in Hermitian-reflection and SU(2) QSP convention conversion: set , set for , and set . These are exact multiplications by eighth roots of unity, represented with the positive root of and require no transcendental angle extraction; retain the exact scalar in controlled use. For each , call Buffered certified rational phase approximation with tolerance ; return its rational angle and distance certificate. If a finite-basis phase compiler is separately supplied, pass it those angles and require a unitary output with further operator error at most for each phase; return IMPLEMENTATION_ERROR if it cannot supply that bound. Without such a compiler, output the exact phase-scalar descriptors (algebraic or ideal-real as selected) and continuous-rotation list with finite-basis compilation marked not applicable.
Output and failure branches. On SUCCESS, return , the exact identity certificate, every leading-coefficient/root certificate, the numerical phase certificates, and the actual arithmetic, query, gate, precision and output-cost ledger. INVALID means the input promise failed. CERTIFICATE_ERROR means an exact generated or supplied identity check failed. IMPLEMENTATION_ERROR means the optional finite-basis compiler could not certify its allocated per-phase error. In efficient-numerical mode, without a supplied complement or optional compiler, the full construction and its continuous-rotation phase certificates require operations in the declared exact-algebraic arithmetic model, by Correctness of QSP phase synthesis ↗. Complete modes assert finite termination rather than that uniform bound; supplied-certificate reading and optional compiler work remain separately charged. No bare existence choice, free root oracle, free phase gate implementation, or finite Turing complexity claim is made.
Hybrid bound for imperfect QSP phase rotations
Statement
Fix and a length- sequence from QSP signal matrix and ordered phase sequence. Suppose the th implemented phase is a unitary with , for . With exact signal calls, the implemented product obeys If the th implemented signal call is also a unitary with , for , then the right-hand side is . These norm errors do not supply controlled or inverse access; their availability and charge remain part of the declared access model.
Facts & Assumptions
Given: , real phases , and unitary implemented phase/signal gates satisfying the displayed error bounds.
QSP signal matrix and ordered phase sequence: and every are unitary, and the product has signal factors and phase factors.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is the maximum output norm on unit vectors.
The operator norm is submultiplicative and satisfies ||T^*T|| = ||T||^2: operator norms are submultiplicative and a unitary has norm .
Circuit-family and computation cost model: phase precision, ordinary gates, and oracle calls are separate resource coordinates.
The inner-product norm is definite, homogeneous, and satisfies the triangle inequality: the vector norm satisfies the triangle inequality, and hence the induced operator norm does also.
Proof
Write the ordered product as , where each factor is one phase or signal gate, and write the implemented factors as . Insert and subtract products with the first factors implemented and all remaining factors ideal; this gives the exact telescoping identity
Every prefix and suffix in each summand is a product of unitaries, hence has operator norm by [F3]. For any operators and unit vector , [F5] gives ; taking the supremum gives the operator-norm triangle inequality. Together with submultiplicativity from [F3], this bounds the norm of the telescoping sum by the sum of individual factor errors. Grouping phase and signal factors gives , and setting all gives the phase-only assertion. The resource coordinates remain separate by [F4].
QSP signal-query and phase-rotation count
Statement
A length- sequence from QSP signal matrix and ordered phase sequence has exactly signal factors and exactly phase factors , for . In the scalar QSP model the signal acts on one two-dimensional signal register. If each is provided by a named query oracle, the sequence uses exactly calls to that oracle; it makes no controlled or inverse signal calls. The oracle's work registers, implementation, and query/gate charges are those explicitly supplied with it. The phase-rotation, ordinary-gate, circuit-description, bit, and numerical-precision coordinates remain separate as in Circuit-family and computation cost model.
Facts & Assumptions
Given: A nonnegative integer , the ordered QSP product, and the declared signal-oracle and circuit-cost interfaces.
QSP signal matrix and ordered phase sequence: ; the empty product at is .
Real bounded-polynomial QSP phase synthesis: the output list contains the phase values and the target length ; phase generation is classical preprocessing.
Circuit-family and computation cost model: named oracle calls, ordinary gates, phase precision, circuit-description size, and classical computation costs are distinct coordinates; a matrix description alone gives no oracle call.
Hybrid bound for imperfect QSP phase rotations: any compiled phase or signal operator errors are bounded separately by the sum of their per-factor operator errors.
Proof
The product in [F1] contains one factor for each integer , hence exactly signal occurrences. It contains once and one for each , hence exactly phase rotations. The case has zero signal factors and the single endpoint phase .
A named signal query is invoked once for each displayed factor and no other signal call appears in the sequence; therefore the query count is exactly . The one-qubit signal matrix acts on , while any implementation work space is included only if the supplied signal interface declares it. The phase and compilation coordinates remain distinct by [F3]–[F4]; no controlled or inverse call is inferred.
Correctness of QSP phase synthesis
Statement
Let be supplied in the rational/exact-algebraic target representation of Real bounded-polynomial QSP phase synthesis, with any supplied real complement represented through its explicitly charged ideal-real interface, with degree bound , parity , on , and rational tolerance . On a SUCCESS output of Real bounded-polynomial QSP phase synthesis, the exact phase list has an ideal QSP matrix whose upper-left matrix entry satisfies in exact mode and in numerical mode, for every , where . If numerical phase gates are used, each compiled phase error is at most in operator norm, so the implemented upper-left matrix entry has real-part error at most . This is a matrix-entry accuracy claim; no measurement or scalar-extraction circuit is included. The algorithm terminates on every promised input when its optional compiler terminates with a certificate or an explicit failure result; failed exact checks return their declared non-success branch.
In efficient-numerical mode without a supplied complement or finite-basis compiler, the algorithm requires charged arithmetic operations, ideal exact algebraic field/equality/order tests, root-descriptor operations, and polynomially many written tower/DAG certificate bits. Here . Input reading and conversion from an arbitrary original coefficient encoding, expanded minimal-polynomial conversion, operation implementation bit cost, and optional compiler work are separate resource coordinates. This is the explicit exact-algebraic arithmetic model of the algorithm; complete modes retain finite termination without the same height-independent bound.
Facts & Assumptions
Given: An exact polynomial, degree/parity declaration, interval promise, rational , and the optional terminating phase compiler allowed by the algorithm's input contract.
Real bounded-polynomial QSP phase synthesis: validates degree/parity and the interval bound; constructs or verifies with ; sets ; peels a phase list; approximates each phase; and returns SUCCESS, INVALID, CERTIFICATE_ERROR, or IMPLEMENTATION_ERROR as specified.
Certified complex-polynomial root isolation in exact algebraic arithmetic and Correctness and termination of certified complex-polynomial root isolation: REALROOTS(p') returns every real critical point in and terminates; ROOTS returns a complete exact algebraic root list and terminates.
For a natural the function is differentiable everywhere with derivative ; for it is the constant , with derivative ; for a natural the function is differentiable at every with derivative ; consequently every polynomial function is differentiable at every real, with the derivative computed term by term and The formal derivative of a polynomial: the polynomial function is differentiable and its derivative is the displayed formal derivative.
Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function and Extreme value theorem: a continuous real function on a nonempty compact subset of attains a greatest and a least value: a real polynomial is continuous and attains its maximum and minimum on the nonempty compact interval .
Fermat's interior extremum theorem: if has a local extremum at a point interior to its domain and is differentiable at , then : a differentiable function at an interior local extremum has derivative zero.
Completion of a bounded real parity polynomial: the exact complement construction produces an admissible pair with real upper-left component .
Constructive factorization of an admissible QSP polynomial pair: every admissible pair has the stated exact phase factorization.
Correctness and arithmetic resource bound for buffered phase approximation: each returned rational phase approximates its exact unit-circle phase with its certified operator error.
Hybrid bound for imperfect QSP phase rotations: complete product error is at most the sum of the individual phase and signal errors.
QSP signal matrix and ordered phase sequence and Admissible polynomial pair for Hermitian-reflection QSP fix the reflection signal, coefficient conjugation, and exact sequence matrix convention.
The polynomial ring over a commutative ring as finitely supported coefficient sequences with convolution: the zero polynomial has every coefficient equal to zero.
The reals form a totally ordered field: is a totally ordered field.
Finite registers and their ordered computational bases and The computational basis is orthonormal: the signal register's ordered computational basis is orthonormal and its coordinates use the declared standard basis.
The norm induced by a real or complex inner product: vector length is the square root of the inner product with itself.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm bounds the output norm on every unit input vector.
Exact interval boundedness by multiplicity strata and Sturm counts decides the original interval promise exactly in field/order operations without isolating its critical points.
Polynomial arithmetic cost for rounded-input bounded-grid root isolation proves parity-preserving rounded-target error at most , strict interior bound , coefficient height , and polynomial arithmetic cost of bounded-grid root isolation of the rounded complement.
Arithmetic cost of exact tower completion and QSP phase peeling proves the polynomial arithmetic and tower-descriptor costs of completion and peeling once that bounded-height exact root list is supplied, including the explicit unit-square-root choice.
Proof
First verify the interval check. In efficient-numerical mode [F16] proves exact acceptance of the interval promise on the original unrounded target. For the complete modes the existing critical-point argument applies as follows. If the formal derivative is zero, write . By [F3] and [F11], for each . In the ordered field [F12], for each positive integer , by repeated addition of ; therefore is nonzero and invertible, so every for and is constant. Its endpoint value is then its value everywhere, so the algorithm's single endpoint check is sufficient. Otherwise is nonconstant. If somewhere, its maximum on is greater than by [F4]. Since both endpoints were checked and are at most , this maximum is attained at an interior point . By [F5], , and by [F3] this is a root of the formal derivative used by the algorithm. The complete list from [F2] therefore includes , where the algorithm would detect , contrary to a successful check. The same argument applied to a value and the attained minimum detects every lower-bound violation. Conversely, when on the interval, every endpoint and critical-point comparison passes. Thus the validation branch accepts exactly the promised interval-bounded inputs.
On a valid input, the generated or checked complement identity and the degree/parity checks make admissible by [F6] and [F10]. In the supplied-complement branch the same conclusion follows from the exact identity and parity certificate, which is checked before use.
By [F7], that admissible pair has an exact phase list whose sequence matrix has upper-left entry . Its real part is , since has real coefficients. Hence exact mode gives ; complete-numerical mode gives because . In efficient-numerical mode [F17] gives . Thus the stated ideal error holds in either numerical mode. The explicit alternative square root in its peel has square and unit modulus by [F18], so the cancellation and factorization in [F7] apply unchanged.
In numerical mode the angle approximation contributes at most per phase by [F8], and a supplied compiler contributes at most the same amount by its checked output certificate. Their sum is therefore at most per phase. With exact signal calls, [F9] bounds the full unitary error by . Let and write in the orthonormal signal basis of [F13]. Then [F14] gives , while [F15] and give . Thus the upper-left entry error satisfies , and its real-part error is no larger. It differs from by at most the shrink error plus phase error , at most . Exact mode has zero shrink error. This identifies a matrix entry only and asserts no physical scalar-extraction procedure.
ROOTS and REALROOTS terminate by [F2], and their efficient-mode replacement terminates by [F17]. Root classification and multiplication process finite lists, the phase peel decreases nominal degree at every nonconstant step, and each phase approximation terminates by [F8], including for ideal-real coordinates: its rational buffered comparisons use the declared interface and contract every bracket by at least one half independently of equality. The supplied-complement path never invokes ROOTS on its coefficients; it checks its finite identity before any zero-complement branch and proceeds directly to the admissible pair. For its positive-root nodes, a positive real radicand has a finite rational upper bound, so doubling eventually succeeds; bisection then halves the width to the requested positive tolerance, with equality returning a singleton. In a unit peel ratio , gives square root ; otherwise , has imaginary-square contribution , so and . Thus these nodes give the same valid cancellation over real coefficients. No algebraic encoding of the real parameters is assumed. The optional compiler either returns a certificate or its declared failure. Consequently every promised execution terminates or returns the explicit IMPLEMENTATION_ERROR branch, and no failed certificate is reported as SUCCESS.
Put . Degree/parity validation scans at most coefficients on promised input. [F16] bounds its exact interval decision by operations, independent of original coefficient heights. [F17] bounds rounding by polynomially many charged coefficient operations/comparisons, gives a rounded rational target of polynomial coefficient height in , and bounds its complete bounded-grid complement-root list at fixed isolator precision by rational operations. Root classification, multiplicity grouping, descriptor sorting and symmetry checks use polynomially many exact equality/order tests on that finite list. No complete-mode root isolation of the original target or its critical points occurs in this branch.
[F18] bounds every positive-root descriptor in completion by a polynomial number of exact comparisons and rational operations using root-bound-based upper endpoints. In particular the norm-product leading coefficient has absolute value one, so the final scale has a known polynomial-height upper bound. Polynomial-array multiplication and full identity checks take polynomially many operations. Phase peeling, its identity checks, fixed convention conversion and padding require polynomially many field operations and at most quadratic tower descriptors; no generic algebraic-coefficient ROOTS call occurs. The explicit half-angle formula divides only after checking that its positive root is nonzero. Its possible tiny numerical value does not alter a charged exact-field operation count.
There are phases, each requested to precision . [F8] gives rational operations and linear-in-that-log exact algebraic comparisons per phase, polynomial in . Buffered comparisons contract the angular bracket in every case, including equality, so no hidden input-conditioned coordinate refinement is used. Each returned dyadic angle has polynomially many bits. Root isolators and their rational defining polynomials have polynomial height by [F17]; each completion/peel intermediate is a referenced field-operation or quadratic-extension node rather than an expanded minimal polynomial. The polynomial operation count thus gives polynomially many tower/DAG nodes and index bits. Angular bracket endpoints are obtained by fixed dyadic affine operations for polynomially many steps; Machin partial-sum denominators have polynomial bit length in the number of terms (multiplying their polynomially many integer denominators suffices as a common denominator). Their phase certificates also have polynomial size. The root, completion identity and peel certificates can reference these same nodes without duplicating expanded expressions. Together these bounds prove the resource assertion, while leaving the separately named encoding, implementation, conversion and optional compiler coordinates unclaimed.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Colm Ó Dúnlaing, Mathematics 1263: Introduction to Numerical Analysis, §2, Sturm's Theorem
- EPFL, Sturm's Theorem
- Sturm's Theorem, EPFL lecture note
- Gilyén et al., Quantum singular value transformation and beyond
- Gilyén et al., Quantum singular value transformation and beyond, Theorems 3–5 and Corollary 10
- András Gilyén, Yuan Su, Guang Hao Low, and Nathan Wiebe, Quantum singular value transformation and beyond
- Andrew M. Childs, Lecture Notes on Quantum Algorithms, Chapter 29