Quantum Algorithms Database

Quantum Walk Algorithms

The quantum analog of a classical random walk, used to search graphs and networks faster than classical methods in specific structured cases.

Last reviewed September 30, 2026. Check the linked sources for anything that may have changed since.

Year

2003 (Childs et al. and Shenvi, Kempe, and Whaley); 2004 (Ambainis; Szegedy)

Inventor(s)

Andrew Childs, Edward Farhi, Sam Gutmann, and others; Neil Shenvi, Julia Kempe, and Birgitta Whaley; Andris Ambainis; Mario Szegedy

Speedup Type

Polynomial Speedup

Difficulty

★★★★☆

Overview

A quantum walk is the quantum counterpart of a random walk. A classical random walker moves to a random neighbor at each step and spreads out slowly, with a typical distance that grows like the square root of the number of steps. A quantum walker moves in superposition of directions and interferes with itself, so its distance can grow in proportion to the number of steps, which is quadratically faster.

Quantum walks are a versatile framework for algorithm design. They give an exponential speedup on one carefully built graph problem, optimal quadratic speedups for searching and for element distinctness, and a universal model of quantum computation. Many algorithms that look unrelated, including Grover search, can be viewed as quantum walks.

The problem

Searching or traversing a large graph or network structure to find a target node or path.

History

Quantum walks were introduced in the early 1990s, with Aharonov, Davidovich, and Zagury's 1993 paper on discrete quantum random walks. Edward Farhi and Sam Gutmann defined the continuous-time quantum walk in 1998. In 2003, Andrew Childs, Richard Cleve, Enrico Deotto, Edward Farhi, Sam Gutmann, and Daniel Spielman showed a problem, traversing a pair of glued binary trees, where a quantum walk is exponentially faster than any classical algorithm.

Also in 2003, Neil Shenvi, Julia Kempe, and Birgitta Whaley described a quantum walk search on the hypercube, and Childs and Goldstone extended this to spatial search on lattices in 2004. Andris Ambainis found a quantum walk algorithm for element distinctness with N to the two-thirds queries in 2004, and Mario Szegedy gave a framework that converts classical Markov chains to quantum walks. In 2009 Childs showed that continuous-time quantum walks are universal for quantum computation.

Intuition

In a classical walk, probabilities spread out through diffusion: after t steps the walker is typically about the square root of t away from the start. In a quantum walk, amplitudes spread through interference. Paths that lead outward add up constructively, so the probability distribution has peaks that move away from the origin at a constant speed, a ballistic spread, rather than the bell curve of diffusion.

A discrete-time quantum walk needs an extra coin register that holds the direction of motion. Each step applies a coin operation, such as a Hadamard, that puts the walker in a superposition of directions, followed by a shift that moves it. A continuous-time walk skips the coin and evolves the state under a Hamiltonian built from the graph's adjacency matrix.

For search, a marked vertex is given a different energy or a different coin. The walk then evolves so that probability concentrates on the marked vertex after about the square root of N steps on a well-connected graph, matching Grover's algorithm. On a low-dimensional graph such as a two-dimensional grid, the walk reaches the quadratic speedup with extra logarithmic factors, while one-dimensional graphs show little speedup.

How it works

Exploits quantum superposition and interference to spread probability across a graph differently than a classical random walk, in some cases reaching target nodes quadratically faster.

  1. Choose a graph that represents the search space and a quantum walk on it, either discrete time with a coin register or continuous time with the adjacency matrix as a Hamiltonian.
  2. Prepare the walker in a uniform superposition over all vertices, or in a state concentrated on a starting vertex, depending on the problem.
  3. Define the marked vertices by changing the coin operator on them or by adding an energy term to the Hamiltonian at those vertices.
  4. Evolve the walk by applying the coin and shift operators repeatedly, or by applying the continuous-time evolution for a computed time.
  5. Stop after the optimal number of steps, which is on the order of the square root of the hitting time, and measure the position register.
  6. Check the output classically. If it is not a marked vertex, repeat the procedure.

Worked example

On the line, a classical random walker starting at the origin and taking 100 steps ends up typically within about 10 positions of the origin. A discrete quantum walk with a Hadamard coin and 100 steps has probability spread over a range of roughly 70 positions on each side, with peaks near the edges, which shows ballistic spreading.

For search on a complete graph with N vertices and one marked vertex, the quantum walk reaches the marked vertex after about the square root of N steps with high probability, the same as Grover's algorithm. A classical random walk would need about N steps.

Complexity and resources

SpreadingStandard deviation grows linearly with time for quantum walks versus the square root for classical walks on a line
Spatial searchAbout the square root of N steps on well-connected graphs and about the square root of N times a logarithmic factor on a two-dimensional grid
Element distinctnessO(N to the 2 over 3) queries, versus N classically
Glued treesPolynomial time on a quantum walk, exponential for any classical algorithm in the oracle model
UniversalityQuantum walks can simulate arbitrary quantum circuits

Hardware needs

Qubits arranged to implement the graph structure, and enough coherence for hundreds of steps.

Controlled coin and shift operations, or Hamiltonian simulation of the adjacency matrix.

For search problems, an oracle for marked vertices, as in Grover's algorithm.

Real-world impact

Used in specialized search applications and as a building block for some optimization and machine learning algorithms; less broadly known than Grover's but mathematically related.

Applications

Spatial search on networks and grids, and element distinctness in the query model.

Triangle finding and other graph problems with polynomial speedups.

A framework for converting classical Markov chain algorithms into quantum algorithms with quadratic speedups in mixing time.

Modeling energy transport in photosynthesis and other physical systems, as an analogy.

Limitations

  • The exponential speedup on glued trees applies to an artificial problem defined by an oracle.
  • Search speedups are quadratic and match Grover's algorithm in the unstructured case.
  • Performance depends heavily on graph geometry, and low-dimensional graphs show little advantage.
  • Noise destroys the interference that powers the speed advantage, so the walk needs a coherent device.

Common misconceptions

  • Quantum walks are not simply random walks on a quantum computer. The interference changes the spreading behavior fundamentally.
  • They do not speed up every graph problem. Advantages are known for specific problems.

How it compares

Grover's algorithm solves unstructured search with a quadratic speedup, and quantum walks reproduce it while also exploiting graph structure.

Szegedy's framework turns any reversible Markov chain into a quantum walk with a quadratic speedup in the spectral gap.

Amplitude amplification gives a general quadratic speedup for randomized algorithms, while quantum walks are tailored to graph problems.

Why it matters

Quantum walks provide a second way of designing quantum algorithms besides the Fourier transform and amplitude amplification. They are the source of several of the best known polynomial speedups, including element distinctness and triangle finding.

The universality result also means that any quantum computation can be recast as a walk on a graph, which gives physicists a different language for thinking about quantum computing and motivates analog quantum simulators.

What a quantum walk is

A quantum walk is the quantum counterpart of a random walk on a graph. Instead of a particle moving to one neighbour at random, the walker is in a superposition of positions, and interference makes some paths reinforce each other and others cancel. This changes how quickly the walker spreads and how likely it is to reach particular vertices, which is the source of the algorithmic speedups.

A landmark result is 'Exponential algorithmic speedup by quantum walk' by Childs, Cleve, Deotto, Farhi, Gutmann and Spielman (arXiv quant-ph/0209131). It defines a black-box (oracle) problem that a quantum algorithm solves by using a continuous-time quantum walk to traverse a graph quickly, a technique that differs from earlier algorithms based on the quantum Fourier transform. The authors claim exponential speedup over any classical approach and prove that no classical algorithm can solve the problem with high probability in subexponential time.

From that result to search

That paper is about a specific oracle problem, not about general search. For search, quantum walks are used to find a marked vertex on a graph, and on well-connected graphs the quadratic speedup matches Grover's algorithm. This page did not open the individual search papers, so details such as which graph families reach the optimal quadratic bound should be checked in the original literature. The honest summary is that walks give a flexible framework that includes Grover search as a special case and offers a route to new algorithms, and that exponential speedups are known only for contrived oracle problems like the one above.

  • Continuous-time walk: evolves under the graph's adjacency structure as a Hamiltonian.
  • Discrete-time walk: uses a coin and a shift operator at each step.
  • Known exponential speedup: oracle problem from Childs et al. (not a practical problem).
  • Search use: marked-vertex finding with Grover-like quadratic gains on suitable graphs.

Frequently asked questions

What is a quantum walk?

It is the quantum analogue of a random walk, in which the walker is in a superposition of positions and interferes with itself, producing very different spreading behavior.

How much faster is a quantum walk than a classical one?

On a line, the spread grows linearly with time instead of with the square root. For search, the speedup is typically quadratic.

What are the two types of quantum walks?

Discrete-time walks, which use a coin register and a shift operator, and continuous-time walks, which evolve under a Hamiltonian derived from the graph.

Where was an exponential speedup shown?

On the glued trees problem of Childs and colleagues in 2003, which involves finding the exit of a graph formed by joining two binary trees randomly.

Are quantum walks universal?

Yes. Both continuous-time and discrete-time quantum walks can simulate any quantum circuit, so they can in principle do anything a quantum computer can.

Related algorithms

References and further reading

Sources opened and checked on December 1, 2026. Resource estimates and claims change, so check the originals.

  1. Exponential algorithmic speedup by quantum walk (arXiv (Childs, Cleve, Deotto, Farhi, Gutmann, Spielman)) Opened. Source for the oracle problem, the exponential-speedup claim and the classical lower bound.
  2. A fast quantum mechanical algorithm for database search (arXiv (L. K. Grover)) Opened. The quadratic search benchmark walks are compared with.

← Back to Algorithms Database