The qubits are located on the edges, which are colored by error type:
gray for no error,
red for X,
blue for Z,
and green for both.
The vertex and plaquette excitations appear at the boundary of error paths and are colored in
gold.
Manual: Click on edges to add or remove
Random fill:
X error:
10%
Z error:
10%
The standard surface code decoder is Minimum Weight Perfect Matching (MWPM),
which pairs up excitations with the lowest total path cost. In this demo, MWPM is implemented using
Edmonds' blossom algorithm.
Display only the stabilizers and logical operators after correction. Z errors are drawn on
the dual lattice for better visualization.
This is an interactive torus implemented using Three.js.
Zoom and drag around to see whether the error-corrected results form contractible or non-contractible loops.
Note:
red = X axis,
green = Y axis and
blue = Z axis.