A graphical approach to measurement-based quantum computing
Quantum computations are easily represented in the graphical notation known as the ZX-calculus, a.k.a. the red-green calculus. We demonstrate its use in reasoning about measurement-based quantum computing, where the graphical syntax directly captures the structure of the entangled states used to represent computations, and show that the notion of information flow within the entangled states gives rise to rewriting strategies for proving the correctness of quantum programs.
š” Research Summary
The paper presents a novel, graphātheoretic methodology for reasoning about measurementābased quantum computing (MBQC) by exploiting the ZXācalculus, also known as the redāgreen calculus. The ZXācalculus is a categorical diagrammatic language whose basic generators are Zāspiders (green nodes) and Xāspiders (red nodes), together with Hadamard edges that change colour. These generators correspond to multiāinput, multiāoutput linear maps with an arbitrary phase parameter, and a small set of rewrite rulesāspider fusion, colour change, and bialgebraic interactionācaptures the full algebra of quantum circuits. Because the rewrite rules are sound and complete for stabiliser quantum mechanics, any diagrammatic transformation preserves the underlying quantum operation.
The authors first recast the standard MBQC model in this language. In MBQC a large entangled resource stateātypically a 2ādimensional cluster stateāis prepared, and computation proceeds by measuring individual qubits in bases that may depend on previous measurement outcomes. The resource state can be expressed as a ZXādiagram: each lattice vertex is a Zāspider, each edge a Hadamard (colourāchanging) wire, and the whole graph encodes the stabiliser structure of the cluster. Measurements are introduced by attaching an Xāspider (or a Zāspider, depending on the basis) with a phase equal to the measurement angle. Classical feedāforward, which in the circuit model appears as conditional Pauli corrections, becomes a simple phaseāadjustment on downstream spiders.
A central contribution of the paper is the identification of the MBQC āflowā (and its generalisation, gflow) with directed paths in the ZXādiagram. The flow determines a causal order for eliminating measured spiders while propagating their phases forward. The authors define two systematic rewrite strategies:
-
Flowābased reduction ā Starting from the measured spider, fuse it with its neighbour according to the flow, apply spider fusion, and use colourāchange rules to push Hadamards past the remaining structure. The phase of the measured spider is transferred to the target spider, reproducing the classical feedāforward. Repeating this along the flow eliminates all measured nodes, leaving only the input and output spiders. The resulting diagram is exactly the unitary circuit that the MBQC protocol implements.
-
gflowābased reduction ā When a strict flow does not exist, the authors introduce auxiliary spiders and additional Hadamard edges to create a temporary flow. By applying the same fusion and colourāchange steps, the auxiliary structure can be eliminated, yielding the same final circuit. This demonstrates that the gflow condition, previously defined algebraically, has a natural graphical realisation.
The paper illustrates these strategies with three canonical examples. First, a oneādimensional linear cluster is used to teleport an arbitrary qubit state; the diagrammatic reduction reproduces the standard teleportation circuit. Second, a twoādimensional lattice implements a CNOT gate; the flowābased rewrite shows how the entanglement pattern and measurement angles give rise to the familiar controlātarget interaction. Third, arbitrary singleāqubit rotations are achieved by choosing appropriate measurement angles; the gflowābased reduction confirms that any unitary in SU(2) can be realised.
Beyond manual derivations, the authors discuss the compatibility of their approach with automated diagramārewriting tools such as Quantomatic. Because the rewrite system is finite and confluent for stabiliser fragments, largeāscale MBQC protocols can be verified automatically, a task that is cumbersome with matrixābased proofs. The graphical perspective also clarifies optimisation opportunities: redundant spiders can be fused early, and unnecessary Hadamards can be eliminated, leading to more resourceāefficient implementations.
In the discussion, the authors acknowledge current limitations. While the ZXācalculus handles stabiliserātype MBQC elegantly, extending the framework to nonāClifford resources (e.g., magicāstate injection) requires additional generators or enriched rewrite rules. Moreover, the complexity of gflowābased reductions grows with lattice size, suggesting the need for heuristic algorithms to choose optimal auxiliary structures.
The conclusion emphasises that representing MBQC entirely within the ZXācalculus provides a unified, visual language that captures both the entanglement structure of the resource state and the classical control flow of measurements. By translating flow and gflow into concrete rewrite strategies, the paper offers a systematic, provably correct method for verifying quantum programs, paving the way for more transparent algorithm design, automated verification, and potentially new optimisation techniques in measurementābased quantum computing.
Comments & Academic Discussion
Loading comments...
Leave a Comment