Skip to content

ZXW Graphboard

A browser-based editor for drawing and editing ZXW-calculus graphs.

ZXW Graphboard is an online graph editor for ZXW calculus, a diagrammatic calculus used in quantum computing. Place vertices, connect them with edges, assign phase labels, compute the tensor a diagram represents, and export the graph as JSON — all in your browser, with no account or backend.

Try it live at zxwgraphboard.netlify.app, or browse the source code on GitHub.

  • Draw ZXW diagrams with ten vertex types: Z/X spiders and boxes, H, W, And gate, empty node, plus input/output boundary markers
  • Connect vertices with click-to-connect edges, including fan-out from multiple sources
  • Annotate spiders and boxes with phase expressions ($\pi/2$, $\pi + \pi/2$, …) rendered with KaTeX
  • Compute the tensor a diagram represents, displayed as a matrix (outputs × inputs) or a scalar — powered by a Rust/WASM contraction engine
  • Rotate vertices, undo/redo, copy/paste subgraphs
  • Organize your work in tabs — each an independent graph with its own undo history
  • Autosave to your browser; export and import graphs as JSON files

User Guide

Learn how to use the editor: modes, vertices, edges, computing tensors, saving and loading. Start with Introduction.

Developer Docs

Architecture, the state model, and how to contribute. Start with Overview.