Introduction
ZXW Graphboard is an online editor for ZXW-calculus graphs that runs entirely in your browser.
What is ZXW calculus?
Section titled “What is ZXW calculus?”ZXW calculus is a diagrammatic language used in quantum computing. A diagram is a graph made of vertices (the generators) connected by edges. Each generator has a type, and some carry a phase written as a mathematical expression (typically a multiple of π). Such graphs are used to reason about quantum processes, simplification rules, and circuit equivalence.
You do not need a deep background in quantum computing to use the editor — at its core it is a tool for placing shapes on a canvas and connecting them. For the mathematical background, the ZX-calculus Wikipedia article is a good starting point.
What the editor gives you
Section titled “What the editor gives you”- A canvas where you place and move vertices.
- Eleven vertex types: Z/X spiders and boxes, H box, W node, And gate, an empty node, a plain
black dot (a phaseless Z spider), plus
input/outputboundary markers that declare the open legs of the diagram. See Vertex Types. - Click-to-connect edges, including fanning one edge out from several sources at once.
- Phase labels on spiders and boxes, typeset with KaTeX. Type
$\pi/2$and it renders as π/2. - Tensor computation: click Compute and the editor evaluates the tensor the diagram represents, displaying it as a matrix (rows = outputs, columns = inputs) or a scalar. See Computing Tensors.
- Undo/redo, copy/cut/paste of whole subgraphs, vertex rotation.
- Multiple tabs, each holding an independent graph with its own undo history — see Working with Tabs.
- Automatic saving to your browser, plus JSON export and import for sharing diagrams.
Where to go next
Section titled “Where to go next”- Getting Started — the editor layout and the three editing modes.
- Working with Tabs — organizing independent graphs in tabs.
- Editing Graphs — adding, selecting, moving, and deleting.
- Vertex Types — the generators, their phases, and the boundary markers.
- Computing Tensors — how to run a computation and read the result.
- Keyboard Shortcuts — the full key reference.
- Saving & Loading — autosave, export, import.