From stabilizer codes and perfect tensors, through the HaPPY code and MERA, to toric-code decoding, statistical mechanics, thresholds and biased noise.
Protecting fragile quantum information
Qubits suffer bit flips and phase flips, and the no-cloning theorem forbids the simplest classical remedy: keeping backup copies. Quantum error correction instead spreads one logical qubit over many physical ones, so that local noise cannot reach the encoded information.
Stabilizer codes do this with a set of commuting Pauli parity checks. The code space is the joint +1 eigenspace of the checks. Measuring them yields an error syndrome, a pattern of violated checks that reveals information about the error without revealing, or disturbing, the encoded state.
The Knill–Laflamme condition states when recovery is possible. Projected onto the code space, the product E_a†E_b of any two correctable errors must act as a constant multiple of the identity. The environment then learns nothing about the logical state, and a recovery map exists.
An encoder is a tensor
An encoding map is itself a tensor, with logical legs going in and physical legs coming out. It is an isometry, and the stabilizers appear as its symmetries: Pauli operators on the physical legs that leave the tensor unchanged.
Some tensors are especially useful. A perfect tensor is maximally entangled in a strong sense: any half of its legs maps isometrically onto the other half. The six-leg tensor of the five-qubit code is the standard example. Quantum LEGO treats such encoders as bricks. Contracting legs glues small codes into larger ones, and operator pushing carries logical operators through the network.
Familiar codes fit this picture. Concatenated codes are tree tensor networks, which can be decoded exactly from the leaves to the root; below threshold, each level roughly squares the error rate. Tiling perfect tensors on a hyperbolic disk gives the HaPPY code, a toy model of holography in which bulk operators can be reconstructed from suitable boundary regions. Read from top to bottom, MERA can likewise be viewed as an approximate error-correcting code.
The toric code as a tensor network
Kitaev's toric code places qubits on the edges of a square lattice on a torus, with star and plaquette checks. Its ground states can be written as a PEPS with bond dimension two, a compact example of topological order in tensor-network form.
Errors create pairs of anyons at the ends of error strings. The syndrome shows where those endpoints are, not which string produced them. Two strings with the same endpoints differ by stabilizers when together they enclose a region; if the difference wraps around the torus, it acts as a logical operator. A decoder must therefore guess the class of the error, not the error itself.
Decoding as a partition function
Maximum-likelihood decoding asks which equivalence class of errors is most probable given the syndrome. The probability of a class is a sum over every error in it, weighted by the noise model. For independent bit flips on the toric code, Dennis and coauthors showed that this sum is the partition function of a random-bond Ising model on the Nishimori line.
The optimal threshold then corresponds to that model's ordering transition. With perfect syndrome measurements, it is about 10.9% for independent bit flips; for depolarizing noise, the corresponding statistical model gives about 18.9%. These are code-capacity numbers, which ignore faulty measurements.
The partition function is itself a two-dimensional tensor network. Bravyi, Suchara and Vargo contracted it row by row as a boundary MPS, truncating to a bond dimension χ. A modest χ already gives near-optimal decoding for the surface code, at a cost that grows polynomially in the code size and χ.
Biased noise, time, and new codes
Real hardware noise is often biased towards dephasing. Using a tensor-network decoder, Bonilla Ataides and coauthors showed that the XZZX surface code has thresholds that rise towards 50% as noise becomes purely dephasing. Here the decoder served as a numerical instrument for studying codes, not only as a practical tool.
Faulty syndrome measurements add a time direction, and decoding becomes a three-dimensional spacetime network that must be contracted approximately. Contracting a code network can also yield weight enumerators, which reveal the code distance and error-rate quantities for simple noise models.
For quantum LDPC codes, belief propagation struggles with short loops in the decoding graph, and tensor-network contraction can account for some of those loops. The cost of exact contraction grows quickly with system size, so the practical question is how much approximation each application can tolerate. Across these problems, tensor networks provide a common language for protected quantum information.
Papers & further reading
- E. Knill & R. Laflamme, Theory of quantum error-correcting codes, Phys. Rev. A 55, 900 (1997)
- E. Dennis, A. Kitaev, A. Landahl & J. Preskill, Topological quantum memory, J. Math. Phys. 43, 4452 (2002)
- F. Pastawski, B. Yoshida, D. Harlow & J. Preskill, Holographic quantum error-correcting codes, JHEP 06 (2015) 149
- C. Cao & B. Lackey, Quantum Lego: building quantum error correction codes from tensor networks, PRX Quantum 3, 020332 (2022)
- S. Bravyi, M. Suchara & A. Vargo, Efficient algorithms for maximum likelihood decoding in the surface code, Phys. Rev. A 90, 032326 (2014)
- H. Bombin et al., Strong resilience of topological codes to depolarization, Phys. Rev. X 2, 021004 (2012)
- J. P. Bonilla Ataides et al., The XZZX surface code, Nat. Commun. 12, 2172 (2021)
- C. T. Chubb, General tensor network decoding of 2D Pauli codes (arXiv:2101.04125)
- C. Piveteau, C. T. Chubb & J. M. Renes, Tensor network decoding beyond 2D (arXiv:2310.10722)