Skip to main content
KetQat

Appearance

Algorithm · advanced

Logical CNOT by lattice surgery

A CNOT between two surface-code patches from an ancilla patch in the plus state, a ZZ measurement between control and ancilla, an XX measurement between ancilla and target, and a Z measurement of the ancilla, followed by Pauli corrections tracked in software.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Input. Control CC and target TT in an arbitrary joint state ∣ψ⟩CT\ket{\psi}_{CT}; an ancilla patch AA.

Procedure.

  1. Prepare AA in ∣+⟩\ket{+}.
  2. Measure ZCZAZ_C Z_A (merge and split CC with AA); outcome s1s_1.
  3. Measure XAXTX_A X_T (merge and split AA with TT); outcome s2s_2.
  4. Measure AA in the ZZ basis; outcome s3s_3.
  5. Record the corrections ZCZ_C if s2=−1s_2 = -1 and XTX_T if s1s3=−1s_1 s_3 = -1 in the Pauli frame.

Output. CNOTC→T∣ψ⟩CT\mathrm{CNOT}_{C \to T} \ket{\psi}_{CT} after the corrections. Each of the eight outcome triples occurs with probability 1/81/8, independent of the input.

Why it works. Write ∣ψ⟩=∑c,tψct∣c⟩C∣t⟩T\ket{\psi} = \sum_{c,t} \psi_{ct} \ket{c}_C \ket{t}_T. With AA in ∣+⟩\ket{+}, the ZCZAZ_C Z_A measurement with outcome s1s_1 leaves ∑ψct∣c⟩C∣c⊕a1⟩A∣t⟩T\sum \psi_{ct} \ket{c}_C \ket{c \oplus a_1}_A \ket{t}_T with (−1)a1=s1(-1)^{a_1} = s_1: the ancilla now copies the control in the ZZ basis, up to a known flip. Measuring XAXTX_A X_T projects ATA T onto ∣++⟩+s2∣−−⟩\ket{++}+s_2\ket{--}-type correlations, which, followed by the ZZ measurement of AA, teleports the parity of the ancilla onto the target: the target becomes ∣t⊕c⊕a1⊕a3⟩\ket{t \oplus c \oplus a_1 \oplus a_3} with (−1)a3=s3(-1)^{a_3} = s_3, and a phase (−1)c(-1)^{c} appears exactly when s2=−1s_2 = -1. Removing XTa1⊕a3X_T^{a_1 \oplus a_3} and ZC[s2=−1]Z_C^{[s_2 = -1]} leaves ∑ψct∣c⟩∣t⊕c⟩\sum \psi_{ct} \ket{c}\ket{t \oplus c}. 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 AA with ZAZ_A and XAX_A), so they are sequential: two merges of about dd 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.

Holds when

  • Ideal logical preparations and logical Pauli product measurements (in a surface-code machine, merges and splits held for about dd rounds each).
Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Dominic Horsman, Austin G. Fowler, Simon Devitt, Rodney Van Meter (2012). Surface code quantum computing by lattice surgery. New Journal of Physics 14, 123011. doi:10.1088/1367-2630/14/12/123011arXiv:1111.4022
  2. Daniel Litinski (2019). A Game of Surface Codes: Large-Scale Quantum Computing with Lattice Surgery. Quantum 3, 128. doi:10.22331/q-2019-03-05-128arXiv:1808.02892

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Procedure and correction rule (Z_C if s2 = -1, X_T if s1 s3 = -1) verified by state-vector simulation for a random input over all eight outcome triples, each with probability 1/8; the non-commutation of steps 2 and 3 checked; procedure is the standard ZZ/XX lattice-surgery CNOT of Horsman et al. (arXiv:1111.4022) and Litinski (arXiv:1808.02892).

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 9ced4fe75b5b649e. Source file knowledge/records/algorithm/lattice-surgery-cnot.md in the content repository (readable there once it is public).