Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Polynomial approximation in quantum algorithms

The use of bounded finite-degree polynomials to approximate spectral functions within a promised domain.

Edition released Coverage: Overview · Technical
On this page

Definition and significance

Matrix algorithms often reduce a desired function of eigenvalues or singular values to polynomial approximation. The interval, error norm and behavior outside the promised interval determine whether a polynomial is suitable for quantum signal-processing constructions.

Mechanism and mathematical treatment

Uniform approximation asks for max_(x in D)|p(x)-f(x)|<=epsilon. A small error at selected sample points does not prove this maximum bound. QSP and QSVT impose additional parity and boundedness constraints beyond ordinary numerical approximation.

Fully worked reference example

Approximate exp(-itx) on [-1,1] by p1(x)=1-itx. Taylor's remainder gives a leading error proportional to t^2 x^2/2 for small t. But |p1(x)|=sqrt(1+t^2x^2)>1 away from zero, so it cannot simply be inserted as the full selected matrix element of a unitary without an appropriate embedding or normalization. Algebraic closeness and unitary realizability are different conditions.

Limitations and common misconceptions

Near singularities, such as 1/x around zero, the approximation interval must exclude the problematic region or regularize the function. Polynomial degree is a query resource, while phase synthesis and oracle costs remain additional.

Scientific relationships

Admissible target polynomials determine signal-processing sequences.

An explicit reciprocal polynomial with a controlled gap

Suppose a Hermitian matrix has eigenvalues in [-1,-1/2] union [1/2,1], and an inverse-like action is desired. Define r_m(x)=x times the sum from k=0 to m of (1-x squared) to the power k. This is an odd polynomial of degree 2m+1, and for nonzero x its geometric-series form is [1-(1-x squared) to the power m+1]/x.

On the promised spectral domain, its difference from 1/x has magnitude |1-x squared | to the power m+1 divided by |x|. Since |x| is at least one-half, the error is at most 2(3/4) to the power m+1. This is a uniform analytic bound over both allowed intervals. The polynomial takes value zero at x=0, but it is not being claimed to approximate a reciprocal there; the central spectral gap is an essential input promise.

The odd parity retains the sign of negative eigenvalues. An even approximation to 1/|x| would instead produce a different matrix function on an indefinite Hermitian input. Whether an algorithm transforms eigenvalues or singular values also determines the orientation and sign information that must be restored, so naming only the scalar target without its operator construction is insufficient.

Bounding the polynomial on the entire signal interval

Approximation on the promised spectrum is only part of a signal-processing design. The selected polynomial must also satisfy the construction's global boundedness requirement. For x in [-1,1], the geometric sum gives |r_m(x)| at most both (m+1)|x| and 1/|x| away from zero. The smaller of those two bounds is at most sqrt(m+1), with the crossover at |x|=1/sqrt(m+1).

Therefore p_m(x)=r_m(x)/sqrt(m+1) is bounded in magnitude by one throughout [-1,1] and has the required odd parity for an odd singular-value transformation. These are basic admissibility conditions, not a supplied list of signal-processing phases. A complete implementation must still choose the precise real-polynomial embedding, synthesize phases under its convention, and verify the resulting unitary construction.

The normalization has a resource consequence. The selected block approximates the inverse divided by sqrt(m+1), so its success amplitude is smaller than the unnormalized inverse action. This elementary construction provides a transparent bound, but it is not asserted to optimize degree, normalization, or success probability. More sophisticated approximations can improve those tradeoffs under appropriately stated conditions.

A fully evaluated degree-thirty-one instance

Choose m=15, so the degree is thirty-one and the normalization is four. The unscaled reciprocal error on the promised intervals is at most 2(3/4) to the sixteenth, approximately 0.0200452. The selected-block error is at most one-quarter of that, approximately 0.00501130. At x=1, the polynomial gives p_15(1)=1/4 exactly. At x=1/2, it gives [1-(3/4) to the sixteenth]/2, approximately 0.494989, compared with the target value 1/2.

For A=diag(1/2,1) and input |+>, the ideal selected inverse block A inverse/4 produces unnormalized amplitudes (1/2,1/4)/sqrt(2). Its success probability is 5/32. Replacing the reciprocal by p_15 produces amplitudes (p_15(1/2),1/4)/sqrt(2), with success probability approximately 0.153757. Both the successful state's direction and the probability of obtaining it change slightly; reporting only one of them would omit part of the approximation's effect.

After success, the ideal normalized state is (2|0>+|1>)/sqrt(5). The polynomial approximation changes the amplitude ratio to approximately 1.979955 to one. This example shows how a bounded matrix-function error propagates through a subsequent normalization. If the desired unnormalized output has very small norm, the same absolute block error can produce a larger normalized-state error, so a success-amplitude lower bound is needed for a uniform state guarantee.

Evaluation, synthesis, and total error budgets

The polynomial can be evaluated classically without expanding its monomial coefficients: set term=1 and sum=1; repeat term becomes term times (1-x squared), then add it to sum; finally multiply by x/four for this m. This recurrence computes the displayed geometric sum and avoids cancellation among a large list of alternating expanded coefficients on the positive interval. It is a classical reference evaluation, not a quantum gate sequence.

In a quantum construction, polynomial degree controls the number of signal-oracle uses, while the oracle's gate cost and any controlled or inverse interfaces remain additional. Approximation error, phase-synthesis error, and block-encoding error contribute separately. A telescoping bound can sum per-step unitary errors over the implemented sequence, so a degree-thirty-one construction generally needs tighter per-step accuracy than a one-step target with the same total tolerance.

Direct classical diagonalization or solution is trivial for the displayed two-by-two matrix. The example makes the normalization and success factors explicit. The polynomial approximates the rescaled reciprocal only on the promised intervals outside the central gap. Global boundedness and selected-block error are separate analytic conditions.

Sources