English

PyZX: Large Scale Automated Diagrammatic Reasoning

Quantum Physics 2020-05-04 v2

Abstract

The ZX-calculus is a graphical language for reasoning about ZX-diagrams, a type of tensor networks that can represent arbitrary linear maps between qubits. Using the ZX-calculus, we can intuitively reason about quantum theory, and optimise and validate quantum circuits. In this paper we introduce PyZX, an open source library for automated reasoning with large ZX-diagrams. We give a brief introduction to the ZX-calculus, then show how PyZX implements methods for circuit optimisation, equality validation, and visualisation and how it can be used in tandem with other software. We end with a set of challenges that when solved would enhance the utility of automated diagrammatic reasoning.

Keywords

Cite

@article{arxiv.1904.04735,
  title  = {PyZX: Large Scale Automated Diagrammatic Reasoning},
  author = {Aleks Kissinger and John van de Wetering},
  journal= {arXiv preprint arXiv:1904.04735},
  year   = {2020}
}

Comments

In Proceedings QPL 2019, arXiv:2004.14750

R2 v1 2026-06-23T08:34:22.556Z