Skip to main content
KetQat

Appearance

Decoder · advanced

Tensor-network (matrix-product-state) decoder

Writes the total probability of each coset of errors as the contraction of a two-dimensional tensor network and contracts it approximately with matrix product states of bond dimension χ. Approaches optimal decoding of planar codes at a cost of order n χ cubed.

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 planar stabilizer code, single-qubit Pauli error probabilities and a syndrome. The output is the logical class with the largest estimated coset probability, as required by degenerate maximum-likelihood decoding.

Idea. Fix an error ff with the observed syndrome. The probability of its coset is ∑S∈SPr⁡[fS]\sum_{S \in \mathcal{S}} \Pr[f S]. Writing SS as a product of generators turns the sum into a sum over one binary variable per generator, and because each qubit is touched by a bounded number of generators and the noise is a product over qubits, the summand is a product of local factors. The sum is therefore the contraction of a tensor network laid out like the code, with one tensor per qubit and per check. The decoder evaluates this contraction for ff, fXˉf \bar X, fYˉf \bar Y and fZˉf \bar Z and returns the largest.

Procedure (Bravyi, Suchara and Vargo). Contract the network column by column. The boundary of the contracted region is stored as a matrix product state, and after absorbing each column it is truncated back to bond dimension χ\chi.

Complexity. O(nχ3)O(n \chi^3) for nn qubits. The method of Chubb for arbitrary two-dimensional stabilizer and subsystem codes costs O(nlog⁡n+nχ3)O(n \log n + n \chi^3).

What it is exact for. The contraction is exact when χ\chi is not truncated, which in general needs a bond dimension exponential in the linear size. For the surface code with independent bit-flip and phase-flip noise, Bravyi, Suchara and Vargo give a different, exact maximum-likelihood algorithm with running time O(n2)O(n^2), by reduction to the simulation of matchgate circuits. For other noise, such as depolarising noise, the matrix-product-state contraction is an approximation controlled by χ\chi; in their benchmarks the logical error probability is already significantly below that of matching for χ≥4\chi \ge 4.

Use. Because it estimates coset probabilities, the decoder serves as an accuracy reference for faster decoders and for threshold estimates of tailored codes, for example the 43.7(1)% threshold of a tailored surface code under pure dephasing (Tuckett, Bartlett and Flammia). A tensor-network decoder was also the most accurate decoder in the surface-code scaling experiment of Google Quantum AI. The cost grows quickly with the third (time) dimension required by faulty measurements, which confines the method to offline analysis.

Holds when

  • Two-dimensional codes with geometrically local checks, Pauli noise that is independent between qubits, and perfect syndrome measurement.
Part of
Related
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. Sergey Bravyi, Martin Suchara, Alexander Vargo (2014). Efficient algorithms for maximum likelihood decoding in the surface code. Physical Review A 90, 032326. doi:10.1103/PhysRevA.90.032326arXiv:1405.4883
  2. Christopher T. Chubb (2021). General tensor network decoding of 2D Pauli codes. arXiv preprint. arXiv:2101.04125
  3. David K. Tuckett, Stephen D. Bartlett, Steven T. Flammia (2018). Ultrahigh Error Threshold for Surface Codes with Biased Noise. Physical Review Letters 120, 050505. doi:10.1103/PhysRevLett.120.050505arXiv:1708.08474
  4. Google Quantum AI (2023). Suppressing quantum errors by scaling a surface code logical qubit. Nature 614, 676-681. doi:10.1038/s41586-022-05434-1arXiv:2207.06431

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)

    Coset-probability-as-tensor-network argument checked against definition/degenerate-maximum-likelihood-decoding. Compared with Bravyi-Suchara-Vargo arXiv 1405.4883 (exact MLD in O(n^2) via matchgates for independent bit- and phase-flip noise; approximate MPS contraction in O(n chi^3) for general noise; significant improvement over matching for chi >= 4), Chubb arXiv 2101.04125 (O(n log n + n chi^3) for general 2D Pauli codes), Tuckett-Bartlett-Flammia arXiv 1708.08474 abstract (43.7(1)% under pure dephasing with the BSV decoder), Google Quantum AI arXiv 2207.06431 (tensor-network decoding as the slow but accurate approximate ML decoder alongside belief-matching).

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 655abcb747047632. Source file knowledge/records/decoder/tensor-network-decoder.md in the content repository (readable there once it is public).