Clément Poirson, Joschka Roffe, Robert I. Booth (May 05 2025).
Abstract: We introduce a framework for implementing logic in CSS-style quantum error correction codes, building on the surgery methods of Cowtan and Burton [CB24]. Our approach offers a systematic methodology for designing and analysing surgery protocols. At the physical level, we introduce the concept of subcodes, which encapsulate all the necessary data for performing surgery. At the logical level, leveraging homological algebra, subcodes enable us to track the logical operations induced by any surgery protocol, regardless of the choice of logical operator basis. In particular, we make no assumptions on the structure of the logical operators of the codes, eschew the irreducibility assumption that has been necessary in other formulations of surgery for CSS codes [Coh+22; Cro+24; ZL24]. As a proof of concept, we develop a surgery protocol inspired by lattice surgery that implements a logical CNOT gate between any two logical qubits. Applicable to any CSS code, this protocol is highly versatile and we argue the fault-tolerance.