One-Way Quantum Computer

In the circuit model, a quantum computer is a machine of gates: entangling operations and single-qubit rotations are woven together in time, and measurement waits until the end to read off an answer. The one-way quantum computer, introduced by Robert Raussendorf and Hans Briegel in 2001, turns that picture inside out. All the entanglement is manufactured first, in a single problem-independent step, producing a highly entangled cluster state on a regular lattice. After that, no unitary gates are ever applied — the whole computation is carried out by measuring the cluster's qubits one at a time, each in a single-qubit basis chosen adaptively from the outcomes already seen. The name is literal. A projective measurement is irreversible: the instant a cluster qubit is read out, its entanglement with the rest of the lattice is destroyed for good. So the resource is consumed monotonically and the computation flows in one temporal direction — there is no running it backward, because a later measurement's basis is not defined until earlier outcomes exist. Spatial position plays the role of logical time: one direction carries each logical qubit's wire, the other stitches in the gates, and the pattern of angles is the program. Why does measuring destroy information yet compute? Because measuring one half of an entangled pair teleports the logical state to its neighbour while rotating it by the measurement angle, and the random ±1\pm 1 outcome shows up not as an error but as a known Pauli riding along. Track that Pauli frame, feed it forward to flip the signs of later angles, and a stream of coin-flips becomes a deterministic unitary. Entanglement is the fuel, measurement is the engine, and the magic for universality hides entirely in a few non-Clifford angles.

Key takeaways
  • The one-way quantum computer (1WQC) of Raussendorf and Briegel (2001) performs universal computation using only adaptive single-qubit measurements on a fixed, pre-entangled cluster state — no unitary gates during the run.
  • Preparation and processing split cleanly: build the cluster once (all ∣+⟩|+\rangle, then CZCZ on every edge), then measure. The cluster is problem-independent and can be built offline.
  • Each measurement irreversibly consumes entanglement, so the resource flows one way; the temporal order is forced because later bases depend on earlier outcomes.
  • One XX–YY-plane measurement teleports a wire qubit to its neighbour while applying HRz(α)HR_z(\alpha), leaving a known byproduct XsX^{s}; these are tracked classically and killed by feed-forward, α′=(−1)sxα+szπ\alpha'=(-1)^{s_x}\alpha+s_z\pi.
  • Clifford angles α∈π2Z\alpha\in\tfrac{\pi}{2}\mathbb{Z} keep the state a stabilizer state and are Gottesman–Knill simulable; a single generic angle such as α=π/4\alpha=\pi/4 (TT gate) injects the magic for universality.
  • Determinism is graph-theoretic: a flow or gflow on the graph certifies that byproducts propagate consistently, so the logical unitary is outcome-independent.
  • Key idea: all the dynamics of a quantum computation can be pushed into the choice of single-qubit measurement bases on a fixed cluster state — entanglement is a precomputed resource, the circuit lives in the temporally ordered, outcome-adaptive measurement pattern, and Pauli byproducts are tracked and corrected classically.
The core insight

All dynamics of a quantum computation can be pushed into the choice of single-qubit measurement bases on a fixed cluster state; entanglement is a precomputed resource and the circuit lives in the temporally ordered, outcome-adaptive measurement pattern, with Pauli byproducts tracked classically.

Where this lives today

The measurement-based model is the native architecture of the platforms now scaling fastest. In photonics, deterministic two-qubit gates are notoriously hard, but generating entanglement and measuring photons quickly are natural — so leading efforts build large resource states and compute by measurement. PsiQuantum's fusion-based quantum computing is a direct descendant, fusing small "resource states" with Bell measurements into a fault-tolerant cluster, the whole error-corrected computation expressed as a measurement pattern. In the continuous-variable world, Gaussian cluster states from squeezed light have been demonstrated at extraordinary scale — clusters spanning thousands to over a million entangled modes, reported by groups in Tokyo and Copenhagen — where homodyne detection implements the Gaussian gates and a single non-Gaussian measurement supplies the magic. On the theory side, Raussendorf–Harrington–Goyal's 3D topological cluster state is the backbone of surface-code fault tolerance, and lattice surgery is often analyzed as a measurement pattern. The model also underwrites blind and verifiable computing: because the client only chooses angles, a server can run a computation it cannot read. The open frontier is compilation — turning an arbitrary circuit into the smallest, lowest-depth pattern with a valid gflow.

The physical picture

Picture a horizontal chain of qubits, each prepared in ∣+⟩|+\rangle and bonded to its neighbours by a controlled-ZZ. Measure the leftmost qubit in a basis tilted by α\alpha in the XX–YY plane. The qubit collapses, but the CZCZ bond it shares with its right neighbour pushes its logical content one site to the right, rotated by α\alpha. Repeat and the logical state walks rightward, picking up a programmable sequence of rotations. The chain is a quantum wire that also computes single-qubit gates — the first figure shows this elementary step.

Figure
One elementary step on a quantum wire: qubit 1 holds the logical input ψ, qubits 2 and 3 are ancillas in +, all joined by CZ bonds. Measuring qubit 1 in the X–Y plane at angle α teleports the state onto qubit 2 as X^s H R_z(α) ψ — the outcome s = 0 or 1 fixes only the Pauli byproduct X^s, never the gate.
Measure-and-teleport: one X–Y measurement = one gate on the wire CZ CZ ψ + + qubit 1 · input qubit 2 · ancilla qubit 3 · ancilla measure M(α) outcome s ∈ 0,1 state → qubit 2 : X^s H R_z(α) ψ the gate H R_z(α) is fixed; only the byproduct X^s depends on the coin-flip s next site: repeat

Now stack two such chains and join them with a vertical CZCZ bond. That bond is a pre-installed controlled-ZZ between the two logical qubits — a two-qubit gate you never perform, because it was baked into the cluster at preparation. So a 2D lattice is a slab of pre-installed gates, and running an algorithm means carving the circuit out of it: ZZ-measure the qubits you do not want (deleting them from the graph) and XX–YY-measure the ones you keep at the angles that spell out your rotations. It is sculpture, not construction — the figure is already inside the marble. Every measurement returns a random bit, but that randomness is a known entry in a Pauli frame, an XsxZszX^{s_x}Z^{s_z} stuck onto the true state; because Paulis commute through the Clifford parts in a trackable way, you carry the frame forward and cancel it downstream. The second figure is the map a compiler reasons about: which angles are free Clifford operations, and which one supplies the magic.

Figure
The X–Y measurement plane as a dial of angles: α = 0 measures X (a Hadamard wire step), α = π/2 measures Y (the phase gate S), α = π measures −X (a Z) — all Clifford and Gottesman–Knill-simulable. The single off-axis angle α = π/4 realizes the T gate, the non-Clifford magic that makes the machine universal. Feed-forward corrects byproducts by α′ = (−1)^{s_x} α + s_z π.
The punchline: only α ∉ (π/2)ℤ supplies magic — everything else is Clifford α = 0 · X basis Hadamard wire · Clifford α = π/2 · Y basis R_z(π/2) = S · Clifford α = π R_z(π) = Z α = 3π/2 · Clifford α = π/4 Clifford (free): R_z(0) = I, R_z(π) = Z R_z(π/2) = S Magic (universal): R_z(π/4) = T non-Clifford — not stabilizer-simulable Feed-forward: α′ = (−1)^{s_x} α + s_z π

The core equations

The cluster state is the raw material, defined by a graph. Put a qubit on every vertex in ∣+⟩|+\rangle and apply a controlled-ZZ across every edge. Because all CZCZ gates are diagonal they commute, so the order is irrelevant and the result is a unique stabilizer state.

∣ϕ⟩C=(∏(a,b)∈ECZab)⨂v∈V∣+⟩v(1)|\phi\rangle_C=\Big(\prod_{(a,b)\in E}CZ_{ab}\Big)\bigotimes_{v\in V}|+\rangle_v \qquad (1)

where: G=(V,E)G=(V,E) — the graph, vertices VV are qubits and edges EE are bonds; CZab=diag(1,1,1,−1)CZ_{ab}=\mathrm{diag}(1,1,1,-1) — controlled-ZZ between qubits aa and bb; ∣+⟩=12(∣0⟩+∣1⟩)|+\rangle=\tfrac{1}{\sqrt2}(|0\rangle+|1\rangle) — the +1+1 eigenstate of XX. A lattice-shaped GG gives the universal 2D cluster; the state holds the entanglement the whole computation will spend. That state is pinned down completely by its stabilizers — a commuting set of Pauli operators, one per vertex, each fixing the state with eigenvalue +1+1. Knowing the stabilizers is knowing the state, and is the compact language in which every measurement is bookkept.

Kv=Xv∏w∼vZw,Kv ∣ϕ⟩C=+ ∣ϕ⟩C(2)K_v=X_v\prod_{w\sim v}Z_w,\qquad K_v\,|\phi\rangle_C=+\,|\phi\rangle_C \qquad (2)

where: KvK_v — the stabilizer generator centred on vertex vv; w∼vw\sim v — every neighbour ww of vv in GG; the ∣V∣|V| generators {Kv}\{K_v\} mutually commute and uniquely fix ∣ϕ⟩C|\phi\rangle_C. Each qubit carries an XX dressed by a ZZ on every neighbour — the algebraic fingerprint of a CZCZ-bonded lattice. Computation happens by measuring in a basis in the XX–YY plane of the Bloch sphere, tilted by an angle α\alpha. The two outcomes are equiprobable on a cluster qubit; which occurs is the source of the byproduct randomness.

M(α):∣±α⟩=12(∣0⟩±e−iα∣1⟩)(3)M(\alpha):\quad |\pm_\alpha\rangle=\tfrac{1}{\sqrt2}\big(|0\rangle\pm e^{-i\alpha}|1\rangle\big) \qquad (3)

where: α\alpha — the measurement angle; α=0\alpha=0 measures XX, α=π/2\alpha=\pi/2 measures YY; ∣+α⟩|+_\alpha\rangle (s=0s=0) and ∣−α⟩|-_\alpha\rangle (s=1s=1) each occur with probability 12\tfrac12. The sign convention e−iαe^{-i\alpha} is chosen so a positive angle realizes a positive Rz(α)R_z(\alpha) below — bookkeeping, not physics. The gate one such measurement enacts on the wire is a ZZ-axis rotation, dressed by a fixed Hadamard from the wire geometry. Universality is built from this single primitive.

Rz(α)=e−iαZ/2=(e−iα/200eiα/2),HRz(α)=one wire step(4)R_z(\alpha)=e^{-i\alpha Z/2}=\begin{pmatrix}e^{-i\alpha/2}&0\\0&e^{i\alpha/2}\end{pmatrix},\qquad HR_z(\alpha)=\text{one wire step} \qquad (4)

where: α\alpha — the measurement angle, up to the feed-forward sign; HH — the Hadamard, fixed by the wire. Chaining steps gives ⋯HRz(α2)HRz(α1)\cdots HR_z(\alpha_2)HR_z(\alpha_1), and since HRz(θ)H=Rx(θ)HR_z(\theta)H=R_x(\theta), a chain composes into a general Euler rotation. Every random outcome deposits a Pauli on the output wire. The full byproduct after a pattern is a product of XX's and ZZ's whose exponents are mod-2 sums of outcomes, tracked on the fly by classical hardware.

UΣ=XsxZsz,sx,sz∈{0,1}(5)U_\Sigma=X^{s_x}Z^{s_z},\qquad s_x,s_z\in\{0,1\} \qquad (5)

where: sx,szs_x,s_z — parities (mod 2) of the outcomes in the XX- and ZZ-dependency sets of the output qubit; UΣU_\Sigma — the known Pauli byproduct multiplying the intended state. The logical answer is the intended one dressed by UΣU_\Sigma; because UΣU_\Sigma is known, it is undone by relabelling the readout. The scheme is deterministic only because of one rule: before measuring a qubit, shift its angle to absorb the byproducts already on it. This is feed-forward, and it must run in real time.

α′=(−1)sx α+sz π(6)\alpha'=(-1)^{s_x}\,\alpha+s_z\,\pi \qquad (6)

where: α\alpha — the intended (default) angle; α′\alpha' — the angle actually measured; sxs_x — parity of prior outcomes leaving an XX byproduct (flips the sign); szs_z — parity leaving a ZZ byproduct (shifts by π\pi, swapping the outcome labels). An XX anticommutes past the rotation direction (α→−α\alpha\to-\alpha); a ZZ commutes but relabels the outcomes (α→α+π\alpha\to\alpha+\pi). Finally, measuring a cluster qubit in the computational (ZZ) basis is not a gate but graph surgery: it removes the vertex and its edges, up to ZZ byproducts on the neighbours — how a computational region is cut from a generic lattice.

∣ϕ⟩G → MvZ  Zs ∣ϕ⟩G∖v(7)|\phi\rangle_{G}\ \xrightarrow{\ M^Z_v\ }\ Z^{s}\,|\phi\rangle_{G\setminus v} \qquad (7)

where: G∖vG\setminus v — the graph with vertex vv and its incident edges deleted; ss — the ZZ-measurement outcome; the induced ZsZ^{s} acts on each former neighbour of vv. This carves wires and gate locations out of the universal 2D cluster.

Derivation AWhy one measurement teleports and rotates

The goal is to establish the single identity on which the whole model turns: projecting one qubit of a CZCZ-bonded pair onto an XX–YY-plane basis transfers the logical state to the partner while applying the fixed gate HRz(α)HR_z(\alpha), leaving only a Pauli byproduct XsX^{s} whose exponent is the random outcome. We take an explicit input, apply the bond, project onto each outcome, and read off the single-qubit map — so "teleport-and-rotate" becomes four lines of algebra rather than a slogan.

Step 1. Let qubit 1 hold ∣ψ⟩=a∣0⟩+b∣1⟩|\psi\rangle=a|0\rangle+b|1\rangle and qubit 2 the ancilla ∣+⟩|+\rangle, and apply the bond. Since CZCZ flips the ∣11⟩|11\rangle amplitude only, CZ12(∣ψ⟩1∣+⟩2)=a∣0⟩1∣+⟩2+b∣1⟩1∣−⟩2CZ_{12}(|\psi\rangle_1|+\rangle_2)=a|0\rangle_1|+\rangle_2+b|1\rangle_1|-\rangle_2. Why: the bond correlates qubit 1's logical value with whether qubit 2 sits in ∣+⟩|+\rangle or ∣−⟩|-\rangle — the correlation that lets the measurement move information across.

Step 2. Project qubit 1 onto s=0s=0, ⟨+α∣=12(⟨0∣+eiα⟨1∣)\langle+_\alpha|=\tfrac{1}{\sqrt2}(\langle0|+e^{i\alpha}\langle1|), leaving qubit 2 in 12(a∣+⟩+eiαb∣−⟩)\tfrac{1}{\sqrt2}(a|+\rangle+e^{i\alpha}b|-\rangle). Why: the collapse of qubit 1 projects qubit 2 onto a superposition that still carries the full input amplitudes a,ba,b.

Step 3. Expand ∣±⟩|\pm\rangle to get 12[(a+eiαb)∣0⟩+(a−eiαb)∣1⟩]=12 H diag(1,eiα) ∣ψ⟩\tfrac12[(a+e^{i\alpha}b)|0\rangle+(a-e^{i\alpha}b)|1\rangle]=\tfrac12\,H\,\mathrm{diag}(1,e^{i\alpha})\,|\psi\rangle. Since diag(1,eiα)=eiα/2Rz(α)\mathrm{diag}(1,e^{i\alpha})=e^{i\alpha/2}R_z(\alpha), this is 12HRz(α)∣ψ⟩\tfrac12 HR_z(\alpha)|\psi\rangle up to global phase. Why: the diagonal phase is exactly a ZZ-rotation and the leftover Hadamard is the fixed part of every wire step — the measurement performed a programmable gate.

Step 4. For s=1s=1, ⟨−α∣=12(⟨0∣−eiα⟨1∣)\langle-_\alpha|=\tfrac{1}{\sqrt2}(\langle0|-e^{i\alpha}\langle1|) swaps the two amplitudes, giving 12X HRz(α)∣ψ⟩\tfrac12 X\,HR_z(\alpha)|\psi\rangle. Combining, ⟨±α∣1 CZ12(∣ψ⟩1∣+⟩2)=12 XsHRz(α)∣ψ⟩2\langle\pm_\alpha|_1\,CZ_{12}(|\psi\rangle_1|+\rangle_2)=\tfrac12\,X^{s}HR_z(\alpha)|\psi\rangle_2. Why: the outcomes differ only by a leading XX, so the random bit never touches the gate HRz(α)HR_z(\alpha) — it only sets a known, correctable byproduct. *The 12\tfrac12 prefactor reflects the 1/21/2 probability of each outcome — a direct consequence of the projection onto one of two equiprobable basis states.*

Go deeper · Derivation B · 1 minFeed-forward turns random outcomes into a fixed unitary
Derivation BFeed-forward turns random outcomes into a fixed unitary

The goal is to prove that the 1WQC is deterministic at the logical level despite every measurement being a fair coin-flip. We take the shortest nontrivial pattern — a three-qubit linear cluster acting as a wire that applies two rotations — and show that if the second angle is adapted to the first outcome, the logical map is completely outcome-independent, with all outcome-dependence collapsing into one known Pauli byproduct removed by relabelling the readout.

Step 1. Measure qubit 1 at angle α\alpha, outcome s1s_1. By the elementary identity this leaves ∣ψ′⟩=Xs1HRz(α)∣ψ⟩|\psi'\rangle=X^{s_1}HR_z(\alpha)|\psi\rangle on qubit 2, now the live wire qubit bonded to qubit 3. Why: the first gate is applied; the only blemish is the byproduct Xs1X^{s_1} we must carry forward.

Step 2. The second step wants to apply HRz(β)HR_z(\beta), but acts on the dressed state. Commute the XX through: Rz(β)X=XRz(−β)R_z(\beta)X=XR_z(-\beta) and HX=ZHHX=ZH, so HRz(β) Xs1=Zs1H Rz((−1)s1β)HR_z(\beta)\,X^{s_1}=Z^{s_1}H\,R_z((-1)^{s_1}\beta). Why: the pre-existing XX silently flips the sign of the rotation — uncorrected, the machine would apply Rz(−β)R_z(-\beta) half the time.

Step 3. Cancel the flip by adapting the second angle to β′=(−1)s1β\beta'=(-1)^{s_1}\beta — feed-forward, and why s1s_1 must be known before qubit 2 is measured. The wire then applies the intended HRz(β)HRz(α)HR_z(\beta)HR_z(\alpha) exactly. Why: measuring at β′\beta' pre-compensates the flip, so the realized gate is outcome-independent — the concrete origin of the arrow of time in "one-way".

Step 4. Collect the rest: ∣ψ′′⟩=Xs2Zs1 HRz(β)HRz(α)∣ψ⟩|\psi''\rangle=X^{s_2}Z^{s_1}\,HR_z(\beta)HR_z(\alpha)|\psi\rangle. The unitary is fixed; only the leading Pauli Xs2Zs1X^{s_2}Z^{s_1} depends on the coin-flips, undone at readout by relabelling the bits. Why: a probabilistic process has become deterministic — the randomness was never in the answer, only in a known frame we track. *The canonical adaptation β→(−1)s1β\beta\to(-1)^{s_1}\beta and the Hadamard-conjugation HX=ZHHX=ZH — which turns a propagated XX byproduct into a ZZ — are the two key measurement-calculus rewrite rules underlying this argument.*

Go deeper · Derivation C · 1 minClifford collapse: where the magic hides
Derivation CClifford collapse: where the magic hides

The goal is to locate precisely the ingredient that separates a genuine quantum computer from an expensive classical one inside the 1WQC. We show that if every angle is a multiple of π/2\pi/2, the cluster stays a stabilizer state under Clifford measurements and the whole computation is efficiently simulable by Gottesman–Knill — so no such pattern beats a laptop. Then we add one generic angle and watch universality switch back on, pinning the "magic" to the non-Clifford part of the pattern and nowhere else.

Step 1. Restrict every angle to α∈{0,π2,π,3π2}\alpha\in\{0,\tfrac{\pi}{2},\pi,\tfrac{3\pi}{2}\}. The rotations Rz(0)=IR_z(0)=I, Rz(π/2)=SR_z(\pi/2)=S, Rz(π)=ZR_z(\pi)=Z are all in the single-qubit Clifford group, and the CZCZ bonds are Clifford too. Why: these gates normalize the Pauli group — the defining property of Clifford operations.

Step 2. A cluster state is a stabilizer state, and a Clifford-basis measurement maps it to another stabilizer state, updating the generators by a Pauli with a polynomial-time outcome distribution. Why: the whole trajectory lives in the stabilizer formalism, so a classical computer follows it using only the generators, never the exponential amplitude vector.

Step 3. Now set one angle to α=π/4\alpha=\pi/4, giving Rz(π/4)=TR_z(\pi/4)=T. This lies outside the Clifford group, the state leaves the stabilizer set, and the polynomial-time simulation breaks. Why: TT is exactly the non-Clifford resource, so one such angle restores universality — the magic is the presence of generic angles α∉π2Z\alpha\notin\tfrac{\pi}{2}\mathbb{Z}, and nothing else. *The identities Rz(π/2)=SR_z(\pi/2)=S, Rz(π)=ZR_z(\pi)=Z, Rz(π/4)=TR_z(\pi/4)=T follow by direct matrix exponentiation of e−iαZ/2e^{-i\alpha Z/2} up to global phase, and the simulability boundary is exactly the Gottesman–Knill theorem applied to the stabilizer resource theory.*

Limiting cases

What a single XX–YY-plane measurement does at special angles, together with the ZZ-basis limit that deletes a vertex, exposes the model's structure:

CaseResultMeaning
ZZ-basis measurementMZ: ∣0⟩⟨0∣, ∣1⟩⟨1∣M^Z:\ |0\rangle\langle0|,\ |1\rangle\langle1|Disconnects the vertex from the graph (up to ZZ byproducts on neighbours) — graph-vertex deletion, used to carve the computational region from the lattice.
XX-basis measurement (α=0\alpha=0)MX: ∣±⟩=12(∣0⟩±∣1⟩)M^X:\ |\pm\rangle=\tfrac{1}{\sqrt2}(|0\rangle\pm|1\rangle)A Hadamard-type wire step that simply propagates the logical qubit; pure Clifford, contributes no magic, outcome only flips a byproduct.
YY-basis measurement (α=π/2\alpha=\pi/2)MY: 12(∣0⟩±i∣1⟩)M^Y:\ \tfrac{1}{\sqrt2}(|0\rangle\pm i|1\rangle)Realizes the phase gate S=ZS=\sqrt{Z} up to byproducts; still Clifford, hence efficiently simulable on its own.
Generic angle (α∉π2Z\alpha\notin\tfrac{\pi}{2}\mathbb{Z})M(α): 12(∣0⟩±e−iα∣1⟩)M(\alpha):\ \tfrac{1}{\sqrt2}(|0\rangle\pm e^{-i\alpha}|1\rangle)Non-Clifford rotation Rz(α)R_z(\alpha) up to byproducts; supplies the magic that lifts the model from Gottesman–Knill-simulable to universal. Correction is α↦(−1)sxα+szπ\alpha\mapsto(-1)^{s_x}\alpha+s_z\pi.

Worked examples

1 · Implementing a T gate on one wire qubit (fully worked)

Take a single wire step with input ∣ψ⟩=∣+⟩|\psi\rangle=|+\rangle (so a=b=12a=b=\tfrac{1}{\sqrt2}) and angle α=π/4\alpha=\pi/4. Find the output for each outcome and show the logical gate is the same either way.

Step 1. Apply the bond. With a=b=12a=b=\tfrac{1}{\sqrt2}, CZ12(∣+⟩1∣+⟩2)=12(∣0⟩1∣+⟩2+∣1⟩1∣−⟩2)CZ_{12}(|+\rangle_1|+\rangle_2)=\tfrac{1}{\sqrt2}(|0\rangle_1|+\rangle_2+|1\rangle_1|-\rangle_2) — a two-qubit cluster state on the edge 1 ⁣− ⁣21\!-\!2.

Step 2. Outcome s=0s=0. Projecting with ⟨+π/4∣=12(⟨0∣+eiπ/4⟨1∣)\langle+_{\pi/4}|=\tfrac{1}{\sqrt2}(\langle0|+e^{i\pi/4}\langle1|) gives output 12HRz(π/4)∣+⟩\tfrac12 HR_z(\pi/4)|+\rangle on qubit 2. Since Rz(π/4)∣+⟩∝T∣+⟩=12(∣0⟩+eiπ/4∣1⟩)R_z(\pi/4)|+\rangle\propto T|+\rangle=\tfrac{1}{\sqrt2}(|0\rangle+e^{i\pi/4}|1\rangle), the normalized output is HT∣+⟩\mathbf{HT|+\rangle}.

Step 3. Outcome s=1s=1. The same projection with ⟨−π/4∣\langle-_{\pi/4}| gives X HT∣+⟩\mathbf{X\,HT|+\rangle} — identical logical gate HTHT, dressed by a known Pauli XX.

Step 4. Correct. The tracker records the byproduct: sxs_x increments when s=1s=1. A later angle β\beta on this qubit is measured as β′=(−1)sxβ\beta'=(-1)^{s_x}\beta, and at readout any residual XX is undone by flipping the final ZZ-measurement bit. Either outcome realizes the same non-Clifford gate HTHT; the π/4\pi/4 angle is exactly what injects a TT, and the coin-flip only sets a correctable XX.

2 · Counting the cluster: a general rotation and a CNOT

How many measured qubits run (a) an arbitrary single-qubit unitary and (b) a CNOT, and where does the non-Clifford cost sit?

Step 1. Single-qubit unitary. Any U∈SU(2)U\in SU(2) has an Euler decomposition U=Rx(γ)Rz(β)Rx(α)U=R_x(\gamma)R_z(\beta)R_x(\alpha) up to phase. Chaining wire steps gives ⋯HRz(α2)HRz(α1)\cdots HR_z(\alpha_2)HR_z(\alpha_1), and since HRz(θ)H=Rx(θ)HR_z(\theta)H=R_x(\theta), three consecutive XX–YY measurements compose into a general Euler rotation. So five qubits in a row — four measured, one output — implement any single-qubit gate (the classic RBB count: three rotation sites plus input and output).

Step 2. Two-qubit gate. A vertical CZCZ bond is a controlled-ZZ; conjugating one wire by Hadamards turns it into a CNOT. On the original 2D square lattice the standard CNOT block uses a 15-qubit cluster — the number quoted by Raussendorf and Briegel — though in abstract graph-state language a CNOT needs only a few vertices.

Step 3. Locate the magic. Every angle above can be a multiple of π/2\pi/2: the Clifford Euler rotations, Hadamards, and CZCZ make a circuit of them Gottesman–Knill simulable however many qubits it spans. What matters is not the qubit count but the number of generic angles — each TT demands one measurement at α=π/4\alpha=\pi/4. The lattice scales with circuit size; the hardness scales with the count of non-Clifford angles.

Physics of the portrait

The one-way quantum computer is barely two decades old, yet it already sits among the deepest reorganizations of what "computing quantumly" means — trading the reversible clockwork of gates for the arrow of measurement.

Origins · 1 minRobert Raussendorf and how this was discovered
RR
Robert Raussendorf
b. 1973 · German physicist · measurement-based quantum computation

Robert Raussendorf did his doctoral work in Munich with Hans Briegel, and in 2001 the two published a pair of papers that redrew the map of quantum computation. The first introduced the cluster state — persistent multiparticle entanglement on a lattice that does not collapse when you measure a single particle. The second, "A One-Way Quantum Computer" (Physical Review Letters 86, 5188), made the audacious claim that this fixed entangled state plus nothing but single-qubit measurements suffices for universal computation. The community's first reaction was disbelief: measurement destroys entanglement and injects randomness, so how could it compute, let alone deterministically? Raussendorf's answer, worked out with Daniel Browne and Briegel in 2003, was that the randomness is a Pauli frame to be tracked, not a noise to be fought. He then went further, showing in 2006 with Jim Harrington and Kovid Goyal that a 3D cluster state realizes a fault-tolerant topological code purely by measurement, with a threshold near one percent — the ancestor of much of today's surface-code architecture. The through-line of his work is a single inversion: in a quantum computer the measurements need not come last, and if you let them come first, they can be the computation itself.

History
2001
— Briegel and Raussendorf introduce cluster states as persistent multiparticle entanglement
2001
— Raussendorf and Briegel propose the one-way quantum computer driven by single-qubit measurements
2003
— Raussendorf, Browne and Briegel develop the full measurement-based framework on cluster states
2005
— Walther and collaborators run the first photonic one-way computations experimentally
2007
— Danos, Kashefi and Panangaden formalize measurement patterns as the measurement calculus

Going further

Texts and papers. Raussendorf and Briegel, "A One-Way Quantum Computer", Physical Review Letters 86, 5188 (2001) · Raussendorf, Browne and Briegel, "Measurement-based quantum computation on cluster states", Physical Review A 68, 022312 (2003) · Briegel and Raussendorf, "Persistent entanglement in arrays of interacting particles", Physical Review Letters 86, 910 (2001) · Danos, Kashefi and Panangaden, "The Measurement Calculus", Journal of the ACM 54(2) (2007) · Nielsen and Chuang, Quantum Computation and Quantum Information, §10 · Preskill, Lecture Notes on Quantum Computation, on measurement-based models. The key numerical anchors are: the cluster stabilizers Kv=Xv∏w∼vZwK_v=X_v\prod_{w\sim v}Z_w with CZ=diag(1,1,1,−1)CZ=\mathrm{diag}(1,1,1,-1); the core projection identity ⟨±α∣CZ12(∣ψ⟩∣+⟩)=12XsHRz(α)∣ψ⟩\langle\pm_\alpha|CZ_{12}(|\psi\rangle|+\rangle)=\tfrac12 X^{s}HR_z(\alpha)|\psi\rangle using the basis convention ∣±α⟩=12(∣0⟩±e−iα∣1⟩)|\pm_\alpha\rangle=\tfrac{1}{\sqrt2}(|0\rangle\pm e^{-i\alpha}|1\rangle); the feed-forward rule α′=(−1)sxα+szπ\alpha'=(-1)^{s_x}\alpha+s_z\pi, derived by commuting Pauli byproducts through HRzHR_z and using HX=ZHHX=ZH; and the gate identities Rz(π/2)=SR_z(\pi/2)=S, Rz(π)=ZR_z(\pi)=Z, Rz(π/4)=TR_z(\pi/4)=T. The ∼1%\sim1\% threshold for 3D topological cluster-state computing is the standard order-of-magnitude result of Raussendorf–Harrington–Goyal.

Prerequisites. Cluster States and Graph States · Measurement-Based Quantum Computation · Magic State Distillation. Leads to. The Measurement Calculus · Flow and Gflow Conditions · Topological Quantum Computation.

Ask the tutor: ask me to compile a specific gate — say a Hadamard or a TT — into an explicit cluster and measurement pattern, tracking every byproduct and feed-forward step.

If measurement destroys entanglement, how can it possibly compute?

The trick is that the cluster is engineered so measuring one qubit does not erase information — it transfers it. A cluster qubit is entangled with its neighbours through CZCZ bonds, so projecting it onto an XX–YY-plane basis teleports its logical content to the adjacent qubit while stamping a rotation on it. The entanglement is consumed, but only after doing useful work moving and transforming the state. Repeat across the lattice and the logical information walks through a sequence of programmed gates. Measurement is destructive locally and constructive globally: each act spends one bond to advance the computation one step.

What is the difference between a cluster state and a graph state?

A graph state is defined for any graph GG: a qubit in ∣+⟩|+\rangle on each vertex, a CZCZ on each edge. A cluster state is the special case where GG is a regular lattice — a line, a square grid, a cubic lattice. The distinction matters because universality needs a graph rich enough to carry both wires and two-qubit gates; the 2D square-lattice cluster is the canonical universal resource. Arbitrary graph states are the natural language for compilation and for stabilizer codes, and local complementation transforms one into another — which is why the measurement calculus works over general graphs, not only lattices.

Why must the measurements happen in a particular order?

Because feed-forward makes later angles depend on earlier outcomes. To apply a rotation β\beta to a qubit already carrying a byproduct, you must measure not at β\beta but at (−1)sxβ+szπ(-1)^{s_x}\beta+s_z\pi, and you cannot compute that angle until the outcomes sx,szs_x,s_z exist. Measuring out of order — setting a dependent angle before its inputs are known — applies the wrong gate. The dependency structure defines a partial temporal order, and the flow condition guarantees a consistent order exists. This forced ordering is the genuine content of the word "one-way".

Is the one-way model as powerful as the circuit model?

Yes, exactly. The two are polynomially equivalent: any circuit compiles into a measurement pattern on a cluster state of polynomial size, and any pattern is simulated by a circuit. A vertical bond gives a CZCZ, three XX–YY measurements give an arbitrary single-qubit rotation, and generic angles supply the TT gates — a universal set. So the model computes exactly the same class, BQP, with the same efficiency up to polynomial overhead. What differs is not power but architecture: where entanglement is generated, when measurements happen, and what a compiler must reason about.

Where does the non-Clifford resource actually come from?

From the measurement angles, and only from them. If every qubit is measured at a multiple of π/2\pi/2, the cluster stays a stabilizer state, every gate is Clifford, and Gottesman–Knill simulates the run efficiently — so such a pattern computes nothing quantumly hard. Universality switches on the moment you measure at a generic angle like π/4\pi/4, realizing a TT. In fault-tolerant settings arbitrary angles cannot be measured reliably, so the generic angle is instead supplied by consuming a magic state purified by distillation. Either way the magic is a countable resource: one non-Clifford angle, or one magic state, per TT.

What are flow and gflow, and why do they matter?

They are graph-theoretic conditions that certify a pattern computes a deterministic unitary. A flow assigns each measured qubit a successor and a correction set so byproducts push forward consistently, inducing a valid temporal order; gflow (generalized flow) is a weaker condition covering the XX–YY, YY–ZZ, and XX–ZZ measurement planes. If a graph-plus-pattern has a gflow, the corrections always exist and the logical map is outcome-independent — turning compilation into a checkable property rather than a hope, and forming the backbone of measurement-based compilers, blind computing, and verification.

Before this

Where this leads