WorksPhysics and Astronomy
Loss-tolerant distributed lattice surgery using fusion networks
Abstract
Networking matter-based quantum processing units (QPUs) offers a promising route to scaling fault-tolerant quantum computers. This requires distributed logical operations to be performed across photonic links, where noise is characteristically different from and stronger than in local QPUs owing to photon loss and probabilistic linear-optical operations. Measurement- and fusion-based quantum computing are designed to be robust against loss and probabilistic photonic operations, suggesting they could complement circuit-based error correction at the interface between networked QPUs. We use ZX calculus transformations to construct hybrid syndrome extraction protocols and apply them to distributed rotated surface code lattice surgery, demonstrating that several protocols attain a interface-erasure threshold when local noise is absent, including circuit-based lattice surgery using fused Bell pairs and hybrid protocols using linear cluster states. Relative to a straight Bell-pair interface geometry, the hybrid protocols increase the merge-observable interface distance from to and restore the perpendicular-observable interface distance from to . We calculate how the threshold decreases when using truncated resource states and map correctable regions under resource-state errors, local circuit noise, and fusion erasure. We then convert these erasure thresholds into photon-loss thresholds and probe subthreshold performance using fusion boosting. At circuit and resource-state error rates of , local errors largely mask the interface-distance advantage. As local noise is reduced to and below, the linear-chain protocols improve more rapidly with decreasing erasure, suggesting that interface distance enhancements are effective in low local noise regimes.
Introduction
Scaling quantum computers to practically relevant logical qubit counts at low error rates requires more qubits than are typically expected to fit on a single quantum processing unit (QPU) [1, 2, 3, 4]. This has motivated interest in distributed quantum computing (DQC) as a model for scalable fault-tolerant quantum computation (FTQC), in which multiple QPUs containing matter-based qubits are connected via a photonic network [5, 6, 7]. Combining matter-based qubits with photons leads to noise asymmetry. Noise in matter-based processors is dominated by decoherence and imperfect gates [8] – typically modelled as random Pauli errors in a circuit-level noise model, while noise in photonic networks is dominated by loss of photons due to absorption in fibre and probabilistic linear-optical gates [9].
In photonics, loss of a qubit can be heralded by measurements, making it an instance of an erasure [10]. Erasures provide more information than computational errors alone and can therefore be tolerated at much higher rates. The quantum capacity of the erasure channel vanishes at a rate of 50%, setting an upper bound on protecting a qubit in transmission [11, 12]. Varnava et al. proposed a measurement-based quantum computing (MBQC) [13] scheme that reaches the 50% limit using adaptive measurements on tree-like cluster states [14] and provided a procedure for constructing the necessary cluster states using linear optics [15, 16]. Stace et al. showed that two-dimensional planar surface codes [17, 18] exhibit erasure thresholds reaching up to 50% as predicted by bond percolation on square lattices [19] and investigated the threshold degradation in the presence of computational errors [20]. Barrett and Stace extended this to the three-dimensional topological RHG cluster state [21, 22], obtaining a 24.9% erasure threshold from the bond-percolation threshold of the corresponding cubic lattice [23]. Alternative cluster state geometries can push thresholds up to 50%, and can even exceed 50% if the cluster topology is modified to favour a particular logical observable (though this sacrifices protection on a complementary observable) [24].
Cluster state erasure thresholds are highly idealised and do not account for cluster state preparation. Recently, fusion-based quantum computing (FBQC) [25] has emerged as a variant of MBQC tailored to photonics that decomposes cluster states into smaller resource states connected by linear-optical fusion measurements [26]. In this way, it implements the cluster state model while also partially handling errors in preparation. Erasure thresholds in FBQC are dependent on the exact decomposition of the cluster into resource states – for example, the rotated surface code can be decomposed into a network of six-qubit ring resource states, leading to a threshold of 12% for independently erased fusion outcomes [25]. Higher thresholds can be achieved using pre-encoded resource states [27], alternative codes such as foliated Floquet codes and graph codes [28, 29] or by dynamically exploiting error biases [30, 31]. Since linearoptical fusions have an inherent failure probability, the corresponding loss thresholds are lower, though the exact translation depends on the implementation of the fusion measurement.
Decomposing cluster states into smaller resource states enables distributed computation, in which systems are scaled via large linear-optical networks of resource state generators [32, 33]. In contrast, matter-based DQC systems reserve photonic networks for communication between QPUs that process information primarily locally.2 When QPUs are only large enough to store a small number of logical qubits, non-local gates must be performed via the network, typically via teleported transversal gates [39, 40], lattice surgery [41, 42, 43, 44, 45, 46, 47] or logical entanglement distillation [48, 49, 50, 51]. Performing distributed lattice surgery requires some boundary stabiliser measurements to be performed non-locally. This can be done using distributed stabiliser measurement gadgets that either teleport non-local two-qubit gates [52], prepare multi-qubit entangled ancillas [44, 53, 54], or jointly measure distributed ancillas using fusions [55]. Ramette
in which most operations are performed non-locally between few-qubit modules [34, 35, 36, 37, 38]. et al. demonstrated that, in surface-code lattice surgery, error rates of 10% can be tolerated at the interface with minimal effect on the local threshold [42]. Shalby et al. constructed precise circuits for interface stabiliser measurements that avoid distance-reducing hook errors, verifying that local circuit-noise thresholds are maintained with interface noise an order of magnitude stronger than the local noise [56]. Similar methods were proposed by Jacinto et al. in the context of large-scale DQC resource estimation [44]. Alternatively, Haug et al. proposed Bell measurements for interface stabiliser measurements and found a 17.4% link-error threshold when the local error rate was fixed at 0.1% [55]. Additional techniques to preserve lattice surgery distance have recently been proposed by Schmidt et al. [47] and Thakur et al. [57] based on alternative decompositions of weight-4 boundary stabilisers. These works all follow the paradigm of a “black-box” network, accounting for network noise using augmented phenomenological noise [42], elevated depolarisation on inter-QPU gates [56], or depolarisation on entangled resource states [44, 47, 55]. None of these models explicitly treat loss and probabilistic operations in the network. By abstracting away network details, heralding information is either discarded or assumed to be used for post-selection. This contrasts with FBQC, in which loss and fusion failures are treated as erasures to be decoded in real time.
A natural question to ask is whether the advantages of loss tolerance in photonic MBQC can be exploited alongside circuit-based DQC. A number of related proposals combine circuit-, measurement- and fusion-based methods at different architectural levels. These include spin–optical hardware for circuit-based syndrome extraction [58], deterministic gates combined with fusions to construct cluster states [59], MBQC-like teleportation through networks of small fault-tolerant nodes [60], and encoded-fusion subsystems that supply logical Bell pairs or execute subroutines for CBQC modules [61]. These approaches combine paradigms across hardware components, computational stages or logical subsystems. While techniques for converting full protocols between circuit- and measurement-based error correction have been developed [62, 63, 64, 65], the design space between the two paradigms can be expanded by considering protocols which mix the two at the level of syndrome extraction.
In this work, we construct hybrid syndrome extraction protocols using the ZX calculus [66] and the Pauli web formalism introduced by Bombín et al. [64]. We extend the constructions of Ref. [64] to build hybrid protocols for lattice surgery between distributed logical qubits, replacing the sequential measurement of merge stabilisers with equivalent cluster states that locally interact with ancillary qubits. We provide decompositions of cluster state interfaces into fusion networks with varying resource state sizes. Our constructions are illustrated in Figure 1. Additionally, we decompose standard circuit-based protocols for distributed lattice surgery into variants using fusions of auxiliary Bell pairs. We analytically predict the fusion-erasure thresholds for our circuit-based protocols and hybrid protocols with varying resource state sizes. Using a heterogeneous error model that combines circuit-level depolarising noise on matter qubits with resource-state errors, photon loss and fusion failures, we analyse the thresholds achievable for both local and non-local noise and explore subthreshold performance. Through this, we show:

Figure 1. Overview of the construction. A lattice surgery merge, carried from the logical level down to a hybrid protocol designed for heterogeneous hardware. At the logical level the merge implements a joint measurement, whose outcome carries the joint observable (red web). This maps to an abstract syndrome extraction diagram with Pauli webs corresponding to logical observables and detecting regions (Section III). Using web-preserving transformations (Section III B) the seam is split and transformed into a graph-like sub-diagram (Section IV C 1) which can be split into resource state components. Measurement and world-line annotations fix a hybrid realisation with fusion networks at the interface and circuit-based syndrome extraction elsewhere. The diagram is then further mapped to heterogeneous hardware fixing an error model and decoder.
Under negligible local noise, independent fusion outcome erasure thresholds of 50% are achievable in the network for distributed lattice surgery, both with an interface mediated by fused Bell pairs and with a cluster-state interface decomposed into a fusion network of linear-chain resource states.
Relative to a straight surgery interface geometry using Bell pairs, the fusion-network interface approximately doubles the interface distances on both joint observables: for the merge observable and for the perpendicular observable. The zig-zag geometry [44, 56] for Bell pair interfaces restores the perpendicular distance to though leaves the merge-observable distance at .
Truncating the linear resource states to a fixed size leaves both interface distances unchanged while lowering the erasure threshold predictably, to 38% for eight-qubit chains and 32% for five-qubit chains.
Subthreshold performance exhibits a crossover between local-error and interface-erasure-dominated regimes. With local noise rates of , the increased interface distance has only a small effect. As local noise decreases to and below, the effect becomes more pronounced and hybrid protocols provide better suppression of the merge observable than both Bell-pair interfaces, though the perpendicular observable remains best protected by the zig-zag Bell pair interface.
This work serves as an initial demonstration of the benefits of hybrid syndrome extraction protocols, highlighting the potential to tailor error correction schemes towards dominant noise sources such as photon loss. The paper is organised as follows. Section II reviews the ZX calculus and Pauli webs. Section III introduces syndrome extraction diagrams and web-preserving transformations, and Sec. IV develops their hybrid realisations and applies them to distributed lattice surgery. Section V describes resource states and interface erasure models. Sections VI and VII present the noise models, simulations, and results, followed by a discussion and conclusion.
Preliminaries
ZX calculus
The ZX calculus [66] is a graphical language for describing and transforming quantum circuits [67] and has proven to be useful for describing quantum error correction [68]. We assume basic familiarity with ZX and provide only the definitions relevant to the constructions of Sections III and IV. For introductions to ZX, and the ZX-instrument notation used here, see van de Wetering [69] and Bombin et al. [64], respectively.
We restrict to the stabiliser fragment of the ZX calculus [70] and confine further to consider only 0 and phases. ZX diagrams are used at two levels: the level of stabiliser measurements [64], at which ZX diagrams represent syndrome extraction circuits, and the level of logical operations [71], at which they represent the higher-level primitives of lattice surgery. The constructions of this work are carried out at the first level; the logical-level description needed for lattice surgery is included for completeness in Section IV D. Throughout, we adopt the extensions introduced by Bombin et al. [64], namely ZX-instruments used for representing classical information and Pauli webs, though provide our own notation and definitions.
The basic relevant components of ZX diagrams are shown in Figure 2. Here we fix the notation used throughout, and provide definitions for Pauli webs. This will provide the basis for defining diagrammatic transformations which preserve the structure of syndrome extraction diagrams while changing the physical realisation of the syndrome extraction.

Figure 2. Node types. The four values of the type map , together with the bold leg of a classical output. Spiders are drawn green () and red () and carry a phase ; Hadamard nodes have degree two, while ports and classical outputs degree one. For the standard ZX calculus and ZX-instrument conventions, see Refs. [64, 69].
ZX diagrams
The constructions of Section III proceed by explicit graphical transformations of ZX diagrams, so we treat a ZX diagram as a decorated graph, similar to the definition of Ref. [72], though restricted to 0 and phases.
Definition 1 (ZX diagram) A ZX diagram is a graph with a type map and a phase map on , where each is either fixed by the diagram or a measurement outcome, subject to and .
The four node types of Definition 1 are shown explicitly in Figure 2. and nodes are green and red spiders respectively, representing tensors in the and bases, nodes are Hadamard gates and nodes are ports, corresponding to the quantum inputs and outputs of the linear map represented by . The ports are labelled as inputs and outputs. Edges incident to ports form the set of boundary edges:
ZX diagrams
An edge is internal if it is not a boundary edge. For a given node , we write for the legs of , so that . Since all Hadamard nodes are degree 2, we will refer to Hadamard edges as the combination of the node and its two legs. Distinct from ports, we define a classical output at a degree-one spider with a colour matching that of its sole neighbour and a phase that is parametrised by a measurement outcome . Following Ref. [64] we draw the classical output as an open bold leg. Classical outputs are used to fix a realisation of a diagram, turning abstract detecting regions into experimental parity checks.
Pauli webs
Pauli webs are an additional element introduced by Bombin et al. [64], which are termed a “graphical overlay notation” to ZX diagrams. Pauli webs display the Clifford properties of a ZX diagram, and can be used to identify stabilisers, detecting regions and logical operators. Pauli webs and analogous notations have been used for various purposes, including construction of Floquet codes [72, 73], fault-tolerant circuit transformations [47, 74] and resource reductions [75, 76], to name a few.
Graphically, a Pauli web is a highlighting of the edges of a ZX diagram obeying the following rules3:
A green (red) spider must have all or none of its legs highlighted green (red).
A green (red) spider must have an even number of legs highlighted red (green).
The leg of a classical output is highlighted if and only if all other legs of its sole neighbour are highlighted in a colour matching that of the neighbour.
Any Hadamard exchanges the two colours between its input and its output.
More formally, we can define a web as an assignment of a Pauli operator to each edge. Specifically, a green edge carries , a red edge carries , and an edge highlighted in both colours carries . Writing the Pauli on edge as up to phase, with , we can define a valid Pauli web as one that obeys the following constraints at each node.
Definition 2 (Pauli web). A Pauli web on a ZX diagram is an assignment such that, at every node with , the -components are constant on the legs of and the -components have even parity,
with and interchanged at nodes with , and such that is exchanged across every node.
The first condition of Eq. (2) gives the all-or-none rule and the second the even-parity rule, while the Hadamard rule is absorbed into the exchange of across an node. The rule for measurement outcomes falls out of the restriction placed on classical outputs. Since a classical-output spider has degree one, the parity rule forbids its leg from being highlighted in a non-matching colour. The all-or-none rule at its neighbour then requires this leg to be highlighted when all other legs of the neighbour are highlighted in its matching colour. Two webs may be added by multiplying their Pauli operators edgewise, which is an addition of over . The set of valid webs on a given diagram, which we write , is closed under this addition and forms a vector space over . For our purposes, we will be interested only in a generating set of webs corresponding to stabilisers, detecting regions and logical operators in syndrome extraction diagrams.
A Pauli web can be interpreted by iterating through the spiders of the diagram and placing the corresponding Pauli contributions on each of their legs [72]. Internal edges receive two contributions, which cancel automatically, while boundary edges receive only one contribution each, which cancel only after being propagated through the diagram. Splitting the boundary edges as we can define the input and output Paulis of a web by
where an empty tensor product is the identity. The boundary operator of is the resulting map from its input Pauli to its output Pauli,
defined without its overall sign. The cancellation of webs is only up to a scalar: a node of phase whose legs are all highlighted in its matching colour contributes a factor . For the phase-free generating webs considered below, these signs arise only from the outcome-dependent phases and are accounted for through the measurement outcomes. The classes of web used throughout this work are distinguished by the input and output support of :
and : a stabiliser (with input and output unchanged, a co-stabiliser), as shown in Figure 3a.
and : a logical operator, as shown in Figure 3b.
: a detecting region, as shown in Figure 3c.
Figure 3. The three classes of Pauli web, distinguished by the input and output support of the boundary operator of Eq. (3): (a) a stabiliser, highlighted on outputs only; (b) a logical operator, highlighted on both inputs and outputs; (c) a detecting region, highlighted on neither, whose highlighted measurement outcomes impose a check.
Where webs have non-trivial support on classical outputs, the measurement outcomes determine either frame updates or parity constraints. We will be interested in the restricted cases in which the generating webs have no edge highlighted in both colours and all spiders (except for classical outputs) are phaseless. In this case, the signs come solely from the classical outputs. Calling the set of classical output vertices whose incident edges are highlighted by , we define the outcome parity
For a detecting region, , and the outcome parity is in the absence of errors. For stabilisers and logical operators, the outcomes supply the sign omitted from Eq. (3), giving the signed boundary map
These outcome-dependent signs determine the relevant Pauli frame updates.
Syndrome extraction diagrams and transformations
Error correction relies on the extraction of error syndromes from measurement outcomes. What changes between circuit-based error correction and measurement-based variations is how the syndromes are extracted. A measurement-based implementation of a code built via foliation [62] has the same detecting regions and logical webs as the circuit-based implementation [64], but a detecting region that is reported by two ancilla outcomes in the circuit-based case is reported by many single-qubit measurements in the measurement-based case. Likewise, corresponding logical webs retain the same boundary correlations, while the measurement outcomes determining their signs can differ between implementations.
Since the same detecting region can be reported by different sets of measurement outcomes, syndrome extraction protocols need not commit to one paradigm throughout. Using a set of diagrammatic transformations which preserve the Pauli webs of a syndrome extraction diagram, we can ensure that detecting regions and logical webs are preserved.
Syndrome extraction diagrams
For each chosen CSS stabiliser generator , the phase-free ZX gadget in Figure 4a represents the positive-eigenspace projector
Figure 4. Syndrome extraction diagrams and their Pauli webs. (a) Phase-free projector gadgets for a four-qubit -type generator and a two-qubit -type generator, each with a generator spider joined to data spiders. Exchanging spider colours exchanges the generator type. (b) All consecutive measurements of the same Pauli type can be merged into a single layer, and composing layers gives a syndrome extraction diagram (SED), with detecting regions, stabilisers, and logical webs corresponding to the code. A -type detecting region is shown in red, an -type stabiliser from a two-qubit boundary generator in green, and an logical web along the top boundary in green.
up to scalar normalisation. A generator spider is joined to data spiders in the support of : a red generator spider with green data spiders for a -type generator, with the colours exchanged for an -type generator. Data spiders do not necessarily correspond to data qubits – this will depend on the physical realisation chosen later.
Composing projector gadgets in alternating -type and -type layers and fusing all neighbouring spiders of the same colour gives a syndrome extraction diagram (SED). An SED alone does not commit to a realisation for the syndrome extraction, though it provides the core from which specific implementations can be derived. An SED carries three families of Pauli web that our transformations must preserve: 1) two consecutive occurrences of a generator give a detecting region, 2) a web extending from a generator in the last layer of its type to the outputs gives a stabiliser relation, while the corresponding input-supported web in the first layer gives a co-stabiliser relation, and 3) each chosen logical Pauli generator gives a web carrying its correlation from the input to the output boundary – the logical membranes, or correlation surfaces, of [22, 25, 64]. Figure 4b shows a rotated surface code SED, highlighting a -type detecting region in red, an -type stabiliser in green, and an logical web in green.
Without classical outputs, a detecting region does not yet report an experimental parity check – distinguishing different realisations of a code requires additional diagrammatic annotations which will be specified in Section IV A. Before fixing these annotations, it may be necessary to transform the base SED. Before defining realisations, we specify a set of transformations that will be used to locally manipulate the SED while preserving its underlying code structure.
Web-preserving transformations
Starting with a phase-free ZX diagram with no classical outputs, the following graphical transformations preserve the represented map up to the scalar normalisation suppressed here, and importantly preserve the Pauli webs of the diagram. Equality of maps alone does not ensure this – a rewrite can add or remove internal webs [72]. Throughout, input and output ports retain their labels, so their boundary edges can be compared directly.
Definition 3 (Web-preserving transformation) A transformation is web-preserving if it induces a linear bijection such that every web retains the same boundary operator,
Thus each web in maps uniquely to a web in that specifies the same input-to-output Pauli transformation, and addition of webs is preserved. The result of this is that all detecting regions are preserved, and additionally all stabilisers and logical operators continue to represent
correlations between the same operators on their inputs and outputs. This does not by itself establish distance preservation. This depends on a lower level decomposition and a noise model. This is investigated in detail in Refs. [72, 74].
Each rule we consider acts locally on a spider. We establish its web correspondence by fixing the labels on the legs entering the affected region and showing a unique correspondence between the valid internal labellings before and after the rule. Since each rule acts on a spider, we can split the analysis into the cases of matching (web colour on spider legs matches spider colour) and non-matching (web colour on spider legs does not match spider colour) highlight components, which obey independent binary constraints according to Eq. (2) in Definition 2. All illustrated rules also hold with red and green exchanged.
Duality
The duality exchanges the colour of spider and inserts a Hadamard on each of its legs.
matching
non-matching
The corresponding web exchanges its two highlight colours between the spider and the new Hadamards. Each Hadamard exchanges them back, leaving the external labels unchanged. This correspondence is unique and reversible: applying duality twice restores the diagram after cancelling adjacent Hadamard pairs.
Identity insertion
The identity insertion inserts a phase-free degree-two spider of colour on an edge .
matching
non-matching
Any node placed on an edge will have two legs, thus both rules of Eq. (2) are automatically satisfied by highlighting both legs with the same colour as the web at the edge.
Split
Let and partition the legs of spider . The split replaces by two spiders of the same colour, joined by one new edge and inheriting the legs in and , respectively.
matching
non-matching
For the matching highlight component, the new edge is forced to carry the common value on the original legs. For the non-matching component, this splits into two distinct cases. Since the number of highlighted legs in and together must be even, either both have an even number of highlighted legs or both have an odd number. If both have an odd number, then the new edge is forced to be highlighted to restore even parity at both new spiders. If both have an even number, then parity is obeyed after the split without highlighting the new edge, so it remains unhighlighted. The original even-parity rule gives the same parity for , so both new spiders satisfy the web rules. These values are forced, and merging the two spiders reverses the correspondence.
Note that the split is only web-preserving because the two split nodes are joined by a single edge, even though the spider fusion rewrite is valid for any number of legs. If we allowed two edges between and , this would introduce a loop web in the non-matching colour of the node, thus breaking the bijection.
The above transformation is not web-preserving, and its inverse would remove a web. Forbidding these transformations restricts the scope, though ensures that we retain the set of webs corresponding to the original code. Such transformations may be useful in introducing new detecting regions to catch hook errors, particularly in lower level decompositions of local stabiliser measurements [72], though are not used in our constructions.
Any sequence of the transformations introduced and their inverses is web-preserving, since their linear bijections compose and retain the same boundary labels. Classical outcomes and physical realisations are introduced in the next section.
Splitting diagrams and sub-diagram boundaries
Split transformations can be used to isolate subsets of nodes as distinct sub-diagrams, which interact only through sets of boundary edges connecting the sub-diagrams. Let be a non-empty, proper, connected set of spiders in the initial SED, and let denote the remaining spiders. We write for the sub-diagram induced by , using the Hadamard-edge shorthand. Define its boundary edges and boundary spiders by
The sets and describe the boundary between and , while continues to describe the full diagram boundary. The edge boundary is the cut associated with the partition . We say that has a matching boundary if this cut is a matching, so no two boundary edges share an endpoint. Equivalently,
The physical significance of this condition will become clear when the boundary edges are realised in Section IV C1. The following procedure enforces it by splitting each original boundary spider into an inside and an outside component joined by a single edge.
We demonstrate an example splitting of a single surface code detecting region in Figure 5. By choosing such that every spider in is a generator spider, each spider can be split using , where contains its legs leading into and its legs leading into . The two new spiders and inherit these legs and are joined by one new edge. is then updated by retaining in place of , while is retained in the complement. We continue to write , , for the updated diagram and regions. The new set of boundary edges consists of the split edges , one per original boundary spider. These edges have distinct endpoints and hence form a matching, so has a matching boundary.

Figure 5. Splitting a detecting region. (left) An SED with a selected region and a highlighted detecting region. (right) Splitting the boundary generator spiders gives a matching boundary.
Hybrid realisations of syndrome extraction
The previous section introduced syndrome extraction diagrams (SEDs) as the general representation of an error correction protocol for a CSS code. SEDs capture the structure of stabilisers and input/output correlations, though do not commit to a particular realisation of a diagram. We distinguish different realisations of SEDs using two additional features: classical outcomes and world-lines. Classical outcomes convert detecting regions into parity checks on measurement outcomes while world-lines track the temporal evolution of individual qubits. A realisation can still be abstract, and need not tell us the exact decomposition of stabiliser measurements or preparation circuits for resource states, though the specification of world-lines and classical outcomes must provide enough information to commit to either circuit-based, measurement-based or hybrid implementations.
World-lines and classical outcomes
World-lines
To specify physical qubit identity and succession, we optionally add direction to selected quantum edges, inspired by previous works [64, 72, 73]. Edge direction determines the temporal order of operations on the same physical qubit, with the arrow pointing from earlier to later interactions, thus specifying the world-line of the qubit. Formally, we specify world-lines by vertex-disjoint directed paths , where the vertices are distinct and consecutive vertices are joined by quantum edges. Each corresponds to a single qubit and can be written as a sequence of directed edges , where the directed edge means that the qubit acted on at persists and is subsequently acted on at . For a directed edge , if is a port, then the port must be an input, and if is a port, then the port must be an output. Classical output spiders are excluded from the world-lines. Each spider and each edge is part of at most one path. Edges and spiders which do not correspond to a path represent interactions between different qubits. A resource state is a connected sub-diagram with no input ports in which every spider belongs to a distinct world-line containing no other spider. Such a world-line may terminate at that spider or continue to a unique output port.
Classical outcomes
For a spider with no classical output, let attach a matching-colour classical-output spider carrying a measurement outcome bit. Adding a classical output is no longer an equality of linear maps – setting the new bit to zero recovers the original diagram, while setting it to one introduces a phase at .
The new leg cannot carry the non-matching highlight component, by the degree-one output spider’s parity rule. Its matching component is fixed by the all-or-none rule at . Thus every web extends uniquely, and deleting the output leg recovers the original web. This extension is linear and leaves quantum boundary labels unchanged, so outcome introduction is web-preserving in the sense of Definition 3. Measurements change the recorded parity for webs highlighting the new leg. Here the parent has at least one pre-existing leg (adding an output to a disconnected node would create a new trivial web on the classical output), as in the gadgets considered throughout. Attaching a classical output to a generator spider turns its corresponding detecting regions into parity checks. Outcome selects the generator eigenspace with eigenvalue . A detecting region between consecutive occurrences of a generator then reports in the absence of errors, where are the two recorded bits.
Circuit- and measurement-based realisations
A circuit-based realisation of an SED has a data qubit world-line from each input to its corresponding output (defined by the shortest path from a given input to an output), while each ancilla spider lies on a distinct world-line containing no other spider. An ancilla here represents one preparation-and-measurement instance; hardware may be reset and reused in later rounds. The arrows specify the succession of Pauli-measurement gadgets along each data qubit, leaving the gate sequence within each gadget to a further decomposition. The circuit-based realisation of Figure 4b is shown in Figure 6a.

Figure 6. Two realisations of the syndrome extraction diagram: circuit-based (a) and measurement-based (b). In the circuit-based realisation, directed edges represent data-qubit world-lines, while each generator spider lies on a distinct world-line and has a classical output recording its stabiliser measurement outcome. In the measurement-based realisation, each bulk spider lies on a distinct world-line and represents a qubit initialised in , while edges represent gates forming a cluster state and classical outputs record the measurement outcomes.
Alternatively, a measurement-based realisation of an SED can be obtained first by applying duality to all red spiders in the base SED. This converts the diagram into graph-like form, since it contains only green spiders and Hadamard edges [77]. Following this, each spider is assigned to a distinct world-line containing no other spider and is given a classical output [64]. The resulting ZX diagram is a cluster state where each spider is a qubit initialised in and each internal edge is a gate, or a cluster bond [78]. We use the term cluster state to refer to a graph-like resource state diagram. The addition of classical outputs completes the measurement-based realisation – bulk detecting regions acquire an additional four measurement outcomes in their parity checks, and outcomes are added to the frame updates of each logical operator per round. The measurement-based realisation is shown in Figure 6b.
Realisations of transformed SEDs
While the base SED provides a starting point for both circuit-based and measurement-based realisations, architectural constraints may necessitate modifications. For example, an SED that has been transformed using splits could correspond to a circuit-based realisation using distributed entangled ancillas, or a measurement-based realisation where cluster states are decomposed into smaller resource states connected by fusions. Here we define specific realisation procedures for these transformed diagrams, which include the necessary world-line annotations and classical outputs while specifying additional implementation details.
Bell preparation
An SED could be realised across two processors by splitting ancilla nodes along an interface, and preparing them in a Bell state .
matching bell
non-matching bell
The realisation uses the web-preserving identity insertion and split transformations to decompose the Bell preparation, and fixes the paths such that two qubit world-lines connected by a gate are established. The world-lines enforce that the Bell state is prepared before any subsequent operations on the qubits. Adding classical outputs to the two endpoints represents local readouts of the ancillas, with outcome bits and . Matching Pauli webs are preserved by including both outcomes in their parity, while non-matching webs remain unaffected.
Fusion
Alternatively, a split edge can be realised as a joint fusion measurement. A Bell fusion jointly measures the and parity of the two ancillas after the local gates have been performed [25, 26]. The measurement consumes the two incoming qubits and records the eigenvalues of the commuting operators and as and .
matching fusion
non-matching fusion
The fusion realisation is structurally identical to the Bell preparation, though it inverts the world-lines, such that fusion occurs after other operations at the two endpoints, and adds classical outcomes at the end of the world-lines. The resulting webs include either the or outcomes, depending on the colour of the web at the split edge. Fusions thus contribute outcomes to Pauli webs in both matching and non-matching cases. Fusions can be used to measure stabilisers in the circuit-based realisation, as in Ref. [55], though can also be used to decompose cluster states into smaller resource-state components [25].
The fusion takes a different form when the split edge carries a Hadamard, which is the case when duality has been applied to one of the nodes. In this case, the fusion measures the two-qubit operators and instead of and .

Figure 17.
A Hadamard fusion preserves webs in the same way as a Bell fusion, though measures different Pauli operators in the process.
Bell preparations and fusions can be combined to create a lower-level realisation of remote entanglement generation. A Bell pair can be created by fusing two auxiliary Bell pairs in a process known as an entanglement swap.
This will allow us to treat circuit-based protocols using Bell pairs under noise models incorporating loss and fusion failure as in FBQC. We will describe this further in § 2.
Hybrid diagrams and hybrid checks
The circuit-based and measurement-based pictures are two extreme cases of the hybrid realisations of syndrome extraction. Informally, a hybrid SED has a circuit-based region coupled to a measurement-based region, with some detecting regions or logical webs supported across both. To make this definition more formal, we first introduce the notion of a cluster region and the process of clusterisation, which allows us to identify and transform parts of the SED into a graph-like form suitable for measurement-based operations.
Cluster regions and clusterisation
Definition 4 (Cluster region). In a chosen physical realisation, a connected subset of nodes with and with an induced sub-diagram is a cluster region if is a graph-like resource state (a cluster state) and each spider in is connected to an output port, classical output, or fusion.
A fusion consumes each participating resource qubit, so a boundary resource qubit can participate in at most one fusion. Since the boundary-splitting procedure of Section III C ensures that boundary edges form a matching, every boundary spider is incident on exactly one boundary edge by Eq. (16). After each spider in the cluster region is assigned to a distinct world-line, every boundary spider represents a distinct resource qubit participating in exactly one boundary fusion. In order to obtain a cluster region in a graph, we define a clusterisation procedure.
Definition 5 (Clusterisation). A clusterisation of a sub-diagram consists of:
converting into a graph-like form;
assigning each spider in to a distinct world-line containing no other spider;
adding classical outputs to spiders in , and realising edges in as fusions.
A measurement-based realisation is thus obtained by choosing as the full set of nodes. In this case, inputs and outputs become ports for composing together larger diagrams, rather than holding output qubit states. If the purpose of the SED is to prepare a particular state, qubits connected to output ports may be optionally left unmeasured. Additionally, a fusion based decomposition can be obtained by first applying a series of splits to the SED, then applying clusterisation to each sub-diagram .
Hybrid realisation
We can then define a hybrid realisation of an SED as one that contains both a cluster region and a circuit-based extraction region, connected by a matching boundary.
Definition 6 (Hybrid diagram). An SED with a specified physical realisation is hybrid if it contains a cluster region coupled through a non-empty set of boundary edges forming a matching to a circuit-based extraction region containing at least one data-qubit world-line with more than one spider.
We can build a simple example of a hybrid diagram using the single-detecting-region SED from Figure 5. Once
has a matching boundary, we fix the hybrid realisation by applying clusterisation to and realising as a circuit-based diagram by adding world-lines on data nodes and classical outcomes on all generator spiders (except those on the boundary). The clusterisation definition forces the boundary edges to be realised as fusions, which we refer to as boundary fusions: fusion measurements coupling qubits across the boundary between the circuit-based and measurement-based regions. Regular boundary edges are realised as – fusions, while Hadamard boundary edges arising from clusterisation are realised as – fusions. Since each spider in the cluster region lies on a distinct world-line containing no other spider, there is no inherent ordering to measurements in the bulk of the cluster. Boundary fusions, however, depend on operations in the circuit-based regions and therefore inherit an ordering from the data-qubit world-lines. The bulk of the cluster can be prepared and measured freely, while fusions on boundary qubits must respect the causal ordering of the circuit-based operations.
Transforming to a hybrid SED results in detecting regions which cross the boundary between the cluster and circuit-based extraction regions. This gives rise to parity checks which contain contributions from circuit-based ancilla measurements and cluster-based resource measurements – we refer to these as hybrid checks. The example in Figure 7 follows one detecting region through the construction. Its external support remains trivial through the splits and dualities. The final annotations extend it to boundary-fusion outcomes and local resource readouts, yielding a hybrid parity constraint. The same graphical transformations and outcome-extension rules act on all webs, retaining the stabiliser and logical correlations as well as the detecting regions.

Figure 7. Hybrid realisation of a split detecting region. (left) the SED from Figure 5 after splitting the boundary generator spiders. is clusterised in two stages: (centre) duality makes graph-like and converts select boundary edges to Hadamard edges; (right) nodes in are fixed with single spider world-lines, classical outcomes and fusions, while data qubit world-lines fix as a circuit-based diagram. The corresponding check contains outcomes from local ancilla readouts in boundary fusions and resource measurements in the cluster region, making it a hybrid check.
Constructing hybrid lattice surgery diagrams
The construction of Section III C can be applied to SEDs implementing logical operations using techniques such as lattice surgery. Lattice surgery couples surface-code patches by modifying stabilisers near their shared boundary using a line of data qubits (the seam), confining the interaction to a merge region. By clusterising this region, the logical patches can remain on separate matter-based processors while resource states mediate their interaction.
The primitive lattice surgery operations are the merge and split [41]. A merge joins two patches by measuring stabilisers across their shared boundary, whose outcomes determine a joint logical Pauli. A split separates them again by measuring out a line of data qubits. We consider a merge-and-split measuring the logical operator, though exchanging and gives the corresponding operation.
The ZX calculus describes these operations at the logical level [71]. Each logical Pauli web is represented at the syndrome level by a correlation surface. These surfaces describe both the joint measurement and the logical correlations retained through it, and can be composed to describe Bell preparation, fan-out, CX gates and teleportation. The hybrid construction must retain these logical webs as well as the detecting regions.
Building surgery SEDs
Begin with two distance- rotated surface-code memory SEDs, each containing layers of -type and -type generators. Between the patches, introduce a seam of strands with preparation spiders. Compose these with the SED for a single rectangular patch of distance , covering both patches and the seam. After the merge layers, terminate the seam strands with green spider projectors and continue and compose with two further memory SEDs. For surgery, we choose the first and last merge layers to be -type – this allows initialisations and projections in the merge region to be fused into data spiders, leaving only generator and data spiders. The merge therefore contains layers of each generator type, plus one additional -type layer, giving alternating extraction layers in the merge region.
To obtain the circuit realisation, introduce singleton world-lines and outputs for generators and the seam -readout outcomes, and direct the data strands through the extraction layers. The seam strands now describe qubits prepared in at the merge and measured in at the split. The resulting instrument measures logical , with the outcome reported by the final layer of ancilla readouts in the merge region. Figure 8 shows the corresponding logical webs: the two individual correlations and the joint relation, together with the surviving joint correlation. The latter includes a seam readout, so its sign also depends on the split record.
Figure 8. Correlation surfaces in a lattice surgery merge-and-split SED. The logical-level Pauli webs map to correlation surfaces in the SED. (a) The two individual correlations and the joint correlation reporting the logical measurement. (b) The joint correlation, whose outcome support includes a seam readout at the split. Small diagrams show the logical webs and large diagrams their physical representatives. For clarity, only one -type and one -type layer is drawn per phase (plus an additional -type layer in the merge region). In practice, each phase contains layers of each type with an additional -type layer in the merge region.
Clusterising the merge region
Returning to the base surgery SED, we choose a subset of nodes that contains all seam data spiders and their neighbouring generator spiders in the merge. We call this the merge region. It is connected and colour-bipartite, and its boundary spiders are generator spiders.
Applying the construction of Section III C: we split the boundary generators, retain their inside halves in , and dualise every red spider in the selected region. Figure 9 shows these graphical steps.

Figure 9. Graphical transformation of the merge region. (left) The seam and neighbouring generator spiders, carrying the joint logical web. (centre) Split each boundary generator into an inside and outside half, joined by an edge of . (right) Dualise the red spiders inside , including their boundary legs, to obtain graph-like form. All three panels precede outcome and world-line annotations. The highlighted web is carried through the splits and dualities with its external Pauli labels retained. Faded spiders and edges belong to the complementary region.
We then supply resource state assignments within , circuit world-lines outside it, and the outcomes of the boundary fusions and remaining local readouts. This completes the clusterisation and gives a hybrid surgery diagram. The seam is realised by a two-dimensional sheet of resource state qubits instead of persistent circuit data qubits, while the local data paths order their interactions with the boundary ancillas.
Decomposing the cluster region
The merge region can be further decomposed into smaller resource states by applying split operations to seam nodes before clusterisation. Temporarily removing all split edges leaves disjoint sets of nodes in the merge region – these can be individually clusterised to produce a fusion network. The exact resource state decomposition depends on how the incident legs are partitioned. Regular small resources, such as the six-ring states of Ref. [25], provide one approach. Here we use a partition of the seam spiders’ legs that produces linear resource states, as shown in Figure 10a. These chains span the merge boundary, each containing qubits, though each chain’s boundary edges are restricted to one of the two logical qubit boundaries. The resulting fusion network replaces the seam while leaving the two circuit-based patches in place, as shown in Figure 10b. A chain can be shortened by replacing one of its Hadamard edges with a chain of three Hadamard edges and two new green degree-two spiders. We demonstrate this construction in § 2 and present a family of truncated linear resource states.

Figure 10. (a) Splitting seam spiders gives a network of linear resource states. Internal bold edges denote fusions between resources; open bold legs include couplings to the omitted circuit region. Local readout legs not needed for the highlighted logical web are suppressed.
(b) The linear-resource fusion network placed between the two circuit-based patches. The logical web extends through the resource fusions and the boundary couplings.
A resource-state realisation of the merge region. The choice of splits determines the resource topology; fusion and local-readout annotations determine the outcomes reporting each web. The surrounding circuit is faded to emphasise the resource network.
Resource states and interface detector error models
So far the protocols we have described have been abstract – while we have drawn a distinction between circuit-based, measurement-based and hybrid realisations of syndrome extraction diagrams, we have not yet described the physical implementation or the corresponding error models. Part of the motivation behind the hybrid approach is that different physical implementations can be used for circuit-based and measurement-based components, allowing us to tailor the protocols to heterogeneous noise models. In a distributed quantum computer with both matter-based and photonic qubits, the strongest noise effects typically occur at the interface between different hardware modules. Fusion failures and loss of photons in the network cause erasures, typically at much higher rates than local computational errors. In remote entanglement generation, heralds from erasures are usually used to post-select on successful outcomes. However, since fusion-based quantum computing is designed to handle loss and fusion failure in real time, network erasures can be treated as errors to be decoded. To analyse tolerance to network erasures, we can derive detector error models for the reduced case where only network erasures are considered. This allows us to predict erasure thresholds and effective distances for different interfaces. Before doing so, we must first clarify which components of the system are considered part of the interface and how they are represented in the corresponding error model.
Resource state generation
Interacting matter-based qubits with photons is typically done via a matter-based emitter – a qubit that can emit photons entangled with it. To generate all-photonic resource states, emitters can be measured out after emission, leaving only photons in the state [79]. However, since matter-based qubits can interact deterministically with each other, it is desirable to retain matter-based qubits in resource states in heterogeneous systems. The result of this is that local two-qubit gates and boundary fusions can be performed deterministically, leaving only the linear-optical fusions to be performed probabilistically. The simplest example of this is the generation of a matter-based Bell pair using distributed emitters. Each remote emitter produces an emitter–photon Bell pair. Successfully fusing the two photons then leaves the two emitters in a Bell state up to corrections from the fusion outcomes. The two emitters can then be interacted locally with other matter-based qubits. Failed cases can be treated as erasures of fusion outcomes, leading to heralded Pauli errors on the emitter Bell states. This can be mapped directly to the ZX diagram in Diagram 18, where local ancillas correspond to emitters and the central fusion is performed between the emitted photons. The process is illustrated in Figure 11a.

Figure 11. Emitter-based resource-state generation. (a) Each retained emitter emits a photon entangled with it in a Bell pair (dashed arcs). The photons propagate to a Bell-state analyser and are consumed in a linear-optical fusion measurement. On successful fusion, its outcomes herald a Bell pair between the emitters and determine its Pauli frame. (b) A single emitter initialised in generates a linear cluster by repeatedly emitting a photon and undergoing a Hadamard rotation. After cycles, the emitter remains at one end of a chain of photons.
Similar emission-based processes can generate larger resource states. For simple resource state topologies, such as a linear chain of photons entangled with a source emitter, resource states can be generated deterministically by repeating an emission and emitter-rotation cycle [80], as illustrated in Figure 11b. This process has been experimentally demonstrated using quantum dots [81]. Generating more complex resource state topologies requires either post-selection on probabilistic photon-photon interactions, or interactions between matter-based emitters. The latter is desirable, as state generation remains deterministic. For example, using pre-entangled emitters permits deterministic generation of 2D ladder resource states [82], and allowing interactions between emitters after emission allows arbitrary graph states to be generated, though in both cases this is restricted by the connectivity between emitters [83].
While the resource state decomposition we have described in Section IV D uses only linear resource states, they may be challenging to generate in practice for two reasons. First, the number of qubits in the resource state scales with the width of the boundary, thus the distance of the code. For large code distances, these may become prohibitively large. Second, if we wish to retain matter-based qubits in the resource states for deterministic interactions at the boundaries, then this necessitates multiple matter-based qubits per resource state, which introduces the additional challenge of interacting matter-based emitters before and after emission.
In our case, since we are interested in distributed operations, we will assume that linear resource states including both matter-based and photonic qubits can be generated deterministically, provided the matter-based qubits are local to each other (i.e. nearby on the same processor). Since the placement of our matter-based qubits corresponds to ancilla placement in the surface code, this requires only additional nearest-neighbour interactions between emitters along the boundary. However, since coupling of emitters introduces new experimental challenges, we will also consider more restricted cases. A lower-level treatment of resource state preparation is left to future work.
The linear resource state decomposition of the merge region is shown in Figure 12. All qubits that are involved in boundary fusions are matter-based qubits and are coloured darker to distinguish them. The basic decomposition uses resource states with qubits, of which are matter-based qubits that have been split from generator spiders corresponding to local ancillas. Generating such a resource state requires interacting matter-based qubits before emission. We can reduce the number of matter-based qubits per resource state by subdividing edges in the resource state with Hadamard fusions using the following transformation:

Figure 12. Decomposing the merge region into linear chain resource states. The fusion network is composed of layers of linear chains, each with a maximum of matter-based qubits. The darker shade of green indicates matter-based qubits, while the lighter shade of green indicates photonic qubits. In the bulk, each resource state connects to two other resource states via linear-optical fusions, with an additional matter-based fusions at the interface. Resource states can be truncated by subdividing edges with Hadamard fusions: (a) matter qubits per chain, (b) 2 matter qubits per chain, and (c) 1 matter qubit per chain.
Subdivision replaces a Hadamard edge with two outer edges connected by a central Hadamard fusion, leaving Pauli webs intact on the outer boundaries. This allows us to create a family of resource states which are truncated according to the number of matter qubits in the state, naming each decomposition by the resulting resource state size. The untruncated resource state, in which chains span the merge region and carry matter qubits each, is 3d-Chain; truncating to matter qubits per chain gives the -Chain family, of which we consider 8-Chain () and 5-Chain (). These are compared against two circuit-based protocols employing shared Bell pairs generated using the fusion-based construction in Diagram 18. This allows us to treat the two protocols using the same erasure-based noise model. For comparison, we use two interface geometries: straight and zig-zag, as investigated in Refs. [44, 56]. We refer to these as Bell and BellZigZag.

Figure 13. Straight and zig-zag stabiliser partitions. (a) Two distance-three rotated surface-code patches are joined through a central column of three seam qubits, giving the merged patch of Section IV D. Brackets identify the original patches, and circled dots identify the seam qubits. The left and right diagrams show the straight and zig-zag QPU assignments of the same merged code; the zig-zag assignment places the middle seam qubit on QPU B and the other two on QPU A. Black dots are data qubits; green and red faces are Z- and X-type stabiliser supports, with semicircular faces denoting weight-two boundary stabilisers. The straight interface partitions each crossing bulk stabiliser as , whereas the zig-zag interface gives or . The dashed line is a hardware partition, not a code boundary. (b) The corresponding local split-generator geometries. Dashed edges are the non-local split edges realised using the distributed Bell-pair gadget.
Interface detector error models
We construct the interface detector error model (DEM) by allowing erasures only on elementary linear-optical fusion outcomes, keeping all other operations ideal. We perform this analysis using a hardware-agnostic fusion erasure error model, in which each elementary fusion outcome is erased independently with probability [25]. In § 3 D, we consider the effects of loss and fusion failure more directly. In the hardware-agnostic model, an erased outcome is flipped with 50% probability, effectively randomising the outcome, while also providing a herald to the decoder. A flip of an outcome toggles each detecting parity whose support contains it, together with any logical-record parity containing that outcome. An outcome shared by two detecting regions gives an edge between them and one appearing in a single detector gives a boundary edge.
For the chosen ZZ surgery, we track the merge observable and the surviving perpendicular correlation , whose record includes the seam readout. For either logical record , we define the interface distance as the minimum number of fusion-outcome flips that implement an undetectable flip of . Equivalently, it is the minimum number of erased fusion outcomes whose support can contain such a logical error. Thus is the usual distance restricted to the interface outcomes permitted by the erasure model; the erasure heralds change the decoding problem rather than this distance. An erasure can be decoded on a matchable detector error model by merging any detecting regions together which share the edge, such that they form a larger detecting region (“super-plaquette”) [20] and decoding error syndromes on the modified detector error model. The extended detecting region corresponds to the sum of the two affected Pauli webs. If the erased outcome is also part of the frame of the logical observable, the observable can be deformed around it by summing the observable web with a detecting region also containing the outcome. If a chain of erasures percolates to the boundaries of the lattice, the logical information cannot reliably be recovered. The probability of this happening can be mapped to the probability of bond percolation on a lattice [19, 20]. Below a critical probability percolation is unlikely, and above it percolation occurs with high probability. This critical probability thus corresponds to the erasure threshold.
Bell interfaces
We first consider the Bell protocol and the BellZigZag variant. In Bell, each generator spider along the interface is split equally, such that split generators in the bulk retain two local edges each, and those on the boundary retain one each. The split edge is realised as a Bell pair using the fusion gadget of Diagram 18, which fuses two auxiliary Bell pairs. With only erasures, errors occur only on the outcomes of each linear-optical fusion. When constructing base surgery LEDs, we fixed the merge region to contain -type and -type generator layers, with an additional -type layer at end of the merge. As a result, the merge region consists of generator layers. In the bulk, each fusion outcome appears in two checks and each check comprises four measurement results of the same type ( or ). On the boundaries, each check contains three measurement outcomes. Bulk checks share fusion outcomes with those centred one round before and one round after, as well as to either side. The resulting DEM splits into a primal and dual square lattice, with the same structure as a single sheet of an unrotated surface code on a lattice. The lattice advances one row per pair of layers – the observable being measured in the merge runs horizontally across the primal lattice and has interface distance . The perpendicular joint observable runs vertically across the dual lattice and has interface distance . A similar fact has been noted for such a straight interface in previous work using depolarising noise models [44, 55, 56]. Since the DEM is an isotropic square lattice in the bulk, independent bond percolation predicts an asymptotic erasure threshold of 50% [19, 20, 23, 84]. We illustrate the erasure DEM for the straight Bell interface in Figure 14.

Figure 14. Interface detector error model for Bell. Restricting to the subgraph containing the fusions gives the diagram shown on the left. Each detecting region corresponds to a check containing / measurement outcomes, which we represent with green/red square nodes. We use the bold fusion edge as shorthand for the fusion-based Bell preparation gadget from Diagram 18. Each highlighted fusion edge corresponds to an error on one of the two measurement outcomes. Connecting the checks gives the primal and dual lattices of an unrotated surface code. The observable being measured in the merge is carried by the primal lattice in the centre, while the perpendicular joint observable is carried by the dual lattice on the right. Errors which flip the logical observable are shown as black dots, and the shortest undetectable error chain flipping the observable is shown with dashed edges. The interface DEM for BellZigZag is structurally identical, with double the distance, though more challenging to visualise compactly.
The BellZigZag protocol uses the same Bell-pair gadget with a zig-zag QPU partition, splitting the crossing bulk stabilisers across two columns of the interface. Notably, since the split positions are identical, the connectivity of the interface DEM is unchanged. However, since stabilisers are split over two columns of the interface region, fusions appear in an additional column of detecting regions, doubling the width of the lattice. This restores the interface distance on the perpendicular observable from to , while leaving the merge-observable distance at . This distance doubling has also been observed using circuit-level noise models [44, 56].
Hybrid interfaces
Consider now the 3d-Chain decomposition. Fusions occur along the seam, rather than between generator spiders. This changes the interface geometry, since fusion outcomes are now shared between checks on either side of the seam. Each elementary fusion outcome is contained in two checks in the bulk and each check contains four measurement results. On the boundaries, each check contains two measurement results. Although the degree of checks in the bulk is the same as the previous case, checks share edges with those in each diagonal direction, rather than vertically and horizontally adjacent. As a result, the detector error model again has a primal and dual lattice corresponding to a single sheet of a rotated surface code on a lattice, with checks drawing from both and outcomes. Relative to the straight Bell interface, the rotated interface augments the interface distance of the merge observable from to and restores the perpendicular-observable distance from to . Relative to BellZigZag, it retains the same perpendicular distance and augments the merge observable distance. Despite the rotation, the DEM remains an isotropic square lattice in the bulk, so the erasure threshold matches both Bell-pair interfaces at 50% under independent bond erasure [19, 20, 84].
Truncated resource states
The additional fusions used to truncate the resource states do not change the square-lattice structure of the detector error model. To see this, associate to each elementary outcome its full label , where is the set of detecting-region parities containing and is the set of logical-record parities containing it. The structure of the detecting regions makes the interface DEM graph-like, so for every elementary outcome. Each subdivision is made on an unbranched part of a linear resource chain. The web rules at the two inserted degree-two spiders force every pure- or pure- web to continue uniquely across the subdivision. Consequently, each added outcome has the same full label as the corresponding contribution to the existing effective bond, . The new outcomes therefore add parallel contributions to an existing DEM edge rather than new connectivity, as shown in Figure 16. Because this is an equality of the full labels, this also includes boundary edges with and detector-free logical mechanisms with . Subdivision thus leaves both interface distances unchanged, although the increased edge multiplicities make the bulk erasure model anisotropic and lower its threshold.

Figure 16. Staggered bulk bond patterns of the interface DEMs. Rotated DEM embeddings for (3d-Chain), (8-Chain) and (5-Chain). For , the bonds with elementary erasure contributions join into horizontal zig-zag paths across an axis-aligned finite boundary. Together with the complementary bonds, they form the self-dual staggered pattern used in the exact threshold calculation.
If the probability of erasure of a single fusion measurement result is , then the probability of an edge with independent elementary-outcome erasure contributions being erased is . For 8-Chain, the doubled edges form horizontal zig-zag paths across the rotated DEM; for 5-Chain, the same pattern is formed with . This can be mapped onto a checkerboard lattice with alternating bond probabilities and , for which the exact critical manifold reduces to [85]. Substitution gives
This yields for 8-Chain and for 5-Chain.
The distance on the observable measured in the merge grows with the number of layers and governs the fidelity of the merge outcome itself – augmenting it to buys accuracy in the merge when erasure is the dominant noise source without adding any additional rounds. The distance on the perpendicular joint observable is set by the length of the seam and governs the protection of the existing correlation between the two logical qubits during the merge; restoring it to removes the distance loss along a straight interface. BellZigZag also restores this perpendicular distance [44, 56], but leaves the merge-observable distance at . The augmented distances do not immediately translate to lower logical error rates for hybrid protocols. Notably, unrotated surface codes typically exhibit lower logical error rates than rotated surface codes at the same code distance due to fewer low-weight logical error mechanisms. Additionally, these distances include only faults on elementary linear-optical fusion outcomes. In the complete circuit, faults in the deterministic boundary fusions coupling the circuit and resource-state regions introduce local distance-reducing mechanisms on the perpendicular observable—we discuss potential remedies for this in Section VIII. In § 3, we will probe the subthreshold regimes in which the augmented interface distance buys better logical error suppression and those where local noise effects and path-dependent mechanisms dominate.

Figure 15. Interface detector error model for the hybrid 3d-chain protocol. The hybrid interface is geometrically different, since linear-optical fusions occur at the seam, rather than along generator spiders. This means that fusions are supported on detecting regions to either side of the seam. The interface can be laid on a plane to visualise its DEM. Each detecting region corresponds to a check containing a combination of and measurement outcomes, which we represent with square nodes coloured by the measurement results they contain. Each highlighted fusion edge corresponds to an error on one of the two measurement outcomes. Connecting the checks gives the primal and dual lattices of a rotated surface code with an augmented distance in the primal lattice. The observable being measured in the merge is carried by the primal lattice in the centre, while the perpendicular joint observable is carried by the dual lattice on the right. Errors which flip the logical observable are shown as black dots, and the shortest undetectable error chain flipping the observable is shown with dashed edges.
| Protocol | Interface DEM | |||
| BELL | unrotated square | 0.50 | ||
| BELLZIGZAG | unrotated square | 0.50 | ||
| 3D-CHAIN | rotated square | 0.50 | ||
| 8-CHAIN | rotated square | |||
| 5-CHAIN | rotated square |
Table I. Interface detector error models. Geometry, interface distances, and asymptotic erasure thresholds for the five protocols considered. The distances refer to the merge record and the surviving perpendicular correlation . Thresholds assume independent erasure of elementary fusion outcomes and ideal operations away from the interface. These distances apply only to faults on the interface outcomes and do not establish the distance under general circuit-level noise.
Numerical simulations
The previous section demonstrated that a family of hybrid surgery protocols could gain an advantage in the interface distance. While this is interesting, it is idealised. A true heterogeneous architecture has a number of different noise sources which interact to create more complex detector error models. We therefore perform four numerical studies. First, we simulate the protocols under pure fusion-outcome erasure to verify the threshold predictions of the previous section. Second, we add computational errors to resource states and determine the correctable region in . Third, we combine local circuit noise with fusion-outcome erasure and determine the correctable region in . Finally, we use the loss-based linear-optical model of Ref. [25] to compare the subthreshold suppression factor over a range of effective erasure rates and boosting levels, at three strengths of circuit and resource state noise. The results are presented in Section VII.
Simulation setup
We evaluate the performance of the proposed hybrid lattice surgery protocol via Monte Carlo simulations. We build circuits and create the corresponding detector error models in Stim [86] and the resulting detection events are decoded with the minimum-weight perfect matching (MWPM) decoder [87], as implemented in PyMatching 2 [88]. Since depolarising noise can introduce correlated two-qubit errors, we configure PyMatching to decode correlated errors. Additionally, following the strategy of Stace et al. [20], we account for heralded erasures by collecting erasure syndromes after each shot and dynamically re-weighting edge probabilities in the matching graph accordingly. We simulate a lattice surgery logical merge with both qubits initially prepared in the logical state, thus producing a logical Bell state. This is done using rounds of error correction before and after the merge – during the merge rounds are performed followed by an additional half round in the merge basis. We calculate logical error rates and thresholds on both the (merge) and (perpendicular) observables separately.
Resource state error model
To avoid making extensive hardware assumptions, we do not explicitly model the resource state generation process. Each resource state is prepared by initialising all qubits in and applying gates along the chain. We model resource state errors using independent fusion-outcome flip probability in addition to the erasure probability. Unlike erasures, flips are not heralded. Measurement flips account partially for errors in preparation, since any error occurring during the preparation of the resource state propagates only to fusion measurements, as well as errors in photon detection. This does not capture preparation errors on emitters, however, so we introduce a reset flip error on emitters when initialised. This means that, with probability , each emitter is initialised to instead of . In our simplified preparation circuits, resource errors do not propagate to other qubits in the resource state since phase flips commute with gates. Outside of preparation errors, emitters are treated under the circuit-level error model described in § 3 C. This is a simplified noise model and does not account for specific errors arising in the resource state generation process or idling of emitters after preparation. A lower-level treatment of resource state preparation is left to future work.
Circuit-level error model
For matter-based qubits, local circuit noise acts on two-qubit gates, resets and measurements. Following the Stim convention [86], DEP2 denotes DEPOLARIZE2, whose action on a two-qubit density operator is
Thus is the total probability of applying a non-identity two-qubit Pauli, with each of the 15 non-identity Pauli products occurring with probability . The maximally mixed channel occurs at , rather than at . We apply DEP2() after every two-qubit gate. Reset and measurement errors are basis-specific flips: with probability , a reset prepares the opposite eigenstate of the specified Pauli basis and a measurement reports the opposite outcome. Basis changes for preparation and readout are therefore incorporated into the specified-basis resets and measurements, and no separate single-qubit depolarising channel is applied. These channels also apply to operations on matter-based emitters, except for emitter resets, which are accounted for in the resource-state preparation error model. Idle locations are noiseless. We use the single parameter for all of these local circuit-noise channels.
The surface-code stabilisers are extracted in alternating - and -type layers using four substeps. The numbered corners below give the temporal order of the gates around each ancilla:
Split interface stabilisers require an additional choice. For BellZigZag, the three-qubit half interacts first with the data qubit that is isolated on its line and then with the collinear pair perpendicular to the corresponding logical direction; the one-qubit half has a single interaction. This is the hook-avoiding schedule of Refs. [44, 56]. The straight Bell interface instead has a split for which reordering alone cannot remove the perpendicular distance reduction. Deterministic boundary fusions are performed after the four local gate substeps: a regular Bell (–) fusion is implemented by a followed by - and -basis measurements, while a Hadamard (–) fusion is implemented by a controlled- followed by two -basis measurements. Using this noise model, as mentioned in the previous section, we find local distance halving effects on the perpendicular () observable arising from errors in boundary Hadamard fusions. Though these effects are small when interface noise dominates, they become more relevant as circuit noise increases. In Section VIII, we discuss potential remedies for mitigating these distance-reducing effects, though we do not implement these in simulation.
Linear-optical fusion error model
In order to analyse the effects of loss more directly, we follow Bartolucci et al. [25] in considering a linear-optical error model which explicitly accounts for the effects of loss and fusion failure. This model was introduced to investigate the fusion-boosting protocol proposed by Grice [89], which allows the success probability of a fusion to be increased using ancillary photons. Boosting reduces the intrinsic fusion-failure contribution to erasure, but increases exposure to photon loss because more photons must survive. The preferred level of boosting therefore depends on the erasure threshold available after other noise sources are included. We use the effective elementary-outcome marginal erasure probability derived in Ref. [25]:
where is the failure probability of a fusion boosted with ancillary photons. This allows us to convert an erasure threshold into a photon-loss threshold for a specified boosting level. Inverting Eq. (22) gives
When , no ancillary photons are used and the effective elementary-outcome erasure probability is 25% even at . One fusion outcome can be reconstructed after a failed Bell measurement by a separable measurement, so only one of the two outcomes is erased. Consequently, boosting can become necessary once local noise lowers below 25%, even though all five protocols exceed this value in the pure-erasure limit.
We summarise the different contributions to the error model in Table II. In Section VII, we use Eq. (23) to translate the circuit-and-erasure boundary into photon-loss thresholds and use the full loss-based model for the subthreshold simulations.
| Qubit type | Operation | Channel | Parameter |
| Matter | Reset | FLIP | |
| Matter | Two-qubit gate | DEP2 | |
| Matter | Measurement | FLIP | |
| Emitter | Reset | FLIP | |
| Photon | Fusion measurement | FLIP | |
| Photon | Fusion measurement | ERASE |
Table II. Noise channels applied under the hybrid fusion error model. The parameters , , and are varied in the simulations to investigate the erasure thresholds under different noise strengths. Under the linear-optical fusion error model, the erasure probability is related to the physical photon-loss rate according to Eq. (22). Emitters are treated as matter qubits except during resource state preparation where they flip with after reset.
Results
When estimating thresholds, we assume the finite-size scaling form near the predicted threshold [90]:
The parameters , , , , and are fitted jointly across all distances by weighted least squares. A Monte Carlo point with logical failures in shots is assigned the binomial standard error:

Figure 17 (PDF p. 23). Thresholds under pure erasure noise. Logical error rates are shown while sweeping the elementary fusion-outcome erasure probability , with , for the straight BELL interface, BELLZIGZAG, and the three hybrid linear-chain decompositions. Solid and dashed curves give the merge observable and perpendicular correlation , respectively. Colours denote code distances ; vertical error bars show statistical uncertainty, and dotted vertical lines show the scaling-fit estimates for the two observables.
with floored at one when constructing the weight.
Erasure
The exact bulk-percolation predictions from Section V B are for 5-Chain, for 8-Chain, and for 3d-Chain. Both Bell-pair geometries also have the square-lattice bulk threshold . The plots in Fig. 17 show logical error rates for each protocol at distances . Restricting to data points near the crossing, the finite-size scaling fits at zero local noise give 0.3156(2) and 0.3145(7) for the two 5-Chain observables, respectively, and 0.3798(2)
and 0.3794(8) for 8-Chain. For the three protocols with a predicted 50% threshold, the fitted estimates lie between 0.4940(4) and 0.5060(4), depending on the protocol and observable. Parentheses give the quoted uncertainty in the final displayed digits. The agreement of the two observables is consistent with the common bulk threshold even though their finite-size interface distances differ. Notably, the asymmetry in the interface distances also leads to large differences in the logical error rates for the two observables, despite the thresholds being unchanged. BellZigZag closes this gap by restoring the perpendicular interface distance, though this increases the logical error rate on the merge observable relative to Bell.
Correctable-region threshold estimation
Each point in the correctable-region plots is obtained by fixing the local noise strength, sweeping the elementary fusion-outcome erasure probability , and estimating the logical error rate at several code distances. We first estimate a crossing point using distances and , then refine the estimate by taking further shots near the estimated crossing with . When both circuit noise and erasure are high, decoding at higher distances becomes prohibitively expensive, so finite-size drift effects may still be present. Each value is estimated from at most Monte Carlo shots, with sampling stopped early after logical failures, and decoded using correlated matching as described in Section VI A. The zero-local-noise point is obtained from the pure-erasure sweep using the same procedure and the same distances as the corresponding correctable-region plot.

Figure 18 (PDF p. 24). Correctable regime under resource-state preparation noise. Estimated erasure threshold for (a) the merge observable and (b) the perpendicular correlation as a function of the phenomenological resource-state error rate , with local circuit noise set to .
Resource-state errors and erasure
Figure 18 examines the thresholds when we introduce resource-state errors. Here we assume that local noise is negligible () and vary the resource-state error rate , calculating the erasure threshold as a function of .
Figure 18.
In this case, all thresholds decrease approximately linearly as the resource-state preparation error rate increases. The sampled range differs slightly between protocols and observables, as shown in Fig. 18.
Circuit-level noise and erasure
In Figure 19, we vary the local circuit error rate and estimate the largest elementary fusion-outcome erasure probability that remains correctable, with the resource-state error rate set to . This comparison

Figure 19. Correctable regime under local circuit noise and interface erasure. Estimated erasure threshold for (a) the merge observable and (b) the perpendicular correlation as a function of local circuit noise , with resource-state error set to .
includes both Bell-pair geometries and the three hybrid chain decompositions.
All five erasure thresholds decrease from the pure-erasure case as local circuit noise increases. In this case, the threshold degradation is not linear in , and the slope steepens as approaches the local circuit-noise threshold. To express these boundaries in terms of a physical photon-loss probability, we substitute the threshold estimates from Figure 19 into Eq. (23). For each observable, Table III reports the converted loss threshold for boosting levels , with the largest physical threshold highlighted in bold. The 50% erasure threshold converts to 18.35% photon-loss probability at , which is the optimal boosting level, while the threshold of 8-CHAIN gives an approximately 9.1% photon-loss threshold at the same boosting level. At , the marginal fusion-failure probability is near the erasure threshold for 5-CHAIN, so boosting to improves the photon-loss threshold from 4.47% to 5.96%. At 1% local circuit noise, the available estimates favour for BELL, BELLZIGZAG, and 3d-CHAIN, while 5-CHAIN is optimal at . The available estimates likewise favour for BELL and 8-CHAIN, and for 5-CHAIN.
Subthreshold suppression
Thresholds locate the boundary of the correctable region but do not determine how rapidly the logical error rate decreases with code distance. Since subthreshold errors become rare at high distances, we calculate the finite-distance suppression from to using
| Protocol | , | , | , | , | , | , | ||
| merge observable | ||||||||
| Bell | 50.31(2)% | 18.61(2)% | 13.19(1)% | 7.63(1)% | 28.42(27)% | 2.31(18)% | 4.90(9)% | 3.32(5)% |
| BellZigZag | 49.40(4)% | 17.86(3)% | 12.80(2)% | 7.42(1)% | 21.43(21)% | 2.65(6)% | 2.18(3)% | |
| 5-Chain | 31.56(2)% | 4.47(2)% | 5.96(1)% | 3.86(0)% | 16.02(23)% | 1.02(7)% | 1.37(3)% | |
| 8-Chain | 37.98(2)% | 9.07(1)% | 8.25(1)% | 5.03(0)% | 20.41(22)% | 2.34(7)% | 2.03(3)% | |
| 3d-Chain | 49.84(2)% | 18.22(2)% | 12.99(1)% | 7.52(0)% | 28.33(31)% | 2.24(21)% | 4.87(10)% | 3.30(5)% |
| perpendicular correlation | ||||||||
| Bell | 49.64(8)% | 18.06(7)% | 12.90(4)% | 7.47(2)% | 29.31(35)% | 2.92(24)% | 5.19(12)% | 3.47(6)% |
| BellZigZag | 50.60(4)% | 18.84(3)% | 13.32(2)% | 7.70(1)% | 25.52(31)% | 0.35(21)% | 3.95(10)% | 2.83(5)% |
| 5-Chain | 31.45(7)% | 4.40(5)% | 5.92(3)% | 3.84(1)% | 15.12(24)% | 0.76(7)% | 1.24(3)% | 1.24(3)% |
| 8-Chain | 37.94(8)% | 9.03(6)% | 8.23(3)% | 5.03(1)% | 19.62(36)% | 2.10(11)% | 1.90(5)% | |
| 3d-Chain | 50.18(9)% | 18.50(7)% | 13.13(4)% | 7.60(2)% | 28.43(68)% | 2.31(46)% | 4.90(23)% | 3.32(11)% |
Table III. Conversion of circuit-and-erasure thresholds to photon-loss thresholds. Elementary-outcome erasure thresholds for the merge observable and perpendicular correlation are read from the data underlying Figure 19 at and , with . Parentheses give the uncertainty defined in the threshold-estimation procedure in the final displayed digits; uncertainties in are propagated from those in through Eq. (23). The photon-loss thresholds are shown for boosting levels . Bold entries specify the largest physical loss threshold for each protocol. A blank entry indicates that the intrinsic fusion-failure erasure at zero photon loss already exceeds .
This is the factor by which decreases over this distance increment at fixed . Thus indicates suppression with increasing distance, and a larger value indicates stronger finite-distance suppression. We report uniformly for all protocols. At points where the logical error rate could also be resolved at , we additionally calculated . The ratio was close to unity in most cases, so we do not expect the inclusion of larger distances to significantly change the comparison.
We write as below. Since we consider multiple noise sources with different distances under reduced noise models, we expect to behave differently in different noise regimes. To probe this behaviour, we fix three local noise regimes, corresponding to moderate lo-

Figure 20. Subthreshold suppression under the loss-based linear-optical model. The finite-distance suppression factor is shown against the effective elementary-outcome erasure probability for the merge observable (left) and perpendicular observable (right), at , and 0 (top to bottom). Colours and markers identify the interface protocol. Line styles indicate the lowest boosting level that can attain the corresponding under Eq. (22). Faint curves in the zero-local-noise row show the leading-order erasure predictions. Error bars show the estimated statistical uncertainty in , and the horizontal line marks , below which the logical error rate increases from to .
cal noise , low local noise and zero local noise , and sweep the erasure rate within each regime. To focus on the effect of erasures, we fix in all cases. Since the effective erasure rate is determined by the boosting level and the photon-loss rate, we use only erasure rates corresponding to specific loss/boosting combinations.
At the moderate local-noise level , circuit and resource-state faults set the dominant scale of . Consequently, reducing improves the suppression factors of the different protocols at broadly similar rates, and the interface-distance differences are largely masked. The 3d-Chain nevertheless gives the strongest suppression, whereas BellZigZag gives the strongest suppression. The latter is the only construction considered here that avoids a distance-reducing local fault mechanism while retaining the full perpendicular interface distance. The effect of the reduced interface distance for Bell becomes apparent below . In both cases, the truncated linear chains start with lower suppression factors due to their reduced thresholds, though they catch up as decreases and local noise dominates.
At , the interface contribution becomes visible. As decreases, the curves of the linear-chain protocols rise more steeply than those of the Bell-pair interfaces. For , all three linear decompositions eventually overtake both Bell-pair protocols, exposing the augmented interface distance. The same crossover mechanism is visible for relative to the straight Bell interface, whose reduced perpendicular distance causes it to fall below the other constructions at sufficiently small . BellZigZag remains the strongest protocol.
With , sampling at low erasure rates becomes challenging as logical errors become exceedingly rare, so we resort to using a leading-order erasure approximation to predict the trends in . Under pure erasure, the decoder fails only when the erased fusions support a logical operator, in which case it fails with probability 50% [20]. At low erasure rates this is dominated by the minimum-weight logicals, giving
where the interface distance and the number of minimum-weight logicals are counted directly from each protocol’s detector error model. Hence
The chains have , against for Bell, so grows as rather than . But they also have far more minimal logicals (e.g. for the 3d-Chain vs. 4 for Bell in the primal interface DEM), which delays the crossover to lower . For the observable, all protocols have except for Bell, which has . The leading-order estimates are generally consistent with the slopes of the collected data, though show small vertical offsets in some cases.
Below 15% erasure, 8-Chain overtakes Bell and BellZigZag for , as well as overtaking Bell for at the same erasure rate. The leading-order estimates predict 5-Chain to overtake Bell and BellZigZag around for , and to overtake Bell for closer to 7%.
Low logical error rates at these levels make numerical estimation challenging, but the trends are consistent with the expected distance scaling. For the observable, despite the hybrid protocols matching the interface distance of BellZigZag, the actual values for BellZigZag are much higher. This can be attributed to the fact that the number of minimum-weight logical operators in the rotated lattice increases exponentially with , while increasing only linearly on the unrotated lattice, leading to lower logical error rates for unrotated surface codes at equivalent distances [91, 92]. These effects can be observed in the prefactors appearing in the leading-order estimates for .
Discussion
CBQC and MBQC have evolved as distinct paradigms, each with its own set of advantages and challenges. In particular, they have been shown to be suitable for different physical platforms and error correction protocols have been designed around this. Circuit-based error correction has been largely developed around matter-based qubits, while measurement-based error correction has been largely developed around photonic qubits, emphasised by the development of FBQC as a linear-optical measurement-based error correction protocol. The results presented in this work are a starting point towards bridging the gap between these two paradigms, demonstrating that hybrid protocols can be designed to leverage the strengths of both paradigms in the context of distributed matter-photonic architectures. In particular, we have shown that logical gates using surface code lattice surgery can be implemented with high loss thresholds and augmented distances using matter-based quantum emitters and fusion networks. This is true both for the hybrid protocols we have constructed and for circuit-based implementations where Bell pair preparation is modelled using linear-optical fusions.
Under pure elementary-outcome erasure, Bell, BellZigZag, and 3d-Chain share the asymptotic 50% threshold. Truncating the hybrid chains lowers this threshold to approximately 38% for 8-Chain and 32% for 5-Chain. These thresholds should not be directly compared with existing thresholds for distributed lattice surgery based on purely phenomenological- or circuit-noise models, since they model a different error process. Interface erasure thresholds are higher than interface depolarising thresholds, though interface erasure rates are higher due to fusion failure and loss. Post-selecting on successful heralds will result in much lower error rates on Bell pairs, though reduce generation rates. An exact comparison of the trade-offs between erasure-based decoding of network errors and post-selection requires more precise hardware assumptions and remains an avenue for future work.
Adding resource-state errors reduces the erasure thresholds approximately linearly in the error rate, as seen in previous work [25]. For local circuit noise, erasure thresholds decrease slowly as low levels of local noise are added and more rapidly as approaches the local-noise threshold. This can be attributed to the fact that these noise sources affect different parts of the system, making it less common for error chains to combine across regions.
Fusion boosting becomes more useful in the presence of local noise and resource-state errors. Boosting can improve photon-loss thresholds for all protocols when local noise is high and can be used to probe far-subthreshold regimes when local noise is low. The subthreshold results show that the interface distance is relevant only once other error mechanisms are sufficiently weak. The change in finite-distance suppression as local noise decreases is consistent with the asymptotic merge-observable advantage predicted by the augmented interface distance, though no hybrid protocol achieves the best protection of the perpendicular observable. For any process in which the protection of the perpendicular observable is more important, the presented hybrid protocols will show no advantage. Where roughly equal protection of both observables is required, it may be possible to even out the suppression by tailoring the failure bases of fusion measurements to create error biases, as explored in Ref. [30]. Additionally, since we have investigated a specific hybrid construction, there is a large design space still to explore and alternative interface structures may lead to improved performance.
The principal local-noise limitation of the hybrid interfaces arises from the deterministic boundary fusions between the circuit and resource-state regions. Errors in these operations can introduce half-distance error chains on one of the two observables. In the sampled low-noise regime, these mechanisms make only a small contribution and do not obscure the erasure suppression of the linear-chain interfaces; as local noise increases, they contribute to masking this advantage. This limitation belongs to the boundary fusion implementation considered here rather than to hybrid protocols in general. Flagged measurement gadgets [93] could be used to catch these errors, or fault-equivalent/distance-preserving transformations [72, 74] could be used to construct alternative local boundary realisations, such as those proposed in Refs. [47, 57].
The simulations assume that the required resource states are supplied deterministically when the interface is measured. We do not model explicit resource state generation, nor do we consider hardware-realistic noise models for emitters. These omissions are especially significant for larger chain protocols. The results therefore establish an interface-distance and logical-suppression advantage within the stated noise models; they do not establish a reduction in emitter count, preparation time, or total computational overhead. A lower-level treatment could build on the graphical dataflow framework of de Felice et al. [94], which combines diagrams with explicit linear-optical components.
These results provide a promising starting point for hybrid error correction in matter–photonic architectures. There are many avenues for future work. We have only considered a single code family in this work, but the methods should in principle be applicable to any other CSS codes. We have also only directly investigated simple lattice surgery merge-and-split operations using two logical qubits. However, the framework could equally be applied to more complex lattice operations, such as fan-outs and multi-target gates. This opens the door to compilation routines which optimise the use of both measurement-based and circuit-based operations to reduce the overall resource overhead of a computation.
Conclusion
We have proposed a method for constructing hybrid error correction protocols that combine circuit-based and measurement-based error correction based on the calculus. We have shown that this method can be used to construct hybrid logical gates using surface-code lattice surgery and analysed the resulting interface detector error models. The untruncated hybrid interface retains the 50% elementary-outcome erasure threshold of the Bell-pair baselines while increasing the merge-record interface distance from to ; truncating the resource states trades a lower threshold for smaller resources. Fusion boosting levels can be used to improve loss thresholds as local circuit noise levels increase. The subthreshold simulations reveal a crossover between two regimes. At , local errors largely mask the interface-distance differences: -CHAIN gives the strongest suppression of the merge observable though fails to improve over BELLZIGZAG for the perpendicular observable. At lower local noise, the linear-chain suppression factors rise more rapidly as erasure is reduced, exposing the augmented interface distance.
Data and code availability
The data and simulation code supporting this work will be made publicly available in a future release, and are available from the corresponding author upon reasonable request.
Acknowledgements
The authors acknowledge funding from the Engineering and Physical Sciences Research Council (EPSRC)-funded Distributed Quantum Computing project, grant number EP/W032643/1.
References
References
- [1]R. Van Meter and S. J. Devitt, The Path to Scalable Distributed Quantum Computing, Computer 49, 31 (2016).DOI
- [2]M. Saffman, Quantum computing with atomic qubits and Rydberg interactions: Progress and challenges, Journal of Physics B: Atomic, Molecular and Optical Physics 49, 202001 (2016).DOI
- [3]M. Cetina, L. Egan, C. Noel, M. Goldman, D. Biswas, A. Risinger, D. Zhu, and C. Monroe, Control of Transverse Motion for Quantum Gates on Individually Addressed Atomic Qubits, PRX Quantum 3, 010334 (2022).DOI
- [4]J. Ang, G. Carini, Y. Chen, I. Chuang, M. Demarco, S. Economou, A. Eickbusch, A. Faraon, K.-M. Fu, S. Girvin, M. Hartridge, A. Houck, P. Hilaire, K. Kruslich, A. Li, C. Liu, Y. Liu, M. Martonosi, D. McKay, J. Misevich, M. Ritter, R. Schoelkopf, S. Stein, S. Sussman, H. Tang, W. Tang, T. Tomesh, N. Tubman, C. Wang, N. Wiebe, Y. Yao, D. Yost, and Y. Zhou, ARQUIN: Architectures for Multinode Superconducting Quantum Computers, ACM Transactions on Quantum Computing 5, 19:1 (2024).DOI
- [5]C. Monroe, R. Raussendorf, A. Ruthven, K. R. Brown, P. Maunz, L.-M. Duan, and J. Kim, Large-scale modular quantum-computer architecture with atomic memory and photonic interconnects, Physical Review A 89, 022317 (2014).DOI
- [6]D. Main, P. Drmota, D. P. Nadlinger, E. M. Ainley, A. Agrawal, B. C. Michal, R. Srinivas, G. Araneda, and D. M. Lucas, Distributed quantum computing across an optical network link, Nature 638, 383 (2025).DOI
- [7]M. Caleffi, M. Amoretti, D. Ferrari, J. Illiano, A. Manzalini, and A. S. Cacciapuoti, Distributed quantum computing: A survey, Computer Networks 254, 110672 (2024).DOI
- [8]T. D. Ladd, F. Jelezko, R. Laflamme, Y. Nakamura, C. Monroe, and J. L. O’Brien, Quantum computers, Nature 464, 45 (2010).DOI
- [9]E. Knill, R. Laflamme, and G. J. Milburn, A scheme for efficient quantum computation with linear optics, Nature 409, 46 (2001).pubmed.ncbi.nlm.nih.gov/11343107
- [10]M. Silva, M. Rötteler, and C. Zalka, Thresholds for linear optics quantum computing with photon loss at the detectors, Physical Review A 72, 032307 (2005).DOI
- [11]C. H. Bennett, D. P. DiVincenzo, and J. A. Smolin, Capacities of Quantum Erasure Channels, Physical Review Letters 78, 3217 (1997), arXiv:quant-ph/9701015.DOI
- [12]W. K. Wootters and W. H. Zurek, A single quantum cannot be cloned, Nature 299, 802 (1982).DOI
- [13]R. Raussendorf and H. J. Briegel, A One-Way Quantum Computer, Physical Review Letters 86, 5188 (2001).
- [14]M. Varnava, D. E. Browne, and T. Rudolph, Loss tolerance in one-way quantum computation via counterfactual error correction, Physical Review Letters 97, 120501 (2006), arXiv:quant-ph/0507036 [quant-ph].DOI
- [15]M. Varnava, D. E. Browne, and T. Rudolph, Loss tolerant linear optical quantum memory of measurement-based quantum computing, New Journal of Physics 9, 203 (2007).DOI
- [16]M. A. Nielsen, Optical quantum computation using cluster States, Physical Review Letters 93, 040503 (2004).DOI
- [17]S. B. Bravyi and A. Y. Kitaev, Quantum codes on a lattice with boundary (1998), arXiv:quant-ph/9811052.DOI
- [18]A. Y. Kitaev, Fault-tolerant quantum computation by anyons, Annals of Physics 303, 2 (2003), arXiv:quant-ph/9707021.
- [19]H. Kesten, Percolation Theory for Mathematicians (Birkhäuser, Boston, MA, 1982).
- [20]T. M. Stace, S. D. Barrett, and A. C. Doherty, Thresholds for Topological Codes in the Presence of Loss, Physical Review Letters 102, 200501 (2009).DOI
- [21]R. Raussendorf, J. Harrington, and K. Goyal, A fault-tolerant one-way quantum computer, Annals of Physics 321, 2242 (2006).DOI
- [22]R. Raussendorf, J. Harrington, and K. Goyal, Topological fault-tolerance in cluster state quantum computation, New Journal of Physics 9, 199 (2007).DOI
- [23]S. D. Barrett and T. M. Stace, Fault tolerant quantum computation with very high threshold for loss errors, Physical Review Letters 105, 200502 (2010), arXiv:1005.2456 [quant-ph].DOI
- [24]N. Nickerson and H. Bombín, Measurement based fault tolerance beyond foliation (2018), arXiv:1810.09621 [quant-ph].arxiv.org/abs/1810.09621
- [25]S. Bartolucci, P. Birchall, H. Bombín, H. Cable, C. Dawson, M. Gimeno-Segovia, E. Johnston, K. Kieling, N. Nickerson, M. Pant, F. Pastawski, T. Rudolph, and C. Sparrow, Fusion-based quantum computation, Nature Communications 14, 912 (2023).DOI
- [26]D. E. Browne and T. Rudolph, Resource-efficient linear optical quantum computation, Physical Review Letters 95, 010501 (2005), arXiv:quant-ph/0405157.pubmed.ncbi.nlm.nih.gov/16090595
- [27]W. Song, N. Kang, Y.-S. Kim, and S.-W. Lee, Encoded-Fusion-Based Quantum Computation for High Thresholds with Linear Optics, Physical Review Letters 133, 050605 (2024).DOI
- [28]S. Paesani and B. J. Brown, High-threshold quantum computing by fusing one-dimensional cluster states, Physical Review Letters 131, 120603 (2023), arXiv:2212.06775 [quant-ph].DOI
- [29]T. J. Bell, L. A. Pettersson, and S. Paesani, Optimizing Graph Codes for Measurement-Based Loss Tolerance, PRX Quantum 4, 020328 (2023).arxiv.org/abs/2212.04834
- [30]H. Bombín, C. Dawson, N. Nickerson, M. Pant, and J. Sullivan, Increasing error tolerance in quantum computers with dynamic bias arrangement (2023), arXiv:2303.16122 [quant-ph].arxiv.org/abs/2303.16122
- [31]S. Bartolucci, T. Bell, H. Bombin, P. Birchall, J. Bulmer, C. Dawson, T. Farrelly, S. Gartenstein, M. Gimeno-Segovia, D. Litinski, Y. Liu, R. Knegjens, N. Nickerson, A. Olivo, M. Pant, A. Patil, S. Roberts, T. Rudolph, C. Sparrow, D. Tuckett, and A. Veitia, Comparison of schemes for highly loss tolerant photonic fusion based quantum computing (2025), arXiv:2506.11975 [quant-ph].arxiv.org/abs/2506.11975
- [32]H. Bombin, I. H. Kim, D. Litinski, N. Nickerson, M. Pant, F. Pastawski, S. Roberts, and T. Rudolph, Interleaving: Modular architectures for fault-tolerant photonic quantum computing (2023), arXiv:2103.08612 [quant-ph].arxiv.org/abs/2103.08612
- [33]Y. van Montfort, S. de Bone, and D. Elkouss, Fault-tolerant structures for measurement-based quantum computation on a network, Quantum 9, 1723 (2025), arXiv:2402.19323 [quant-ph].DOI
- [34]N. H. Nickerson, Y. Li, and S. C. Benjamin, Topological quantum computing with a very noisy network and local error rates approaching one percent, Nature Communications 4, 1756 (2013).DOI
- [35]S. Singh, F. Gu, S. de Bone, E. Villaseñor, D. Elkouss, and J. Borregaard, Modular Architectures and Entanglement Schemes for Error-Corrected Distributed Quantum Computation (2024), arXiv:2408.02837.DOI
- [36]S. de Bone, P. Möller, C. E. Bradley, T. H. Taminiau, and D. Elkouss, Thresholds for the distributed surface code in the presence of memory decoherence, AVS Quantum Science 6, 033801 (2024).DOI
- [37]E. Sutcliffe, B. Jonnadula, C. L. Gall, A. E. Moylett, and C. M. Westoby, Distributed quantum error correction based on hyperbolic Floquet codes (2025), arXiv:2501.14029 [quant-ph].DOI
- [38]Y. Vaknin, S. Jacoby, R. Nevo, A. Kubica, and A. Retzker, Fault-tolerant distributed quantum computing with a single nucleus per node (2026), arXiv:2607.24907 [quant-ph].arxiv.org/abs/2607.24907
- [39]C. Ryan-Anderson, N. C. Brown, C. H. Baldwin, J. M. Dreiling, C. Foltz, J. P. Gaebler, T. M. Gatterman, N. Hewitt, C. Holliman, C. V. Horst, J. Johansen, D. Lucchetti, T. Mengle, M. Matheny, Y. Matsuoka, K. Mayer, M. Mills, S. A. Moses, B. Neyenhuis, J. Pino, P. Siegfried, R. P. Stutz, J. Walker, and D. Hayes, High-fidelity teleportation of a logical qubit using transversal gates and lattice surgery, Science 385, 1327 (2024).
- [40]J. Stack, M. Wang, and F. Mueller, Transversal fault tolerant distributed quantum computing operations, Nature Communications 17, 8838 (2026).DOI
- [41]D. Horsman, A. G. Fowler, S. Devitt, and R. V. Meter, Surface code quantum computing by lattice surgery, New Journal of Physics 14, 123011 (2012).DOI
- [42]J. Ramette, J. Sinclair, N. P. Breuckmann, and V. Vus̆etić, Fault-tolerant connection of error-corrected qubits with noisy links, npj Quantum Information 10, 1 (2024).arxiv.org/abs/2302.01296
- [43]Á. Márton, L. Colmenarez, L. Bödeker, and M. Müller, Lattice surgery-based logical state teleportation via noisy links, https://arxiv.org/abs/2504.15747v1 (2025).
- [44]H. Jacinto, É. Gouzien, and N. Sangouard, Network Requirements for Distributed Quantum Computation (2025), arXiv:2504.08891 [quant-ph].DOI
- [45]L. Bödeker, Á. Márton, L. Colmenarez, I. Besedin, A. Wallraff, and M. Müller, Lattice surgery for near-term experimental logical qubit entanglement creation in planar architectures (2026), arXiv:2606.15190 [quant-ph].arxiv.org/abs/2606.15190
- [46]S. Chelluri, R. Mengoni, T. Darras, J. Laurat, E. Diamanti, and I. Lavdas, Fault-Tolerant Logical Operations and Efficient State Preparation in Modular Quantum Architectures with Noisy Interfaces (2026), arXiv:2607.27204 [quant-ph].arxiv.org/abs/2607.27204
- [47]M. Schmidt, M. Moureau, B. Rodatz, B. Poór, E. Mounzer, and L. Grans-Samuelsson, Resource-adaptive distributed fault tolerance with very noisy Bell pairs (2026), arXiv:2609.03048 [quant-ph].arxiv.org/abs/2609.03048
- [48]S. Sunami, Y. Hirano, T. Hinokuma, and H. Yamasaki, Entanglement boosting: Low-volume logical Bell pair preparation for distributed fault-tolerant quantum computation (2025), arXiv:2511.10729 [quant-ph].DOI
- [49]F. K. Marqversen, G. Baranes, M. Sirotin, and J. Borregaard, Fault-tolerant interfaces for modular quantum computing on diverse qubit platforms (2025), arXiv:2510.05221 [quant-ph].DOI
- [50]C. A. Pattison, G. Baranes, J. P. B. Ataides, M. D. Lukin, and H. Zhou, Fast quantum interconnects via constant-rate entanglement distillation (2024), arXiv:2408.15936 [quant-ph].arxiv.org/abs/2408.15936
- [51]J. P. B. Ataides, H. Zhou, Q. Xu, G. Baranes, B. Li, M. D. Lukin, and L. Jiang, Constant-Overhead Fault-Tolerant Bell-Pair Distillation using High-Rate Codes (2025), arXiv:2502.09542 [quant-ph].DOI
- [52]J. Eisert, K. Jacobs, P. Papadopoulos, and M. B. Plenio, Optimal local implementation of nonlocal quantum gates, Physical Review A 62, 052317 (2000).DOI
- [53]N. H. Nickerson, J. F. Fitzsimons, and S. C. Benjamin, Freely Scalable Quantum Technologies Using Cells of 5-to-50 Qubits with Very Lossy and Noisy Photonic Links, Physical Review X 4, 041041 (2014).DOI
- [54]E. M. Ainley, A. Agrawal, T. Araki, A. R. Martínez, D. Main, E. Malinowski, J. A. Blackmore, S. Chen, P. Drmota, M. Mallweger, D. P. Nadlinger, R. Srinivas, S. C. Benjamin, G. Araneda, and D. M. Lucas, Error Correction in a Distributed Quantum Computer (2026), arXiv:2609.13065 [quant-ph].arxiv.org/abs/2609.13065
- [55]T. H. Haug, T. Hillmann, A. F. Kockum, and R. V. Laer, Lattice surgery with Bell measurements: Modular fault-tolerant quantum computation at low entanglement cost (2025), arXiv:2510.13541 [quant-ph].arxiv.org/abs/2510.13541
- [56]M. A. Shalby, R. Wang, D. Sedov, and L. P. Pryadko, Optimized noise-resilient surface code teleportation interfaces (2025), arXiv:2503.04968 [quant-ph].DOI
- [57]P. Thakur, D. Dilley, and Z. Saleem, A syndrome-extraction framework for distributed lattice surgery on arbitrary rotated surface-code layouts (2026), arXiv:2609.26736 [quant-ph].arxiv.org/abs/2609.26736
- [58]G. de Gliniasty, P. Hilaire, P.-E. Emeriau, S. C. Wein, A. Salavrakos, and S. Mansfield, A Spin-Optical Quantum Computing Architecture, Quantum 8, 1423 (2024), arXiv:2311.05605 [quant-ph].DOI
- [59]K. Sahay, J. Jin, J. Claes, J. D. Thompson, and S. Puri, High-Threshold Codes for Neutral-Atom Qubits with Biased Erasure Errors, Physical Review X 13, 041013 (2023).DOI
- [60]S. Naito, Y. Suzuki, and Y. Tokunaga, Network-Based Quantum Computing: An efficient design framework for many-small-node distributed fault-tolerant quantum computing (2026), arXiv:2601.09374 [quant-ph].arxiv.org/abs/2601.09374
- [61]H. T. Larasati and B.-S. Choi, Hybrid Circuit and Measurement-Based Quantum Computing Architecture With Encoded-Fusion-Assisted Teleportation, IEEE Access 14, 86662 (2026).DOI
- [62]A. Bolt, G. Duclos-Cianci, D. Poulin, and T. M. Stace, Foliated Quantum Error-Correcting Codes, Physical Review Letters 117, 070501 (2016).DOI
- [63]B. J. Brown and S. Roberts, Universal fault-tolerant measurement-based quantum computation, Physical Review Research 2, 033305 (2020).DOI
- [64]H. Bombin, D. Litinski, N. Nickerson, F. Pastawski, and S. Roberts, Unifying flavors of fault tolerance with the ZX calculus, Quantum 8, 1379 (2024), arXiv:2303.08829 [quant-ph].DOI
- [65]A. Pesah, A. K. Daniel, I. Tzitrin, and M. Vasmer, Fault-tolerant transformations of spacetime codes (2025), arXiv:2509.09603 [quant-ph].arxiv.org/abs/2509.09603
- [66]B. Coecke and R. Duncan, Interacting quantum observables: Categorical algebra and diagrammatics, New Journal of Physics 13, 043016 (2011).
- [67]B. Coecke and A. Kissinger, Picturing Quantum Processes: A First Course in Quantum Theory and Diagrammatic Reasoning (Cambridge University Press, Cambridge, 2017).DOI
- [68]A. Kissinger, Phase-free ZX diagrams are CSS codes (...or how to graphically grok the surface code), https://arxiv.org/abs/2204.14038v1 (2022).
- [69]J. van de Wetering, ZX-calculus for the working quantum computer scientist (2020), arXiv:2012.13966 [quant-ph].arxiv.org/abs/2012.13966
- [70]M. Backens, The ZX-calculus is complete for stabilizer quantum mechanics, New Journal of Physics 16, 093021 (2014).DOI
- [71]N. de Beaudrap and D. Horsman, The ZX calculus is a language for surface code lattice surgery, Quantum 4, 218 (2020).DOI
- [72]B. Rodatz, B. Poór, and A. Kissinger, Floquetifying stabiliser codes with distance-preserving rewrites (2024), arXiv:2410.17240 [quant-ph].DOI
- [73]A. Townsend-Teague, J. Magdalena De La Fuente, and M. Kesslering, Floquetifying the Colour Code, Electronic Proceedings in Theoretical Computer Science 384, 265 (2023).
- [74]B. Rodatz, B. Poór, and A. Kissinger, Fault Tolerance by Construction (2026), arXiv:2506.17181 [quant-ph].arxiv.org/abs/2506.17181
- [75]M. McEwen, D. Bacon, and C. Gidney, Relaxing Hardware Requirements for Surface Code Circuits using Time-dynamics, Quantum 7, 1172 (2023), arXiv:2302.02192 [quant-ph].DOI
- [76]D. Litinski, Blocklet concatenation: Low-overhead fault-tolerant protocols for fusion-based quantum computation (2025), arXiv:2506.13619 [quant-ph].arxiv.org/abs/2506.13619
- [77]R. Duncan, A. Kissinger, S. Perdrix, and J. van de Wetering, Graph-theoretic Simplification of Quantum Circuits with the ZX-calculus, Quantum 4, 279 (2020).DOI
- [78]M. Hein, W. Dür, J. Eisert, R. Raussendorf, M. Van den Nest, and H.-J. Briegel, Entanglement in graph states and its applications, in Quantum Computers, Algorithms and Chaos (IOS Press, 2006) pp. 115–218.DOI
- [79]D. Buterakos, E. Barnes, and S. E. Economou, Deterministic Generation of All-Photonic Quantum Repeaters from Solid-State Emitters, Physical Review X 7, 041023 (2017).DOI
- [80]N. H. Lindner and T. Rudolph, Proposal for Pulsed On-Demand Sources of Photonic Cluster State Strings, Physical Review Letters 103, 113602 (2009).pubmed.ncbi.nlm.nih.gov/19792371
- [81]I. Schwartz, D. Cogan, E. R. Schmidgall, Y. Don, L. Gantz, O. Kenneth, N. H. Lindner, and D. Gershoni, Deterministic generation of a cluster state of entangled photons, Science 354, 434 (2016).DOI
- [82]S. E. Economou, N. Lindner, and T. Rudolph, Optically Generated 2-Dimensional Photonic Cluster State from Coupled Quantum Dots, Physical Review Letters 105, 093601 (2010).
- [83]A. Russo, E. Barnes, and S. E. Economou, Generation of arbitrary all-photonic graph states from quantum emitters, New Journal of Physics 21, 055002 (2019), arXiv:1811.06305 [quant-ph].DOI
- [84]H. Kesten, The critical probability of bond percolation on the square lattice equals 1/2, Communications in Mathematical Physics 74, 41 (1980).DOI
- [85]F. Y. Wu, Critical point of planar Potts models, Journal of Physics C: Solid State Physics 12, L645 (1979).DOI
- [86]C. Gidney, Stim: A fast stabilizer circuit simulator, Quantum 5, 497 (2021), arXiv:2103.02202 [quant-ph].DOI
- [87]J. Edmonds, Paths, trees, and flowers, Canadian Journal of Mathematics 17, 449 (1965).
- [88]O. Higgott and C. Gidney, Sparse Blossom: Correcting a million errors per core second with minimum-weight matching, Quantum 9, 1600 (2025).DOI
- [89]W. P. Grice, Arbitrarily complete Bell-state measurement using only linear optical elements, Physical Review A 84, 042331 (2011).DOI
- [90]C. Wang, J. Harrington, and J. Preskill, Confinement-Higgs transition in a disordered gauge theory and the accuracy threshold for quantum memory, Annals of Physics 303, 31 (2003).DOI
- [91]B. Criger and I. Ashraf, Multi-path Summation for Decoding 2D Topological Codes, Quantum 2, 102 (2018), arXiv:1709.02154 [quant-ph].DOI
- [92]A. R. O’Rourke and S. Devitt, Compare the pair: Rotated versus unrotated surface codes at equal logical error rates, Physical Review Research 7, 033074 (2025).arxiv.org/abs/2409.14765
- [93]C. Chamberland and M. E. Beverland, Flag fault-tolerant error correction with arbitrary distance codes, Quantum 2, 53 (2018).DOI
- [94]G. de Felice, B. Poór, C. Comfort, L. Yeh, M. Kupper, W. Cashman, and B. Coecke, A dataflow programming framework for linear optical distributed quantum computing, Quantum 10, 1972 (2026), arXiv:2601.08389 [quant-ph].DOI



