Theory: Quantum Singular Value Transformation (QSVT)¶
This document provides the theoretical background underlying the notebooks in this repository. It is intentionally concise and focused on the concepts that are directly exercised in the examples, rather than a full survey of the QSVT literature.
The emphasis is on:
how polynomials act on singular values and eigenvalues,
why boundedness and parity constraints appear,
how QSP emerges as a special case,
how matrix functions are implemented spectrally,
how projectors arise from sign-function approximations, and
how linear-system–style transformations follow from inverse-like polynomials.
General QSVT/QSP background belongs in this file. Implementation-specific notes are kept in focused documentation pages:
docs/qsvt/block_encoding.mdfor finite dense block encodings,docs/qsvt/compatibility.mdfor boundedness, parity, and synthesis checks,docs/qsvt/qsvt_resource_model.mdfor proxy-resource interpretation,docs/qsvt/algorithms.mdfor workflow targets, diagnostics, and limits.
Table of Contents¶
1. Block encodings¶
QSVT operates on matrices that are provided via a block encoding.
Definition (block encoding)¶
A unitary \(U\) acting on an enlarged Hilbert space is said to be a block encoding of a matrix \(A\) if
for some normalization constant \(\alpha \ge 1\), where the top-left block acts on a designated “logical” subspace.
Notation in this block:
\(A\) is the logical matrix whose singular values or eigenvalues we want to transform.
\(U\) is a larger unitary acting on ancilla plus logical registers.
\(\alpha\) is the positive block-encoding normalization; the encoded signal is \(A/\alpha\).
The
*entries denote other blocks of the unitary that are not used directly by the logical matrix function.The dashes indicate unspecified off-diagonal blocks.
The logical subspace is selected by the ancilla state, usually \(|0\rangle\).
Operationally, this means that when the ancilla qubits are prepared in \(|0\rangle\), the action of \(U\) on the logical register reproduces the action of \(A\) (up to normalization).
The value of \(\alpha\) is part of the algorithm. If the original matrix has large norm, QSVT acts on the normalized signal \(A/\alpha\), and any physical matrix-function interpretation must translate between \(A\) and \(A/\alpha\). Choosing \(\alpha\) too large compresses the spectrum and can make polynomial features harder to resolve; choosing it too small invalidates the block encoding.
For a finite matrix with \(\|A/\alpha\|_2 \le 1\), one can always write down a dense unitary dilation. For large structured matrices, the central algorithmic question is different: can a block encoding be implemented using efficient oracles, sparse access, Hamiltonian simulation, or problem-specific circuits? The QSVT theorem assumes such an encoding has been supplied.
In this repository¶
PennyLane’s
block_encoding="embedding"is used.This automatically constructs a valid block encoding for small, explicitly specified matrices.
The notebooks frequently extract the top-left block of the resulting unitary to verify that it matches the expected transformed operator.
The package also includes an explicit finite dense block-encoding helper for small matrices.
This is a simulator-friendly convenience; the theoretical statements of QSVT apply to any valid block encoding.
2. Singular values, eigenvalues, and normalization¶
QSVT acts on singular values \(\sigma_i \in [0,1]\). For Hermitian matrices, singular values coincide with absolute eigenvalues.
To apply QSVT:
the spectrum must lie in \([-1,1]\) (or \([0,1]\) depending on parity),
or be rescaled so that this holds.
Many examples in this repository explicitly rescale spectra. Rescaling is not cosmetic: it changes the variable in which the polynomial is designed. If
then a polynomial \(P(\widetilde A)\) corresponds to the physical function
This is why reports track offsets, scales, and spectral bounds. A polynomial degree that is adequate after one normalization may be inadequate after another normalization.
Here \(I\) is the identity matrix, \(\beta\) is an affine offset, \(s>0\) is the scale factor, \(\widetilde A\) is the normalized operator supplied to the polynomial, and \(f\) is the physical matrix function induced on the original operator \(A\).
3. Quantum Singular Value Transformation (QSVT)¶
Informal statement¶
Given:
a block encoding of a matrix \(A\),
and a real polynomial \(f\) satisfying certain constraints,
QSVT constructs a quantum circuit whose effective action applies
to each singular value \(\sigma_i\) of \(A\).
Here \(i\) indexes singular values, \(\sigma_i\) is the \(i\)th singular value of the normalized block-encoded matrix, and \(f\) is the scalar polynomial transformation implemented on those singular values.
In other words, QSVT implements matrix functions via polynomial transformations.
More precisely, QSVT transforms the singular values of a block-encoded matrix while preserving the corresponding singular-vector structure. For a singular value decomposition
the transformed block has the form
up to the precise parity and signal-convention details of the construction.
In this expression, \(|u_i\rangle\) and \(|v_i\rangle\) are the left and right singular vectors of \(A\), \(P\) is the admissible QSVT polynomial, and \(P(A)_{\mathrm{QSVT}}\) denotes the logical transformed block rather than an ordinary matrix power series for a non-Hermitian matrix.
Admissibility constraints¶
The polynomial \(f(x)\) must satisfy:
Boundedness $\( |f(x)| \le 1 \quad \text{for all } x \in [-1,1]. \)$
Parity structure
Even polynomials act on singular values.
Odd polynomials act on signed eigenvalues (Hermitian case).
These constraints ensure that the transformed operator remains compatible with a unitary embedding.
Not every polynomial used for dense spectral intuition is directly compatible with a QSVT synthesis path. The repository distinguishes:
dense spectral polynomial application,
QSVT-style polynomial cores,
direct PennyLane QSVT verification,
and end-to-end quantum algorithms.
Compatibility reports make this distinction explicit through boundedness, parity, and optional synthesis checks.
Hermitian eigenvalue transforms¶
Many physics examples use Hermitian matrices, where users naturally think in terms of eigenvalues rather than singular values. A Hermitian matrix has the spectral decomposition
After rescaling so that \(\lambda_i \in [-1,1]\), polynomial functional calculus uses
Here \(H\) is Hermitian, \(\lambda_i\) are its eigenvalues, \(|\psi_i\rangle\) are orthonormal eigenvectors, and \(P(H)\) means ordinary spectral polynomial functional calculus.
Odd polynomials can preserve sign information, while even polynomials depend only on magnitude. This distinction is why sign functions, projectors, and positive-spectrum inverse approximations are treated carefully in the notebooks.
4. Scalar case and Quantum Signal Processing (QSP)¶
When the “matrix” \(A\) is just a scalar \(x \in [-1,1]\), QSVT reduces to Quantum Signal Processing (QSP).
In QSP:
a single “signal” unitary encodes \(x\) in its eigenphases,
fixed phase rotations are interleaved with this signal unitary,
the resulting circuit implements a polynomial function of \(x\).
Here \(x\) is the scalar signal value in the interval \([-1,1]\). In a full QSP sequence, the fixed rotation angles are usually denoted by phase parameters such as \(\phi_0,\phi_1,\ldots,\phi_d\), where \(d\) is the polynomial degree.
The fixed rotations are often called QSP phases. Finding phases for a target polynomial is a synthesis problem: it is separate from fitting or designing the polynomial itself. A polynomial may look reasonable as a sampled approximation but still fail a particular synthesis implementation because of parity, boundedness, numerical conditioning, or backend limitations.
Thus:
This equivalence is demonstrated in Notebook 03 using both PennyLane’s qml.qsvt interface and a manual single-qubit construction.
5. Chebyshev polynomials and boundedness¶
Chebyshev polynomials of the first kind,
play a central role in QSP/QSVT because:
they are bounded on \([-1,1]\),
they have definite parity,
they are optimal (minimax) polynomial approximators on bounded intervals.
For example:
is odd, bounded, and directly admissible for QSVT.
Here \(n\) is a nonnegative integer polynomial degree, \(x \in [-1,1]\) is the scalar approximation variable, and \(T_n\) is the degree-\(n\) Chebyshev polynomial of the first kind.
This explains why Chebyshev polynomials appear repeatedly in filtering, inversion, projector construction, and Hamiltonian simulation.
6. Polynomial design and approximation¶
QSVT does not require exact target functions — only polynomial approximations.
Given a target function \(g(x)\), one constructs a polynomial \(P(x)\) such that:
Here \(g\) is the desired scalar target function, \(P\) is the polynomial approximation actually used by QSVT-style workflows, and the spectral interval is the subset of the normalized spectrum where accuracy matters.
The polynomial degree controls:
approximation error,
circuit depth,
and ultimately algorithmic cost.
Notebook 06 demonstrates this process explicitly and shows how Chebyshev approximation provides a natural basis for QSVT-compatible polynomials.
7. Practical polynomial construction¶
In practice, QSVT workflows typically begin by constructing a bounded polynomial with the desired qualitative behaviour on the spectral interval.
Common examples include:
sign-like polynomials
inverse-like polynomials
soft threshold filters
square-root–type transforms
power-law transforms
The key requirement is always boundedness:
Different design approaches emphasise different trade-offs:
Template polynomials¶
Certain bounded functional forms are repeatedly useful in QSVT experiments.
Examples include:
smooth sign surrogates using \(\tanh(\kappa x)\)
regularised inverse-like functions
soft threshold filters based on \(|x|\)
shifted square-root profiles
These functions can be approximated by Chebyshev polynomials to produce admissible QSVT transforms.
Here \(\kappa>0\) controls the steepness of the smooth sign surrogate; larger \(\kappa\) gives a sharper transition and usually requires higher polynomial degree for the same approximation quality.
Such constructions prioritise:
simplicity
stability
ease of interpretation
over optimal approximation guarantees.
Task-oriented polynomial design¶
More structured workflows begin from a desired spectral transformation:
and construct a bounded polynomial approximation
on a restricted interval such as
Here \(\gamma \in (0,1)\) is a spectral gap or lower-magnitude cutoff that keeps the target away from the singularity at zero.
Examples include:
sign approximation¶
away from zero.
inverse-like transforms¶
for \(|x| \ge \gamma\).
This produces relative scaling behaviour similar to matrix inversion while preserving boundedness.
spectral filters¶
using smooth bounded approximations.
Here \(\tau \in (0,1)\) is a threshold in the normalized signal coordinate.
Role of Chebyshev approximation¶
Chebyshev polynomials provide a convenient basis for constructing bounded approximations because they:
minimise worst-case approximation error
preserve parity structure
remain bounded on \([-1,1]\)
In practice:
choose a smooth bounded surrogate for the target function
approximate using Chebyshev polynomials
verify boundedness
apply via QSVT
Notebook 09 demonstrates these workflows explicitly.
8. QSVT as matrix functional calculus¶
For a diagonalizable matrix:
any function \(f\) acts spectrally as:
Here \(U\) is the eigenvector matrix, \(\Lambda\) is the diagonal matrix of eigenvalues, \(U^\dagger\) is the conjugate transpose of \(U\), and \(f(\Lambda)\) means applying \(f\) entrywise to the diagonal entries of \(\Lambda\).
QSVT implements this functional calculus using polynomial approximations.
Notebook 07 demonstrates this viewpoint using:
matrix powers,
square roots,
and fractional powers,
showing explicitly that:
eigenvectors are preserved,
eigenvalues are transformed,
and different functions correspond to different spectral maps.
This perspective unifies filtering, inversion, and simulation under a single mechanism.
9. Sign function and spectral projectors¶
The sign function:
is central to spectral filtering and subspace selection.
Although discontinuous, it can be approximated by bounded odd polynomials away from \(x=0\).
From the sign function, we construct projectors:
Here \(\Pi_+\) and \(\Pi_-\) are projectors onto the positive and negative spectral subspaces of a Hermitian matrix \(A\), and \(I\) is the identity on the same space.
Approximating \(\mathrm{sgn}(A)\) via QSVT yields approximate spectral projectors that:
suppress unwanted eigencomponents,
isolate subspaces,
and are basis-independent.
This mechanism is demonstrated in Notebook 08 and forms the foundation of:
ground-state filtering,
gap amplification,
and Hamiltonian algorithms.
10. Linear systems via inverse-like polynomials¶
Solving a linear system
formally requires applying \(A^{-1}\).
Here \(A\) is the linear-system matrix, \(b\) is the right-hand side vector, and \(x\) is the unknown solution vector. In the quantum-state version, \(b\) is typically encoded as a normalized state \(|b\rangle\).
Since \(1/x\) is unbounded, QSVT instead implements a polynomial \(P(x)\) such that:
on the spectrum of interest.
Here \(\lambda_i\) are eigenvalues of the normalized positive-definite operator, and \(\propto\) indicates that the polynomial reproduces inverse-like relative scaling up to an overall normalization factor.
After normalization, only the relative scaling of eigencomponents matters.
Notebooks 04 and 05 demonstrate:
exact inversion on involutory spectra,
approximate inversion via Chebyshev polynomials.
These examples isolate the polynomial mechanism without introducing full algorithmic machinery.
11. Access models, success probability, and readout¶
QSVT is often described as applying a matrix function, but a complete algorithm also needs to specify how the input and output are accessed.
Input state preparation¶
For a vector problem, one usually wants to start from a quantum state
Preparing this state may be easy for structured data, or it may dominate the cost for unstructured classical data. The polynomial transform alone does not solve data loading.
Here \(\|b\|\) is the Euclidean norm of the right-hand-side vector, and \(|b\rangle\) is the corresponding normalized quantum state.
Success probability¶
The desired transformed vector often appears in a particular ancilla branch. For example, after applying a block-encoded transform, the useful component may be proportional to
conditioned on measuring the ancilla in a success state. The norm of this component determines the success probability. Amplitude amplification or estimation can improve or estimate success probabilities, but those costs are additional to the polynomial degree.
The vector \(P(A)|b\rangle\) is generally an unnormalized postselected component before success-probability management.
Readout¶
If the final goal is a scalar expectation value, a norm, an overlap, or a sample, readout may be efficient. If the goal is the full classical vector \(P(A)b\), tomography or repeated sampling may be expensive. This is why the notebooks report transformed states and residuals for validation, while the truth contracts avoid claiming full quantum output costs.
Classical baselines¶
Classical dense solvers, iterative solvers, and spectral decompositions remain important references. A QSVT polynomial with low degree is promising only after the block encoding, state preparation, success probability, precision, and readout model are also favorable.
Summary¶
QSVT provides a unifying framework in which:
quantum circuits implement bounded polynomials,
polynomials act spectrally on matrices,
QSP appears as the scalar limit,
Chebyshev polynomials provide optimal approximations,
matrix functions are implemented via functional calculus,
projectors arise from sign-function approximations,
and linear-system–like behaviour follows naturally.
a complete quantum algorithm still needs an access model, success-probability analysis, and readout strategy.
The notebooks in this repository are concrete realizations of these ideas in their simplest possible forms.
References and further reading¶
Gilyén, A., Su, Y., Low, G. H., & Wiebe, N. Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. arXiv:1806.01838
Low, G. H., & Chuang, I. L. Optimal Hamiltonian simulation by quantum signal processing. Physical Review Letters 118, 010501 (2017).
Low, G. H., & Chuang, I. L. Hamiltonian simulation by qubitization. Quantum 3, 163 (2019).
PennyLane documentation: Introduction to Quantum Singular Value Transformation (QSVT). https://pennylane.ai/qml/demos/tutorial_intro_qsvt
License¶
MIT License.