Skip to content

Introduction

ZXW Graphboard is an online editor for ZXW-calculus graphs that runs entirely in your browser.

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.

  • 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/output boundary 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.
  1. Getting Started — the editor layout and the three editing modes.
  2. Working with Tabs — organizing independent graphs in tabs.
  3. Editing Graphs — adding, selecting, moving, and deleting.
  4. Vertex Types — the generators, their phases, and the boundary markers.
  5. Computing Tensors — how to run a computation and read the result.
  6. Keyboard Shortcuts — the full key reference.
  7. Saving & Loading — autosave, export, import.