Computing Library › Quantum Error Correction
Quantum Error Correction

Decoders: Overview

A decoder maps a measured syndrome to the most likely correction, and its speed and accuracy determine a code's real-world performance.

The decoding problem

After syndrome extraction, the hardware knows which stabilizers flipped but not which physical error caused them, because many errors share a syndrome. A decoder is the classical algorithm that infers a correction: given the syndrome, it estimates the most probable error consistent with it and returns a Pauli to apply. If the estimate differs from the true error by a stabilizer, the correction succeeds; if it differs by a logical operator, a logical error results.

What makes a good decoder

Kronos motion — error correction

Three properties matter. Accuracy: the decoder should fail with probability as close as possible to the true optimum, so the code reaches its highest threshold. Speed: because syndromes stream out every cycle and qubits keep decohering, decoding must keep up in real time, which for the surface code means microsecond-scale latency. Scalability: the algorithm must stay fast as the code distance and qubit count grow.

The families

For the surface code, where syndromes are string endpoints, minimum-weight perfect matching is the classic choice, with the union-find decoder trading a little accuracy for near-linear speed. For general quantum LDPC codes, belief propagation with ordered-statistics post-processing is common. Maximum-likelihood decoding via tensor networks gives the highest accuracy but is slow. Machine-learning decoders are an active research direction.

Decoding is where coding theory meets real-time engineering: a code is only as good as the decoder that runs it, and much of the recent progress in fault tolerance has come from faster, more accurate decoders rather than new codes.