Skip to content

A graph state is a multipartite qubit state specified by a simple undirected graph. Vertices are qubits, edges prescribe entangling controlled-ZZ operations, and the resulting state is characterized by a set of commuting Pauli products supported on vertices and their neighbors.

Graph states are important because they turn complicated multipartite entanglement into combinatorial data. They include cluster states used in measurement-based quantum computing, give compact examples of stabilizer states, and provide useful test cases for entanglement witnesses and quantum error correction.

Helpful background. Composite operators makes the omitted identity factors precise; Pauli matrices supplies the commutation rules used in the stabilizers.

Let

G=(V,E)G=(V,E)

be a simple undirected graph with vertex set

V={1,2,…,n}.V=\{1,2,\ldots,n\}.

Each vertex labels one qubit, so the Hilbert space is

HG=⨂v∈VC2.\mathcal H_G = \bigotimes_{v\in V}\mathbb C^2.

The neighborhood of a vertex vv is

N(v)={u∈V:{u,v}∈E}.N(v) = \{u\in V:\{u,v\}\in E\}.

Thus the graph records which qubits are directly connected in the state-preparation circuit. It is not, by itself, a physical lattice unless a particular implementation supplies one.

Start with every qubit in

∣+⟩=12(∣0⟩+∣1⟩),∣+⟩⊗n.\lvert+\rangle = \frac{1}{\sqrt2} \bigl( \lvert0\rangle+\lvert1\rangle \bigr), \qquad \lvert+\rangle^{\otimes n}.

For each edge {i,j}∈E\{i,j\}\in E, apply the controlled-ZZ gate

CZij=diag⁡(1,1,1,−1)CZ_{ij} = \operatorname{diag}(1,1,1,-1)

on qubits ii and jj in the computational basis. The graph state is

∣G⟩=∏{i,j}∈ECZij∣+⟩⊗n.\lvert G\rangle = \prod_{\{i,j\}\in E} CZ_{ij} \lvert+\rangle^{\otimes n}.

All controlled-ZZ gates are diagonal in the computational basis, so they commute. The product therefore does not depend on the order of the edges.

Equivalently,

∣G⟩=12n/2∑x∈{0,1}n(−1)∑{i,j}∈Exixj∣x1x2⋯xn⟩.\lvert G\rangle = \frac{1}{2^{n/2}} \sum_{x\in\{0,1\}^{n}} (-1)^{ \sum_{\{i,j\}\in E}x_i x_j } \lvert x_1x_2\cdots x_n\rangle.

The exponent is interpreted modulo 22: every edge whose two endpoint bits are both 11 contributes a minus sign.

If EE is empty, then

∣G⟩=∣+⟩⊗n,\lvert G\rangle = \lvert+\rangle^{\otimes n},

so the state is fully product.

For a graph with two vertices and one edge,

∣G⟩=CZ∣++⟩=12(∣00⟩+∣01⟩+∣10⟩−∣11⟩).\lvert G\rangle = CZ\lvert++\rangle = \frac{1}{2} \bigl( \lvert00\rangle + \lvert01\rangle + \lvert10\rangle - \lvert11\rangle \bigr).

This is an entangled two-qubit state. It is locally unitarily equivalent to a Bell state. For example, applying a Hadamard gate to the second qubit gives

(I⊗H)∣G⟩=12(∣00⟩+∣11⟩)=∣Φ+⟩.(I\otimes H)\lvert G\rangle = \frac{1}{\sqrt2} \bigl( \lvert00\rangle+\lvert11\rangle \bigr) = \lvert\Phi^+\rangle.

For a three-qubit path graph

1−2−3,1-2-3,

the graph state is a linear three-qubit cluster state. For a star graph with one center connected to all other vertices, the graph state is locally Clifford equivalent to a GHZ state: apply a Hadamard to every leaf, leaving the center unchanged. The center generator becomes X⊗nX^{\otimes n} and each leaf generator becomes ZcenterZleafZ_{\rm center}Z_{\rm leaf}.

These equivalences are useful, but they do not mean the graph is irrelevant. Different graphs organize correlations, measurements, and code constructions in different ways.

Graph states have a compact Pauli-eigenvalue description. For each vertex vv, define

Kv=Xv∏u∈N(v)Zu,K_v = X_v \prod_{u\in N(v)} Z_u,

where XvX_v acts as the Pauli XX on qubit vv, and ZuZ_u acts as the Pauli ZZ on qubit uu.

The graph state is the unique simultaneous +1+1 eigenstate of all these operators:

Kv∣G⟩=∣G⟩,v∈V.K_v\lvert G\rangle = \lvert G\rangle, \qquad v\in V.

The reason is simple. The product state ∣+⟩⊗n\lvert+\rangle^{\otimes n} is stabilized by every XvX_v:

Xv∣+⟩⊗n=∣+⟩⊗n.X_v\lvert+\rangle^{\otimes n} = \lvert+\rangle^{\otimes n}.

Conjugating XvX_v by the controlled-ZZ gates incident on vv gives

(∏{i,j}∈ECZij)Xv(∏{i,j}∈ECZij)=Xv∏u∈N(v)Zu.\left( \prod_{\{i,j\}\in E} CZ_{ij} \right) X_v \left( \prod_{\{i,j\}\in E} CZ_{ij} \right) = X_v\prod_{u\in N(v)}Z_u.

Thus the simple XvX_v stabilizers of ∣+⟩⊗n\lvert+\rangle^{\otimes n} become the graph-state stabilizers KvK_v.

The operators KvK_v commute with each other. If two vertices are not adjacent, the corresponding Pauli factors do not conflict. If two vertices are adjacent, each stabilizer has one XX where the other has one ZZ, giving two anticommutations in the product and hence an overall commutation.

For the path graph 1−2−31-2-3, the neighborhoods are

N(1)={2},N(2)={1,3},N(3)={2}.N(1)=\{2\}, \qquad N(2)=\{1,3\}, \qquad N(3)=\{2\}.

The stabilizer generators are

K1=X1Z2,K2=Z1X2Z3,K3=Z2X3.K_1=X_1Z_2, \qquad K_2=Z_1X_2Z_3, \qquad K_3=Z_2X_3.

These three commuting observables specify the three-qubit graph state as their common +1+1 eigenstate. Notice that each stabilizer is local in the graph-theoretic sense: it acts on a vertex and its neighbors.

For a longer one-dimensional chain, the interior generators have the form

Kj=Zj−1XjZj+1.K_j = Z_{j-1}X_jZ_{j+1}.

This pattern is the algebraic signature of a one-dimensional cluster state.

Disconnected graphs give product states across connected components. If

G=G1⊔G2,G=G_1\sqcup G_2,

with no edge connecting the two components, then

∣G⟩=∣G1⟩⊗∣G2⟩\lvert G\rangle = \lvert G_1\rangle\otimes \lvert G_2\rangle

up to the ordering convention for tensor factors.

Connected graph states are entangled across every nontrivial bipartition of the vertices. More quantitatively, for a bipartition A∣AˉA\vert\bar A, the Schmidt rank of a graph state is determined by the adjacency matrix connecting the two sides:

SR⁡A∣Aˉ(∣G⟩)=2rA,rA=rank⁡F2ΓA,Aˉ.\operatorname{SR}_{A\vert\bar A}(\lvert G\rangle) = 2^{r_A}, \qquad r_A = \operatorname{rank}_{\mathbb F_2} \Gamma_{A,\bar A}.

Here ΓA,Aˉ\Gamma_{A,\bar A} is the submatrix of the graph adjacency matrix with rows in AA and columns in Aˉ\bar A, and the rank is over the two-element field F2\mathbb F_2. This formula is one reason graph states are analytically tractable: some entanglement data can be read from binary linear algebra.

The formula should not be mistaken for a full multipartite classification. Graph states are a structured family, not the space of all multipartite states.

The nonzero reduced-state eigenvalues are all 2−rA2^{-r_A}, so the entropy in bits is also S(ρA)=rAS(\rho_A)=r_A. This is a binary matrix rank, not a count of crossing edges and not generally the rank over the real numbers (Hein, Eisert, and Briegel).

For example, let A={1,2}A=\{1,2\} and B={3,4}B=\{3,4\}. Two separate edges 1−31-3 and 2−42-4 give ΓA,B=I2\Gamma_{A,B}=I_2, rank two, and two bits of entropy. Connecting every vertex of AA to every vertex of BB gives ΓA,B=(1111)\Gamma_{A,B}=\begin{pmatrix}1&1\\1&1\end{pmatrix}, rank one, and only one bit. More crossing edges need not mean more entanglement across a specified cut.

Two graph-state cuts with two and four crossing edges have binary ranks two and one, respectively.

Two independent crossing edges give two bits of entanglement across A:BA:B. Four crossing edges with identical adjacency rows give only one bit. The dashed line marks the chosen partition; the edge count alone does not determine the Schmidt rank.

A cluster state is a graph state on a lattice such as a line or square grid. In measurement-based quantum computation, the graph is combined with designated input/output qubits, adaptive single-qubit measurement bases, and outcome-dependent corrections. A graph state alone is not yet a computational protocol; for example, a one-dimensional chain is not a universal resource for arbitrary quantum computation under single-qubit measurements.

A simple state-level rule illustrates the role of outcomes. Measuring vertex vv in ZZ with outcome bit mm removes that vertex and its incident edges. The state on the remaining vertices is

(∏u∈N(v)Zum)∣G−v⟩,\left(\prod_{u\in N(v)}Z_u^m\right)|G-v\rangle,

with probability 1/21/2 for either outcome. Thus the remaining graph is known up to local ZZ corrections. Forgetting the outcome instead produces a mixture of the two branches. Photonic qubits discusses how destructive measurements and photon loss affect such preparations.

An edge specifies a controlled-ZZ in this preparation, not necessarily an interaction that remains switched on. Nor does it promise entanglement in the two-qubit marginal of its endpoints: in the three-vertex path, all pair marginals are separable because the state is locally equivalent to GHZ. The graph describes a global state, and local Clifford changes can give different graphs for equivalent entanglement patterns.

  1. Show that all controlled-ZZ gates in the graph-state construction commute.
Solution

Each controlled-ZZ gate is diagonal in the computational basis. Diagonal matrices commute with each other, even when they act on overlapping qubits. Therefore the product

∏{i,j}∈ECZij\prod_{\{i,j\}\in E}CZ_{ij}

is independent of the order chosen for the edges.

  1. Compute the two-qubit graph state for one edge and verify that applying I⊗HI\otimes H gives ∣Φ+⟩\lvert\Phi^+\rangle.
Solution

Starting from

∣++⟩=12(∣00⟩+∣01⟩+∣10⟩+∣11⟩),\lvert++\rangle = \frac12 \bigl( \lvert00\rangle+\lvert01\rangle+\lvert10\rangle+\lvert11\rangle \bigr),

the controlled-ZZ gate flips the sign only on ∣11⟩\lvert11\rangle:

∣G⟩=12(∣00⟩+∣01⟩+∣10⟩−∣11⟩).\lvert G\rangle = \frac12 \bigl( \lvert00\rangle+\lvert01\rangle+\lvert10\rangle-\lvert11\rangle \bigr).

Using

H∣0⟩=∣0⟩+∣1⟩2,H∣1⟩=∣0⟩−∣1⟩2,H\lvert0\rangle = \frac{\lvert0\rangle+\lvert1\rangle}{\sqrt2}, \qquad H\lvert1\rangle = \frac{\lvert0\rangle-\lvert1\rangle}{\sqrt2},

one finds

(I⊗H)∣G⟩=12(∣00⟩+∣11⟩).(I\otimes H)\lvert G\rangle = \frac{1}{\sqrt2} \bigl( \lvert00\rangle+\lvert11\rangle \bigr).
  1. For the path graph 1−2−31-2-3, verify that K1=X1Z2K_1=X_1Z_2 and K2=Z1X2Z3K_2=Z_1X_2Z_3 commute.
Solution

The only qubits where nonidentity Pauli operators from both products meet are qubits 11 and 22. On qubit 11, X1X_1 anticommutes with Z1Z_1. On qubit 22, Z2Z_2 anticommutes with X2X_2. These two minus signs cancel, so

K1K2=K2K1.K_1K_2 = K_2K_1.
  1. If a graph has two disconnected components G1G_1 and G2G_2, show that the graph state factors across those components.
Solution

The initial state factors:

∣+⟩⊗n=∣+⟩G1⊗∣V1∣⊗∣+⟩G2⊗∣V2∣.\lvert+\rangle^{\otimes n} = \lvert+\rangle_{G_1}^{\otimes \lvert V_1\rvert} \otimes \lvert+\rangle_{G_2}^{\otimes \lvert V_2\rvert}.

Because there are no edges between components, the controlled-ZZ gates split into a product of gates internal to G1G_1 and gates internal to G2G_2. Hence

∣G⟩=∣G1⟩⊗∣G2⟩\lvert G\rangle = \lvert G_1\rangle\otimes\lvert G_2\rangle

up to tensor-factor ordering.

  1. For a six-vertex graph cut into A={1,2,3}A=\{1,2,3\} and B={4,5,6}B=\{4,5,6\}, let the cross-adjacency matrix be
ΓA,B=(110101011).\Gamma_{A,B}=\begin{pmatrix}1&1&0\\1&0&1\\0&1&1\end{pmatrix}.

Compute the Schmidt rank and entropy. Why would real matrix rank give the wrong answer?

Solution

Over F2\mathbb F_2, the third row is the sum of the first two, while the first two are independent. Thus rA=2r_A=2, Schmidt rank is 22=42^2=4, and entropy is two bits. Over the reals the determinant is −2-2, so the real rank is three. Graph-state phase addition is modulo two, which is why that real rank is irrelevant here.