Skip to content

A quantum algorithm becomes useful when its input can be prepared, its successful output can be recognized and read, and its accuracy can be achieved at an acceptable cost. A shorter query bound can still produce a more expensive complete calculation. This page follows those costs from an abstract primitive to a requested answer; the linked algorithm pages supply the detailed constructions.

Helpful background. Algorithmic primitives provides coherent composition; lower bounds and limitations explains access and output barriers. Standard algorithms retain their canonical derivations in phase estimation, amplitude estimation, and block encodings and QSVT.

An oracle call is an implemented quantum operation

Section titled “An oracle call is an implemented quantum operation”

Let a primitive use a unitary oracle UU a total of QQ times, with additional work GotherG_{\mathrm{other}}. If one implementation of UU costs GUG_U logical gates, then

Gtotal=QGU+GotherG_{\mathrm{total}}=QG_U+G_{\mathrm{other}}

before repetitions and fault tolerance. The oracle may contain reversible arithmetic, table lookup, state preparation, normalization, and uncomputation. These are algorithmic work even when the theorem counts a call as one operation.

For a block encoding of A/αA/\alpha, the normalization α\alpha changes both the scale of polynomial approximations and the probability of selecting an output branch. With ancillas prepared in ∣0⟩|0\rangle, an exact block encoding satisfies

(⟨0∣⊗I)U(∣0⟩⊗I)=A/α.(\langle0|\otimes I)U(|0\rangle\otimes I)=A/\alpha.

On a normalized input ∣ψ⟩|\psi\rangle, projecting the output ancillas onto zero succeeds with probability ∥A∣ψ⟩∥2/α2\|A|\psi\rangle\|^2/\alpha^2. The normalized accepted state is proportional to A∣ψ⟩A|\psi\rangle when that vector is nonzero. Two encodings of the same matrix can therefore have identical accepted states and very different preparation costs. The cost of implementing UU must also be compared.

Gilyén, Su, Low, and Wiebe establish QSVT as a framework for polynomial transformations of singular values under block-encoding access. The theorem supplies a powerful coherent primitive. It does not supply efficient encodings for arbitrary files or guarantee inexpensive extraction of a complete classical answer.

Success amplitude and output size change the cost

Section titled “Success amplitude and output size change the cost”

Suppose an ideal subroutine prepares

p ∣1⟩∣ψgood⟩+1−p ∣0⟩∣ψbad⟩.\sqrt p\,|1\rangle|\psi_{\mathrm{good}}\rangle+ \sqrt{1-p}\,|0\rangle|\psi_{\mathrm{bad}}\rangle.

For fixed 0<p≤10<p\le1, measuring the flag and restarting costs an expected 1/p1/p independent attempts. Under the reflection and coherent-access assumptions of amplitude amplification, success can instead be amplified using order 1/p1/\sqrt p coherent calls. The latter requires maintaining coherence across the longer circuit and implementing inverse operations and reflections. Choosing a fixed number of Grover rotations also requires suitable information about pp; unknown success probabilities require an appropriate search or amplification procedure, not arbitrary repeated rotations.

If an application requires MM independent measurements of the good state, state production generally repeats MM times. The state cannot be copied arbitrarily. A compact state-vector representation is therefore not equivalent to cheap access to every amplitude.

As a toy accounting example, take a primitive with 10410^4 oracle calls, 10310^3 logical gates per oracle, and heralded success p=10−2p=10^{-2}. Straight restarting requires about 10910^9 logical gates per successful state, before measurement repetitions. Coherent amplification can improve the dependence on pp, but its true constant and reflections must be included. A bare figure of 10410^4 “steps” omits most of the work.

If a coherent circuit contains LL approximate unitary operations with operator-norm error at most η\eta each, a telescoping expansion and norm submultiplicativity give a worst-case total operator error no larger than LηL\eta. Allocating a coherent error allowance ϵsyn\epsilon_{\mathrm{syn}} uniformly therefore suggests

η≤ϵsynL.\eta\le\frac{\epsilon_{\mathrm{syn}}}{L}.

This is a conservative bound, not a prediction that every error accumulates coherently at the maximum rate. A stronger claim needs a justified noise or cancellation model. It bounds the full, unconditioned coherent output. Normalizing a rare selected branch can magnify its state error, so a postselected output needs a separate accuracy estimate that includes the success probability.

The application error may also include basis truncation, Hamiltonian modeling, polynomial approximation, statistical estimation, and logical failure. Different terms use different metrics; they cannot always be added without a conversion argument. An energy error in chemical units, trace distance, and algorithm failure probability are not interchangeable.

For phase-based energy estimation, the overlap of the prepared state with the desired eigenstate is another independent resource. Improved phase resolution does not increase that overlap. Quantum chemistry case studies addresses the application boundary.

Compare algorithms at the same supplied task

Section titled “Compare algorithms at the same supplied task”

Compare the same input family, requested observable, acceptable error and confidence. Vary the parameters most likely to dominate: state overlap, condition number, normalization, sparsity, target precision, and data structure cost. A favorable exponent in matrix dimension may be overwhelmed by another parameter.

Tang’s recommendation-system result illustrates why matched access matters: a classical algorithm using a suitable sampling data structure removed a claimed exponential advantage for that setting. It does not imply all quantum linear algebra or all quantum learning is classically easy.

Established primitive theorems and conditional speedups remain distinct from research on complete applications. The algorithm-discovery research guide discusses open questions and ways to test a proposed improvement.

An implementation reduces query count by a factor of four but increases the gate cost per query by a factor of six. Ignoring all other work, what happens to gate count?

Solution

The total is multiplied by 6/4=1.56/4=1.5. Query complexity improved while logical gate count increased by 50%. Other advantages such as lower depth or fewer qubits would need a separate comparison.

A circuit uses L=108L=10^8 approximate unitaries and reserves operator-norm error 10−210^{-2} for synthesis. What uniform per-operation bound suffices under the telescoping estimate?

Solution

It suffices to require η≤10−10\eta\le10^{-10}. This stringent target explains why synthesis precision can materially change non-Clifford gate counts. A better allocation may use nonuniform errors while retaining ∑jηj≤10−2\sum_j\eta_j\le10^{-2}.

An exact block encoding represents A=diag⁡(1,0.1)A=\operatorname{diag}(1,0.1). On input ∣1⟩|1\rangle, compare success probabilities for normalization α=1\alpha=1 and α=10\alpha=10.

Solution

Since A∣1⟩=0.1∣1⟩A|1\rangle=0.1|1\rangle, the probabilities are 0.12/12=0.010.1^2/1^2=0.01 and 0.12/102=10−40.1^2/10^2=10^{-4}. The accepted state is ∣1⟩|1\rangle in both cases, but independent restarting needs 100 or 10,000 calls on average. This comparison assumes equal cost per encoding call; an actual implementation must compare that cost too.

Two normalized outputs are

∣u⟩=1−p∣0,0⟩+p∣1,0⟩,∣v⟩=1−p∣0,0⟩+p∣1,1⟩.\begin{aligned} |u\rangle&=\sqrt{1-p}|0,0\rangle+\sqrt p|1,0\rangle,\\ |v\rangle&=\sqrt{1-p}|0,0\rangle+\sqrt p|1,1\rangle. \end{aligned}

The first qubit is a success flag. How close are the full vectors and the states conditioned on success?

Solution

Their vector-norm difference is 2p\sqrt{2p}, which can be arbitrarily small. Conditioned on flag one, however, the second qubit is respectively ∣0⟩|0\rangle or ∣1⟩|1\rangle: perfectly distinguishable states. Small error in a full output does not alone control the normalized state in a branch of very small probability. The approximation must be accurate relative to that branch’s amplitude.

  • A. Gilyén, Y. Su, G. H. Low, and N. Wiebe, “Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics,” Proceedings of STOC 2019, 193–204 (2019). Author preprint.
  • E. Tang, “A quantum-inspired classical algorithm for recommendation systems,” Proceedings of STOC 2019, 217–228 (2019). Author preprint.

Resource estimation tools connects logical circuits to physical costs; quantum advantage and utility explains a matched comparison of completed answers.