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 errors0
Defects (syndrome flips)0
Matching weight
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.