Loading...

PyZX Demo

An in-browser implementation of the protocol that was published here, based on PyZX.

How to use this tool

PyZX is a tool for analysing ZX diagrams (and therefore also quantum circuit diagrams,) written in Python by a team at Radboud. This webpage implements the same code, allowing you to use the tool inside your browser. Below this description are three panels, the first gives a list of example python scripts you can try out (click on them to load the code,) the second shows the python script to be run, and the third panel shows the console output of that code. To run the python script press the "Run Code" button, and any diagrams generated by the script will be shown at the bottom of the page.

Example scripts

Script to run

Console output

The output of the code will be displayed here:

Loading PyZX. This can take a few seconds.