← Back

The Color Code: A Smaller Patch with Easier Gates

The surface code is the standard way to protect a qubit. Its main rival, the color code, uses fewer qubits for the same strength and makes some gates far simpler. It pays for that with harder checks and a harder decoding job.

Tiles in three colors

The surface codeAn error-correcting code that spreads one protected qubit over a square grid of physical qubits. spreads a logical qubitA reliable ‘qubit’ built by bundling many error-prone physical qubits together with error correction. These are the units that actually matter for useful computing. over a square grid, with separate checks for bit flips and for phase flips. The color codeAn error-correcting code on a tiling colored with three colors, where every tile checks its qubits for both bit flips and phase flips. instead tiles a triangle with patches, colored so that no two touching tiles share a color; three colors are enough. Data qubits sit at the corners of the tiles, and each tile asks both questions of its qubits.

The smallest version uses seven data qubits split into three tiles of four, and like the smallest surface code it has distance 3: it can correct any single error.

Fewer qubits for the same distance

One trapped-ion layout needs 13, 37 and 73 qubits, helpers included, for distances 3, 5 and 7.1 The common surface code layout needs 17, 49 and 97. A superconducting team puts the surface code’s extra cost at about 25% at a fixed distance.2

The surface code and the color code compared at distance 3. Title: The Color Code: Smaller Patch, Easier Gates. Subtitle: both at distance 3: any one error can be corrected. Left, labeled surface code: a 3 by 3 grid of open circles with 8 small helper circles between and around them, labeled 9 data + 8 helpers = 17. Right, labeled color code: a triangle split into three tiles by lines from the center to the middle of each side, with 7 open circles at the corners, the side midpoints and the center, each marked with a red H; labeled 7 data + 6 helpers = 13, and in red, H on every qubit = a logical H. Below a dashed line, a table of qubits per patch: at distance 3, 5 and 7, the surface code needs 17, 49 and 97 qubits and the color code 13, 37 and 73.
Figure 1: Smaller patch, easier gates. At the same distance the color code uses fewer qubits than the common surface code layout, and applying the same gate to every qubit, shown in red, performs that gate on the logical qubit. Helper counts follow one trapped-ion layout; positions are schematic.

But fewer qubits per distance is not the same as fewer qubits per result. In that team’s simulations at error rates expected soon, the two codes needed comparable numbers of qubits to reach the same logical error rate, with the color code slightly ahead only at very low targets.2

Easier logic

The color code’s bigger advantage is gates. Every single-qubit gate of the Clifford family, the easy steps that do not need magic states, can be done transversally: apply the gate to each physical qubit separately, and the logical qubit gets the same gate.5 A logical gate between two blocks can be done the same way.5 In one experiment, transversal gates added an error of about 0.0027, less than one idle round of error correction.2

That is why magic stateSpecial resource states that a fault-tolerant computer consumes to perform the operations it cannot do directly. cultivation starts in a small color code.4 Cultivation checks a fresh magic state using exactly these easy gates, then moves the survivor into a surface code.4 A recent experiment did this on a distance-3 color code, moving the state into a distance-5 surface code.3

The price, and the results

Each color code check usually touches six qubits rather than four, which is harder to wire on a flat chip.2 And each data qubit sits in three checks of each kind instead of two. That breaks the pairing trick behind the surface code’s fast decodersThe classical algorithm that reads the pattern of error-correction alarms and bets on which errors most likely caused them.: one error lights up three alarms, not two.2 The best alternatives can be slow.1 The surface code is also prized for its high thresholdThe error rate below which making an error-correcting code bigger starts to help instead of hurt., and the two codes’ thresholds differ.2

Two experiments show where things stand. A 2025 superconducting color code cut errors by a factor of about 1.6 from distance 3 to 5.2 An October 2026 trapped-ion preprint cut them about 12-fold with each step from distance 3 to 7, from about 5 in 10,000 per round to about 5 in a million.1 Fixes for leakageAn error in which a qubit leaves the two states used as 0 and 1 and ends up in another state of the physical system. did much of that work.1

The fine print: the distance-7 point rests on three failures, each run lasted 20 rounds, decoding was done after the run, and the authors list magic states as “what remains.”1

How to read it

When you read “color code,” ask: how fast do errors fall per size step, was decoding live, and were magic states included? Each piece that scales is progress; none of it yet adds up to a working fault-tolerantThe milestone where a quantum computer can run long calculations correctly despite ongoing errors. It is the field’s holy grail. machine.

Sources

  1. A. Lavasani, A. P. Reed, J. M. Dreiling, et al. (Quantinuum), “Quantum error correction well below the color code threshold,” preprint, arXiv:2610.24077 (October 16, 2026). (Distance 3, 5, 7 on a trapped-ion processor; 13, 37, 73 qubits per memory; logical error per round 5.5 × 10⁻⁴, 3.8 × 10⁻⁵, 5 × 10⁻⁶, Λ = 12; distance 7 from 3 failures; 20 rounds; offline decoding, best decoder “not fast enough” for real time; whole Clifford group transversal; leakage repump 4x and 8x better; magic states are “what remains.”) ↩
  2. N. Lacroix, A. Bourassa, F. J. H. Heras, L. M. Zhang, et al. (Google Quantum AI), “Scaling and logic in the color code on a superconducting quantum processor,” Nature 645, 614 (2025). arXiv:2412.14256. (Surface code “offers a high error threshold”; color code “enables much more efficient logic” but needs harder stabilizer measurements and decoding; weight-6 checks; surface code about 25% more qubits at fixed distance; different thresholds; comparable qubit counts at near-term error rates; three stabilizers per basis per data qubit, so matching decoders cannot be used directly; Λ(3/5) = 1.56; transversal Cliffords add 0.0027 error.) ↩
  3. E. Rosenfeld, C. Gidney, et al. (Google Quantum AI and collaborators), “Magic state cultivation on a superconducting quantum processor,” Science (published online October 15, 2026), DOI: 10.1126/science.aee7961; preprint arXiv:2512.13908 (December 2025). (Cultivation begins in a distance-3 color code, whose logical single-qubit gates are transversal; the state is grafted into a distance-5 surface code; error reduced by a factor of 40, fidelity 0.9999 keeping 8% of attempts.) ↩
  4. C. Gidney, N. Shutty, and C. Jones (Google Quantum AI), “Magic state cultivation: growing T states as cheap as CNOT gates,” preprint, arXiv:2409.17595 (2024). (The color code’s transversal Clifford gates let an injected T state be cross-checked in place.) ↩
  5. H. Bombin and M. A. Martin-Delgado, “Topological quantum distillation,” Physical Review Letters 97, 180501 (2006). arXiv:quant-ph/0605138. (Color codes implement the whole Clifford group without selective addressing of qubits.) ↩