Research Explained · Error Correction
Surface Code Quantum Computing by Lattice Surgery
Clare Horsman, Austin G. Fowler, Simon Devitt, and Rodney Van Meter
Keio University; University of Melbourne; National Institute of Informatics, Japan; and collaborating institutions · 2012 · Difficulty ★★★★★
Reference
Horsman, C., Fowler, A. G., Devitt, S., & Van Meter, R. (2012). Surface code quantum computing by lattice surgery. New Journal of Physics, 14, 123011. arXiv:1111.4022.
Preprint: arXiv:1111.4022
This page is an independent explanation. For exact wording, figures, and data, read the original paper.
The short version
The authors show how to perform logical operations between surface-code qubits by merging and splitting patches of the code, an approach called lattice surgery. It replaces the braiding of defects, is easier to implement, and is now the standard way to compute with the surface code.
Key findings
- A logical qubit can be a rectangular patch of surface code with specified boundaries, and operations are done by changing which stabilizers are measured along the edges.
- Merging two patches by measuring the joint stabilizers along their shared boundary measures the product of the logical operators, and splitting them again reverses it.
- A sequence of merges and splits implements a logical CNOT gate and other Clifford operations, using only nearest-neighbor operations on a planar lattice.
- The approach needs fewer qubits and has simpler layouts than defect braiding.
Background: why this paper was written
In the toric code and early surface code proposals, logical qubits were encoded in holes, called defects, in the lattice, and gates were performed by moving defects around each other, in analogy with braiding of anyons. Braiding gives a CNOT gate but requires a large lattice area, with space for the defects to move, and the time is proportional to the code distance.
Planar surface codes with boundaries, introduced by Bravyi and Kitaev in 1998, allow logical qubits to be encoded in patches of the lattice. The question was how to perform operations between such patches without needing the large layouts of braiding. Horsman and coauthors, who were part of an international group with Fowler at Santa Barbara and Van Meter at Keio, found a way.
What the researchers did
A patch of surface code has two types of boundaries, rough and smooth, which determine the logical operators. The logical X operator is a string of Pauli X operators across the patch from one boundary of one type to the other, and the logical Z operator is a string of Pauli Z operators across the other pair of boundaries. A patch holds one logical qubit.
In a merge, two patches are brought adjacent, with a line of qubits between them. By measuring the stabilizers that straddle the gap, in particular the ones that span the two patches, the two patches are joined into a single larger patch. Depending on the type of boundary, this measures the product of the two logical Z operators, a ZZ measurement, or the product of the logical X operators. The outcome of this measurement is a random bit, known from the syndrome data, and the post-merge state is the code state with the logical information entangled in the measured way.
A split is the reverse: the stabilizers along the middle are no longer measured, and the patch becomes two. A logical CNOT between a control and a target patch can be done by a sequence of merges and splits with a helper patch, with measurements of ZZ and XX operators and Pauli corrections based on the outcomes. The authors also describe state initialization and measurement, and describe how the operations can be scheduled and laid out on a two-dimensional plane. They estimate that the total number of physical qubits is lower than for braiding, with a time per operation of the order of the code distance in cycles.
Results
The method gives a complete set of Clifford operations on surface-code logical qubits using only local operations on a planar lattice.
It was a key element in subsequent architectures, such as the compilation of Litinski's A Game of Surface Codes in 2019, which provides a framework for resource estimation and optimization.
Experimental demonstrations of lattice surgery have followed, including a small-scale implementation with superconducting qubits and ion traps in 2023 to 2025.
Key facts and numbers
| Item | Detail |
|---|---|
| Year and venue | 2012, New Journal of Physics |
| Operations | Merge and split of planar surface-code patches |
| Logical gates | CNOT and other Clifford operations by joint ZZ and XX measurements |
| Time per merge | About d rounds of syndrome measurement |
| Replaces | Defect braiding in the toric code |
Limitations and caveats
Lattice surgery gives Clifford gates only. Non-Clifford gates need magic states, which add costs, and the layout must include magic state factories.
Each merge takes about d rounds of syndrome measurement, with d the code distance, so logical operations are slow compared with the physical gate times.
The planar layout requires patches to be adjacent, so the routing of logical qubits requires space and a schedule.
Why it matters
Lattice surgery is the standard way to compute with the surface code and is the basis of resource estimates for fault-tolerant algorithms, including the factoring estimates of Gidney and Ekerå, and of the logical operation experiments being planned by Google and others.
What happened next
The paper is cited in nearly every resource estimate for fault-tolerant algorithms and in the design of surface-code architectures. It also underlies the generalization to lattice surgery for qLDPC codes, studied in 2023 to 2025 to support IBM's gross-code architecture.
The idea of changing the measured stabilizers to manipulate logical information is also at the heart of code deformation and of the more recent work on Floquet codes and dynamic circuits.
How to read the original paper
The paper is well illustrated with diagrams of the merges and splits. Litinski's A Game of Surface Codes is an accessible follow-up on how to use lattice surgery in practice.
The surface code, logical qubit, and magic state distillation pages on this site give context.
Original abstract (paraphrased)
The paper describes lattice surgery, a method for performing fault-tolerant logical operations on surface-code qubits by merging and splitting patches of the planar code. By changing the set of stabilizers measured at the boundary between code blocks, the logical operators of the patches are measured jointly, which yields a logical CNOT with fewer physical resources than the braiding of defects.
Frequently asked questions
What is lattice surgery?
A way of performing logical operations on surface-code qubits by merging and splitting patches of the code, measuring joint logical operators.
Why is it better than braiding?
It needs less space and simpler layouts, and uses only nearest-neighbor operations on a flat lattice.
Can lattice surgery do all gates?
It does Clifford gates. Non-Clifford gates require magic states.
Keep exploring
- Algorithm: Quantum Error-Correcting Codes (Shor Code, Surface Code)
- Algorithm: Shor's Algorithm
- Hardware: Google Willow
- Dictionary: Surface Code
- Dictionary: Logical Qubit
- Dictionary: Magic State Distillation
- Dictionary: Code Distance
- Industry: Quantum Computing for Cybersecurity
Explanations on this page summarize published work for education (last reviewed September 30, 2026). Numbers are taken from the cited paper or from widely reported follow-up work, and later results may have updated or challenged them. Check the reference above before citing.