A compilation framework designs circuits around a quantum computer’s hardware while preserving logical operations in stabilizer codes.
The framework compiles logical Clifford operations—basic transformations used in many quantum circuits—directly into physical circuits for stabilizer error-correcting codes. It treats circuit construction as a discrete optimization problem, choosing among equivalent implementations to minimize controlled-Z, or CZ, gates while accounting for which physical qubits can interact.
The researchers tested the approach on several codes. They built the full set of logical Clifford operations for the [[4, 2, 2]] code under different connectivity limits, a logical controlled-NOT operation for the [[12, 2, 3]] twisted toric code, and weakly fault-tolerant logical Hadamard circuits for the [[8, 3, 2]] color code. They also released an open-source Python implementation.
The circuits they built
The researchers showed that compiling a logical Clifford operation into physical gates can be written as an integer optimization problem that includes hardware connectivity and the different equivalent implementations allowed by a code’s stabilizers. Their methods scaled to at least 16 physical qubits in the reported demonstrations.
For the [[8, 3, 2]] color code, a brute-force search produced several flag-gadget circuits for weak fault tolerance, including logical Hadamard circuits using a very small number of physical two-qubit gates. Circuit-level noise simulations found that these constructions used fewer auxiliary qubits and had lower logical error rates than the teleportation-based approaches used for comparison in the study’s simulations.
Why fewer gates matter
Logical operations are a major source of resource demands in quantum error correction. Circuits with fewer two-qubit gates and fewer auxiliary qubits could make it easier to implement encoded operations on hardware with limited connections between qubits.
The work is particularly relevant to early experiments with the [[8, 3, 2]] code, where the authors say efficient weakly fault-tolerant Hadamard implementations had been lacking. Designing an entire logical circuit at once, rather than assembling it from separately optimized pieces, also gives researchers a way to account for hardware constraints during compilation.
// Source
npj Quantum Information · 2026 · DOI: 10.1038/s41534-026-01404-x
Authors: Eric J. Kuehnke, Kyano Levi, Joschka Roffe, Jens Eisert