Aleks Kissinger and John van de Wetering
QPL, Amsterdam 2026
ZX := a handy tool for working with quantum
computations using graph rewriting
![]() |
![]() |
![]() |
| Optimisation | Simulation & Verification | Error Correction |
...give a compact, flexible way to write computations:
Q: How do you run one?
...in fact, it is highly unlikely* that there is any efficient way to "run" a ZX diagram on a quantum computer
* unless QCs can solve NP-complete problems!
Restrict to ZX-diagrams satisfying some extra sufficient conditions, called flow criteria that make circuit extract efficient.
causal flow → generalised flow → Pauli flow
Flow criteria are defined for graph states, so ZX diagrams must be kept in graph-like form
Consequence: all of the basic ZX rules...
...break flow criteria!
A ZX-native flow criterion, based on Pauli semiwebs
Def: A Pauli string $\vec w \in \mathcal P_{|W|}$ is a Pauli web for a diagram $D$ if every node is an eigenstate for the Pauli operator colouring its neighbourhood
Theorem: A Pauli $\vec P$ stabilises a Clifford ZX-diagram $D$ iff there exists a Pauli web coloring the boundary of $D$ according to $P$.
For Clifford unitaries, Pauli webs give the stabiliser tableau:
For Clifford isometries, a.k.a. stabiliser codes, Pauli webs give stabilisers + logical operators:
Idea: generalise to allow local violations web condition, called defects
Def: A Pauli string $\vec w \in \mathcal P_{|W|}$ is a Pauli semiweb for a diagram $D$ if every node is an eigenstate for the Pauli operator colouring its neighbourhood, up to a phase.
Def: A ZX-flow for diagram $D$ consists of a partial order $\preceq$ on the non-Clifford spiders, plus the following semiwebs:
$($
$\preceq$
$)$
non-Clifford spider = adaptive single-qubit measurement
wrong outcome? fire $f(\nu)$
the $\pi$ cancels; future angles get adapted at the defects
Semiwebs have no defects near Clifford spiders,
so they update locally:
All of these preserve ZX-flow.
$D$ has ZX-flow
$\iff$
$D$ is Clifford-equivalent to a graph-like $D'$ with Pauli flow
idea:
Like other kinds of flow criteria, ZX-flow can be focused, which means defects are pushed as far into the future as possible:
$($
$\preceq$
$)$
Like other kinds of flow criteria, ZX-flow can be focused, which means defects are pushed as far into the future as possible:
$($
$\preceq$
$)$
Let $D$ be a diagram with a focused ZX-flow,
then it can be written as a circuit as follows:
where:
Take $\nu$ maximal, unfuse it, then push it out along $f(\nu)$:
$\implies$
Repeat: strictly fewer non-Clifford spiders each time