Overview
A quantum algorithm is a quantum circuit family, together with classical pre- and post-processing, that solves a computational problem. What makes one interesting is a speed-up: it uses fewer resources than the best classical algorithm, or than any classical algorithm. Most known speed-ups come from a handful of techniques, and this page organises the Commons topics by technique, then lists problems with their best known costs and the status of each speed-up.
Speed-ups come in three strengths, and confusing them is the commonest error in the area. A speed-up can be proved unconditionally in a restricted model, usually the query model where only calls to a black box are counted; it can be relative to an oracle, meaning that there is a black box relative to which quantum computers are provably faster, which is evidence but not proof about real problems; or it can be conjectured, meaning that a quantum algorithm beats every known classical algorithm. Proving an unconditional separation between and would separate from (BQP containments), so for real-world problems every exponential speed-up is conjectural.
Intuition
Four mechanisms account for most algorithms.
- Fourier sampling. Put a function with hidden periodic structure into superposition and Fourier transform, so that interference concentrates amplitude on the structure. This gives Simon's algorithm, Shor's algorithm and the abelian hidden subgroup problem (Kitaev). Tools: the quantum Fourier transform and phase estimation.
- Amplitude amplification. Rotate a state toward a recognisable target in steps of size proportional to its amplitude, turning repetitions into (Grover's algorithm).
- Simulating physics. Apply for a Hamiltonian of interest (Hamiltonian simulation), then measure energies or dynamics.
- Polynomials of matrices. Embed a matrix in a unitary and apply polynomials to its singular values (quantum signal processing and the quantum singular value transformation), which gives quantum linear algebra. As Martyn, Rossi, Tan and Chuang explain, the first three mechanisms can themselves be phrased in this language.
The lesson Complexity and advantage discusses how to judge the claims made for each.
Prerequisites
The circuit model and basic complexity theory, in particular the class BQP and the query model.
Theorems
Four results bound what the techniques can achieve.
Suppose a quantum algorithm making queries outputs, for every , the value with probability at least when run with the oracle . Then
so . The same bound holds for the bit oracle , which is equivalent to up to one ancilla.
This is the theorem of Bennett, Bernstein, Brassard and Vazirani, who used it to show that, relative to a random oracle, is not contained in . Boyer, Brassard, Høyer and Tapp sharpened the constant, and Zalka proved that Grover's algorithm is exactly optimal: no algorithm with fewer queries achieves the same success probability. The constant above is not tight: the standard hybrid argument already gives , and Grover search uses about queries.
- Query model - the algorithm is a sequence of fixed unitaries interleaved with calls to the oracle; only oracle calls are counted.
- For the oracle multiplies the query basis state by and acts as the identity on all other query states and on the workspace.
Proof · Proof of the search lower bound (hybrid argument)
Setup. The algorithm acts on a query register with basis and a workspace. With oracle it produces for fixed unitaries . Write for the state just after when the oracle is , and for the same with every oracle call replaced by the identity. Let , so that , and put ; .
One query moves the state little. Since and ,
Hence .
Summing over the marked position. For each , , so by Cauchy–Schwarz . Therefore
Success forces movement. Let be the probability that the final measurement outputs on the state (empty oracle). Since , at most indices have , so at least indices satisfy . For each of these, the outcome has probability at least on and at most on . The difference of the probabilities of one outcome is at most the trace distance of the two states, which for unit vectors is (because ). Hence for at least values of , and
Dividing by gives .
Bit oracle. With an ancilla prepared in , the bit oracle acts as on the remaining registers; conversely is the bit oracle conjugated by fixed gates on an ancilla. Any algorithm for one oracle is thus an algorithm for the other with the same number of queries, and the bound transfers.
This is the hybrid argument of Bennett, Bernstein, Brassard and Vazirani; section 6.6 of Nielsen and Chuang gives a closely related version for the exact case.
Under the assumptions,
Whenever this event occurs, is a square root of 1 modulo other than , and both and are nontrivial factors of .
The remaining cases are classical: if is even, 2 is a factor; if with , this is detected by computing integer -th roots for ; and if a random has , that gcd is a factor. So any procedure that returns the order of a given yields a randomized polynomial-time factoring algorithm with expected calls. This reduction, standard in number theory and used by Shor, is Theorem 5.3 of Nielsen and Chuang. The book prints the bound with exponent ; the exponent is what the argument gives and is the version in the book's errata list. It is tight: for exactly half of succeeds.
- is odd with distinct prime factors.
- is drawn uniformly from the multiplicative group of residues coprime to ; is its order, the least with .
Proof · Proof that factoring reduces to order finding
Two standard facts from elementary number theory are used (Appendix 4 of Nielsen and Chuang): the Chinese remainder theorem, by which is a group isomorphism ; and the fact that for an odd prime the group is cyclic, of order .
The gcd step. Suppose is even and . Also , since and is the least exponent with . Then while and . So shares a factor with but is not contained in it: , and likewise for .
Failure forces equal valuations. Let be the order of modulo , so that , and let be the exponent of the largest power of 2 dividing ; let be that of , so . The procedure fails when is odd or .
- If is odd, every is odd and .
- If is even and , then modulo each (as is odd), so . Since , this means contains the full power , i.e. for every .
In both cases all are equal.
Each valuation is spread out. By the Chinese remainder theorem, uniform on means that the components are independent and uniform on , and depends only on . Fix , let be a generator of the cyclic group of order , and let be the largest power of 2 dividing ; because is even. The element has order , whose 2-adic exponent is when is odd and less than when is even. As ranges uniformly over exactly half the values are odd, so and consequently for every value .
Conclusion. Conditioning on and using independence,
For this is at most . The structure of the argument follows the proof of Theorem 5.3 in Nielsen and Chuang; counting the conditioning on explicitly gives the exponent .
For sparse Hamiltonians with bounded by a constant, any algorithm that approximates to constant precision for all such makes queries (Berry, Ahokas, Cleve and Sanders). The construction encodes the parity of an unknown string of bits in a Hamiltonian whose evolution for a time proportional to reveals it, and computing parity needs quantum queries.
Two refinements complete the picture in the sparse-oracle model, with for sparsity : Berry, Childs, Cleve, Kothari and Somma proved that the dependence on the precision must be , and Berry, Childs and Kothari proved that no algorithm can depend sublinearly on . An algorithm with query complexity is therefore optimal in all parameters; quantum signal processing achieves it.
- Sparse-oracle model - the Hamiltonian is given by an oracle that returns the positions and values of the nonzero entries in a row; queries to it are counted.
- The bound is for algorithms that work for every Hamiltonian in the class; particular Hamiltonians (for example commuting or free-fermion ones) can be fast-forwarded.
For the matrix inversion task in the assumptions:
- if a quantum algorithm solves it in time for some , then ;
- no relativizing quantum algorithm (one that works with given by an oracle) runs in time ;
- if a classical algorithm solves it in time , then .
The reduction encodes an -qubit, -gate circuit into an -sparse matrix of dimension whose inverse applied to produces a history state containing the circuit output, with (or if must be positive definite). Together with the HHL algorithm this makes the task -complete. This is Theorem 4 of Harrow, Hassidim and Lloyd; later algorithms with cost meet the linear-in- barrier.
- Matrix inversion task: input an O(1)-sparse Hermitian matrix with , given by an oracle or a poly(log N)-time row computation; output a bit equal to 1 with probability for a fixed constant , where and measures the first qubit.
Worked Examples
Reading a speed-up claim
Suppose a paper reports "an exponential speed-up for solving linear systems". The table below places the problem in the last rows: the quantum cost is polylogarithmic in but linear in ; the output is a state; the speed-up over sparse classical solvers is conjectured (the problem is BQP-complete), and for low-rank matrices in a sampling data structure it has been dequantized. Checking the input model (how and are loaded), the output model (what is measured) and for the intended instances, in that order, decides whether the claim survives. The same three questions apply to Hamiltonian simulation (input: the Hamiltonian's description; output: a measured observable; parameter: ), and to search (input: the oracle's cost as a circuit; output: one marked item; parameter: ).
Counting what a quadratic speed-up buys
Grover search over candidates needs about oracle calls, against about classical evaluations on average. If each quantum oracle call costs a million times more wall-clock time than a classical evaluation, which is plausible for error-corrected hardware, the quantum search takes classical-evaluation equivalents and loses. This is the arithmetic behind the conclusion of Babbush et al. that quadratic speed-ups are unlikely to pay off on early fault-tolerant machines.
Computational Complexity
Problems and best known costs (as of 2026-11; the instance or search-space size, the bit length, the condition number, the normalised simulation time):
| Problem | Best known quantum | Best known classical | Status of the speed-up |
|---|---|---|---|
| Unstructured search, of marked | queries (Grover) | queries | proved, query model; optimal (BBBV for ; general in Grover search) |
| Simon's problem | queries | exponentially many queries | exponential, relative to an oracle (Simon) |
| Recursive Fourier sampling | polynomial | superpolynomial | superpolynomial, relative to an oracle (Bernstein and Vazirani) |
| Factoring, discrete logarithm | polynomial in (Shor) | sub-exponential, super-polynomial | conjectured (no classical lower bound) |
| Abelian hidden subgroup | polynomial in (Kitaev) | exponential queries in general | relative to an oracle; concrete instances as for factoring |
| Amplitude / Monte Carlo estimation | uses (BHMT) | samples | quadratic, proved in the query (sampling) model |
| Sparse Hamiltonian simulation | queries (Low and Chuang) | exponential in the number of qubits for general methods | BQP-complete; exponential speed-up conjectured; query cost optimal (BCK) |
| Quantum linear systems, sparse | queries (Costa et al.) | polynomial in | BQP-complete (HHL); exponential speed-up conjectured |
| Linear algebra on low-rank matrices with sampling access | polylogarithmic in (GSLW) | also polylogarithmic in , polynomially slower | no exponential speed-up (dequantized) |
Limitations and Common Pitfalls
- Queries are not time. Query separations count oracle calls; a real oracle is a circuit whose cost must be added, and it may itself reveal structure a classical algorithm could exploit.
- Loading and reading data. Exponential speed-ups on classical data usually assume that data can be loaded into amplitudes quickly and that a global property of the output state suffices (Aaronson).
- Compare against the best classical algorithm for the same output. Sampling from a solution state is a different task from computing the solution.
- Asymptotic versus practical. Constant factors from error correction are large; see resource estimation and fault-tolerant quantum computing.
Related Research
Quantum complexity theory for the classes and oracle results, variational quantum algorithms and quantum optimization for heuristic approaches without proved guarantees, quantum machine learning, and quantum advantage for experimental demonstrations.