Lattice surgery
Lattice surgery performs logical operations by temporarily changing boundaries and measuring joint logical observables of adjacent topological code patches.
On this page
Explanation and significance
The method turns geometry and repeated parity measurements into encoded gates. Instead of moving every data qubit through a long physical gate sequence, one merges or couples patch boundaries, interprets the new check information and then separates patches. The recorded parity outcome determines a logical-frame update. A useful explanation focuses on the measured logical operator and the retained encoded degrees of freedom rather than picturing qubits as objects being literally cut apart.
Mechanism and mathematical structure
A joint Z_L⊗Z_L measurement projects two encoded qubits into an even or odd logical parity sector with projectors P_±=(I±Z_L⊗Z_L)/2. A joint X_L⊗X_L measurement has analogous projectors. Together with prepared ancillas and logical single-qubit measurements, such parity operations implement entangling Clifford gates. Fault tolerance requires enough repeated rounds and boundary design to distinguish measurement faults from data faults while preserving the desired distance.
Fully worked reference example
Take two logical |+> states, so |psi>=(|00>+|01>+|10>+|11>)/2. Measuring Z_LZ_L gives +1 with probability 1/2 and leaves (|00>+|11>)/sqrt(2); outcome -1 also has probability 1/2 and leaves (|01>+|10>)/sqrt(2). Applying or tracking X on the second logical qubit converts the odd state to the even Bell state. The parity measurement has generated entanglement without individually measuring either logical Z value. This two-qubit algebra is the operation that the physical boundary protocol must realize; it does not by itself specify a fault-tolerant lattice schedule.
Limits and misconceptions
One round of noisy boundary measurements is generally insufficient to claim a protected operation. Include merge, split and idle time, additional patch area and decoder changes in resource estimates. Logical parity measurement is not equivalent to measuring both logical qubits separately and multiplying the results: separate measurements reveal more information and destroy different coherences.
Scientific relationships
Is a method for fault-tolerant logical operations on topological codes. Uses surface-code or related patch geometry and syndrome decoding. Is an alternative to braiding defects or transversal interactions for specified logical tasks.
Historical context
The lattice-surgery preprint was submitted in November 2011; the cited New Journal of Physics article was published on December 7, 2012.
A complete logical CNOT from three parity measurements
Let c be a control logical qubit, t a target, and a an ancillary logical qubit prepared in |+>. Measure Z_c Z_a with binary outcome m1, where eigenvalue is (-1)^m1. Then measure X_a X_t with outcome m2 in the same convention. Finally measure Z_a with outcome m3. After the measurements, apply or track Z_c^m2 on the control and X_t^(m1 XOR m3) on the target. The net operation is logical CNOT from c to t.
The derivation can be followed on a computational-basis input |c,t>. The first parity measurement restricts the ancilla bit to a=c XOR m1. The second measurement applies a projector proportional to I+(-1)^m2 X_a X_t, creating two terms indexed by u=0 or 1. The final ancilla measurement selects u=c XOR m1 XOR m3. Therefore the target becomes t XOR c XOR m1 XOR m3, while the branch amplitude gains (-1)^(m2 u).
Separating that phase gives (-1)^(m2 c) times a branch-dependent global sign. The control correction Z_c^m2 cancels the c-dependent phase, and the target correction X_t^(m1 XOR m3) removes the extra bit flip. What remains is |c,t XOR c>. Because the derivation preserves relative amplitudes for arbitrary superpositions of basis inputs, it establishes the quantum gate, not merely a classical truth table. Each triple of outcomes has probability one-eighth in the ideal protocol.
Why the ancilla measurements do not reveal the data
The first joint parity measurement relates the ancilla to the control without revealing the control's individual Z value. The second joint measurement uses a complementary ancilla observable and the target. The final ancilla outcome combines with earlier outcomes to determine a byproduct correction. The full three-bit record is independent of the input logical state in the ideal construction, so it supplies correction information without leaking the unknown amplitudes.
Measuring Z_c and Z_a separately at the first step would reveal c and destroy control superpositions. Replacing a joint logical measurement by separately measured factors is therefore not a valid implementation shortcut. Similarly, the physical extraction circuits must preserve coherence inside each measured parity eigenspace. Lattice surgery realizes these joint observables through temporarily modified boundary checks; the algebra above specifies what those physical procedures must achieve.
The order matters because the two joint observables share the ancilla and anticommute there. They are intentionally measured sequentially as part of a gate protocol, not imposed as simultaneous stabilizer constraints on one static code. Treating every intermediate check outcome as a permanent code stabilizer would misdescribe the evolving encoded space.
Physical fault paths during a merge and split
When patches merge, new boundary checks may have initially random individual values even though a product of their outcomes carries the desired logical parity. Repeated measurements and their temporal correlations distinguish physical faults from those legitimate initialization values. When patches split, the interpretation of boundary data changes again. A decoder designed for a stationary isolated patch is not automatically valid throughout these transitions.
One dangerous mechanism is an erroneous inferred joint-parity result, which applies the wrong byproduct to otherwise healthy logical data. Another is a data-error path that crosses the changing boundary and becomes a nontrivial logical string. Ancilla hook propagation, leakage persisting across several rounds, and correlations from simultaneous boundary gates can couple these mechanisms. The relevant circuit distance must include the full merge, hold, split, and final readout schedule.
A logical parity operation can also consume spatial buffer regions or an ancillary patch. Comparing only the two original data patches omits that workspace. If a surgery layout uses a narrow connecting region, its width and boundary placement can determine the shortest error path. Calling the operation distance d because the separated input patches each had distance d is insufficient without checking the joined geometry.
A transparent space-time accounting example
Take three standard rotated distance-seven patches, each with 49 data qubits and 48 check ancillas under the basic one-ancilla-per-check accounting. Their combined baseline inventory is 291 physical components. Suppose a chosen illustrative implementation assigns seven rounds to each of the two joint-parity stages and one round-equivalent to final ancilla readout, with one microsecond per round. Its stated duration is fifteen microseconds and its baseline patch occupancy is 291 times fifteen=4,365 qubit-microseconds.
This count excludes any connecting strip, extra boundary ancillas, leakage-removal components, routing time, and preparation before the declared interval. Those exclusions define the example's accounting boundary and prevent its result from being mistaken for a complete architecture estimate. A different verified schedule can require additional rounds or overlapping operations. The algebraic CNOT has a fixed logical meaning; its physical space-time cost depends on the implementation.
Sources
Verification scope
Citation identity checked ·
Preserve theoretical, simulated and experimentally demonstrated scope. No present-day performance ranking inferred.
Verification scope
Citation identity checked ·
Architecture and surface-code tutorial; numerical thresholds remain model-specific.