|q⟩ Bad Qubits

intermediate · Programming · Quantum Walks

Continuous-Time Quantum Walks

The discrete-time quantum walk uses an explicit coin-flip-and-shift step applied repeatedly at integer times. A complementary model, introduced by Farhi and Gutmann (1998), evolves the walker continuously in time through a Hamiltonian. No coin register is needed; the graph itself encodes the dynamics.

From adjacency matrix to Hamiltonian

Given an undirected graph G=(V,E)G = (V, E) with n=Vn = |V| vertices, label the vertex states 0,1,,n1|0\rangle, |1\rangle, \ldots, |n-1\rangle. The walker's Hilbert space is Cn\mathbb{C}^n. The continuous-time quantum walk (CTQW) is governed by the Schrödinger equation

iddtψ(t)=Hψ(t),i\hbar \frac{d}{dt}|\psi(t)\rangle = H |\psi(t)\rangle,

where the Hamiltonian is the adjacency matrix of GG (up to a sign convention and an overall rate constant γ\gamma):

H=γA.H = -\gamma A.

Here AA is the n×nn \times n adjacency matrix: Ajk=1A_{jk} = 1 if there is an edge between vertex jj and vertex kk, and Ajk=0A_{jk} = 0 otherwise. Setting =1\hbar = 1 and absorbing γ\gamma into tt, the time-evolution operator is

U(t)=eiHt=eiγAt.U(t) = e^{-iHt} = e^{i\gamma A t}.

Starting from a vertex j|j\rangle, the amplitude to be at vertex kk at time tt is

kU(t)j=(eiγAt)kj.\langle k | U(t) | j \rangle = \left(e^{i\gamma A t}\right)_{kj}.

Math you'll use here: spectral decomposition

A Hermitian matrix AA (here, the adjacency matrix) always has a full set of orthonormal eigenvectors vk|v_k\rangle with real eigenvalues λk\lambda_k. This lets us write

A=kλkvkvk,A = \sum_k \lambda_k\, |v_k\rangle\langle v_k|,

the spectral decomposition: AA resolved into orthogonal rank-1 projectors, each scaled by its eigenvalue. The projectors are complete, kvkvk=I\sum_k |v_k\rangle\langle v_k| = I, and mutually orthogonal, vjvk=δjk\langle v_j | v_k\rangle = \delta_{jk}.

The payoff is evaluating a function of a matrix: applying ff to AA just means applying ff to each eigenvalue, leaving the projectors untouched. For the matrix exponential,

f(A)=kf(λk)vkvkeiγAt=keiγλktvkvk.f(A) = \sum_k f(\lambda_k)\, |v_k\rangle\langle v_k| \quad\Longrightarrow\quad e^{i\gamma A t} = \sum_k e^{i\gamma \lambda_k t}\, |v_k\rangle\langle v_k|.

(Check: expand eiγAte^{i\gamma A t} as a power series and use Amvk=λkmvkA^m |v_k\rangle = \lambda_k^m |v_k\rangle term by term.) This turns the hard problem of exponentiating a matrix into trivial scalar exponentials — exactly the move the example below makes to compute the walker's amplitudes on the 3-vertex path.

A concrete example: the path on three vertices

Consider three vertices connected as a line: 0120 - 1 - 2. The adjacency matrix is

A=(010101010).A = \begin{pmatrix} 0 & 1 & 0 \\ 1 & 0 & 1 \\ 0 & 1 & 0 \end{pmatrix}.

The eigenvalues of AA are λ0=2\lambda_0 = -\sqrt{2}, λ1=0\lambda_1 = 0, λ2=+2\lambda_2 = +\sqrt{2}, with corresponding orthonormal eigenvectors

v0=12(121),v1=12(101),v2=12(121).|v_0\rangle = \frac{1}{2}\begin{pmatrix} 1 \\ -\sqrt{2} \\ 1 \end{pmatrix}, \quad |v_1\rangle = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 0 \\ -1 \end{pmatrix}, \quad |v_2\rangle = \frac{1}{2}\begin{pmatrix} 1 \\ \sqrt{2} \\ 1 \end{pmatrix}.

Because AA is diagonalizable as A=kλkvkvkA = \sum_k \lambda_k |v_k\rangle\langle v_k|, the matrix exponential factorises as

eiγAt=k=02eiγλktvkvk.e^{i\gamma A t} = \sum_{k=0}^{2} e^{i\gamma \lambda_k t} |v_k\rangle\langle v_k|.

Starting at vertex 0|0\rangle with γ=1\gamma = 1, the probability to find the walker at vertex 22 at time tt is

2eiAt0=14ei2t12+14ei2t=12 ⁣(cos ⁣(2t)1).\langle 2 | e^{iAt} | 0 \rangle = \frac{1}{4}e^{-i\sqrt{2}\,t} - \frac{1}{2} + \frac{1}{4}e^{i\sqrt{2}\,t} = \frac{1}{2}\!\left(\cos\!\left(\sqrt{2}\,t\right) - 1\right).

Working through the eigenvector expansion gives P(2,t)=14 ⁣(cos(2t)1)2P(2, t) = \tfrac{1}{4}\!\left(\cos(\sqrt{2}\,t) - 1\right)^2. The probability oscillates between 0 and 11, reflecting the coherent interference of amplitudes traveling along the two routes through the graph.

Comparison with the discrete-time model

Both models describe quantum walkers that spread faster than classical diffusion, but they differ in key respects.

| Property | Discrete-time | Continuous-time | |---|---|---| | Time parameter | Integer steps tZt \in \mathbb{Z} | Continuous tRt \in \mathbb{R} | | Extra register | Coin qubit(s) required | No coin — walker lives on vertices only | | Generator | Coin-and-shift unitaries | Adjacency (or Laplacian) Hamiltonian | | Physical analogy | Kicked quantum system | Quantum hopping on a lattice |

The coin-free nature of CTQWs often makes them easier to analyse mathematically and to implement via Hamiltonian simulation. In particular, any quantum algorithm that uses a discrete-time walk on a graph GG can in principle be converted into a continuous-time version by using the same graph adjacency structure.

Ballistic transport in the CTQW

Just as the discrete-time model on a line spreads ballistically — standard deviation σ(t)t\sigma(t) \propto t rather than t\sqrt{t} — the continuous-time walk on an infinite line also achieves σ(t)=O(t)\sigma(t) = O(t). The adjacency matrix of the infinite path is a tri-diagonal operator; its eigenstates are plane waves eikxe^{ikx} and the group velocity is ±2γsin(k)\pm 2\gamma\sin(k). A localised initial state contains many momenta and therefore spreads at rate proportional to tt, giving a quadratic improvement over classical diffusion.

Implementing a CTQW on a quantum computer

The time-evolution operator eiHte^{-iHt} can be implemented by Hamiltonian simulation. For sparse adjacency matrices — graphs where each vertex has at most dd neighbours — efficient simulation algorithms exist. The standard approach decomposes eiHte^{-iHt} into a product of simpler unitaries (Trotter–Suzuki formulas) and applies them as gates. The cost scales polynomially in nn, tt, dd, and the target precision ε\varepsilon, making CTQWs a practical building block for quantum algorithms on real hardware.

The next lesson shows how both discrete and continuous-time walks can be used as the core subroutine in spatial search algorithms, turning the ballistic spreading advantage into a concrete speedup for finding a marked vertex in a graph.

Sign in on the full site to ask questions and join the discussion.