Quantum error-correction systems use extra physical qubits to protect information stored in logical qubits. To correct errors, a decoder examines the pattern of triggered checks and identifies the most likely set of physical-qubit errors that produced it.

Researchers proved that finding the smallest such error set for the hexagonal colour code is NP-hard. This contrasts with the surface code, for which exact decoding can be performed in polynomial time using a graph-matching method.