Input. Control and target in an arbitrary joint state ; an ancilla patch .
Procedure.
- Prepare in .
- Measure (merge and split with ); outcome .
- Measure (merge and split with ); outcome .
- Measure in the basis; outcome .
- Record the corrections if and if in the Pauli frame.
Output. after the corrections. Each of the eight outcome triples occurs with probability , independent of the input.
Why it works. Write . With in , the measurement with outcome leaves with : the ancilla now copies the control in the basis, up to a known flip. Measuring projects onto -type correlations, which, followed by the measurement of , teleports the parity of the ancilla onto the target: the target becomes with , and a phase appears exactly when . Removing and leaves . The correction rule above was also checked by direct state-vector computation over all eight outcome triples.
Cost. Steps 2 and 3 do not commute (they share with and ), so they are sequential: two merges of about code cycles each, plus single-patch preparation and measurement, which take no extra rounds in the accounting of Litinski. Measurement sequences of this kind underlie the lattice-surgery CNOT of Horsman and co-authors. The layout needs the ancilla patch adjacent to both the control and the target.