Algorithms & Theory

6 minute read

Published:

A friendly tour of the quantum algorithms I keep coming back to, organized the same way Stephen Jordan organizes his Quantum Algorithm Zoo — which is the single best catalog out there. Click any group below to expand the table. Speedups and short descriptions are summarized from the Zoo (cite as: Stephen P. Jordan, Quantum Algorithm Zoo).

Personal short list

A handful of “if you only learn five, learn these”:

For broader review reading: Cerezo et al. on variational algorithms, Georgescu et al. on quantum simulation, McArdle et al. on quantum chemistry, and Childs on quantum walks.

Full Algorithm Zoo (collapsible)

Algebraic & Number Theoretic Algorithms
AlgorithmSpeedupOne-line description
Factoring (Shor)SuperpolynomialFactor an n-bit integer in $\tilde O(n^3)$; breaks RSA.
Discrete LogarithmsSuperpolynomialSolves DLP over groups; breaks DSA, ECDSA, Diffie–Hellman.
Pell’s EquationSuperpolynomialFind the fundamental solution to $x^2-dy^2=1$ in poly time.
Principal IdealSuperpolynomialDecide whether an ideal of $\mathbb{Z}[\sqrt d]$ is principal.
Unit GroupSuperpolynomialCompute generators of the unit group of a number field.
Class GroupSuperpolynomialCompute the class group of a number field.
Gauss SumsSuperpolynomialEstimate Gauss sums over finite fields/rings to poly precision.
Primality ProvingPolynomialDonis-Vela–Garcia-Escartin: $O(n^2 (\log n)^3 \log\log n)$.
Solving Exponential CongruencesPolynomial$\tilde O(q^{3/8})$ vs. classical $\tilde O(q^{9/8})$.
Matrix Elements & Multiplicities of Group RepsSuperpolynomialApproximate Clebsch–Gordan transforms / multiplicities.
Verifying Matrix ProductsPolynomial$O(n^{5/3})$ check that $AB=C$ via quantum walks.
Subset-sumPolynomial$2^{0.241 n}$ vs. classical $2^{0.291 n}$ for hard instances.
DecodingVariesSpeedups for convolutional and simplex codes.
Quantum CryptanalysisVariousIsogeny attacks, Grover-accelerated key search, Simon-style attacks on block ciphers.
Oracular Algorithms
AlgorithmSpeedupOne-line description
Searching (Grover)PolynomialFind a marked item in an unsorted list with $O(\sqrt N)$ queries.
Abelian Hidden SubgroupSuperpolynomialCommon ancestor of Shor, Simon, period-finding.
Bernstein–VaziraniPolynomial / Exp. recursiveRecover a hidden inner-product string in 1 query.
Deutsch–JozsaExp. over PDistinguish constant vs. balanced functions in 1 query.
Hidden Subgroup (non-Abelian)VariesIncludes graph isomorphism as a special case.
Hidden ShiftVariesKuperberg’s subexponential dihedral HSP, Boolean hidden shift, etc.
Pattern MatchingSuperpolynomial / PolynomialAverage-case poly-log speedup; $\tilde O(\sqrt n)$ string matching.
Ordered SearchConstant factor$0.433\log_2 N$ queries vs. classical $\log_2 N$.
Graph Properties (adjacency)Polynomial$\Theta(n^{3/2})$ for connectivity, MST, shortest paths.
Graph Properties (array model)Polynomialst-connectivity, bipartiteness, cycle detection in $\tilde O(\sqrt{Nd})$.
Welded TreeSuperpolynomialExponential separation for traversal of a glued binary tree.
Collision & Element DistinctnessPolynomial$O(N^{1/3})$ collisions; $O(N^{2/3})$ element distinctness.
Hidden Nonlinear StructuresSuperpolynomialIdentify hidden polynomial subsets of an Abelian group.
Group Order & MembershipSuperpolynomialPolylog queries to learn $\lvert G\rvert$ for Abelian black-box groups.
Counterfeit CoinsPolynomialIdentify $k$ fakes in $O(k^{1/4})$ queries.
Matrix RankPolynomialSpan-program-based query speedups.
Matrix Multiplication over SemiringsPolynomialSub-cubic Boolean matrix multiplication.
Subset Finding (k-subset-sum)Polynomial$O(\lvert D\rvert^{k/(k+1)})$ queries; tight.
Search with WildcardsPolynomial$\Theta(\sqrt n)$ via Pretty Good Measurement.
Network Flows / MatchingPolynomialQuantum walk speedups for bipartite matching and max flow.
Electrical ResistanceSuperpolynomial$\mathrm{poly}(\log n)$ time for well-connected graphs.
Junta & Group TestingPolynomialTest whether $f$ depends on at most $k$ inputs.
NAND Trees / Formula EvaluationPolynomialSpan-program / quantum-walk evaluation of Boolean formulas.
Statistical DifferencePolynomial$O(\sqrt N)$ to estimate $L_1$ distance of two distributions.
Finite Rings & IdealsSuperpolynomialPolylog query algorithms for ideal membership.
Constraint Satisfaction (k-SAT)PolynomialQuantum 2-SAT, Schöning-style speedups.
Approximation & Simulation Algorithms
AlgorithmSpeedupOne-line description
Hamiltonian DynamicsSuperpolynomialSimulate $e^{-iHt}$ in $\mathrm{poly}(n,t)$; the original Feynman motivation.
Eigenstates & Thermal StatesSuperpolynomialPrepare ground / Gibbs states for many Hamiltonian classes.
Open Quantum SystemsSuperpolynomialLindbladian simulation, Markovian and non-Markovian dynamics.
Quantum Field TheorySuperpolynomialScattering in scalar / fermionic / gauge theories.
Knot InvariantsSuperpolynomialApproximate the Jones / HOMFLY polynomial; BQP-complete.
Three-manifold InvariantsSuperpolynomialTuraev–Viro invariants are universal for quantum computation.
Partition FunctionsSuperpolynomialTutte / Potts / Ising via quantum walks and thermalization.
Zeta FunctionsSuperpolynomialCounting points on curves over finite fields (Kedlaya).
Weight EnumeratorsSuperpolynomialSign of QWGT is BQP-complete (Knill–Laflamme).
Simulated AnnealingPolynomialQuantum Markov-chain mixing with $1/\sqrt\delta$ scaling.
String RewritingSuperpolynomialCertain grammar-rewriting decision problems are PromiseBQP-complete.
Matrix PowersSuperpolynomialEstimate entries of $A^t$ for sparse $A$.
Probabilistic SamplingSuperpolynomialBosonSampling, IQP, random-circuit sampling — basis of “quantum supremacy.”
Optimization, Numerics, and Machine Learning
AlgorithmSpeedupOne-line description
Adiabatic AlgorithmsVariesSlow Hamiltonian interpolation; PageRank, training, graph problems.
Quantum Approximate Optimization (QAOA)Superpolynomial (some cases)Variational ansatz for combinatorial optimization.
Optimization by Decoded Quantum Interferometry (DQI)SuperpolynomialReduces optimization to classical decoding via QFT.
Gradient EstimationPolynomialEstimate $\nabla f$ in $O(d)$ queries vs. $\Omega(d^2)$ classical.
Convex OptimizationPolynomialSpeedups for membership / separation oracles.
Semidefinite ProgrammingPolynomial (with exceptions)Brandao–Svore and follow-ups.
Linear ProgrammingPolynomialQuantum interior-point methods.
Linear Systems (HHL)Superpolynomial$O(\log n)$ solution sampling for sparse, well-conditioned $Ax=b$.
Estimating Determinants & Spectral SumsSuperpolynomialPhase-estimation Monte Carlo on the maximally mixed state.
Differential EquationsSuperpolynomial / PolynomialLinear ODEs, PDEs, finite-element method, Poisson, Black–Scholes.
Coupled Classical OscillatorsSuperpolynomialBabbush et al. exponential simulation speedup.
Machine LearningVariesLinear-systems-based ML, kernels, perceptrons; many “dequantized” results.
Tensor Principal Component AnalysisPolynomial (quartic)Recover planted signal in spiked tensor model.
Topological Data AnalysisSuperpolynomialPersistent Betti numbers and Khovanov homology.
Approximating Nash EquilibriaPolynomial$\epsilon$-Nash for zero-sum payoff matrices.
Quantum Dynamic ProgrammingPolynomialPath-in-the-hypercube; vertex-coloring style speedups.
Top EigenvectorsPolynomial$\tilde O(d^{3/2})$ vs. classical $\tilde O(d^2)$.
Lattice ProblemsPolynomialChen–Liu–Zhandry, Eldar–Hallgren — partial advantage in special parameter regimes.
Double-bracket Quantum AlgorithmsUnknownGroup-commutator discretization of double-bracket flows.
Monte Carlo MethodsPolynomial (quadratic)Mean estimation with $O(1/\epsilon)$ vs. $O(1/\epsilon^2)$ samples.

Source and full descriptions / references: Stephen P. Jordan, Quantum Algorithm Zoo. The tables above are a condensed snapshot — visit the Zoo for the full per-algorithm bibliography (currently 500+ references) and code links.