MWPM Decoder Visualizer
surface code
minimum weight perfect matching
step-by-step
logical error detection
© Niharika Verma
Surface code patch — click edges to inject X errors
Data errors
0
Defects (syndrome flips)
0
Matching weight
—
Single error
Error chain
Boundary path
Random
Clear
Click any edge between nodes to toggle an X error.
Then press
Next →
to step through MWPM.
MWPM defect graph — complete graph on syndrome defects with shortest-path weights
0. Inject
1. Syndromes
2. Defect graph
3. All matchings
4. Min matching
5. Correction
6. Verdict
Click an edge on the surface code patch to inject an X error, then press
Next →
to step through the MWPM decoder.
Verdict
—
Run the decoder to see the outcome.
← Prev
Next →
Run all ▶▶
step 0 / 6