Input and output. A graph-like detector error model with edge weights and a set of detection events. The output is a set of edges whose end points, counted modulo 2, are the detection events, together with the logical observables that set flips.
Procedure. Compute lightest-path distances between detection events and from each event to the boundary, find a minimum-weight perfect matching of the events with the blossom algorithm, and return the union modulo 2 of the lightest paths between matched pairs. Implementations such as PyMatching explore the graph outward from the events instead of computing all pairwise distances first.
What it is exact for. By the matching theorem the output is a most likely error of the graph-like model. It is not the most likely coset: the decoder ignores how many errors of similar weight lie in each coset. It is also not exact for the true noise when one physical fault flips more than two detectors. A error on a surface-code qubit flips two -type and two -type detectors; decoding the two graphs separately discards that correlation.
Complexity. Polynomial in the number of detection events; this is Edmonds' theorem. In the regime of interest the cost is dominated by local exploration of the graph. The sparse blossom implementation decodes both bases of distance-17 surface-code circuits at 0.1% circuit-level depolarising noise in under one microsecond per round on one core. Fusion Blossom is a second fast implementation designed for parallel execution.
Accuracy. For the toric code with independent bit-flip noise and perfect syndrome measurement the matching threshold is the zero-temperature critical point of the random-bond Ising model, , below the optimal value near obtained on the Nishimori line; with measurement errors of the same probability (phenomenological noise) it is (Wang, Harrington and Preskill, following Dennis et al.). Under circuit-level depolarising noise reported thresholds lie between about 0.7% and 0.8%, depending on the circuit and noise details: 0.70% in Tan et al. and 0.82% in Higgott et al..
Variants. Correlated matching reweights one graph using the matching found in the other, to recover part of the – correlation (Fowler). Belief-matching sets the edge weights from a belief-propagation pass over the full hypergraph and raises the circuit-level threshold from 0.82% to 0.94% in the same study (Higgott et al.).