Computing Library › Quantum Algorithms
Quantum Algorithms

Szegedy Quantum Walk

A construction that turns any classical Markov chain into a quantum walk, quadratically shrinking hitting and mixing times.

Quantizing a Markov chain

Szegedy's construction takes any reversible classical Markov chain with transition matrix P and builds a corresponding quantum walk on the edge space (pairs of vertices). It works on two copies of the vertex register and defines the walk step as a product of two reflections around states that encode the chain's transition probabilities.

The walk operator

Kronos motion — classical vs quantum

Define |p_x> = sum_y sqrt(P_{xy}) |x>|y>, the superposition of transitions out of x. Let Pi be the projector onto the span of these states and swap the two registers via S. The Szegedy walk operator is W = S (2 Pi - I). Its eigenvalues relate to those of P by a quadratic map: if P has spectral gap delta, W has phase gap of order sqrt(delta).

Consequences

Search via the walk

To search for marked vertices, modify the walk to leave marked states fixed while walking on unmarked ones. Alternating this modified walk with reflections concentrates amplitude on the marked set. The number of steps scales as 1/sqrt(delta*epsilon), where delta is the chain's spectral gap and epsilon the fraction of marked states, quadratically better than the classical 1/(delta*epsilon).

Why it is central

The Szegedy framework generalizes Grover search from the complete graph to arbitrary Markov chains, and it powers algorithms for element distinctness, triangle finding, and other problems phrased as walk-based search. Its edge-space formulation and quadratic spectral relationship make it the standard tool for analyzing the cost of quantum walk search on general graphs, unifying the discrete-time picture with classical Markov-chain theory.