This book is a coding-driven introduction to ZX-Calculus, guiding readers to the advanced techniques of diagrammatic reasoning and circuit optimization.
Over recent years, ZX calculus has developed into a versatile formalism that extends well beyond quantum circuit optimization. While the previous chapters established its foundational rules, graphical language, and computational workflow, this chapter shifts attention to a new setting in which diagrammatic reasoning becomes especially valuable: fermionic systems. In particular, we examine how ZX-based methods can be adapted to represent and manipulate fermionic tensor networks in a structured and intuitive way.
Quantum computing promises significant speed-ups for certain algorithms but the practical use of current noisy intermediate-scale quantum (NISQ) era computers remains limited by resources constraints (e.g., noise, qubits, gates, and circuit depth). Quantum circuit optimization is a key mitigation strategy. In this context, ZX-calculus has emerged as an alternative framework that allows for semantics-preserving quantum circuit optimization. We review ZX-based optimization of quantum circuits, categorizing them by optimization techniques, target metrics and intended quantum computing architecture. In addition, we outline critical challenges and future research directions, such as multi-objective optimization, scalable algorithms, and enhanced circuit extraction methods. This survey is valuable for researchers in both combinatorial optimization and quantum computing. For researchers in combinatorial optimization, we provide the background to understand a new challenging combinatorial problem: ZX-based quantum circuit optimization. For researchers in quantum computing, we classify and explain existing circuit optimization techniques.
The ZX-calculus is a graphical language for reasoning about quantum computation that has recently seen an increased usage in a variety of areas such as quantum circuit optimisation, surface codes and lattice surgery, measurement-based quantum computation, and quantum foundations. The first half of this review gives a gentle introduction to the ZX-calculus suitable for those familiar with the basics of quantum computing. The aim here is to make the reader comfortable enough with the ZX-calculus that they could use it in their daily work for small computations on quantum circuits and states. The latter sections give a condensed overview of the literature on the ZX-calculus. We discuss Clifford computation and graphically prove the Gottesman-Knill theorem, we discuss a recently introduced extension of the ZX-calculus that allows for convenient reasoning about Toffoli gates, and we discuss the recent completeness theorems for the ZX-calculus that show that, in principle, all reasoning about quantum computation can be done using ZX-diagrams. Additionally, we discuss the categorical and algebraic origins of the ZX-calculus and we discuss several extensions of the language which can represent mixed states, measurement, classical control and higher-dimensional qudits.
In the previous chapters, we developed the groundwork of ZX calculus, beginning with the basic structure of tensor networks such as edges, wires, and nodes, and the linear maps they represent. We also examined the rewrite and optimization procedures that make these diagrams useful for analyzing and transforming quantum circuits. Having seen that this graphical language also extends to applications such as fermionic ZX calculus, we now turn to another important application of ZX calculus in this chapter.