Chapter 2 of 10 · ZX graphs in brief
What a ZX graph is, and why it is used to measure quantum optimisers
The ZX-calculus draws a quantum circuit as a graph. Rewriting that graph is how many optimisers make circuits cheaper to run.
Circuits become graphs
The ZX-calculus draws a quantum circuit as a graph. The nodes are called spiders: green Z spiders and red X spiders. Some carry a phase. A CNOT gate becomes a green spider on one wire joined to a red spider on the other.
Rules simplify the graph
Simple rules change the graph without changing what the circuit does. Two connected spiders of the same colour merge into one. A spider with no phase and two connections can be removed.
Benchmarks count what's left
A benchmark measures how far a tool gets: how many spiders and T gates remain, and how long it took. T gates matter most because they are the most expensive operation on fault-tolerant hardware.