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.9, 3.10 and 3.11, on Linux, MacOS and Windows. To install, run:

pip install pytket-pyzx