Part III · Chapter 18

Cluster and Graph States

Read ~22 min Prerequisites Ch. 3–4, Ch. 17 Tools interactive graph builder, code cell Live
Basic

GHZ and W states each entangle every qubit with every other qubit, all at once, with no extra structure. Graph states do something different and arguably more useful: they let you choose exactly which qubits are entangled with which, using an ordinary picture — a graph — as the literal blueprint.

The recipe

  1. Draw any graph: some dots (vertices), some lines connecting pairs of them (edges).
  2. Put one qubit on each vertex, every one starting in the state |+⟩.
  3. For every edge in the graph, apply a CZ gate between the two qubits it connects.

That's the entire construction. The resulting entangled state is called a graph state — and a cluster state is just the special case where the graph happens to be a regular lattice (a grid).

Intermediate
Fig. 18.1 — click an edge to toggle it3-qubit graph state, live

Stabilizer generators (each should leave the state exactly unchanged)

Every stabilizer has the form Xᵥ times Z on each of v's neighbors — this is the direct payoff of choosing the graph structure: the entangling structure of CZ gates literally hands you the stabilizers for free, just by reading the graph.

Why this matters: measurement-based quantum computing

Build one large graph state in advance, then perform only single-qubit measurements, chosen adaptively based on earlier outcomes — and you can implement any quantum circuit at all. This is "one-way" or measurement-based quantum computing: all the entanglement is prepared up front as one big resource, and the actual "program" is just which basis you measure each qubit in. No further two-qubit gates are ever needed once the graph state exists.

Advanced

Why cluster states specifically, and why photonics loves them

A 2D cluster state (a square-lattice graph) is provably enough to run any quantum circuit via measurement alone — this was the original Raussendorf–Briegel result that started the entire measurement-based computing field. Cluster/graph states are also the natural fit for photonic quantum computing, where two-qubit gates between photons are notoriously hard to do reliably, but a large entangled "web" of photons can be built up in advance from smaller pieces (a process called fusion) and then consumed entirely through single-photon measurements — exactly the architecture several leading photonic quantum computing efforts are built around.

Fig. 18.2 — code, runs in your browser
Qubit ordering conventions for kron-based circuits are a classic source of off-by-one bugs — worth comparing carefully against Fig. 18.1's own (separately verified) indexing if you adapt this code.
Check your understanding

What are the three steps to build a graph state from a graph?

Put a qubit on each vertex, initialize every qubit to |+⟩, then apply CZ between every pair of qubits connected by an edge.

Check your understanding

What's a cluster state, specifically, versus a graph state in general?

A cluster state is the special case of a graph state where the underlying graph is a regular lattice (a grid). Every cluster state is a graph state; not every graph state is a cluster state.

Check your understanding

For a vertex v with neighbors {a,b}, what's its stabilizer generator?

Xᵥ · Zₐ · Z_b — X on v itself, times Z on every one of v's neighbors.

Check your understanding

What's the core idea of measurement-based ("one-way") quantum computing?

Prepare one large entangled graph/cluster state up front, then implement the entire computation using only single-qubit measurements, with later measurement choices depending adaptively on earlier outcomes — no further two-qubit gates needed.

Check your understanding

Why are graph/cluster states especially attractive for photonic quantum computing?

Two-qubit gates between photons are difficult and unreliable, but a large entangled graph state can be assembled in advance from smaller pieces (via fusion) and then consumed entirely through easy single-photon measurements — sidestepping the need for in-computation two-qubit gates altogether.

Review queue

Scroll back to a chapter's quiz cards to review them once they're due — a full cross-chapter queue view is a planned upgrade.