Skip to main content
KetQat

Appearance

Topic · intermediate

Graph Theory

Graphs as used in quantum information - basic definitions and graph matrices, Tanner graphs of codes, expander graphs and the spectral gap, matchings and matching decoders, and graph states - with the theorems that connect expansion to eigenvalues.

ExpositionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Overview

A graph is a set of points with some pairs joined by edges. Graphs appear in quantum information wherever there is a pattern of who interacts with whom: which qubits a hardware coupler connects, which bits a parity check reads (the Tanner graph of a code), which syndrome defects a decoder pairs up (a matching problem), and which qubits are entangled by controlled-ZZ gates in a graph state. Two parts of graph theory carry most of the weight. Spectral graph theory relates how well connected a graph is to the eigenvalues of its adjacency matrix; its central objects, expander graphs, are the raw material of good classical and quantum LDPC codes. Matching theory says when vertices can be paired along edges and how to find a cheapest pairing; it is the basis of the most widely used surface-code decoder.

The standard text for the combinatorics is Diestel; for expanders and their spectra, the survey of Hoory, Linial and Wigderson.

Intuition

Imagine pouring water onto one vertex and letting it flow along edges. In a long cycle it creeps slowly around; in a well-connected graph it spreads everywhere in a few steps. The speed of spreading is governed by the gap between the largest eigenvalue of the adjacency matrix (the degree dd, for a dd-regular graph) and the second largest, λ2\lambda_2. A large gap means that every set of vertices, unless it is more than half the graph, has many edges leaving it — the graph has no bottleneck. Graphs with this property and few edges per vertex are expanders: they are sparse like a lattice but connected like a complete graph.

For codes, sparsity means cheap checks, and expansion means that a small error cannot hide: any small set of flipped bits touches many checks, many of them uniquely. Lattices fail the second requirement (a long string of errors only triggers checks at its ends), which is why surface codes need distance growing with the lattice size, while codes built on expanders can have distance and rate both proportional to the length.

Prerequisites

Symmetric matrices and their eigen-decomposition, the variational characterisation of eigenvalues; see linear algebra. For the coding applications, parity-check matrices from classical error-correcting codes.

Mathematical Definitions

DefinitionGraph, adjacency matrix and LaplacianEstablished definition

A (simple, undirected, finite) graph G=(V,E)G = (V, E) is a finite set VV of vertices and a set EE of two-element subsets {u,v}⊆V\{u, v\} \subseteq V, the edges. A multigraph also allows loops and repeated edges. Vertices u,vu, v are adjacent, u∼vu \sim v, if {u,v}∈E\{u, v\} \in E; the neighbourhood N(v)N(v) is the set of vertices adjacent to vv and the degree is deg⁡v=∣N(v)∣\deg v = \abs{N(v)}. GG is dd-regular if every vertex has degree dd.

A path is a sequence of distinct vertices with consecutive ones adjacent; GG is connected if every two vertices are joined by a path, and the maximal connected subgraphs are its connected components. GG is bipartite if V=A⊔BV = A \sqcup B with every edge joining AA to BB. For S,T⊆VS, T \subseteq V write E(S,T)E(S, T) for the number of pairs (s,t)∈S×T(s, t) \in S \times T with s∼ts \sim t, and ∂S=E(S,V∖S)\partial S = E(S, V \setminus S) for the size of the edge boundary of SS.

With V={1,…,n}V = \{1, \dots, n\}, the adjacency matrix AA is the n×nn \times n symmetric 0/1 matrix with Auv=1A_{uv} = 1 exactly when u∼vu \sim v, and the Laplacian is L=D−AL = D - A with D=diag⁡(deg⁡v)D = \operatorname{diag}(\deg v). For every x∈Rnx \in \R^{n},

xTL x=∑{u,v}∈E(xu−xv)2  ≥  0,x^{T} L\, x = \sum_{\{u, v\} \in E} (x_u - x_v)^2 \;\ge\; 0,

so LL is positive semidefinite; L1=0L\mathbf{1} = 0, and the multiplicity of the eigenvalue 0 of LL equals the number of connected components. For a dd-regular graph L=dI−AL = dI - A, and the eigenvalues of AA, ordered d=λ1≥λ2≥⋯≥λn≥−dd = \lambda_1 \ge \lambda_2 \ge \cdots \ge \lambda_n \ge -d, satisfy: λ2<d\lambda_2 < d if and only if GG is connected, and λn=−d\lambda_n = -d if and only if some connected component is bipartite. The difference d−λ2d - \lambda_2 is the spectral gap.

The incidence matrix over F2\F_2, with rows indexed by vertices and columns by edges and a 1 where a vertex lies on an edge, is the boundary map ∂1\partial_1 of the graph viewed as a one-dimensional chain complex. Standard terminology follows Diestel; the spectral facts are in section 2 of Hoory, Linial and Wigderson.

DefinitionLDPC code and Tanner graphEstablished definition

Let HH be an m×nm \times n parity-check matrix of a binary linear code. Its Tanner graph is the bipartite graph with variable nodes 1,…,n1, \dots, n (the columns, one per code bit), check nodes 1,…,m1, \dots, m (the rows), and an edge between check jj and variable ii exactly when Hji=1H_{ji} = 1. A word is a codeword if and only if, at every check node, the bits on the neighbouring variable nodes sum to zero.

A family of codes with parity-check matrices H(n)H^{(n)} of growing length nn is a low-density parity-check (LDPC) family if there is a constant ww, independent of nn, such that every row and every column of every H(n)H^{(n)} has at most ww ones; equivalently, the Tanner graphs have bounded degree. The family is (dv,dc)(d_v, d_c)-regular if every variable node has degree dvd_v and every check node degree dcd_c. Counting edges gives n dv=m dcn\, d_v = m\, d_c, so the rate is at least the design rate 1−dv/dc1 - d_v/d_c, with equality when the rows of HH are independent.

Sparsity is a property of the matrix HH, not of the code: the same code has many parity-check matrices, most of them dense, and the performance of iterative decoders depends on which one is used. "LDPC" is meaningful only for a family, since any single matrix has bounded weights.

LDPC codes were introduced by Gallager together with iterative decoding; the graph description is due to Tanner. A modern account is Richardson and Urbanke. The quantum counterpart, where two sparse check matrices must also be orthogonal, is the subject of quantum LDPC codes.

DefinitionExpander graphEstablished definition

Let G=(V,E)G = (V, E) be a finite graph with n=∣V∣n = \abs{V} vertices.

  • The edge expansion (Cheeger constant) is h(G)=min⁡{ ∣∂S∣/∣S∣  :  S⊆V, 0<∣S∣≤n/2 }h(G) = \min\{\, \abs{\partial S} / \abs{S} \;:\; S \subseteq V,\ 0 < \abs{S} \le n/2 \,\}, where ∂S\partial S is the set of edges leaving SS.
  • For a dd-regular graph with adjacency eigenvalues d=λ1≥λ2≥⋯≥λnd = \lambda_1 \ge \lambda_2 \ge \cdots \ge \lambda_n, put λ(G)=max⁡(∣λ2∣,∣λn∣)\lambda(G) = \max(\abs{\lambda_2}, \abs{\lambda_n}), the largest absolute value of a nontrivial eigenvalue. GG is an (n,d,λ)(n, d, \lambda)-graph if λ(G)≤λ\lambda(G) \le \lambda.
  • A sequence of dd-regular graphs G1,G2,…G_1, G_2, \dots with ∣V(Gi)∣→∞\abs{V(G_i)} \to \infty and fixed dd is a family of expanders if h(Gi)≥εh(G_i) \ge \varepsilon for some ε>0\varepsilon > 0 and all ii; equivalently (by the Cheeger inequalities) if d−λ2(Gi)≥ε′d - \lambda_2(G_i) \ge \varepsilon' for some ε′>0\varepsilon' > 0.
  • A dd-regular graph is Ramanujan if every nontrivial eigenvalue satisfies ∣λi∣≤2d−1\abs{\lambda_i} \le 2\sqrt{d - 1}; by the Alon–Boppana bound this is asymptotically the best possible spectral expansion.
  • For a bipartite graph with left side LL of left degree cc, the set S⊆LS \subseteq L has vertex expansion ∣N(S)∣/∣S∣\abs{N(S)}/\abs{S}. The graph is a (γ,α)(\gamma, \alpha) lossless (or unique-neighbour) expander, in the sense used for codes, when every S⊆LS \subseteq L with ∣S∣≤γ∣L∣\abs{S} \le \gamma \abs{L} has ∣N(S)∣≥αc∣S∣\abs{N(S)} \ge \alpha c \abs{S} with α\alpha close to 1.

The point of the definition is the combination of bounded degree with expansion bounded away from zero: complete graphs expand trivially but are dense. That such families exist follows from a counting argument for random regular graphs, and explicit constructions include the Ramanujan graphs of Lubotzky, Phillips and Sarnak. All the notions above and their relations are surveyed by Hoory, Linial and Wigderson.

DefinitionMatching, perfect matching and minimum-weight perfect matchingEstablished definition

Let G=(V,E)G = (V, E) be a graph. A matching is a set M⊆EM \subseteq E of edges, no two of which share an endpoint. A vertex is covered (or saturated) by MM if it lies on an edge of MM. MM is maximum if no matching has more edges and perfect if it covers every vertex, so a perfect matching has ∣V∣/2\abs{V}/2 edges and requires ∣V∣\abs{V} even.

Given MM, an augmenting path is a path whose end vertices are both uncovered and whose edges alternate between E∖ME \setminus M and MM; exchanging the matched and unmatched edges along it gives a matching with one more edge. A matching is maximum if and only if it has no augmenting path (Berge's theorem).

With a weight function w:E→Rw : E \to \R, a minimum-weight perfect matching is a perfect matching MM minimising w(M)=∑e∈Mw(e)w(M) = \sum_{e \in M} w(e). Edmonds gave a polynomial-time algorithm for maximum matching in general (not necessarily bipartite) graphs by contracting odd cycles, "blossoms"; its weighted extension solves the minimum-weight perfect matching problem in polynomial time. In surface-code decoding the vertices are syndrome defects (plus boundary vertices), the weights are −log⁡-\log of error probabilities along shortest paths, and a minimum-weight perfect matching pairs the defects according to a most likely error consistent with the syndrome; see the matching decoder. Matching terminology follows chapter 2 of Diestel.

DefinitionGraph state and cluster stateEstablished definition

Let G=(V,E)G = (V, E) be a simple undirected graph with ∣V∣=n\abs{V} = n, and write NaN_a for the set of neighbours of a vertex aa. The graph state of GG is

∣G⟩=∏{a,b}∈ECZab ∣+⟩⊗V,\ket{G} = \prod_{\{a, b\} \in E} \mathrm{CZ}_{ab}\, \ket{+}^{\otimes V},

where CZab=diag⁡(1,1,1,−1)\mathrm{CZ}_{ab} = \operatorname{diag}(1,1,1,-1) on qubits a,ba, b. The CZ gates commute, so the order does not matter. Equivalently, ∣G⟩\ket{G} is the unique (up to phase) state with

Ka∣G⟩=∣G⟩,Ka=Xa∏b∈NaZb,a∈V.K_a \ket{G} = \ket{G}, \qquad K_a = X_a \prod_{b \in N_a} Z_b , \qquad a \in V .

Indeed Xa∣+⟩⊗V=∣+⟩⊗VX_a\ket{+}^{\otimes V} = \ket{+}^{\otimes V}, and conjugating by the CZ gates uses CZabXaCZab=XaZb\mathrm{CZ}_{ab} X_a \mathrm{CZ}_{ab} = X_a Z_b for each edge at aa, while ZZ operators commute with CZ. The nn operators KaK_a commute and are independent, so they generate a stabilizer group with a one-dimensional joint +1+1 eigenspace. In the computational basis, ∣G⟩=2−n/2∑x∈{0,1}n(−1)∑{a,b}∈Exaxb∣x⟩\ket{G} = 2^{-n/2} \sum_{x \in \{0,1\}^n} (-1)^{\sum_{\{a,b\} \in E} x_a x_b} \ket{x}.

A cluster state is the graph state of a regular lattice: a path (linear cluster), the square lattice (2D cluster) or the cubic lattice (3D cluster). Cluster states were introduced as the states generated from product states by an Ising-type interaction by Briegel and Raussendorf; the general graph-state formalism is in Hein, Eisert and Briegel and the review Hein et al..

Theorems

Expansion and eigenvalues

TheoremDiscrete Cheeger inequalitiesEstablished result
d−λ22  ≤  h(G)  ≤  2d (d−λ2).\frac{d - \lambda_2}{2} \;\le\; h(G) \;\le\; \sqrt{2d\,(d - \lambda_2)} .

In particular, a family of dd-regular graphs has edge expansion bounded away from zero if and only if its spectral gaps d−λ2d - \lambda_2 are bounded away from zero, which is why expansion can be certified by computing one eigenvalue. The lower bound is the "easy" direction; the upper bound, the discrete analogue of Cheeger's inequality for manifolds, needs a rounding argument on the second eigenvector. The inequalities were proved by Dodziuk (1984) and independently by Alon and Milman and Alon; the form stated here is the one in section 4 of Hoory, Linial and Wigderson.

Holds when
  • GG is a finite dd-regular graph with second-largest adjacency eigenvalue λ2\lambda_2 and edge expansion h(G)h(G) as in the definition of an expander graph.
Proof · Proof of the lower Cheeger bound (spectral gap implies expansion)

This record proves the lower bound h(G)≥(d−λ2)/2h(G) \ge (d - \lambda_2)/2 in full. The upper bound h(G)≤2d(d−λ2)h(G) \le \sqrt{2d(d - \lambda_2)} is not proved here; see section 4 of Hoory, Linial and Wigderson.

Let L=dI−AL = dI - A be the Laplacian. Its eigenvalues are d−λid - \lambda_i, the smallest is 0 with eigenvector 1\mathbf{1}, and by the variational (Courant–Fischer) characterisation the next smallest is

d−λ2=min⁡0≠f⊥1fTLffTf,fTLf=∑{u,v}∈E(fu−fv)2.d - \lambda_2 = \min_{0 \ne f \perp \mathbf{1}} \frac{f^{T} L f}{f^{T} f}, \qquad f^{T} L f = \sum_{\{u, v\} \in E} (f_u - f_v)^2 .

Fix S⊆VS \subseteq V with 0<s=∣S∣≤n/20 < s = \abs{S} \le n/2 and define f=(n−s) 1S−s 1V∖Sf = (n - s)\,\mathbf{1}_S - s\, \mathbf{1}_{V \setminus S}. Then 1Tf=s(n−s)−(n−s)s=0\mathbf{1}^{T} f = s(n - s) - (n - s)s = 0. An edge inside SS or inside its complement contributes 0 to fTLff^{T} L f, and an edge across contributes ((n−s)+s)2=n2\big((n - s) + s\big)^2 = n^2, so

fTLf=n2 ∣∂S∣,fTf=s(n−s)2+(n−s)s2=s(n−s) n.f^{T} L f = n^2\, \abs{\partial S}, \qquad f^{T} f = s (n - s)^2 + (n - s) s^2 = s(n - s)\, n .

The variational bound gives n2∣∂S∣≥(d−λ2) s(n−s)nn^2 \abs{\partial S} \ge (d - \lambda_2)\, s (n - s) n, i.e.

∣∂S∣∣S∣  ≥  (d−λ2) n−sn  ≥  d−λ22,\frac{\abs{\partial S}}{\abs{S}} \;\ge\; (d - \lambda_2)\, \frac{n - s}{n} \;\ge\; \frac{d - \lambda_2}{2},

using n−s≥n/2n - s \ge n/2. Minimising over SS gives h(G)≥(d−λ2)/2h(G) \ge (d - \lambda_2)/2.

TheoremExpander mixing lemmaEstablished result

For all subsets S,T⊆VS, T \subseteq V,

∣ E(S,T)−d ∣S∣ ∣T∣n ∣  ≤  λ∣S∣ ∣T∣.\left|\, E(S, T) - \frac{d\, \abs{S}\, \abs{T}}{n} \,\right| \;\le\; \lambda \sqrt{\abs{S}\, \abs{T}} .

A slightly sharper form replaces the right side by λ∣S∣(1−∣S∣/n) ∣T∣(1−∣T∣/n)\lambda \sqrt{\abs{S}(1 - \abs{S}/n)\,\abs{T}(1 - \abs{T}/n)}. The quantity d∣S∣∣T∣/nd\abs{S}\abs{T}/n is the expected count in a random graph of the same density, so a small λ\lambda means that the edges of GG are spread almost uniformly over every pair of large sets. The lemma was observed by several researchers and appeared in print in Alon and Chung; it is proved in section 2 of Hoory, Linial and Wigderson.

Holds when
  • GG is a dd-regular graph on nn vertices with adjacency eigenvalues d=λ1≥⋯≥λnd = \lambda_1 \ge \cdots \ge \lambda_n and λ=max⁡(∣λ2∣,∣λn∣)\lambda = \max(\abs{\lambda_2}, \abs{\lambda_n}).
  • E(S,T)E(S, T) counts ordered pairs (s,t)∈S×T(s, t) \in S \times T with s∼ts \sim t, so an edge inside S∩TS \cap T is counted twice.
Proof · Proof of the expander mixing lemma

Let 1S,1T∈Rn\mathbf{1}_S, \mathbf{1}_T \in \R^{n} be indicator vectors. Then E(S,T)=∑s∈S,t∈TAst=1STA 1TE(S, T) = \sum_{s \in S, t \in T} A_{st} = \mathbf{1}_S^{T} A\, \mathbf{1}_T.

Since GG is dd-regular, A1=d1A\mathbf{1} = d\mathbf{1}, and AA is real symmetric, so it has an orthonormal eigenbasis u1=1/n,u2,…,unu_1 = \mathbf{1}/\sqrt{n}, u_2, \dots, u_n with Aui=λiuiA u_i = \lambda_i u_i. Decompose

1S=∣S∣n1+x,1T=∣T∣n1+y,x,y⊥1.\mathbf{1}_S = \frac{\abs{S}}{n}\mathbf{1} + x, \qquad \mathbf{1}_T = \frac{\abs{T}}{n}\mathbf{1} + y, \qquad x, y \perp \mathbf{1} .

The subspace 1⊥\mathbf{1}^{\perp} is spanned by u2,…,unu_2, \dots, u_n and is invariant under AA, so the cross terms vanish: 1TAy=d 1Ty=0\mathbf{1}^{T} A y = d\, \mathbf{1}^{T} y = 0 and likewise xTA1=0x^{T} A \mathbf{1} = 0. Hence

E(S,T)=∣S∣∣T∣n2 1TA1+xTAy=d∣S∣∣T∣n+xTAy.E(S, T) = \frac{\abs{S}\abs{T}}{n^2}\, \mathbf{1}^{T} A \mathbf{1} + x^{T} A y = \frac{d \abs{S}\abs{T}}{n} + x^{T} A y .

Expanding x=∑i≥2αiuix = \sum_{i \ge 2} \alpha_i u_i and y=∑i≥2βiuiy = \sum_{i \ge 2} \beta_i u_i,

∣xTAy∣=∣∑i≥2λiαiβi∣≤λ∑i≥2∣αi∣∣βi∣≤λ ∥x∥ ∥y∥\abs{x^{T} A y} = \Big| \sum_{i \ge 2} \lambda_i \alpha_i \beta_i \Big| \le \lambda \sum_{i \ge 2} \abs{\alpha_i}\abs{\beta_i} \le \lambda\, \norm{x}\, \norm{y}

by Cauchy–Schwarz. Finally ∥x∥2=∥1S∥2−∣S∣2/n=∣S∣(1−∣S∣/n)≤∣S∣\norm{x}^2 = \norm{\mathbf{1}_S}^2 - \abs{S}^2/n = \abs{S}(1 - \abs{S}/n) \le \abs{S}, and similarly for yy, which gives both the sharper and the stated bound. This is the argument of section 2 of Hoory, Linial and Wigderson.

EquationAlon–Boppana boundEstablished result
λ2(G)  ≥  2d−1−on(1)\lambda_2(G) \;\ge\; 2\sqrt{d - 1} - o_n(1)

The number 2d−12\sqrt{d - 1} is the spectral radius of the infinite dd-regular tree, which every large dd-regular graph locally resembles. The bound is attributed to Alon and Boppana; a short proof is given by Nilli, and a textbook account is in section 5 of Hoory, Linial and Wigderson. Graphs meeting ∣λi∣≤2d−1\abs{\lambda_i} \le 2\sqrt{d - 1} for all nontrivial eigenvalues are Ramanujan graphs, and infinite families of them exist, for instance the explicit Cayley graphs of Lubotzky, Phillips and Sarnak.

Holds when
  • GG ranges over dd-regular graphs on nn vertices with d≥3d \ge 3 fixed; on(1)→0o_n(1) \to 0 as n→∞n \to \infty, uniformly over such graphs.

Matchings

TheoremHall's marriage theoremEstablished result

There is a matching covering every vertex of AA if and only if

∣N(S)∣  ≥  ∣S∣for every S⊆A.\abs{N(S)} \;\ge\; \abs{S} \qquad \text{for every } S \subseteq A .

Consequences: a bipartite graph with ∣A∣=∣B∣\abs{A} = \abs{B} satisfying the condition has a perfect matching; every dd-regular bipartite graph with d≥1d \ge 1 has a perfect matching (each S⊆AS \subseteq A sends d∣S∣d\abs{S} edges into N(S)N(S), which can absorb at most d∣N(S)∣d\abs{N(S)}), and by removing it and repeating, its edges split into dd perfect matchings. The theorem is due to Hall, phrased as the existence of distinct representatives for a family of sets; a textbook proof is in chapter 2 of Diestel.

Holds when
  • A finite bipartite graph with parts AA and BB; N(S)⊆BN(S) \subseteq B is the set of vertices adjacent to at least one vertex of S⊆AS \subseteq A.
Proof · Proof of Hall's marriage theorem

Necessity. If MM covers AA, the partners under MM of the vertices of SS are ∣S∣\abs{S} distinct vertices of N(S)N(S).

Sufficiency. Induction on ∣A∣\abs{A}. If ∣A∣=1\abs{A} = 1, the condition gives the single vertex a neighbour, and that edge is the matching. Let ∣A∣≥2\abs{A} \ge 2 and assume the statement for smaller AA.

Case 1: ∣N(S)∣≥∣S∣+1\abs{N(S)} \ge \abs{S} + 1 for every nonempty S⊊AS \subsetneq A. Pick any a∈Aa \in A and any neighbour bb of aa (one exists since ∣N({a})∣≥1\abs{N(\{a\})} \ge 1). Delete aa and bb. In the remaining graph, every nonempty S⊆A∖{a}S \subseteq A \setminus \{a\} has lost at most the one neighbour bb, so it still has at least ∣S∣\abs{S} neighbours. By induction A∖{a}A \setminus \{a\} can be matched in the remaining graph; adding the edge abab matches AA.

Case 2: some nonempty S0⊊AS_0 \subsetneq A has ∣N(S0)∣=∣S0∣\abs{N(S_0)} = \abs{S_0}. The subgraph induced on S0∪N(S0)S_0 \cup N(S_0) satisfies Hall's condition for S0S_0 (neighbourhoods of subsets of S0S_0 lie inside N(S0)N(S_0)), so by induction it has a matching M0M_0 covering S0S_0, which uses all of N(S0)N(S_0). Now consider the subgraph G′G' induced on (A∖S0)∪(B∖N(S0))(A \setminus S_0) \cup (B \setminus N(S_0)). For T⊆A∖S0T \subseteq A \setminus S_0, its neighbourhood in G′G' is N(T)∖N(S0)N(T) \setminus N(S_0), and

∣N(T)∖N(S0)∣=∣N(T∪S0)∣−∣N(S0)∣≥∣T∪S0∣−∣S0∣=∣T∣.\abs{N(T) \setminus N(S_0)} = \abs{N(T \cup S_0)} - \abs{N(S_0)} \ge \abs{T \cup S_0} - \abs{S_0} = \abs{T} .

So G′G' satisfies Hall's condition and, by induction (∣A∖S0∣<∣A∣\abs{A \setminus S_0} < \abs{A}), has a matching M1M_1 covering A∖S0A \setminus S_0. The two matchings use disjoint vertex sets, and M0∪M1M_0 \cup M_1 covers AA.

This is a standard inductive proof; chapter 2 of Diestel discusses Hall's theorem and its proofs.

Graph states

Two graph states are related by single-qubit Clifford gates exactly when the graphs are related by local complementations:

TheoremLocal complementation and local Clifford equivalence of graph statesEstablished result

For a vertex aa of GG, the local complement τa(G)\tau_a(G) is the graph obtained by replacing the subgraph induced on the neighbourhood NaN_a by its complement (edges between neighbours of aa are removed, non-edges are added) and keeping everything else. Then

∣τa(G)⟩=e−iπ4Xa∏b∈Naeiπ4Zb ∣G⟩,\ket{\tau_a(G)} = e^{-i\frac{\pi}{4} X_a} \prod_{b \in N_a} e^{i\frac{\pi}{4} Z_b}\, \ket{G},

a product of single-qubit Clifford gates, and two graph states ∣G⟩\ket{G}, ∣G′⟩\ket{G'} satisfy ∣G′⟩=(U1⊗⋯⊗Un)∣G⟩\ket{G'} = (U_1 \otimes \cdots \otimes U_n)\ket{G} with all UjU_j Clifford if and only if G′G' is obtained from GG by a finite sequence of local complementations (Van den Nest, Dehaene and De Moor). In addition, every stabilizer state is local-Clifford equivalent to some graph state. The formula above is the form given in the review of Hein et al..

A consequence used throughout measurement-based computing: measuring a vertex of a graph state in a Pauli basis leaves the other qubits in a graph state of a modified graph, up to known local Clifford gates. A ZZ measurement deletes the vertex; a YY measurement deletes it after locally complementing at it; an XX measurement gives τb0(τa(τb0(G))−a)\tau_{b_0}\big(\tau_a(\tau_{b_0}(G)) - a\big) for a chosen neighbour b0b_0 of aa.

Holds when
  • Simple undirected graphs; equalities up to global phase.

Worked Examples

The complete graph K4K_4

K4K_4 is 3-regular with adjacency matrix J−IJ - I (JJ the all-ones matrix), so its eigenvalues are 33 and −1-1 (three times); λ2=−1\lambda_2 = -1 and the spectral gap is 4. Edge expansion: a single vertex has 3 leaving edges, a pair of vertices has 2⋅2=42 \cdot 2 = 4, so h(K4)=min⁡(3/1,4/2)=2h(K_4) = \min(3/1, 4/2) = 2. The Cheeger bounds give (3−(−1))/2=2≤h≤2⋅3⋅4≈4.90(3 - (-1))/2 = 2 \le h \le \sqrt{2 \cdot 3 \cdot 4} \approx 4.90: the lower bound is attained.

The cycle CnC_n is not an expander

CnC_n is 2-regular with eigenvalues 2cos⁡(2πk/n)2\cos(2\pi k/n), k=0,…,n−1k = 0, \dots, n-1, so λ2=2cos⁡(2π/n)\lambda_2 = 2\cos(2\pi/n) and the gap is 2−2cos⁡(2π/n)≈4π2/n22 - 2\cos(2\pi/n) \approx 4\pi^2/n^2. For even nn, cutting the cycle into two arcs of n/2n/2 vertices crosses 2 edges, so h(Cn)=4/nh(C_n) = 4/n. Both quantities tend to 0: the cycle — the Tanner graph shape of the repetition code — has a bottleneck, and in the same way the distance of a lattice code grows only with its linear size.

The Petersen graph is Ramanujan

The Petersen graph (outer 5-cycle, inner pentagram, five spokes) is 3-regular on 10 vertices with eigenvalues 33, 11 (five times) and −2-2 (four times). So λ=max⁡(∣1∣,∣−2∣)=2≤22≈2.83\lambda = \max(\abs{1}, \abs{-2}) = 2 \le 2\sqrt{2} \approx 2.83, and the graph is Ramanujan. Its edge expansion is h=1h = 1 (attained by the outer 5-cycle, which has 5 spokes leaving it), equal to the Cheeger lower bound (3−1)/2=1(3 - 1)/2 = 1. Mixing lemma check with S=TS = T the outer cycle: E(S,S)=2⋅5=10E(S, S) = 2 \cdot 5 = 10 (five edges, each counted in both directions), the random prediction is 3⋅5⋅5/10=7.53 \cdot 5 \cdot 5/10 = 7.5, and the deviation 2.52.5 is within the sharper bound 2⋅5⋅(1−5/10)=52 \cdot 5 \cdot (1 - 5/10) = 5. The eigenvalues and hh were checked by direct computation.

Hall's condition on a check–qubit graph

Take checks c1={q1,q2}c_1 = \{q_1, q_2\}, c2={q2,q3}c_2 = \{q_2, q_3\}, c3={q1,q3}c_3 = \{q_1, q_3\} as the left side and qubits on the right. Every set of ss checks touches at least ss qubits (one check: 2; two checks: 3; three: 3), so Hall's theorem gives a matching assigning each check its own qubit, e.g. c1q1,c2q2,c3q3c_1 q_1, c_2 q_2, c_3 q_3. Adding a fourth check c4={q1,q2}c_4 = \{q_1, q_2\} breaks the condition for S={c1,…,c4}S = \{c_1, \dots, c_4\} (4 checks, 3 qubits), so no such assignment exists — and indeed four checks on three bits must be linearly dependent.

Applications

Limitations and Common Pitfalls

  • Which expansion? Edge expansion, vertex expansion, spectral expansion of λ2\lambda_2 and two-sided spectral expansion λ=max⁡(∣λ2∣,∣λn∣)\lambda = \max(\abs{\lambda_2}, \abs{\lambda_n}) are different quantities. A bipartite graph has λn=−d\lambda_n = -d, so it is never a two-sided spectral expander, yet it can have excellent one-sided and vertex expansion. Code constructions use specific versions; check which one a theorem needs.
  • Expansion of a family, not a graph. Every connected finite graph has h>0h > 0; "expander" only has content for an infinite family with bounded degree and expansion bounded below.
  • Spectral expansion does not give lossless vertex expansion. Spectral methods certify vertex expansion of about half the degree, not the near-full expansion that some decoding arguments for expander codes require (Hoory, Linial and Wigderson).
  • Counting conventions. E(S,T)E(S, T) in the mixing lemma counts ordered pairs; edges inside S∩TS \cap T are counted twice.
  • Matching weights. A minimum-weight perfect matching is a most likely error, not a most likely error class; for degenerate quantum codes the two can differ.
  • Graph isomorphism of states. Different graphs can give locally equivalent graph states; entanglement properties are invariants of the local-complementation orbit, not of the graph.

The chain-complex viewpoint, in which a graph is a one-dimensional complex and codes come from two-dimensional ones, is developed in topology and homology; the algebra of Cayley graphs is part of group theory; and the decoders that run on Tanner and matching graphs are collected under quantum decoders.

Builds on
Needed for

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Reinhard Diestel (2017). Graph Theory. Springer Berlin Heidelberg (Graduate Texts in Mathematics 173, 5th edition). doi:10.1007/978-3-662-53622-3
  2. Shlomo Hoory, Nathan Linial, Avi Wigderson (2006). Expander graphs and their applications. Bulletin of the American Mathematical Society 43 (4), 439-561. doi:10.1090/S0273-0979-06-01126-8
  3. N. Alon, V. D. Milman (1985). λ1, Isoperimetric inequalities for graphs, and superconcentrators. Journal of Combinatorial Theory, Series B 38 (1), 73-88. doi:10.1016/0095-8956(85)90092-9
  4. Noga Alon (1986). Eigenvalues and expanders. Combinatorica 6 (2), 83-96. doi:10.1007/BF02579166
  5. N. Alon, F. R. K. Chung (1988). Explicit construction of linear sized tolerant networks. Discrete Mathematics 72 (1-3), 15-19. doi:10.1016/0012-365X(88)90189-6
  6. A. Nilli (1991). On the second eigenvalue of a graph. Discrete Mathematics 91 (2), 207-210. doi:10.1016/0012-365X(91)90112-F
  7. A. Lubotzky, R. Phillips, P. Sarnak (1988). Ramanujan graphs. Combinatorica 8 (3), 261-277. doi:10.1007/BF02126799
  8. P. Hall (1935). On Representatives of Subsets. Journal of the London Mathematical Society s1-10 (1), 26-30. doi:10.1112/jlms/s1-10.37.26
  9. Jack Edmonds (1965). Paths, Trees, and Flowers. Canadian Journal of Mathematics 17, 449-467. doi:10.4153/CJM-1965-045-4
  10. R. Tanner (1981). A recursive approach to low complexity codes. IEEE Transactions on Information Theory 27 (5), 533-547. doi:10.1109/TIT.1981.1056404
  11. M. Sipser, D. A. Spielman (1996). Expander codes. IEEE Transactions on Information Theory 42 (6), 1710-1722. doi:10.1109/18.556667
  12. Eric Dennis, Alexei Kitaev, Andrew Landahl, John Preskill (2002). Topological quantum memory. Journal of Mathematical Physics 43, 4452-4505. doi:10.1063/1.1499754arXiv:quant-ph/0110143
  13. M. Hein, W. Dür, J. Eisert, … H.-J. Briegel (2006). Entanglement in Graph States and its Applications. arXiv:quant-ph/0602096
  14. Anthony Leverrier, Gilles Zémor (2022). Quantum Tanner codes. 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), 872-883. doi:10.1109/FOCS54457.2022.00117arXiv:2202.13641
  15. Pavel Panteleev, Gleb Kalachev (2022). Asymptotically good Quantum and locally testable classical LDPC codes. Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing (STOC 2022), 375-388. doi:10.1145/3519935.3520017arXiv:2111.03654
  16. R. Gallager (1962). Low-density parity-check codes. IRE Transactions on Information Theory 8 (1), 21-28. doi:10.1109/TIT.1962.1057683
  17. Tom Richardson, Rüdiger Urbanke (2008). Modern Coding Theory. Cambridge University Press. doi:10.1017/CBO9780511791338
  18. Hans J. Briegel, Robert Raussendorf (2001). Persistent Entanglement in Arrays of Interacting Particles. Physical Review Letters 86, 910-913. doi:10.1103/PhysRevLett.86.910arXiv:quant-ph/0004051
  19. M. Hein, J. Eisert, H. J. Briegel (2004). Multiparty entanglement in graph states. Physical Review A 69, 062311. doi:10.1103/PhysRevA.69.062311arXiv:quant-ph/0307130
  20. Maarten Van den Nest, Jeroen Dehaene, Bart De Moor (2004). Graphical description of the action of local Clifford transformations on graph states. Physical Review A 69, 022316. doi:10.1103/PhysRevA.69.022316arXiv:quant-ph/0308151

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Topic's own text checked: K_4 spectrum, h = 2 and Cheeger bounds; cycle spectrum, gap about 4 pi^2/n^2 and h = 4/n (checked for n = 12); Petersen spectrum, Ramanujan property, h = 1 by brute force over all subsets, and the mixing-lemma numbers (10, 7.5, deviation 2.5, sharper bound 5); Hall example and linear dependence remark re-derived; pitfalls compared with Hoory, Linial and Wigderson (2006) author-hosted full text, including Kahale's d/2 vertex-expansion limit (Theorem 4.14 and following). Embedded records carry their own review states; cited application papers were not re-read for this topic check.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 77ac3357d8c0c929. Source file knowledge/records/topic/graph-theory.md in the content repository (readable there once it is public).