Skip to main content
KetQat

Appearance

Decoder · intermediate

Union-find decoder

Grows clusters around detection events until every cluster can be neutralised internally, then corrects inside each cluster with an erasure decoder. Almost-linear worst-case time, with thresholds slightly below matching.

ExpositionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Input and output. A decoding graph, a set of detection events and optionally a set of erased edges. The output is a set of edges whose end points, modulo 2, are the detection events.

Procedure (Delfosse and Nickerson).

  1. Syndrome validation. Start with one cluster per detection event; erased edges belong to clusters from the beginning. A cluster is odd when it contains an odd number of events and does not touch the boundary. Repeatedly grow every odd cluster by half an edge in all directions and merge clusters that meet, keeping track of membership with a union-find data structure. Stop when no odd cluster is left.
  2. Peeling. Treat the grown clusters as an erasure and run the peeling decoder of Delfosse and Zémor: build a spanning forest of each cluster and remove leaves one at a time, adding the leaf edge to the correction whenever the leaf vertex is a detection event.

Complexity. O(n α(n))O(n\, \alpha(n)) in the worst case, with nn the number of physical qubits and α\alpha the inverse Ackermann function, which is at most 3 for any realistic input.

What it is exact for. The original paper proves that the decoder corrects every error of weight up to (d−1)/2(d - 1)/2 and every erasure of up to d−1d - 1 qubits, where dd is the distance. For erasures alone no growth is needed and the peeling step is a maximum-likelihood decoder for surface codes. For Pauli noise the result is an approximation to matching: growth is by graph distance and does not minimise total weight.

Accuracy. For the toric code the reported thresholds are 9.9% with perfect syndrome measurement and 2.6% with faulty measurements, compared with 10.3% and 2.9% for matching. Growing clusters at rates set by the edge weights raises the circuit-level threshold of the toric code from 0.38% to 0.62% in the study of Huang, Newman and Brown; Tan et al. report 0.55% for the surface code in their circuit model, against 0.70% for matching.

Holds when

  • Stated for topological codes with graph-like error models (surface and toric codes); Pauli errors, erasures, or both.
Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Nicolas Delfosse, Naomi H. Nickerson (2021). Almost-linear time decoding algorithm for topological codes. Quantum 5, 595. doi:10.22331/q-2021-12-02-595arXiv:1709.06218
  2. Nicolas Delfosse, Gilles Zémor (2020). Linear-time maximum likelihood decoding of surface codes over the quantum erasure channel. Physical Review Research 2, 033042. doi:10.1103/PhysRevResearch.2.033042arXiv:1703.01517
  3. Shilin Huang, Michael Newman, Kenneth R. Brown (2020). Fault-tolerant weighted union-find decoding on the toric code. Physical Review A 102, 012419. doi:10.1103/PhysRevA.102.012419arXiv:2004.04693
  4. Xinyu Tan, Fang Zhang, Rui Chao, … Jianxin Chen (2023). Scalable Surface-Code Decoders with Parallelization in Time. PRX Quantum 4, 040344. doi:10.1103/PRXQuantum.4.040344arXiv:2209.09219

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Compared with Delfosse-Nickerson arXiv 1709.06218 full text (syndrome validation by half-edge growth of odd clusters with union-find, peeling; O(n alpha(n)) worst case with alpha(n) <= 3 for practical purposes; corrects errors up to (d-1)/2 and losses of up to d-1 qubits; thresholds 9.9% and 2.6% vs 10.3% and 2.9% for matching), Delfosse-Zemor arXiv 1703.01517 reference (linear-time ML erasure decoding of surface codes), Huang-Newman-Brown arXiv 2004.04693 (weighted UF raises the threshold from 0.38% to 0.62%) and Tan et al. arXiv 2209.09219 (UF 0.55% vs MWPM 0.70%).

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision a215a30ca2d9ad65. Source file knowledge/records/decoder/union-find.md in the content repository (readable there once it is public).