PyZX is an open-source Python library for automated rewriting and optimisation of quantum circuits using the ZX calculus.

pytket-pyzx is an extension to pytket that allows conversion to and from PyZX representations.

pytket-pyzx is available for Python 3.10, 3.11 and 3.12, on Linux, MacOS and Windows. To install, run:

pip install pytket-pyzx