원시데이터 수집 시스템
선정목록으로

A new twist on the Majorana surface code: Bosonic and fermionic defects for fault-tolerant quantum computation

관련 필름·전자재료 · (11) 배리어 필름

기본 정보

저자
  1. McLauchlan, Campbell
  2. Béri, Benjamin
DOI
1017863cam109881
저널
Apollo (University of Cambridge)
발행년도
2024
발행기관
University of Cambridge
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://www.repository.cam.ac.uk/handle/1810/370462
토픽
Chemical and Physical Properties of Materials
OpenAlex ID
W6962828981

평가 내용

관련도
관련
사업분야
필름·전자재료 · (11) 배리어 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 배리어 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Majorana zero modes (MZMs) are promising candidates for topologically-protected quantum computing hardware, however their large-scale use will likely require quantum error correction. Majorana surface codes (MSCs) have been proposed to achieve this. However, many MSC properties remain unexplored. We present a unified framework for MSC "twist defects" – anyon-like objects encoding quantum information. We show that twist defects in MSCs can encode twice the amount of topologically protected information as in qubit-based codes or other MSC encoding schemes. This is due to twists encoding both logical qubits and "logical MZMs," with the latter enhancing the protection microscopic MZMs can offer. We explain how to perform universal computation with logical qubits and logical MZMs while potentially using far fewer resources than in other MSC schemes. All Clifford gates can be implemented on logical qubits by braiding twist defects. We introduce lattice-surgery-based techniques for computing with logical MZMs and logical qubits, achieving the effect of Clifford gates with zero time overhead. We also show that logical MZMs may result in improved spatial overheads for sufficiently low rates of quasi-particle poisoning. Finally, we introduce a novel MSC analogue of transversal gates that achieves encoded Clifford gates in small codes by braiding microscopic MZMs. MSC twist defects thus open new paths towards fault-tolerant quantum computation.

본문 198,645자

본문 펼치기
## A new twist on the Majorana surface code: Bosonic and fermionic defects for fault-tolerant quantum computation Campbell McLauchlan <sup>1</sup> and Benjamin B´eri <sup>1,2</sup> 1DAMTP, University of Cambridge, Wilberforce Road, Cambridge, CB3 0WA, UK 2T.C.M. Group, Cavendish Laboratory, University of Cambridge, J.J. Thomson Avenue, Cambridge, CB3 0HE, UK May 2023 Majorana zero modes (MZMs) are promising candidates for topologically-protected quantum computing hardware, however their large-scale use will likely require quantum error correction. Majorana surface codes (MSCs) have been proposed to achieve this. However, many MSC properties remain unexplored. We present a unified framework for MSC “twist defects” – anyon-like objects encoding quantum information. We show that twist defects in MSCs can encode twice the amount of topologically protected information as in qubit-based codes or other MSC encoding schemes. This is due to twists encoding both logical qubits and “logical MZMs,” with the latter enhancing the protection microscopic MZMs can offer. We explain how to perform universal computation with logical qubits and logical MZMs while potentially using far fewer resources than in other MSC schemes. All Clifford gates can be implemented on logical qubits by braiding twist defects. We introduce lattice-surgerybased techniques for computing with logical MZMs and logical qubits, achieving the effect of Clifford gates with zero time overhead. We also show that logical MZMs may result in improved spatial overheads for sufficiently low rates of quasi-particle poisoning. Finally, we introduce a novel MSC analogue of transversal gates that achieves encoded Clifford gates in small codes by braiding microscopic MZMs. MSC twist defects thus open new paths towards fault-tolerant quantum computation. 1 Introduction Quantum computers promise considerable advantages over their classical counterparts, such as the ability to efficiently simulate large quantum systems [1]. In order to achieve these advantages, one requires quantum systems that are well-shielded from environmental noise, and on which one can perform operations fault-tolerantly. Majorana zero modes (MZMs) in topological superconductors [2–7] have been the focus of intense experimental efforts recently [8–16]. MZMs promise many advantages for quantum computing, including topological protection of quantum information [3, 17] and fault-tolerant generation of Clifford gates [18] by braiding operations [17, 19–23]. While braiding is not sufficient for universal quantum computation, techniques exist for implementing high-fidelity non-Clifford gates in MZM qubits [24, 25]. Despite these advantages, the ultimately limited coherence times [26], the large timescales for braids [27, 28] and the effects of quasi-particle poisoning [29] likely mean that MZMs must be combined with quantum error correction to achieve fault-tolerant quantum computation. Surface codes [30–34] are quantum error-correcting codes with many promising features. They are naturally suited to physical implementation due to the locality of their stabilizers (operators to be measured for error correction), and their high error thresholds (the maximum tolerable single-qubit error rate) [35, 36]. They also support various schemes for fault-tolerant state preparation [32, 37] and logic gate implementation [35, 38–43]. A leading paradigm stores encoded qubits in surface code patches with holes [35, 44, 45] and/or extrinsic defects called twists [46–49]. These twists and holes can be braided to fault-tolerantly enact gates on encoded qubits [39, 47], and can reduce error-correction overheads [50–52]. Recent experimental advances include proof-of-principle demonstrations of error correction [53, 54] and twist braiding [55] in surface codes. Surface codes also have a fermionic counterpart, built from MZMs rather than qubits [56–61]. These Majorana surface codes (MSCs) utilize the topological protection of MZMs and also enjoy partial protection of quantum information by fermion parity conservation [56, 58]. In certain physical setups, stabilizer measurements can also be performed in a single shot [57, 62]; this is in contrast to qubit-based surface codes where this requires multiple gates and ancillas. Setups with large charging energies require fewer stabilizer measurements [22, 61]. Additionally, MSCs have favourable error thresholds [58, 63], and can be used for fault-tolerant fermionic computation [58] that allows considerable resource savings on fermionic sim Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 1 ulation tasks [64, 65]. The full range of MSC features are yet to be explored. Analogously to the bosonic (i.e., qubitbased) surface code, storing logical qubits in holes can achieve a logical CNOT gate by braiding the holes [33, 57, 60]. But other Clifford gates require measuring high-weight operators, or distilling ancilla states and implementing gadget circuits [57, 60]. While braiding holes alone cannot achieve all Clif ford gates, the study of twist defects may expand the gate set: In the bosonic surface code, braiding twists and holes can achieve all Clifford gates [39], and in the bosonic Color Code [34] (closely related to the MSC [56]), braiding twists alone can achieve the same [47]. This suggests that twists in MSCs are features worthy of exploration. Motivated by this, in this work we establish the fundamental features and classification of twist defects in the MSC, and show how to use them for quantum computation. Besides highlighting features analogous to bosonic codes, we show that MSC twists can include “logical MZMs” [56, 58]: fermion-parity-odd objects that can enhance the protection from “microscopic” MZMs and enable fault-tolerant fermionic quantum computation. (Objects related to logical MZMs appeared also in other contexts [62, 66–68].) The presence of both bosonic and fermionic twist features opens up two modes of fault-tolerant quantum computation that could be profitably combined. Our study of MSC twists also complements results on the classification and use of topological defects in the context of topological order [48, 69–71]. The rest of this work is structured as follows. We start, in Section 2, with the main ingredients of MSCs, including their anyons, and fault-tolerant quantum computation. We also establish here the types of boundaries supported by MSCs. In Section 3, we classify MSC twists and detail their properties, including their logical Hilbert space dimensions (i.e., their “quantum dimensions”). As in bosonic codes, twists are classified via the symmetries of the MSC’s anyons. But logical MZMs are inherently fermionic and hence have no counterparts in bosonic codes. We find that a phase transition along the domain wall connecting two twists can result in logical MZMs emerging at the twists. This expands on how one-dimensional physics can enrich the classification of twist defects [69], by showing how this may lead to non-local logical MZMs. While mentioned in the MSC literature [56, 58], the range of scenarios in which one expects to find logical MZMs and their link to twists have not yet been explored. In Section 4, we discuss how universal fault-tolerant quantum computation can be performed with twists in the MSC, simultaneously utilizing both logical qubits and logical MZMs. This allows for roughly twice the information to be stored and manipulated per twist as would be possible in bosonic ap proaches. The twists we discuss provide independent ways to protect information from fermion-parityviolating errors (so-called quasi-particle poisoning or QPP events [17]) and fermion-parity-conserving (FPC) errors. In Section 5 we explore the spatial overheads of computing with logical MZMs, and show that these may be considerably reduced if the QPP probability is suitably small. We focus on a fault-tolerant implementation of “Pauli-based computation” (PBC) [62, 72, 73] with the MSC; PBC is a measurement-based model of quantum computation that optimizes the use of quantum resources, at the cost of additional, but efficient, classical computing. Finally, in Section 6, we present a new method to implement fault-tolerant gates in MSCs. This is a fermionic analogue of transversal gates in bosonic codes. It implements encoded Clifford gates by braiding the MSC’s constituent MZMs. This technique is particularly suitable for small codes, and hence could be utilized in early-generation Majorana devices. In Section 7 we conclude and discuss avenues for future work. 2 Basic MSC Ingredients In this section, we briefly review the basics of Majorana fermion codes [56], fault-tolerant quantum computing [1], and the construction of MSCs and their anyons [57, 60, 61]. We also establish the types of boundaries MSCs can support and describe their lattice realization. Majorana fermion codes, and as such the MSC, are based on Majorana operators _γi_ satisfying _γj_ <sup>_†_</sup> <sup>=</sup> <sup>_γj,_</sup> _{γi, γj}_ = 2 _δi,j,_ (1) where _{, }_ is the anti-commutator. MZMs in topological superconductors realize this algebra. In addition, they commute with and are absent from the Hamiltonian, hence the term zero mode. In the MSC, the latter property will not hold for constituent MZMs, thus we will sometimes call them simply Majoranas. Logical MZMs however, as we will see, enjoy both the Majorana [Equation (1)] and the zero mode properties. 2.1 Majorana Fermion Codes Let Maj(2 _n_ ) denote the group of Majorana strings generated by Majorana operators _γ_ 1 _, . . ., γ_ 2 _n_ and the phase factor _i_ . For index subsets _A_ and _B_, take Γ _A_ and Γ _B_ to be Γ _A_ ( _B_ ) = <sup>�</sup> _j∈A_ ( _B_ ) <sup>_γj_</sup> <sup>.</sup> Equation (1) implies Γ _A_ Γ _B_ = ( _−_ 1) <sup>_|A|·|B|_</sup> <sup>+</sup> <sup>_|A∩B|_</sup> Γ _B_ Γ _A,_ (2) where _|A|_ is the weight of Γ _A_, i.e., the cardinality of _A_ . Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 2 Majorana fermion code object Definition Total fermion parity Γ Γ = _i_ <sup>_n_</sup> <sup><u>�2</u></sup> _<u>j</u>_ <u>=1</u> <sup>_n_</sup> <sup>_γj_</sup> Stabilizer group _S_ Abelian subgroup _S_ _⊂_ Maj(2 _n_ ) s.t. _−I_ _∈S/_ and [ _s,_ Γ] = 0 _∀s ∈S_ Equivalence class [ _L_ ] = _{Ls|s ∈S}_ of operators, Logical operator _L_ s.t. [ _L, s_ ] = 0 _∀s ∈S_, _L_ _∈S/_, and [ _L,_ Γ] = 0 Equivalence class [Υ] = _{_ Υ _s|s ∈S}_ of operators, Logical MZM Υ s.t. [Υ _, s_ ] = 0 _∀s ∈S_ and _{_ Υ _,_ Γ _}_ = 0 Code distance _d_ _d_ = min _L,s_ _|Ls|_, where _|Ls|_ is the weight of the logical _Ls_ _l_ = min _L,s_ diam( _Ls_ ), Code diameter _l_ where diam( _Ls_ ) is the geometric diameter of the support of _Ls_ Table 1: Summary of important objects and quantities of Majorana fermion codes. From the 2 _n_ Majorana operators we can construct _n_ fermionic creation operators _c_ <sup>_†_</sup> _j_ <sup>=</sup> <sup>(</sup> <sup>_γ_</sup> <sup>2</sup> <sup>_j−_</sup> <sup>1</sup> <sup>_−_</sup> _iγ_ 2 _j_ ) _/_ 2. The 2 _n_ Majorana operators thus act on a 2 <sup>_n_</sup> dimensional space, with basis states labeled by _c_ <sup>_†_</sup> _j_ <sup>_cj_</sup> <sup>.</sup> Let Γ = ( _−_ 1)� _j_ <sup>_c†_</sup> _j_ <sup>_cj_</sup> = _in_ <sup>�2</sup> _j_ =1 <sup>_n_</sup> <sup>_γj_</sup> <sup>denote</sup> <sup>the</sup> <sup>total</sup> fermion parity operator. Half of the states will have even fermion parity, Γ _|ψ⟩_ = _|ψ⟩_, and the other half will have odd fermion parity. <sup>_†_</sup> _j_ <sup>_cj_</sup> <sup>.</sup> code states, they can have different weights. The distance of the code is defined as the smallest among the weights of logical operators, min _L,s |Ls|_ . To further characterize codes, we define the diameter diam(Γ _A_ ) of a logical operator Γ _A_ to be the geometrical diameter of its support. Similarly to the distance, the code diameter is defined as min _L,s_ diam( _Ls_ ). As noted in Ref. [56], and as we explain in Section 3.3, a code with logical MZMs can have large diameter but small distance. See Table 1 for a summary of the objects and quantities introduced above. Error correction is performed in the same way in Majorana fermion codes and bosonic stabilizer codes [18, 56]. First, one measures the generators of _S_ ; the returned outcomes form the “syndrome”. If no error has occurred, then all of these outcomes are +1; if some of them are _−_ 1, then an error has occurred (assuming for now perfect measurements). Then one can use classical algorithms, called decoders, to diagnose the syndrome, and determine the correction operation to map the post-measurement state back to the original code space. Methods also exist for performing stabilizer measurements in a way that is resilient to measurement errors, and hence error correction can be performed fault-tolerantly [1, 32, 36]. Error correction results in a logical error rate approaching zero with increasing code distance when the error probability (both for storage and measurements) is below the error threshold [32, 36]. 2.2 Universal Fault-Tolerant Quantum Computation Beyond just storing quantum information we also require methods for performing gates on encoded qubits in ways resilient to faults or pre-existing errors in the system. A universal set of logic gates allows one to enact an arbitrary quantum circuit [1]. One such universal gate set is given by the Clifford gates combined with the _T_ gate. Suppose we have _k_ qubits. <sup>_†_</sup> _j_ <sup>_cj_</sup> = _in_ <sup>�2</sup> _j_ <sup>_n_</sup> Let Γ = ( _−_ 1) _j_ <sup>_c†_</sup> _j_ A Majorana fermion code is specified by its stabilizer group _S_, an Abelian subgroup of Maj(2 _n_ ) [18, 56]. The stabilizer group satisfies _−I_ _∈S/_ and all _s_ _∈S_ have even weight, hence [Γ _, s_ ] = 0. (We assume for now that Γ _∈S_, although this assumption will be dropped below.) Logical (or code) states _|ψ⟩_ span the code space. They satisfy _s |ψ⟩_ = _|ψ⟩∀s_ _∈S_ . Since Γ _∈S_, code states have definite (namely even) parity, hence they can be superposed [56, 64]. Suppose that _S_ has _m_ independent generators. This leaves a 2 <sup>_n−m_</sup> -dimensional code space. Hence _k_ = _n −_ _m_ is the number of logical qubits. The code’s logical operators are even-weight elements of Maj(2 _n_ ) that commute with all _s_ _∈S_ but are not themselves in _S_ . We define logical operators _X_ ¯ _j_ and _Z_ ¯ _j_ such that they act as Pauli operators on logical qubit _j_ . Note that a logical operator _L_ and _Ls_ act equivalently on code states for any _s_ _∈S_ . Hence we define the equivalence class of logical operator _L_ to be [ _L_ ] = _{Ls|s_ _∈S}_ . Some Majorana fermion codes also have parity-non-preserving (odd-weight) operators that commute with all members of _S_ apart from Γ (in such cases Γ is removed from _S_, and we separately require that logical operators commute with Γ). We refer to these operators as logical MZMs, for reasons mentioned above (see also Section 3). Suppose the code is defined on a _D_ -dimensional lattice with one Majorana operator per site. Suppose also that _S_ has generators _Op_ whose support (i.e., sites where _Op_ differs from identity) is local. While logical operators in [ _L_ ] act the same way on Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 3 Let _Pk_ be the _k_ -qubit Pauli group and _Ck_ be the _k_ qubit Clifford group. The group _Ck_ consists of Clifford gates: those unitary operations that preserve _Pk_ under conjugation. That is, for all _P_ _∈Pk_ and _U_ _∈Ck_, _UPU_ <sup>_†_</sup> _∈Pk_ . _Ck_ is generated by the singlequbit Hadamard and phase gates and the two-qubit CNOT gate. The Hadamard gate _Hi_ = _Hi_ <sup>_†_</sup> <sup>acting</sup> <sup>on</sup> CNOT gate. The Hadamard gate _Hi_ = _Hi_ <sup>_†_</sup> <sup>acting</sup> <sup>on</sup> qubit _i_ maps the Pauli operator _Xi_ (also acting on qubit _i_ ) to _HiXiHi_ <sup>_†_</sup> <sup>=</sup> <sup>_Zi_</sup> <sup>.</sup> <sup>The</sup> <sup>phase</sup> <sup>gate</sup> <sup>_Si_</sup> <sup>obeys</sup> qubit _i_ ) to _HiXiHi_ <sup>_†_</sup> <sup>=</sup> <sup>_Zi_</sup> <sup>.</sup> <sup>The</sup> <sup>phase</sup> <sup>gate</sup> <sup>_Si_</sup> <sup>obeys</sup> _SiXiSi_ <sup>_†_</sup> <sup>=</sup> <sup>_Yi_</sup> <sup>and</sup> <sup>_SiYiS_</sup> _i_ <sup>_†_</sup> <sup>=</sup> <sup>_−Xi_</sup> <sup>.</sup> <sup>The</sup> <sup>CNOT</sup> <sup>gate,</sup> _i_ <sup>_†_</sup> <sup>=</sup> <sup>_Yi_</sup> <sup>and</sup> <sup>_SiYiS_</sup> _i_ <sup>_†_</sup> _SiXiSi_ <sup>_†_</sup> <sup>=</sup> <sup>_Yi_</sup> <sup>and</sup> <sup>_SiYiS_</sup> _i_ <sup>_†_</sup> <sup>=</sup> <sup>_−Xi_</sup> <sup>.</sup> <sup>The</sup> <sup>CNOT</sup> <sup>gate,</sup> controlled on qubit _i_ and targeted on qubit _j_ sends _Xi_ _�→_ _XiXj_ and _Zj_ _�→_ _ZiZj_ (while preserving _Zi_ and _Xj_ ) under conjugation. The single-qubit _T_ gate is a non-Clifford gate which acts as diag(1 _, e_ <sup>_iπ/_</sup> <sup>4</sup> ) in the computational basis. We now describe a universal set of gates for fermionic quantum computation with Majorana operators, in which _n_ qubits are “densely” encoded [17] using 2 _n_ + 2 Majorana operators into a fixed total fermion parity sector (either even or odd). This model of computation is ultimately equivalent to qubit-based computation, but it conveys advantages for tasks such as simulating other fermionic systems, as it avoids the overheads associated with non-local fermion-qubit mappings (e.g., Jordan-Wigner transformations) [64, 65, 74]. Braid operations generate some of the gates required for quantum computation [17, 64]. These are unitary transformations of the form exp ( <sup>_<u>π</u>_</sup> 4 <sup>_γaγb_</sup> <sup>)</sup> <sup>for</sup> _a, b ∈{_ 1 _, . . .,_ 2 _n_ + 2 _}_, sending _γa_ _�→−γb_ and _γb_ _�→_ _γa_ under conjugation. They can be performed in a (e.g., two-dimensional) physical system by braiding (physically or via measurements) two MZMs in a clockwise direction. Braids are naturally fault-tolerant, since the unitary transformation depends only on the topology of the path along which the state is taken, rather than the details of this path. However, braids alone do not generate a universal gate set. A universal gate set with 2 _n_ + 2 Majorana operators ( _n_ _≥_ 1) is given by two types of operators, denoted _B_ 4 and _T_ 2 [64]. _B_ 4 operators are fermionic variants of Clifford gates [62], and they have the form _B_ 4 _,abcd_ = exp ( _i_ <sup>_<u>π</u>_</sup> 4 <sup>_γaγbγcγd_</sup> <sup>)</sup> <sup>for</sup> <sup>distinct</sup> <sup>indices</sup> _a, b, c, d_ _∈{_ 1 _, . . .,_ 2 _n_ + 2 _}_ . We call these operators “logical braids” since they have the same form as a braid operator, but between Majorana _γa_ and the logical Majorana operator Υ _bcd_ = _iγbγcγd_ . (This logical Majorana is not necessarily a logical MZM for it may not commute with all stabilizer operators; when all the _γa_ are used for computation, the stabilizer group is _{_ 1 _,_ Γ _}_ ). If multiple logical Majorana operators Υ _j_ (with multi-index _j_ ) are defined on nonoverlapping sites, they obey the same relations as Majorana operators [cf. Equation (1)]: Υ <sup>_†_</sup> _j_ <sup>=</sup> <sup>Υ</sup> <sup>_j_</sup> <sup>and</sup> _{_ Υ _j,_ Υ _k}_ = 2 _δj,k_ for all _j, k_ . _T_ 2 operators are nonClifford gates, with the form _T_ 2 _,ab_ = exp ( <sup>_<u>π</u>_</sup> 8 <sup>_γaγb_</sup> <sup>)</sup> <sup>for</sup> Clifford gates, with the form _T_ 2 _,ab_ = exp ( <sup>_<u>π</u>_</sup> 8 <sup>_γaγb_</sup> <sup>)</sup> <sup>for</sup> indices _a, b_ _∈{_ 1 _, . . .,_ 2 _n_ + 2 _}_ . _B_ 4 gates can be implemented fault-tolerantly via a combination of an cilla preparation, braids and fermion parity measurement [64], whereas the fault-tolerant implementation of _T_ 2 gates requires magic state distillation (see below). There are many proposed methods for performing logic gates fault-tolerantly on information stored in quantum codes. For MSCs, previous proposals have suggested replacing Clifford gates with measurements, which can be performed fault-tolerantly via “lattice surgery” [37, 58, 61]. These involve fault-tolerantly measuring extra stabilizer operators, which results in the fusion of two or more patches of code. In the bosonic surface code, Clifford gates can be performed via the introduction of holes or twist defects (see Section 3) in the lattice. Using “code deformation”, one can braid these lattice features, thereby achieving gates on the logical qubits [39, 45, 47]. Holes can also be introduced to the MSC and braided to achieve CNOT gates [57]. The Hadamard gate can also be applied to these qubits, but this involves measuring a high-weight Majorana operator, which may be challenging in physical setups [57, 60]. The _S_ gate can be implemented by preparing an ancilla logical qubit in a high-fidelity Pauli- _Y_ eigenstate, and then performing _H_ and CNOT gates to the ancilla and target qubits [57, 60]. Thus, all Clifford generators can be enacted in MSCs with holes. _T_ gates may be enacted by preparing an ancilla logical qubit in a “magic state” such as _~~√~~_ <u>1</u> 2 <sup>(</sup> <sup>_|_</sup> <sup>0</sup> <sup>_⟩_</sup> <sup>+</sup> <sup>_eiπ/_</sup> <sup>4</sup> <sup>_|_</sup> <sup>1</sup> <sup>_⟩_</sup> <sup>).</sup> By performing Clifford gates and measurements on the ancilla and target qubits, one can generate a _T_ gate acting on the target [1]. To prepare these magic states fault-tolerantly, we can prepare many (noisy) copies in our quantum code, and distill a single purified copy, again via Clifford gates and measurements (this procedure is called magic state distillation) [75–80]. Magic states can also be used to enact _T_ 2 gates (or other non-Clifford gates) on Majoranabased qubits [62, 65]. In addition to logic gates, we require the ability to fault-tolerantly prepare logical qubits in some state (e.g., the state _|_ 0 _⟩_ <sup>_⊗N_</sup> for _N_ logical qubits) and mea sure the logical qubits in the computational basis. In bosonic codes, these processes involve performing single-qubit Pauli measurements and stabilizer measurements [36]. We will discuss how they are performed in the MSC below. 2.3 Majorana Surface Code We define the MSC on a trivalent, three-colorable lat tice [57] (i.e., a lattice whose plaquettes can each be assigned one of three colors, such that no two adjacent plaquettes have the same color). In general, the plane has several trivalent, three-colorable tilings [34]. Among these, we focus on the honeycomb lattice, a patch of which is shown in Figure 1. Majorana operators _γi_ are assigned to sites of the lattice. Plaquettes Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 4 1 2 6 3 5 4 = _Op_ = _iγ_ 1 _γ_ 2 _γ_ 3 _γ_ 4 _γ_ 5 _γ_ 6 _Z_ ¯ _<u>X</u>_ <u>¯</u> Logical operators Anyons Figure 1: MSC patch encoding a single logical qubit. Plaquettes are colored red, green or blue. Plaquette operators _Op_ are defined as shown for the example of a green plaquette. An example of a blue bond operator is highlighted. This operator creates two anyons (blue dots) on the blue plaquettes at its endpoints. The boundaries of the patch are red or green as shown; they are assigned the colors not featured in boundary plaquettes. Logical operators _X_ <sup>¯</sup> and _Z_ <sup>¯</sup> correspond to red and green string operators respectively, which terminate on samecolored, opposite boundaries. Corners between boundaries of different types are indicated by pink dots. are assigned one of three colors, red, green or blue, as shown in Figure 1. Each plaquette _p_ has an associated plaquette operator _Op_ = _i_ <sup>_|∂p|/_</sup> <sup>2 �</sup> _j∈∂p_ <sup>_γj_</sup> <sup>,</sup> <sup>where</sup> <sup>_∂p_</sup> <sup>is</sup> _p_ ’s boundary and where we choose an arbitrary (but definite) ordering of the product (see Figure 1). The stabilizer group _S_ is then generated by the complete set of _Op_ in the system. In Figure 1, there are 2 _n_ = 60 Majoranas and _m_ = 29 independent stabilizer generators. Hence there is _k_ = 1 logical qubit encoded in the patch. Bonds are also assigned a color, namely that of the plaquettes at their ends. A bond operator associated with bond _e_, connecting Majoranas _γj_ and _γk_, is defined as _Oe_ = _iγjγk_ . A string _S_ is a set of bonds that all have the same color. String operators are then given by the product of all associated bond operators: _OS_ = <sup>�</sup> _e∈S_ <sup>_Oe_</sup> <sup>.</sup> <sup>Logical</sup> <sup>operators</sup> <sup>of</sup> <sup>the</sup> <sup>MSC</sup> <sup>are</sup> string operators that commute with all plaquette operators. For the patch in Figure 1, these correspond to strings running between opposite boundaries. In general, boundary conditions determine the number of logical qubits in the code. The patch in Figure 1 contains one logical qubit, which has logical operators given by the string operators _X_ <sup>¯</sup> and _Z_ <sup>¯</sup> shown. To see that _X_ <sup>¯</sup> and _Z_ <sup>¯</sup> anticommute note that their strings intersect an odd number of times; this renders _|A ∩_ _B|_ odd in Equation (2), while _|A|_ and _|B|_ are both even. As noted earlier, logical operators can be deformed by stabilizers ( _L_ _�→_ _Ls_ for _s_ _∈S_ ) while still acting in the same manner on logical qubits. In the MSC, these deformations map between different string oper ators running between the same boundaries. Thus, in Figure 1, the equivalence class [ _X_ <sup>¯</sup> ] contains all string operators terminating on horizontally opposite boundaries and similarly, [ _Z_ <sup>¯</sup> ] contains all string operators terminating on vertically opposite boundaries. 2.4 Anyons in the MSC Anyons are quasi-particle excitations of two-dimensional, topologically ordered systems [20, 31, 81–83]. In topological quantum codes, we can define a stabilizer Hamiltonian according to which errors in the code correspond to anyons [20, 30]. The MSC, owing to its fermionic nature, has an anyon content that differs significantly from bosonic codes [57]. We review the MSC’s anyon model here. One can assign a stabilizer Hamiltonian to the MSC by _H_ = _−_ <sup>_<u>u</u>_</sup> 2 - _p_ <sup>_Op_</sup> <sup>,</sup> <sup>where</sup> <sup>_u_</sup> <sup>_>_</sup> <sup>0</sup> <sup>and</sup> <sup>the</sup> sum runs over all plaquettes in the lattice. Thus the ground states of the Hamiltonian are code states of the MSC. Excited states are created by applying string operators to one of the ground states _|ψ⟩_ . If string operator _OS_ anti-commutes with plaquette operators _Op_ 1 _, . . ., Opk_, then _OS |ψ⟩_ has energy _ku_ above the ground state energy. We interpret plaquettes _p_ 1 _, . . ., pk_ as hosting anyons and _OS_ as creating these anyons (or annihilating anyons already located at those sites, if _OS_ acts on an excited state). An anyon is labeled with the same color as the plaquette that hosts it: R, G or B for those hosted on red, green or blue plaquettes respectively. The simplest string operator is a bond operator; this creates a pair of anyons at its endpoints, such as those indicated by blue dots in Figure 1. If we consider two blue bonds _e_ 1 and _e_ 2 that have endpoint plaquettes _p, q_ and _q, r_ respectively, applying _Oe_ 1 to _|ψ⟩_ is interpreted as creating anyons on _p_ and _q_ . Then subsequently applying _Oe_ 2 is interpreted as annihilating the anyon on _q_ and creating one on _r_ . Alternatively, it can be thought of as moving the anyon from _q_ to _r_ . Thus applying string operators to an excited state can move the anyons to any other plaquette of the same color as the anyon. There also exist parity-non-conserving processes that create anyons in triplets, rather than pairs. For example, applying a Majorana operator _γj_ to a ground state creates three anyons located on the plaquettes surrounding _γj_ . Due to the 3-colorability of the lattice, these anyons will all be colored differently. Along with the three anyons mentioned, we also interpret the vacuum (no anyons present) as a quasiparticle, labeled 1 . This will allow us to formalize fusion: the process of bringing two anyons close together and viewing the result as a separate anyon. For example, the fusion of R and B can be viewed as the anyon BR. A triplet of anyons created by a single Majorana operator is also considered as a distinct anyon, RGB. Note that creating a single RGB from 1 is not a Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 5 #### _×_ _×_ _×_ _×_ # = = ##### etc. Figure 2: Non-trivial anyon fusion processes in the MSC. Any two anyons of the same color may be fused to the vacuum (top). Two anyons of different colors A and B may be fused into the composite AB (the example of B and G fusion is shown at the bottom). fermion parity conserving process. To highlight this, we break the anyon content of the model into two sets, _{_ 1 _,_ R _,_ G _,_ RG _}_ and _{_ RGB _,_ GB _,_ BR _,_ B _}_ [57], where the second set is obtained from the first by fusion with RGB. We have the following (commutative and associative) fusion rules, dictating how anyons can be combined or split: 1 _×_ A = A _,_ A _×_ A = 1 (for all anyons A) A _×_ C = AC (for all anyons A _̸_ = C) _._ (3) The non-trivial rules are summarized in Figure 2. The fusion rules imply that anyons can be created (via splitting from an initial set) only in color-neutral combinations. All anyons in the system must be able to annihilate back to the initial set of anyons. There are two initial sets, 1 and RGB, which are inequivalent because RGB cannot transform to 1 under any fermion parity conserving process. These anyons and fusion rules thus describe a system with a _Z_ 2 fermion parity grading [57]. We discuss the braiding statistics of these anyons in Appendix A.1. Similarly to anyons, string operators also obey fusion rules. Viewing C as the endpoint of string operator of color C _∈{_ R _,_ G _,_ B _}_ and 1 as the identity operator, we can apply Equations (3) to string operators even away from their endpoints. (We equate RGB with 1 in this context because an RGB pair can be created by a Majorana pair without string operators.) Fusion and splitting of string operators is implemented by multiplication with stabilizers. For example, the green string operator _Z_ <sup>¯</sup> in Figure 1 can be split, by multiplication with green stabilizers, into blue and red strings (i.e., products of blue and red bond operators) along its length. This is shown in Figure 3. Hence the non-trivial rules from Equations (3) for string operators become R = G _×_ B and all cyclic permutations of this. 2.5 Boundaries in the MSC Topological systems sometimes admit gapped boundaries, with a classification that is possible purely Figure 3: An example of string operator fusion. (a) Schematic illustration of a green string splitting into blue and red strings away from its endpoints. Black dots indicate single Majorana operators, at which points strings of three colors fuse. (b) A lattice-based illustration of the same phenomenon. The blue and red strings arise from the green string via multiplication by stabilizers _O_ 1 and _O_ 2. by considering the model’s anyon content (see Appendix A.2 for details). A system is gapped if the gap in energy between ground and lowest-energy excited states is bounded from below by a constant independent of the system size. Gapped boundaries of topological models are not only important from a condensed matter perspective [84, 85], but also play an important role in quantum computation [31, 52, 86]. In the MSC there exist three topologically-distinct types of gapped boundary, which can be colored red, green and blue respectively. These are shown in Figure 4. The three boundaries are distinguished from one another by the color of string operator that can terminate on that boundary. (Equivalently by the plaquette color not appearing on the boundary.) For example, in Figure 1, the top and bottom boundaries are green, since the green string operator _Z_ <sup>¯</sup> terminates on both of them. Equivalently, any green anyons present in the system may be brought into proximity of a green boundary, where local, fermion-paritypreserving processes (e.g., the application of a green bond operator) can result in the anyon being absorbed by the boundary: we say that the anyon “condenses” at that boundary. C-boundaries (for C = R _,_ G _,_ B) can condense only C-anyons. Anyon condensation processes are shown in Figure 4. Beyond this classification, fermionic systems have an extra _Z_ 2 fermion parity grading along their one-dimensional boundaries. We will explore this further in the next section. 3 Twist Defects of the Majorana Surface Code If _φ_ is a permutation of the anyon labels, we say that _φ_ is a symmetry if it preserves the fusion rules and statistics (see Appendix A.1) of the anyons [71]. In two (a) _O_ 1 _O_ 2 (b) Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 6 Figure 4: Three boundary types of the MSC and their anyon condensation processes. Each boundary can be colored green (left), blue (middle) or red (right) depending on the anyons that may be condensed at that boundary. dimensional topologically ordered systems, (transparent) domain walls are one-dimensional defects that are associated with symmetries of the anyon labels [71, 84, 87]. An anyon _a_ crossing the wall (in a given direction) is transformed into _φ_ ( _a_ ) where _φ_ is the symmetry associated with the domain wall. If _a_ crosses the wall in the opposite direction, it is transformed into _φ_ <sup>_−_</sup> <sup>1</sup> ( _a_ ). Domain walls can terminate at point-like twist defects (“twists” for short) [48, 69–71, 84, 87–89]. It has been shown that these twist defects are closely related to non-Abelian anyons [46, 49, 69, 90], and can be used for topological quantum computation in surface codes [39, 46–48, 91]. Twists can be classified by the permutation that is enacted on an anyon encircling the twist in a clockwise direction. If a domain wall associated with symmetry permutation _φ_ terminates at two twists, one will be a _φ_ twist, and the other will be a _φ_ <sup>_−_</sup> <sup>1</sup> twist. We now introduce the twist defects appearing in the MSC. While some examples of MSC twists have previously appeared in the literature [56, 61], we establish here their fundamental features and provide their exhaustive categorization <sup>_1_</sup> . In this model we have three non-vacuum anyon labels (either _{_ R _,_ G _,_ B _}_ or _{_ RG _,_ GB _,_ BR _}_ ) that can be permuted in any way while still preserving the anyonic data, and hence the anyons possess an _S_ 3 symmetry. Any non-identity element of the permutation group _S_ 3 either swaps a pair of labels, generating a cyclic group _Z_ 2, or it is a length-3 cycle, generating the subgroup _Z_ 3. Thus domain walls and twists in the MSC are either of type _Z_ 2 or _Z_ 3. Beyond this classification, we can further identify sub-types. There are three types of _Z_ 2 twists, which we label _T_ R, _T_ B and _T_ G, according to the color of the anyon that is preserved when wound completely around the twist. There are two types of _Z_ 3 twists, labeled _T_ RGB and _T_ RGB <sup>_−_</sup> <sup>1</sup> <sup>.</sup> <sup>The</sup> <sup>former</sup> <sup>enacts</sup> <sup>the</sup> <sup>cycle</sup> _1_ Note that twists have appeared in the MSC context for codes conceptually equivalent to bosonic codes. In Ref. [61], one of the MSC stabilizer colors is implemented as a parity constraint (i.e. the Majoranas are located on “hexons” or “tetrons”) and the others are actively measured. This yields a code which is a Majorana realization of a bosonic surface code and hence the twists considered are those of the surface code. This corresponds to a restricted class of MSC twists: only bosonic _Z_ 2 twists of a single type (e.g. _T_ B) can be included in such setups. R _→_ G _→_ B _→_ R on anyons wound clockwise around the twist, and the latter enacts the inverse cycle. We provide lattice-based realizations of _Z_ 2 and _Z_ 3 twists in Figure 5. Discussion of these sub-types is convenient, but note that we can inter-convert twists between sub-types by relabeling the plaquettes. Indeed, a relabeling of an area _A_ of code in this way amounts to having introduced a closed loop of domain wall at its boundary _∂A_ . Similarly, by relabeling an area adjacent to the domain wall, we can, effectively, move the path of the wall. This shows that domain walls but not the locations of their endpoints - are gauge dependent. Furthermore, if the loop of domain wall encircles a twist, it can change a _Z_ 2 twist’s sub-type to any other within the _Z_ 2 class ( _T_ B, _T_ G or _T_ R) and, similarly, can map between the two _Z_ 3 twist sub-types ( _T_ RGB and _T_ RGB <sup>_−_</sup> <sup>1</sup> <sup>).</sup> <sup>See Appendix B.1 for further details</sup> of such gauge dependencies. Twists in the MSC differ from those in bosonic models in an important way: they can be further subdivided into “bosonic” and “fermionic” types of twist. These differ by a single MZM. However, rather than an extra MZM simply furnishing the twists, as might be expected, in Figure 5 we show that in fact the result can be a _logical_ MZM located at the twist (cf. Section 2.1). In Figure 5a we provide a lattice realization of bosonic _Z_ 2 and _Z_ 3 twists and the domain walls connecting them, while in Figure 5b we show _Z_ 2 and _Z_ 3 fermionic twists. In the latter, the lattice contains pentagonal holes. The (Hermitian) product of all Majorana operators around the boundary of this hole is a fermion-parity-odd operator that, by Equation (2), commutes with all plaquette operators. These operators cannot be included in the stabilizer group, owing to their odd fermion parity. Instead they are logical MZMs. They generalize the key features of MZMs, including their commutation with the Hamiltonian. We discuss these logical MZMs appearing at fermionic twists below, in Section 3.3. A domain wall lying along a boundary can change the color of that boundary, since it alters the color of anyons condensing there. Thus, there is an association between twists and corners, or interfaces between boundaries of different types (see Appendix B.2) [52]. In Figure 1, we have indicated the corners between R and G boundaries in the MSC using pink dots. When such corners are fermionic, they host an MZM (see Figure 5c). Twists can also be fused or split. For example, a _Z_ 3 twist can be split into two _Z_ 2 twists of different sub-types; this follows from _S_ 3 being generated by transpositions (i.e., _Z_ 2 operations) [92]. However, the splitting or fusion of twists must preserve their overall fermionic or bosonic character: it cannot change the number of logical MZMs (mod 2). When a fermionic corner is split, logical MZMs appear, associated with boundaries of odd-length (see Figure 5d). Appendix B.3 has further twist fusion details and ex Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 7 (a) (b) (c) (d) Figure 5: Lattice realizations of twists and logical MZMs in the MSC. In (a) and (b), twists and domain walls are indicated by pink dots and yellow dashed lines respectively. The Majoranas around the boundary of floating orange, pill-shape faces belong to the original honeycomb lattice but, after the introduction of twists, are not included in any plaquette operators. We introduce additional stabilizers of the form _iγaγb_, represented by the orange faces, to remove the degeneracy from these Majorana operators. In (a) we display an example of bosonic _Z_ 2 twists, specifically of type _T_ B (top), and of _Z_ 3 twists (bottom) and the domain walls connecting them. Examples of the new stabilizers introduced are shown at the top. In (b) we display the fermionic counterparts of each of these twists and the resulting change to the orange stabilizers. This results in logical MZMs at twist locations, defined at the top. In (c), a fermionic stretch of boundary is displayed, with pink dots indicating corners. Unpaired MZMs exist at the ends of the green boundary. Local changes to the stabilizer group result in the lattice in (d), which expands the unpaired MZMs into logical MZMs Υ _a_ and Υ _b_ hosted on the odd-length blue boundaries. Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 8 amples. When the MSC is defined on the honeycomb lattice, some Majoranas along domain walls are not included in any plaquettes. In Figure 5a and 5b, we draw orange, pill-shape faces between pairs of Majoranas left out of the lattice in this way. These Majorana operators furnish extraneous fermion modes (cf. Section 2.1), so we introduce additional bilinear stabilizers ( _iγaγb_, for left-out operators _γa_, _γb_ ), represented by the orange faces in Figure 5, to remove the groundstate degeneracy associated with these modes, i.e., to remove these states from our code space. Those Majorana operators included in orange stabilizers are not included in any other stabilizer of the code. These extraneous Majorana operators, along with the logical MZMs at the twists, form a system similar to the Kitaev chain [3]: a one-dimensional string of adjacent, nearest-neighbor Majorana bilinears. Specifically, we replace the first and last of the 2 _n_ Majoranas of a Kitaev chain with logical MZMs Υ _a_ and Υ _b_ . The Hamiltonian [3] therefore has two fixed points, one in a topological phase in which unpaired logical MZMs exist at the endpoints (the situation of Figure 5b), and one in a trivial phase without unpaired logical MZMs. In the latter phase, Υ _a_ and Υ _b_ combine with neighboring Majoranas to form parity-even plaquette operators (e.g., the blue plaquettes at _Z_ 2 twists in Figure 5a). A transition between fermionic and bosonic twists therefore requires the chain to go through a topological phase transition. This corresponds to a change of the chain Hamiltonian (i.e., domain wall stabilizer set) along its entire length, so that the bilinears change from one assignment of adjacent nearest neighbors to the other. The two sets can be seen in Figures 5a and 5b. The existence of these two types of twists thus corresponds to the existence of a topologically non-trivial phase for one-dimensional fermionic systems, as modeled by the Kitaev chain [69, 93, 94]. The fermionic or bosonic nature of a twist is as robust as this topological phase; it is immutable under local, fermion-parity-conserving processes. 3.1 Quantum Dimensions of Twists The ground state degeneracy of a code with twist defects (or equivalently the dimension of the code space) is governed by the quantum dimension of those twists. Given a code with _N_ twists of quantum dimension _d_, the dimension of the code’s ground space grows as _d_ <sup>_N_</sup> for large _N_ . The quantum dimensions of twists in the MSC differ between bosonic and fermionic types, due to fermionic twists also contributing to the degeneracy via their logical MZMs. We can calculate these quantum dimensions by counting the number of anyons that can “localize” at a given twist. An anyon is localized at a twist if it is brought close to that twist and absorbed through local processes. For example, if anyon _a_ obeys _a_ = _b_ _×_ _c_ and twist _φ_ is such that _φ_ ( _b_ ) = ¯ _c_ (the anti-particle of _c_, such that _c ×_ ¯ _c_ = 1 ), then anyon _a_ can be dragged to the vicinity of a twist, then split into anyons _b_ and _c_ . _b_ is then wound clockwise around the twist and thus transformed to _c_ ¯ which can then annihilate with _c_ . This process results in anyon _a_ being localized at the twist. The quantum dimension of a twist _dφ_ is given by _d_ <sup>2</sup> _φ_ <sup>=</sup> <sup>�</sup> _a∈A_ <sup>_Na,φ_</sup> <sup>,</sup> <sup>where</sup> <sup>_A_</sup> <sup>is</sup> <sup>the</sup> <sup>collection</sup> of anyons the system permits, and _Na,φ_ is 1 if anyon _a_ can be localized at _φ_, and 0 otherwise [52]. Let us now count the anyons that can localize at each type of twist. Some of these localization processes are shown in Figure 6. Trivially, all twists localize the vacuum particle 1 . Additionally, for bosonic _Z_ 2 twists, anyon RG can localize at _T_ B, GB at _T_ R and BR at _T_ G. We do not count B as localizing at _T_ B, nor similarly for the other twists, because in order to split B to R _×_ G, we need to introduce an RGB anyon to the system, and hence the twist is localizing RGB _×_ B = RG, rather than just the B anyon. However we can localize B at a fermionic _T_ B twist, because a blue string operator can directly terminate at the odd-length, blue boundary associated with this twist (see Figure 5b), and thereby commute with all stabi lizer generators in the vicinity of the twist. Fermionic twists also localize RGB anyons since, for example, RGB = B _×_ RG, so one can split RGB into these two anyons. Then both B and RG can localize at _T_ B. Thus bosonic _Z_ 2 twists localize two types of anyons (including 1 ), while fermionic _Z_ 2 twists localize four. Bosonic _Z_ 3 twists can localize RG, GB and BR (and 1 ), since these particles can be split into their constituents (e.g., BR = B _×_ R), one of which can be wound either once or twice around the twist until it is transformed into the same type as its partner (e.g., R transformed into B, as shown in Figure 6). Fermionic _Z_ 3 twists also have an odd-length boundary of a single color and hence can localize either R, G or B in the same manner as fermionic _Z_ 2 twists. However, R, G and B can be transformed into one another by en (a) (b) (c) (d) Figure ~~6:~~ ~~Sche~~ matic ill ~~ustration~~ ~~of~~ ~~exam~~ ples of anyon localization. Bosonic twists are indicated by crosses, and fermionic twists by circles containing crosses. Domain walls are indicated by dashed lines. Solid blue/red/green lines are string operato ~~rs.~~ ~~(a)~~ ~~R~~ G anyon localized at a bosonic _T_ B twist indicated in blue. (b) B anyon localized at a fermionic _T_ B twist indicated in blue. (c) RGB particle localized at a fermionic _T_ B twist. String operators of three different colors meet at a single Majorana operator (black dot). (d) BR anyon is localized at a bosonic _T_ RGB twist indicated in black. The arrow on the domain wall indicates the direction in which an anyon crossing the wall undergoes the permutation _T_ RGB. Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 9 _X_ ¯1 _Z_ ¯1 _Z_ ¯2 _X_ ¯2 (b) _Z_ ¯ _X_ ¯ (a) Figure 7: Schematic illustration of logical operators for examples of _Z_ 2 (a) and _Z_ 3 (b) twist defects (either bosonic or fermionic; we depict bosonic twists here). Twists are shown as crosses, domain walls as dashed lines, and string operators as solid lines, colored according to their type. The _Z_ 2 twists and domain walls shown are of type _T_ B. For the _Z_ 3 twists and domain walls, the arrows indicate the direction in which a particle crossing the wall undergoes the permutation _T_ RGB. circling the twist, and hence fermionic _Z_ 3 twists can localize all three of these. Finally, they also localize RGB, similarly to fermionic _Z_ 2 twists. Thus in total, fermionic _Z_ 3 twists can localize all eight anyons. From the above, we can see th _√_ <u>at</u> bosonic _Z_ 2 twists have quantum dimension _d_ <sup>_B_</sup> 2 <sup>=</sup> 2. This signals their similarity to Ising anyons [46]. Fermionic _Z_ 2 twists have quantum dimension _d_ <sup>_F_</sup> 2 <sup>=</sup> <sup>2.</sup> <sup>Bosonic</sup> <sup>_Z_</sup> <sup>3</sup> <sup>twists</sup> have quantum dimension _d_ <sup>_B_</sup> 3 <sup>=</sup> <sup>2,</sup> <sup>whereas</sup> <sup>fermionic</sup> _Z_ 3 twists localize a _√_ <u>ll anyons and hence have quantum</u> dimension _d_ <sup>_F_</sup> 3 <sup>= 2</sup> 2. These quantum dimensions are verified using a different method in Appendix B.4. MZMs are also similar to Ising anyons [17]; hence _√_ they also have quantum dimension 2. This precisely equals the ratio between fermionic and bosonic twist quantum dimensions. Thus going from bosonic to fermionic twists can be seen as attaching an MZM, or a logical MZM, to the defect, as discussed previously. see th _√_ <sup>_B_</sup> 2 <sup>=</sup> _√_ <sup>_F_</sup> 3 <sup>= 2</sup> a _√_ 3.2 Logical Qubits from Twists The degeneracy associated with twist defects discussed in the preceding section can be exploited for quantum computation. Introducing _k_ pairs of bosonic _Z_ 2 twists of a single type (e.g., _T_ B) into the MSC (without boundaries), results in 2 <sup>_k−_</sup> <sup>1</sup> additional ground states and hence _k−_ 1 additional logical qubits. (The _−_ 1 is because it takes at least four twists to get a set of logical operators. This is analogous to at least four Ising anyons being needed to furnish a qubit [83].) For reasons discussed below, we will refer to this type of logical qubit as a “bosonic twist (BT) qubit” and the information it stores as “bosonic logical information.” Logical operators for these BT qubits correspond to string operators encircling pairs of twists. Specifically, if _l_ is a set of red bonds forming a closed loop around a pair of _T_ B twists, then the red string loop �( _j,k_ ) _∈l_ <sup>_iγjγk_</sup> <sup>is</sup> <sup>a</sup> <sup>logical</sup> <sup>operator.</sup> <sup>The</sup> <sup>fact</sup> <sup>that</sup> <sup>it is</sup> not in the stabilizer group results from the inability to deform it past any of the twists. If one could do this, it would change the number of RG anyons localized at that twist, and hence violate the total color conservation of anyons in the system. The conjugate logical operator is given by a red/green string operator encircling a pair of twists and crossing two domain walls (see Figure 7a). Blue string operators encircling _T_ B twists are stabilizer operators. We schematically illustrate the logical operators associated with four _Z_ 2 twists in Figure 7a, using colored lines to indicate string operators. The operators _X_ ¯ and _Z_ ¯ shown anti-commute, since different-colored string operators that cross each other once intersect at a vertex, and hence anti-commute. These logical operators generate the full algebra of operators acting on the logical qubit created by the addition of four twists to the system. In Figure 7b we illustrate the logical operators for four _Z_ 3 twists. In the figure, an anyon crossing a domain wall in the direction of the arrows is transformed according to the permutation _T_ RGB, while those crossing in the opposite direction are transformed according to the inverse permutation. As can be seen, four _Z_ 3 twists permit twice the number of logical operators as four _Z_ 2 twists, owing to the extra degeneracy they afford (cf. Section 3.1). There is an arbitrariness to the logical operators shown. In Figure 7a, one may wrap blue string operators around the two upper-most or left-most twists (these operators are stabilizer elements). The blue strings can be fused with the logical operators indicated, in the sense outlined in Section 2.4, thereby changing the red string operators to green ones and vice versa. If the code is embedded on a sphere, red and green string operators encircling all four twists are stabilizers, since they may be deformed around to the other side of the sphere, where they are not encircling any twists. With different boundary conditions, this becomes complicated, and we deal with these cases in the following section. For now, we continue with the simple case of a sphere. Operators _X_ <sup>¯</sup> and _Z_ <sup>¯</sup> can then be deformed into operators that instead circle the two bottom and right-most twists respectively. In Figure 7b, one cannot change the colors of the strings, since any string operator encircling a pair of _Z_ 3 twists is not a stabilizer. But on a sphere, all strings may be deformed to encircle the other two twists in the set of four. Twists can admit either sparse or dense encodings of logical qubits. This is analogous to encodings with MZMs [17]. In a dense encoding, 2 _k_ +2 twists encode _k_ logical qubits. In sparse encodings, certain logical operators from the dense encoding become stabilizers, thereby lowering the number of logical qubits. For example, in a collection of 4 _k_ _T_ B twists, we can promote to stabilizers all red (and hence also green) string operators surrounding each group of four twists. This results in _k_ logical qubits, each stored within one group Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 10 _i_ Υ _a_ Υ _b_ Υ _c_ (a) (b) Figure 8: Logical MZMs in the MSC with fermionic twists (blue circles containing crosses). In (a) a logical MZM Υ _c_ and a logical MZM bilinear _i_ Υ _a_ Υ _b_ are represented as string operators, the latter being the product of the red string encircling the two twists, and the blue string terminating on the twists. The holes associated with fermionic twists may be enlarged, so long as the resulting boundary has odd length. An example is shown in (b), with the location of the twist and domain wall indicated by a pink dot and dashed line respectively. of four twists, and having the logical operators shown in Figure 7a. 3.3 Logical MZMs from Fermionic Twists Both bosonic and fermionic twists in the MSC host the BT qubits discussed above. This same type of topological degeneracy is seen in twists of qubit-based codes, which is why we refer to it as “bosonic.” For fermionic twists in the MSC we will label the corresponding bosonic logical operators as _X_ <sup>¯</sup> _B_ and _Z_ <sup>¯</sup> _B_ . In addition, fermionic twists also host logical MZMs. In the same way as four physical MZMs can store a single qubit in a fermionic parity sector [17], so too can four logical MZMs Υ _a,_ Υ _b,_ Υ _c,_ Υ _d_ . We can also define encoded Pauli operators acting on the qubits stored by these logical MZMs. For example, for four logical MZMs, we may have “fermionic” logical operators _X_ <sup>¯</sup> _F_ = _i_ Υ _a_ Υ _b_ and _Z_ <sup>¯</sup> _F_ = _i_ Υ _a_ Υ _c_ . We will refer to qubits stored in this way as “fermionic twist (FT) qubits.” Figure 8a shows the operator _i_ Υ _a_ Υ _b_ for two twists, deformed such that it is the product of a red string operator encircling the twists, and a blue string operator terminating on the two twists. It also shows the representation in terms of string operators of a single logical Majorana Υ _c_, which is equivalent to the localization of an RGB anyon at that twist (cf. Section 3.1). The logical operators _X_ <sup>¯</sup> _F_ and _Z_ <sup>¯</sup> _F_ have low minimum weights but large diameters, if the twists are far-separated (cf. Section 2.1). If only local, fermion parity conserving (FPC, i.e., even-weight) errors can occur, FT qubits are protected by the twists’ separation [56]. (Here we assume local coupling to the environment so that elementary FPC error operators are locally supported; all possible FPC error operators are products of these elementary FPC operators.) In realistic setups, however, we also have to contend with quasi-particle poisoning (QPP) resulting in non-FPC errors. The simplest such error operator is a single Majorana operator. To protect FT qubits from QPP, we can grow the size of the odd-length boundaries associated with twists and hence grow the weights of logical MZMs. As such (assuming we also increase twist separation), the FT qubits will have larger distances and so an increased protection against QPP noise. An example of such an enlarged hole is shown in Figure 8b. Note that in systems where FPC errors are more common than QPP events, and if the former have below-threshold error rates, we can reduce the logical error rate to a low value set by QPP by increasing only the twist separation (i.e., increasing the code diameter but not the distance). This contrasts to MSC strategies without logical MZMs, where the code distance must be increased to reduce the logical error rate. Using fermionic twists in systems with low QPP probability, we can store double the number of logical qubits with only a minor increase in overheads, resulting from the size of the odd-boundary holes (see Figure 8b). While for low enough QPP probability microscopic MZMs could be used to store topological qubits, without error-correcting codes such a strategy is not fault-tolerant as any finite QPP rate will inevitably limit the coherence times of the topological qubit. Meanwhile, using logical MZMs, logical error rates resulting from QPP can be made arbitrarily small by increasing the code distance, provided the QPP rate is below the corresponding error threshold. Logical MZMs can also appear in systems with only bosonic twists, when a boundary is introduced to the system. To our knowledge, this type of logical MZM has not been identified previously in the literature. We introduce it in Appendix C. 4 Fault-Tolerant Computation With Twists In this section we detail how to perform fault-tolerant quantum computation with FT and BT qubits. These procedures will require the ability to move twists via “code deformation” (Section 4.1). In Section 4.2 we discuss how to prepare logical Pauli eigenstates and apply Clifford gates to BT qubits. In Sections 4.3 and 4.5 we discuss performing measurements of BT and FT logical operators. The above, combined with the preparation of magic states (Section 4.4), is sufficient for universal computation with both types of qubit. 4.1 Code Deformation For fault-tolerant computation using twists, we need to understand how to move them. We can do this with Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 11 #### p 1 p 2 1 2 7 8 ~~3~~ 4 9 10 5 6 (a) (b) (c) (d) Figure 9: Code deformation to move bosonic (a)-(b) and fermionic (c)-(d) twists (pink dots). Domain walls are yellow/pink dashed lines. (a) A _Z_ 2 bosonic twist along with part of a logical operator (red string), deformed away from the twist. To move the twist one plaquette to the right, we measure the bilinear with the light blue Majorana operators and merge the stabilizers at plaquettes _p_ 1 _,_ 2. (b) A _Z_ 3 bosonic twist. After measuring the new stabilizers _γ_ 1 _γ_ 2 _γ_ 3 _γ_ 4 and _γ_ 3 _γ_ 4 _γ_ 5 _γ_ 6, the stabilizer generators appear as shown in the top inset. Performing two more bilinear measurements produces the stabilizers shown in the bottom inset. The result of these measurements is that the twist is moved to the right. (c) The hole from Figure 8b, associated with a fermionic twist, is enlarged to the left by measuring all light-colored operators. The blue string operator indicated commutes with all these measurements. (d) The hole is shrunk from the right by measuring all light-colored operators. The same blue string operator is n ~~ow~~ ~~deformed~~ ~~to~~ ~~meet~~ ~~the~~ ~~hole~~ ~~on~~ the left-hand side, where it commutes with all of these measurements. code deformation [44, 45, 47, 95, 96]: a process where a code with stabilizer group _S_ is mapped to another code with stabilizer group _S_ <sup>_′_</sup> . To project to a code state of _S_ <sup>_′_</sup>, we perform measurements of its stabilizer generators. In particular, in the new code those previous _S_ stabilizer elements that anti-commute with any _s_ <sup>_′_</sup> _∈S_ <sup>_′_</sup> are replaced. While this changes the code’s stabilizer group, it preserves the logical state if each logical operator equivalence class [ _L_ ] of the original code has members that are also logical operators of the new code. Here we introduce a novel code deformation procedure for the MSC that allows us to move twists. The procedure differs between fermionic and bosonic twists. 4.1.1 Moving Bosonic Twists The code deformation procedure for bosonic _Z_ 2 twists is illustrated in Figure 9a. In the figure, a _T_ B twist along with part of a logical operator (a red string operator encircling this and another twist) are shown. To move the twist to the blue plaquette to its right, we measure the bilinear _υ_ involving Majorana operators at the two light-blue sites. This then becomes an orange stabilizer along the newly enlarged domain wall. Since _υ_ anticommutes with the plaquette operators _Op_ 1 and _Op_ 2 (indicated in the figure), these two operators are not included in _S_ <sup>_′_</sup> . However their product _Op_ 1 _Op_ 2 commutes with _υ_ and hence is included as an 8-body stabilizer element. Note that measuring _υ_ means that the blue hexagonal plaquette formerly hosting the twist can be replaced by a rectangular (4body) plaquette: the new stabilizer generator is the product of _υ_ and the original hexagonal plaquette op Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 12 erator. The logical operator in the figure commutes with the updated stabilizer group. In general, we can always deform these string-like logical operators away from twists [56, 97], so that they commute with the code deformation measurements performed. Thus, twists can be moved via series of small steps like the above, without destroying the information stored in logical qubits. In Figure 9b, a _Z_ 3 bosonic twist is illustrated. If we again wish to move this twist to the right, we first measure the rectangular operators _γ_ 1 _γ_ 2 _γ_ 3 _γ_ 4 and _γ_ 3 _γ_ 4 _γ_ 5 _γ_ 6, with the vertex numbering indicated in the figure. Again, these operators anti-commute with certain members of the original stabilizer group _S_ . After measuring both rectangular operators, the adjacent red, green and blue hexagonal operators to their right are replaced by a 10-body operator (see upper inset of Figure 9b). The rectangular operators both commute with the operator defined on the twist’s original location, _OT_ = _iγ_ 1 _γ_ 2 _γ_ 5 _γ_ 6 _γ_ 7 _γ_ 9. The product of the two rectangular operators is _−γ_ 1 _γ_ 2 _γ_ 5 _γ_ 6 and multiplying this with _OT_, we find that the bilinear _iγ_ 9 _γ_ 7 is a stabilizer element. This is shown in orange in the top inset of Figure 9b. We then measure operators _iγ_ 7 _γ_ 8 and _iγ_ 9 _γ_ 10. This produces the same orange operators as in other locations along the domain wall. By following how the stabilizer group is updated after each of these two measurements, we see that they result in the stabilizer generators indicated in the lower inset of Figure 9b. We can similarly move twists in different directions or generate a pair of twists in the lattice by measuring the stabilizer generators of the new code lattice. If any of these measurements return a _−_ 1 result, we can simply define the new stabilizer generators to be the negative of all measured operators whose eigenvalues are _−_ 1. Moving the twists a short distance (compared to the twist separation) does not change the encoded states of the BT qubits, since the changes are restricted to be far from the paths of a suitable set of logical operators. However we shall see that performing a large sequence of small code deformation steps can result in unitary transformations of the code states. 4.1.2 Moving Fermionic Twists This procedure must preserve the information stored both by BT qubits and by logical MZMs. As above, the former can be ensured by deforming bosonic logical operators away from the twists. However, logical MZMs cannot be deformed in such a way: their support always has an odd-weight intersecton with the boundary associated with the twist (cf. Figure 8a). Code deformation can most easily be seen to preserve information in MZMs by considering moving an enlarged hole, such as the one in Figure 8b. We move this hole through a series of enlarging and contracting procedures. In Figure 9c, the hole from Figure 8b is enlarged to the left by measuring the bilinear operators indicated in light-orange in Figure 9c, along with the four-body plaquette operators colored light-green and light-red in the figure. Figure 9d then shows the same hole shrunk from the right by measuring the light-colored plaquette operators indicated. The final result is that the location of the hole, and hence the twist, has moved to the left. To see the preservation of the logical state, consider the logical operators in Figure 8a. The logical operator _i_ Υ _a_ Υ _b_ is the product of a string operator encircling twists _a_ and _b_, and a string operator connecting twists _a_ and _b_ . Similarly, any parity-even product of logical MZMs can be deformed into an operator that intersects each of the twists’ boundaries at a single site (e.g., operator _i_ Υ _a_ Υ _b_ in Figure 8a). Other sections of the fermionic logical operator can be deformed away from the twists during code deformation, but the string operator(s) terminating on the twist boundaries cannot. The procedure will preserve fermionic information if we can deform these operators so that their support intersects none of the sites involved in the measurements to be performed. In Figure 9c we indicate such a string operator terminating on the right-hand side of the boundary of a _T_ B twist - this is unaffected by the measurements that enlarge the hole. In Figure 9d we indicate the same string operator, deformed to terminate on the left-hand side of the boundary. This operator is now unaffected by the measurements that shrink the hole. Hence the information stored in these logical MZMs is protected during code deformation. 4.2 State Preparation of BT Qubits and Clifford Gates via Braiding Twists We will now discuss how to prepare logical Pauli eigen states and perform fault-tolerant Clifford gates using BT qubits. The latter will be achieved purely by braiding _Z_ 2 and _Z_ 3 twists, in analogy to Clifford gate procedures in the bosonic Color Code [47] (though Clifford gates may also be achieved through lattice surgery; see Section 4.5). Our MSC scheme requires no ancilla logical qubits for the implementation of single-qubit Clifford gates, unlike other approaches [57, 60]. We shall consider BT qubits stored sparsely in quartets of either _Z_ 2 (storing one qubit in four twists) or _Z_ 3 (two qubits in four twists) bosonic twists. We will see that we need only consider two sub-types of _Z_ 2 twist, which we take (without loss of generality) to be _T_ B and _T_ R. To prepare four _Z_ 2 twists in an eigenstate of a given logical Pauli operator, we start with a MSC patch hosting these twists, such as the one of Figure 1. For example, to prepare this patch in the +1 eigenstate of _X_ <sup>¯</sup> (a red string operator), we initialize the patch in the +1 eigenstate of all red bond operators. This Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 13 (1) (2) 1 2 _X_ ¯2 3 4 3 4 (3) (4) (5) _X_ ¯1 _X_ ¯2 Figure 10: A braid of _Z_ 3 twist _T_ 3 around the pair _T_ 1 and _T_ 2 results in an entangling gate between the logical qubits. We show how this braid affects the logical operator _X_ <sup>¯</sup> 2. In panel (3) we have altered the location of the domain wall between _T_ 3 and _T_ 4 with a relabeling of plaquettes (see Appendix B.1). In panel (5) we have deleted the closed loop of domain wall with another relabeling. prepares _X_ <sup>¯</sup> and green and blue plaquette operators in their +1 eigenstates since they are all products of red bond operators. To prepare red plaquette operators in their +1 eigenstates, we measure them and apply red string operators that take the state to the code space given the observed syndrome (in practice, we would not apply this operator and instead, redefine the stabilizers). Since _X_ <sup>¯</sup> and the green/blue plaquette operators commute with the red plaquette operators, these measurements do not change their eigenvalues from the preceding step. The inequivalent choices of string in the last step differ by _X_ <sup>¯</sup> ; this is again immaterial given we already had a +1 eigenstate of _X_ <sup>¯</sup> . This procedure thus prepares the patch in the +1 eigenstate of _X_ <sup>¯</sup> in the code space. We can then move the twists away from the boundaries of the patch using code deformation (cf. Section 4.1). Finally, we can fuse the patch with the rest of the lattice hosting logical information by adding stabilizer operators that bridge the gap between the boundaries of the two lattices. As is possible in the bosonic surface code [39], we can braid bosonic twists in the MSC to perform certain encoded Clifford gates on logical qubits. This procedure is achieved with code deformation via sequences of small steps. It is a naturally fault-tolerant procedure, since the code distance (and the diameters of logical operators) can be kept large throughout the whole braiding process. If we were restricted to using _Z_ 2 twists of a single type (e.g., _T_ B) then, just as in the bosonic surface code, braiding could not generate the entire Clifford group for the logical qubits. Braiding _T_ B twists can generate only the single-qubit Clifford gates, as explained in Appendix D. This is due to the similarity between bosonic _T_ B twists and Ising anyons [83], as is also the case in the surface code [46, 90]. However, unlike the bosonic surface code, the MSC also has _Z_ 3 twist defects and hence allows for a larger set of gates to be implemented by braids. This is similar to the case of the bosonic Color Code [47]. We can enact an entangling gate between the two qubits stored in a quartet of _Z_ 3 twists by using the braid shown in Figure 10. If we call this braiding operation _B_, it can be seen from the figure that the operator _X_ <sup>¯</sup> 2 is mapped to _BX_ <sup>¯</sup> 2 _B_ <sup>_†_</sup> = _X_ <sup>¯</sup> 1 _X_ <sup>¯</sup> 2 by this braid. Similarly (see Appendix D), the other logical Pauli operators are transformed as: _X_ <sup>¯</sup> 1 _→_ _X_ <sup>¯</sup> 2, _Z_ <sup>¯</sup> 1 _→_ _Y_ <sup>¯</sup> 1 _Y_ <sup>¯</sup> 2 and _Z_ <sup>¯</sup> 2 _→_ _Z_ ¯1 _X_ ¯2. We can fix the signs in these mappings by carefully defining the logical operators and stabilizer generators. It can be verified that _B_ is equivalent to the following circuit between the two logical qubits: 1 _<u>S</u>_ _<u>H</u>_ _<u>S</u>_ _~~•~~_ _<u>S</u>_ _<u>H</u>_ _<u>S</u>_ 2 _<u>X</u>_ _<u>S</u>_ _<u>H</u>_ _<u>S</u>_ _~~•~~_ A _Z_ 3 twist can be split into two differently-colored _Z_ 2 twists (cf. Appendix B.3). Splitting all four _Z_ 3 twists into _T_ B and _T_ R twists results in qubit 1 being stored between the _T_ R twists and qubit 2 between the _T_ B twists. Thus, through this splitting, we can enact all single-qubit Clifford gates on qubits 1 and 2 with _Z_ 2 twist braids. We can therefore achieve the full set of Clifford gates on qubits 1 and 2 via twist braids (note that a CNOT gate controlled on qubit 1 and targeted on qubit 2 can be achieved with the gate _Z_ ¯1 _H_ ¯1 _B_ <sup>3</sup> _H_ ¯1, where _H_ ¯1 is the Hadamard gate acting on qubit 1). To enact a Clifford circuit on _n_ BT qubits, we can store some of them in _T_ B twists and the rest in _T_ R twists. This allows single-qubit Cliffords to be implemented within same-color quartets and entangling gates to be implemented between _T_ B-stored and _T_ Rstored qubits with the above procedures. We can also entangle _T_ B-stored (equivalently _T_ R-stored) qubits by Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 14 introducing a quartet of _T_ G twists as an ancilla qubit. Entangling gates between the ancilla and the two logical qubits (which are possible due to the above discussion) are all that is required to perform an entangling gate on the two logical qubits. 4.3 State Preparation of FT Qubits and Logical Majorana Parity Measurements via Lattice Surgery To compute with the logical MZMs of fermionic twists, we need the ability to prepare eigenstates, perform computational basis measurements, and perform logical _B_ 4 and _T_ 2 gates, which have the form _B_ 4 _,abcd_ = exp( _i_ <sup>_<u>π</u>_</sup> 4 <sup>Υ</sup> <sup>_a_</sup> <sup>Υ</sup> <sup>_b_</sup> <sup>Υ</sup> <sup>_c_</sup> <sup>Υ</sup> <sup>_d_</sup> <sup>)</sup> <sup>and</sup> <sup>_T_</sup> <sup>2</sup> <sup>_,ab_</sup> <sup>=</sup> <sup>exp(</sup> <sup>_<u>π</u>_</sup> 8 <sup>Υ</sup> <sup>_a_</sup> <sup>Υ</sup> <sup>_b_</sup> <sup>)</sup> <sup>respec-</sup> exp( _i_ <sup>_<u>π</u>_</sup> 4 <sup>Υ</sup> <sup>_a_</sup> <sup>Υ</sup> <sup>_b_</sup> <sup>Υ</sup> <sup>_c_</sup> <sup>Υ</sup> <sup>_d_</sup> <sup>)</sup> <sup>and</sup> <sup>_T_</sup> <sup>2</sup> <sup>_,ab_</sup> <sup>=</sup> <sup>exp(</sup> <sup>_<u>π</u>_</sup> 8 <sup>Υ</sup> <sup>_a_</sup> <sup>Υ</sup> <sup>_b_</sup> <sup>)</sup> <sup>respec-</sup> tively. In general we may also wish to perform _B_ 2 _k_ = exp ( _i_ <sup>_k_</sup> <sup>+1</sup> <sup>_<u>π</u>_</sup> 4 <sup>Υ</sup> <sup>_j_</sup> <sup>1</sup> <sup>_. . ._</sup> <sup>Υ</sup> <sup>_j_</sup> <sup>2</sup> <sup>_k_</sup> <sup>)</sup> <sup>gates</sup> <sup>as</sup> <sup>these</sup> <sup>too</sup> _B_ 2 _k_ = exp ( _i_ <sup>_k_</sup> <sup>+1</sup> <sup>_<u>π</u>_</sup> 4 <sup>Υ</sup> <sup>_j_</sup> <sup>1</sup> <sup>_. . ._</sup> <sup>Υ</sup> <sup>_j_</sup> <sup>2</sup> <sup>_k_</sup> <sup>)</sup> <sup>gates</sup> <sup>as</sup> <sup>these</sup> <sup>too</sup> are fermionic variants of Clifford gates acting on FT qubits. While these could be synthesized from _B_ 4 gates [62], it may be preferable to perform them directly. We also want to perform all of these fermionic gates while preserving the bosonic information stored in the twists. We will, similarly to the previous section, detail how to achieve this with _T_ B and _T_ R twists as this will be sufficient for universal computation. We can perform _B_ 2 _k_ gates if we can prepare ancilla logical MZMs furnishing known eigenstates and measure arbitrary logical MZM products, i.e., logical fermion parity operators [64]. The ability to perform these measurements also allows us to prepare eigenstates of operators _i_ Υ _a_ Υ _b_ for arbitrary logical MZMs _a, b_ . In this section, we detail how to prepare patches of code that host ancilla logical MZMs, and how to perform logical fermion parity measurements. In the next section, we detail how to perform _T_ 2 gates. This, combined with the above, allows us to perform universal computation with logical MZMs. 4.3.1 Bilinear Measurement and Eigenstate Preparation The simplest measurement to consider is that of logical MZM bilinears, i.e., operators of the form _i_ Υ _a_ Υ _b_ . This type of measurement may appear at the end of a fermionic circuit (sampling the output distribution) and can also be used to prepare computational basis states for the start of a circuit. To perform such a measurement in a non-destructive, fault-tolerant manner, we first prepare an ancillary pair of logical MZMs (Υ <sup>˜</sup> _a_ and Υ <sup>˜</sup> _b_ ) in a separate patch of code located close to the first. This ancilla patch is shown in Figure 11. Note that this patch contains no BT qubits, owing to its boundary conditions. Comparing this patch with the one in Figure 1, we see that while in the latter, there exist multiple inequivalent logical operators running between separated boundaries of the same color ( _X_ <sup>¯</sup> and _Z_ <sup>¯</sup> in Figure 1), the ancilla patch in this case has only one such string operator, a blue string terminating on the two blue boundary sections. This is _Z_ ¯ _B_ _~~X~~_ ~~¯~~ _<u>B</u>_ Υ _a_ Υ _b_ ˜Υ _a_ ˜Υ _b_ Figure 11: Fault-tolerant measurement of _i_ Υ _a_ Υ _b_ through lattice surgery with a neighboring MSC patch containing ancillary logical MZMs Υ <sup>˜</sup> _a_ and Υ <sup>˜</sup> _b_ . A small MSC section is shown in the top part of the figure. This patch contains the logical MZMs to be measured (Υ _a_ and Υ _b_ ), and some BT qubits. Some examples of bosonic logical operators ( _X_ <sup>¯</sup> _B_ and _Z_ <sup>¯</sup> _B_ ) are shown. The ancilla MSC patch, shown in the bottom of the figure, is prepared in the +1 eigenstate of _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ . Operators ˜Υ _a_ and ˜Υ _b_ are associated with the length-3 blue boundary sections. _i_ Υ _a_ Υ <sup>˜</sup> _a_ and _i_ Υ _b_ Υ <sup>˜</sup> _b_ are eight-body plaquette operators indicated by dashed lines. The measurement of these two operators fuses the two patches together along their blue boundary sections. equivalent to the operator _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ . The patch can be prepared in the +1 eigenstate of _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ by, similarly to the preparation of BT qubits, preparing the +1 eigenstate of all blue bond operators, then measuring all blue stabilizers, and applying a correction string if needed. To measure _i_ Υ _a_ Υ _b_ on the neighboring patch of code, we merge the twists supporting Υ _a_ and Υ _b_ with a boundary colored differently from the twists, so that the logical Majoranas are located along the exterior boundary of the lattice (see Figure 5d and 11). For _T_ B and _T_ R twists we merge the twists with a green-colored boundary. In Figure 11 we show an example in which Υ _a_ and Υ _b_ are both supported along blue boundaries. See Appendix E for a more general example. We can measure operators _i_ Υ _a_ Υ <sup>˜</sup> _a_ and _i_ Υ _b_ Υ <sup>˜</sup> _b_ by fusing the blue boundaries associated with the logical Majoranas, thus forming an extra blue plaquette operator (see Figure 11). We begin by measuring the operator _i_ Υ _a_ Υ <sup>˜</sup> _a_, obtaining the result _ηa_ . This operator anticommutes with both _i_ Υ _a_ Υ _b_ and _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_, but the effect of the measurement is simply to logical-braid Υ _a_ with Υ <sup>˜</sup> _b_ [62, 72]. To see this, note that if the pre measurement state is _|ψ⟩_ [which by construction satisfies ( _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ ) _|ψ⟩_ = _|ψ⟩_ ], then the post-measurement state is _~~√~~_ <u>12</u> <sup>[1 +</sup> <sup>_ηa_</sup> <sup>(</sup> <sup>_i_</sup> <sup>Υ</sup> <sup>_a_</sup> <sup>˜Υ</sup> <sup>_a_</sup> <sup>)]</sup> <sup>_|ψ⟩_</sup> <sup>which</sup> <sup>equals</sup> 2 <sup>_†_</sup> _,ba_ <sup>=</sup> <sup>_ηa_</sup> <sup>˜Υ</sup> <sup>_b_</sup> <sup>and</sup> <sup>_B_</sup> <sup>2</sup> <sup>_,ba_</sup> <sup>˜Υ</sup> <sup>_bB_</sup> 2 <sup>_†_</sup> _,ba_ <sup>=</sup> <sup>_−ηa_</sup> <sup>Υ</sup> <sup>_a_</sup> <sup>.</sup> <u>1</u> _B_ 2 _,ba |ψ⟩_ = _~~√~~_ 2 �1 + _ηa_ ( _i_ Υ _a_ Υ <sup>˜</sup> _a_ )( _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ )� _|ψ⟩_ (4) with the logical braid _B_ 2 _,ba_ = exp( _ηa_ <sup>_<u>π</u>_</sup> 4 <sup>˜Υ</sup> <sup>_b_</sup> <sup>Υ</sup> <sup>_a_</sup> <sup>).</sup> _B_ 2 _,ba_ transforms logical Majoranas as: _B_ 2 _,ba_ Υ _aB_ 2 <sup>_†_</sup> _,ba_ <sup>=</sup> <sup>_ηa_</sup> <sup>˜Υ</sup> <sup>_b_</sup> <sup>and</sup> <sup>_B_</sup> <sup>2</sup> <sup>_,ba_</sup> <sup>˜Υ</sup> <sup>_bB_</sup> 2 <sup>_†_</sup> _,ba_ <sup>=</sup> <sup>_−ηa_</sup> <sup>Υ</sup> <sup>_a_</sup> <sup>.</sup> with the logical braid _B_ 2 _,ba_ = exp( _ηa_ <sup>_<u>π</u>_</sup> 4 Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 15 The operator we wish to measure, _i_ Υ _a_ Υ _b_, is thus mapped to _ηai_ Υ <sup>˜</sup> _b_ Υ _b_ through the above measurement. Hence we must now measure the operator _i_ Υ <sup>˜</sup> _b_ Υ _b_, another blue plaquette operator fused from the corresponding blue boundaries. We denote the outcome by _ηb_ . The desired measurement outcome of _i_ Υ _a_ Υ _b_ is thus _ηaηb_ . After these measurements, _−ηaηb_ Υ _a_ Υ _b_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ is a stabilizer of the resulting state of the full system. Finally, we measure _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ destructively (i.e., via its constituents [64]) to decouple the ancilla patch: we measure all blue bond operators of the patch, yielding the eigenvalue of _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ - _p∈B_ <sup>_Op_</sup> <sup>with</sup> <sup>the</sup> <sup>blue</sup> <sup>stabilizers</sup> <sup>_Op∈B_</sup> <sup>of</sup> An ancilla patch of code is then prepared close to the boundary that now hosts all Υ _j_ . This patch will also host 2 _k_ logical MZMs labeled Υ <sup>˜</sup> _j_ for _j_ = 1 _, . . .,_ 2 _k_, supported along the boundary of the patch. Each ˜Υ _j_ is located close to Υ _j_ on the main lattice. The ancilla patch will have the 2 _k_ -MZM parity operator We prepare the ancilla patch by first preparing all blue bonds within the patch in their +1 eigenstates and then measuring all blue plaquette operators. In the example of Figure 12, there are three independent logical operators for the ancilla patch that are made up only of blue string operators, as seen from representing logical MZM bilinears similarly to Figure 8a (but with the green _X_ <sup>¯</sup> _B_ replacing the red loop of Fig ˜Γ2 _k_ = _i_ <sup>_k_</sup> <sup>�2</sup> _j_ <sup>_k_</sup> _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ - _p∈B_ <sup>_Op_</sup> <sup>with</sup> <sup>the</sup> <sup>blue</sup> <sup>stabilizers</sup> <sup>_Op∈B_</sup> <sup>of</sup> the patch. We then measure these _Op∈B_ (or use previous syndrome measurement outcomes) and thereby infer the outcome _η_ ˜ _ab_ for _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ . This yields a +1 eigenstate of _η_ ˜ _abηaηbi_ Υ _a_ Υ _b_ . If _η_ ˜ _ab_ = _−_ 1, this state is not the one corresponding to the obtained _i_ Υ _a_ Υ _b_ outcome _ηaηb_ . But this error can simply be classically tracked, and subsequent computations can be updated. We can generalize this procedure to cases in which Υ _a_ and Υ _b_ have larger weights, and are hosted along boundaries of different colors. We outline the more involved setups required in Appendix E. The bosonic information in the twists is again preserved by these lattice surgery procedures, since bosonic logical operators (such as _Z_ <sup>¯</sup> _B_ and _X_ <sup>¯</sup> _B_ of Figure 11) can be deformed away from all of the lattice surgery measurements. We need not move twists to a distant boundary if they are deep within the code bulk. Instead, we can create a hole within the lattice by ceasing the stabilizer measurements within and altering the stabilizers along the boundary to ensure that it has a single color. We then introduce the MSC patch with the ancilla log ical MZMs into this hole and proceed as above. Afterwards we fill in the hole by measuring the original plaquette operators. Such a hole may add an extra logical qubit, but if so, filling in the hole simply discards the qubit again. While the introduction of the hole will affect the weights of certain logical operators, and hence may reduce the code distance, this distance can still be kept arbitrarily large by increasing the separation of the code’s twists. 4.3.2 Arbitrary Fermion Parity Measurement We can measure arbitrary products Γ2 _k_ = _i_ <sup>_k_</sup> <sup>�2</sup> _j_ =1 <sup>_k_</sup> <sup>Υ</sup> <sup>_j_</sup> of logical MZMs similarly. We again treat the case in which all twists hosting the Υ _j_ are of types _T_ B or _T_ R. We move the twists to a boundary of color different to all the twists (i.e., green), using code deformation. Similarly to above, this can either be an exterior boundary or we can introduce a hole in the center of the lattice. Now the logical MZMs are supported on 2 _k_ sections of odd-length boundary. A _k_ = 2 example where these boundary sections lie around a hole is shown in Figure 12. ˜Γ2 _k_ = _i_ <sup>_k_</sup> <sup>�2</sup> _j_ =1 <sup>_k_</sup> <sup>˜Υ</sup> <sup>_j_</sup> <sup>.</sup> We choose these logical MZMs to be supported on blue sections of boundary. This patch will contain BT qubits as well as logical MZMs. Specifically, it encodes _k_ _−_ 1 BT qubits. In Figure 12a we show the logical operators for the patch in the example considered. We prepare the ancilla patch by first preparing all blue bonds within the patch in their +1 eigenstates and then measuring all blue plaquette operators. In the example of Figure 12, there are three independent logical operators for the ancilla patch that are made up only of blue string operators, as seen from representing logical MZM bilinears similarly to Figure 8a (but with the green _X_ <sup>¯</sup> _B_ replacing the red loop of Fig ure 8a for _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 and _i_ Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4): _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_, _i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_, and _−_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4 = Γ <sup>˜</sup> 4. After preparation, the system will be in the +1 eigenstate of all three of these operators. We now measure _i_ Υ _j_ Υ <sup>˜</sup> _j_, obtaining outcome _λj_, for all _j_ = 1 _, . . .,_ 2 _k_, using lattice surgery. This involves measuring plaquette operators that bridge the gaps between logical MZMs Υ _j_ and Υ <sup>˜</sup> _j_ . The product of these plaquette operators is equivalent to the operator _i_ Υ _j_ Υ <sup>˜</sup> _j_ . Examples of these plaquette operators are shown in Figure 12b. Notice that, in this example, the product of blue plaquette operators connecting Υ1 and Υ <sup>˜</sup> 1 give the outcome for _i_ Υ1Υ <sup>˜</sup> 1, since the green plaquette operators between these two boundaries are simply products of original four-body and two-body stabilizer generators. Similar situations apply to the measurement of _i_ Υ2Υ <sup>˜</sup> 2, _i_ Υ3Υ <sup>˜</sup> 3 and _i_ Υ4Υ <sup>˜</sup> 4. To explain the effect of these _i_ Υ _j_ Υ <sup>˜</sup> _j_ measurements, we consider the example of Figure 12 more closely. Here we will use Γ to denote the total fermion parity operator of the main lattice (containing Υ1 _, . . .,_ Υ4). We can assume the system is initially in a Γ = +1 state (this just sets the parity sector for the logical MZMs). Before any lattice surgery measurements, there exist four independent logical operators that stabilize the full system (i.e., the system is in a +1 eigenstate of all these operators): Γ, ˜Γ4, _i_ ˜Υ1 ˜Υ2 _X_ ¯ _B_ and _i_ ˜Υ2 ˜Υ4 _Z_ ¯ _B_ . The first measurement operator, _i_ Υ1Υ <sup>˜</sup> 1, anti-commutes with Γ, Γ <sup>˜</sup> 4 and _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_, and hence only products of pairs of these three operators continue to stabilize the state of the system. The full list of such (independent) stabilizing logical operators is: _λ_ 1 _i_ Υ1Υ <sup>˜</sup> 1, ΓΓ <sup>˜</sup> 4, _i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_ and _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_ Γ <sup>˜</sup> 4 = _i_ Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4 _X_ <sup>¯</sup> _B_ . Similarly to Section 4.3.1, we may replace the projector associated with the logical measurement with a logical braid: exp( <sup>_<u>π</u>_</sup> 4 <sup>_λ_</sup> <sup>1</sup> <sup>_i_</sup> <sup>Υ1 ˜Υ1˜Γ4)</sup> <sup>=</sup> <sup>exp(</sup> <sup>_−_</sup> <sup>_<u>π</u>_</sup> 4 <sup>_λ_</sup> <sup>1</sup> <sup>_i_</sup> <sup>Υ1 ˜Υ2 ˜Υ3 ˜Υ4).</sup> This produces the correct post-measurement state. This Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 16 Υ1 _X_ ¯ _B_ Υ2 _Z_ ¯ _B_ ˜Υ1 ˜Υ2 ˜Υ3 ˜Υ4 Υ4 Υ3 (a) (b) Figure 12: Lattice surgery procedure for measuring logical parity operator _−_ Υ1Υ2Υ3Υ4. (a) Logical MZMs are supported on blue (for Υ1 and Υ2) or red (for Υ3 and Υ4) sections of odd-length boundaries on the patch surrounding the central hole. The patch inside the hole has ancilla logical MZMs (Υ <sup>˜</sup> 1 _, . . .,_ Υ <sup>˜</sup> 4) supported on blue, odd-length boundaries. It also encodes a BT qubit, with logical operators _X_ <sup>¯</sup> _B_ (green string) and _Z_ <sup>¯</sup> _B_ (red string) indicated. The lattice surgery involves measuring the plaquette operators connecting logical MZMs Υ _j_ and Υ <sup>˜</sup> _j_, for _j_ = 1 _,_ 2 _,_ 3 _,_ 4. These plaquette operators are shown lightly colored in (b). operator can be thought of as a braid between Υ1 and _iλ_ 1Υ <sup>˜</sup> 2Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4: it maps Υ1 _�→_ _iλ_ 1Υ <sup>˜</sup> 2Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4. Thus the operator Γ4 we wish to measure is mapped to operator _−iλ_ 1Υ <sup>˜</sup> 2Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4Υ2Υ3Υ4. The subsequent measurements of _i_ Υ _j_ Υ <sup>˜</sup> _j_ (for _j_ = 2 _,_ 3 _,_ 4, each with outcome _λj_ ) commute with this and, hence, the lattice surgery measurements can be seen to result in the measurement of Γ4: it has outcome _λ_ 1 _λ_ 2 _λ_ 3 _λ_ 4. This is explained in detail in Table 2 by tracking updates to the stabilising logical operators, logical MZMs and Γ4 after each measurement. _λ_ 1 _λ_ 2 _λ_ 3 _λ_ 4 is also the eigenvalue of the operator Γ4Γ <sup>˜</sup> 4 = <sup>�</sup> _j_ <sup>4</sup> =1 <sup>_i_</sup> <sup>Υ</sup> <sup>_j_</sup> <sup>˜Υ</sup> <sup>_j_</sup> <sup>.</sup> <sup>To</sup> <sup>disentangle</sup> <sup>ancilla</sup> <sup>and</sup> <sup>logi-</sup> cal degrees of freedom, we measure all blue bond operators on the ancilla patch, from which we can infer the eigenvalues of Γ <sup>˜</sup> 4 (call it _η_ 1), _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_ (call it _η_ 2) and _i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_ (call it _η_ 3). These operators do not commute with the operators _i_ Υ _j_ Υ <sup>˜</sup> _j_ but they do commute with Γ4Γ <sup>˜</sup> 4. Hence from the previous measurement outcomes and the measured eigenvalue of ˜Γ4, we can find the Γ4 eigenvalue to be _η_ 1 _λ_ 1 _λ_ 2 _λ_ 3 _λ_ 4. If _η_ 1 = _−_ 1, we need to apply a correction to map the state to an eigenstate of Γ4 with the measured eigenvalue _λ_ 1 _λ_ 2 _λ_ 3 _λ_ 4. This correction operation can simply be kept track of classically. There are multiple such possible correction operations owing to the degeneracy of the Γ4 = _±_ 1 eigenspaces. To determine which we should apply, we need to determine if all logical bilinears ( _i_ Υ1Υ2, _i_ Υ3Υ4, etc.) have been correctly preserved by the entire series of measurements above. We discuss the details of this in Appendix F. Note that, similarly to the case of Section 4.3.1, this measurement procedure does not directly affect the bosonic information stored between the twists, as all bosonic logical operators can be deformed away from the locations of the lattice surgery measurements. The introduction of the hole again reduces the distance of some logical qubits, but this distance can be preserved by further separating the twists in the code. Hence all encoded information can remain topologically protected throughout the entire procedure. 4.4 Magic State Injection Combining the above operations with the injection of magic states into MSC patches allows one to perform universal quantum computation fault-tolerantly with both bosonic logical qubits and logical MZMs. Here we detail how to achieve magic state injection in two ways: the first is within an existing patch of code, while the second is in a separate patch of code (e.g., in an ancilla register). Several noisy copies of this magic state can be purified to a single copy using Clifford gates and measurements [76]. “Magic state gadgets,” also composed of Clifford gates and measurements [1], can be used to apply _T_ gates on BT or FT qubits in the code, using these purified magic states as a resource. Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 17 Pre-measurement _i_ Υ1Υ <sup>˜</sup> 1 _i_ Υ2Υ <sup>˜</sup> 2 _i_ Υ3Υ <sup>˜</sup> 3 _{λ_ 1 _i_ Υ1Υ <sup>˜</sup> 1 _,_ ΓΓ <sup>˜</sup> 4 _,_ _i_ Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4 _X_ <sup>¯</sup> _B, i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B}_ _{λ_ 1 _i_ Υ1Υ <sup>˜</sup> 1 _, λ_ 2 _i_ Υ2Υ <sup>˜</sup> 2 _,_ ΓΓ <sup>˜</sup> 4 _, i_ Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4 _X_ <sup>¯</sup> _B}_ _{λ_ 1 _i_ Υ1Υ <sup>˜</sup> 1 _, λ_ 2 _i_ Υ2Υ <sup>˜</sup> 2 _,_ _λ_ 3 _i_ Υ3Υ <sup>˜</sup> 3 _,_ ΓΓ <sup>˜</sup> 4 _}_ Stabilizing Logical Operators _{_ Γ _,_ Γ <sup>˜</sup> 4 _, i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_ _i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B}_ Υ1 _iλ_ 1Υ <sup>˜</sup> 2Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4 _−λ_ 1Υ <sup>˜</sup> 3 _Z_ <sup>¯</sup> _B_ _λ_ 1 _i_ Υ <sup>˜</sup> 4 _X_ <sup>¯</sup> _BZ_ <sup>¯</sup> _B_ Logical MZMs Υ2 Υ2 _λ_ 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_ _λ_ 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_ Υ3 Υ3 Υ3 _λ_ 3Υ <sup>˜</sup> 4 _X_ <sup>¯</sup> _B_ Υ4 Υ4 Υ4 Υ4 Measurement Operator Γ4 _−iλ_ 1Υ <sup>˜</sup> 2Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4Υ2Υ3Υ4 _λ_ 1 _λ_ 2Υ <sup>˜</sup> 3Υ <sup>˜</sup> 4Υ3Υ4 _iλ_ 1 _λ_ 2 _λ_ 3Υ4Υ <sup>˜</sup> 4 Table 2: Operators and their updates after each set of lattice surgery measurements. Top row: the operator measured by lattice surgery. First column: we track updates to the set of logical operators stabilizing the state, the logical MZMs Υ1 _, . . .,_ Υ4, and measurement operator Γ4. The updates to these after measuring _i_ Υ _j_ Υ <sup>˜</sup> _j_ are shown in the respective columns. The final measurement _i_ Υ4Υ <sup>˜</sup> 4 is not considered, as this, unlike the preceding _i_ Υ _j_ Υ <sup>˜</sup> _j_, commutes with all stabilizing logical operators. 4.4.1 On-Patch Magic State Injection Figure 13a shows two fermionic twists (hosting logical MZMs Υ _a_, Υ _b_ ) at minimum separation. Suppose there exist another two twists at large separation from this pair (hosting logical MZMs Υ _c_, Υ _d_ ). For this setup, the logical operator _iγ_ 1 _γ_ 2, shown in the figure, equals _i_ Υ _a_ Υ _bZ_ <sup>¯</sup> _B_, where _Z_ <sup>¯</sup> _B_ is a logical Pauli operator (green string loop encircling the two logical MZMs, not shown) for the BT qubit stored between the four twists. Hence, _iγ_ 1 _γ_ 2 acts on both FT and BT qubits stored in the twist. To prepare a magic state, we first prepare the state _|_ + _⟩F_ _|_ 0 _⟩B_ (cf. Sections 4.2 and 4.3.1), where _|_ 0 _⟩B_ = _Z_ <sup>¯</sup> _B |_ 0 _⟩B_ is a computational basis state of the BT qubit and _|_ + _⟩F_ = _i_ Υ _a_ Υ _c |_ + _⟩F_ is a basis state of the FT qubit stored between Υ _a,_ Υ _b,_ Υ _c,_ Υ _d_ . We then perform the rotation exp ( <sup>_<u>π</u>_</sup> 8 <sup>_γ_</sup> <sup>1</sup> <sup>_γ_</sup> <sup>2);</sup> <sup>we</sup> <sup>assume</sup> <sup>we</sup> <sup>can</sup> <sup>perform</sup> <sup>at</sup> least a noisy version of this gate using established methods [22, 24, 25]. This approximately yields We can also prepare magic states in both FT and BT qubits by enacting the following operators on the state _|_ + _⟩F_ _|_ + _⟩B_ : _,_ (7) - _−i_ <sup>_<u>π</u>_</sup> _Z_ ¯ _B_ 8 - _<u>π</u>_ 8 <sup>Υ</sup> <sup>_a_</sup> <sup>Υ</sup> <sup>_b_</sup> _,_ (8) CX _F,B_ exp CX _B,F_ exp - _<u>π</u>_ 8 <sup>Υ</sup> <sup>_a_</sup> <sup>Υ</sup> <sup>_b_</sup> <sup>¯</sup> <sup>_ZB_</sup> CX _F,B_ = exp - _<u>π</u>_ 8 <sup>Υ</sup> <sup>_a_</sup> <sup>Υ</sup> <sup>_b_</sup> <sup>¯</sup> <sup>_ZB_</sup> CX _B,F_ = exp <u>1</u> _~~√~~_ 2 - _|_ 0 _⟩F_ + _e_ <sup>_iπ/_</sup> <sup>4</sup> _|_ 1 _⟩F_ _|_ 0 _⟩B_ (5) where _|_ 0 _⟩F_ and _|_ 1 _⟩F_ are the +1 and _−_ 1 eigenstates of operator _i_ Υ _a_ Υ _b_, respectively. Throughout this process, twists _a_ and _b_ are farseparated from twists _c_ and _d_, and hence _X_ <sup>¯</sup> _B_ and _i_ Υ _a_ Υ _c_ logical errors are suppressed by this large separation, and the weights of the logical MZMs, which can be made arbitrarily large. So, provided error rates are below the error threshold, the BT qubit remains in the _|_ 0 _⟩B_ state throughout the process with arbitrarily high probability, while the FT qubit is prepared in a noisy magic state. Alternatively, we could prepare the BT qubit in a magic state by instead first preparing the state _|_ 0 _⟩F_ _|_ + _⟩B_ . The same gate as above then approximately prepares the state: <u>1</u> _~~√~~_ _|_ 0 _⟩B_ + _e_ <sup>_iπ/_</sup> <sup>4</sup> _|_ 1 _⟩B_ 2 <sup>_|_</sup> <sup>0</sup> <sup>_⟩F_</sup> _._ (6) where CX _J,K_ is the CNOT gate controlled on qubit _J_ and targeted on qubit _K_ . 4.4.2 Off-Patch Magic State Injection In Figure 13b we illustrate injecting magic states into separate MSC patches via measurements. Four MSC patches are prepared, each with two logical MZMs. On each patch, one of these logical MZMs has low weight and the other has high weight. The low-weight logical MZMs are labeled Υ1, Υ2, Υ3, and Υ4 (cf. the weight-three logical MZMs in Figure 13b), and the large-weight logical MZMs are labeled Υ _a_, Υ _b_, Υ _c_, and Υ _d_, respectively (cf. the weight-seven logical MZMs of Figure 13b). These patches do not contain any BT qubits, owing to their boundary conditions. Our goal will be to inject a magic state into the fourpatch FT qubit furnished by Υ _a_, Υ _b_, Υ _c_, and Υ _d_, i.e., using the large-weight MZMs. We start by preparing the patches in the +1 eigenstates of _i_ Υ _a_ Υ1, _i_ Υ _b_ Υ2, _i_ Υ _c_ Υ3 and _i_ Υ _d_ Υ4 (cf. Section 4.3). We then prepare a patch with four Majorana operators (orange rectangle in Figure 13b and labeled _γ_ 1 _, γ_ 2 _, γ_ 3 _, γ_ 4) in a possibly noisy magic state encoded in subspace stabilized by the patch parity _−γ_ 1 _γ_ 2 _γ_ 3 _γ_ 4. We inject this magic state into an FT qubit furnished by Υ _a, . . .,_ Υ _d_ by measuring operators _Oj_ = _i_ Υ _jγj_ for _j_ = 1 _,_ 2 _,_ 3 _,_ 4. The example of _O_ 4 is represented as a plaquette operator in Figure 13b. This measurement maps _γ_ 1 to Υ _a_ (and Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 18 Υ _a_ Υ _b_ Υ2 _γ_ 2 _O_ 4 Υ _a_ Υ _b_ _γ_ 1 _γ_ 2 (a) Υ _c_ Υ _d_ (b) Υ1 _γ_ 1 _γ_ 3 Υ3 Figure 13: Code configurations for magic state injection. (a) On-patch injection. Two fermionic _T_ B twists are at minimal separation, with another two twists located far away (not shown). A magic state can be injected by preparing a suitable initial state and applying the gate exp( <sup>_<u>π</u>_</sup> 8 <sup>_γ_</sup> <sup>1</sup> <sup>_γ_</sup> <sup>2).</sup> <sup>Logical</sup> <sup>MZMs</sup> <sup>Υ</sup> <sup>_a_</sup> <sup>and</sup> <sup>Υ</sup> <sup>_b_</sup> <sup>reside</sup> <sup>on</sup> <sup>the</sup> <sup>blue</sup> <sup>boundaries</sup> <sup>shown.</sup> <sup>The</sup> <sup>blue</sup> bond operator _iγ_ 1 _γ_ 2 is the logical _i_ Υ _a_ Υ _bZ_ <sup>¯</sup> _B_, acting on both FT and BT qubits stored between the four twists. (b) Off-patch injection. Four MSC patches are prepared, each with two logical MZMs along blue boundaries (e.g., Υ _a_ and Υ1 indicated). A qubit with Majorana operators _γ_ 1 _, γ_ 2 _, γ_ 3 _, γ_ 4 (orange rectangle) is prepared in a magic state. Plaquette operators _Oj_ = _i_ Υ _jγj_ (for _j_ = 1 _,_ 2 _,_ 3 _,_ 4, with _O_ 4 shown) are measured to inject this magic state into the four-patch qubit furnished by Υ _a_, Υ _b_, Υ _c_, Υ _d_ . similarly for the other measurements), by the same logic that we have used repeatedly: due to the anticommutation of _O_ 1 and _i_ Υ _a_ Υ1, the measurement, with outcome _λ_ 1 effectively implements the logical braid exp( <sup>_<u>π</u>_</sup> 4 <sup>_λ_</sup> <sup>1Υ</sup> <sup>_aγ_</sup> <sup>1)</sup> <sup>and</sup> <sup>similarly</sup> <sup>for</sup> <sup>_j_</sup> <sup>=</sup> <sup>2</sup> <sup>_,_</sup> <sup>3</sup> <sup>_,_</sup> <sup>4.</sup> <sup>In</sup> this way, the magic state furnished by _γ_ 1, _γ_ 2, _γ_ 3, _γ_ 4 is transferred to the FT qubit furnished by logical MZMs Υ _a,_ Υ _b,_ Υ _c,_ Υ _d_ (specifically in the subspace stabilized by _−_ Υ _a_ Υ _b_ Υ _c_ Υ _d_ ), up to a correction operation (if _λ_ 1 _λ_ 2 _λ_ 3 _λ_ 4 = _−_ 1) which can be tracked. The resource cost of this magic state preparation method is compared with alternatives in Section 5. 4.5 Arbitrary String Operator Measurements We now discuss measuring various string operators. The following considerations make this particularly interesting. The twist framework established above allows for not only fermionic and bosonic computation to be done side-by-side, but also for hybrid computing schemes involving both FT and BT qubits. To complete the set of universal gates for both types of logical qubit, we require a gate that entangles the two. This would, for example, allow us to use magic states stored in FT qubits (cf. Section 4.4) to apply _T_ gates to BT qubits. Moreover, the measurement of BT qubit logical operators opens up an additional route for implementing Clifford gates on top of braiding twists, which could result in reduced overheads [98]. We can achieve the effect of entangling gates between BT and FT qubits by fault-tolerantly measuring Γ _F PB_, where Γ _F_ is a logical MZM parity and _PB_ is a bosonic logical Pauli operator. For example, take an FT, a BT, and an ancilla twist qubit, with logical operators _{Z_ <sup>¯</sup> _F,_ _X_ <sup>¯</sup> _F }_, _{Z_ <sup>¯</sup> _B,_ _X_ <sup>¯</sup> _B}_ and _{Z_ <sup>¯</sup> _A,_ _X_ <sup>¯</sup> _A}_, respectively. To implement a CNOT gate controlled on qubit _F_ and targeted on _B_, we can prepare the ancilla qubit in the _|_ + _⟩A_ state, then measure _Z_ <sup>¯</sup> _F_ _Z_ <sup>¯</sup> _A_, then _X_ <sup>¯</sup> _AX_ <sup>¯</sup> _B_, and finally _Z_ <sup>¯</sup> _A_ . This results in the desired gate, up to a logical Pauli operator which can be tracked. We can avoid introducing these ancilla qubits by instead classically tracking Clifford gates and updating circuit measurements accordingly (see also Section 5) [61, 72, 99]. Here, we detail how to measure arbitrary Γ _F PB_, all of which will be some product of string operators. We distinguish between two types of string operator, with arbitrary Γ _F PB_ operators being products of multiple instances of these two types. Define fermionic string operators as those that terminate on the odd-length boundaries associated with two fermionic twists, and bosonic string operators as simply products of bosonic logical operators (thus they are simply of the form _PB_ ). The latter will either encircle some number of twists or alternatively terminate at a boundary of even length. Hence only fermionic string operators have a non-trivial action on FT qubits. We describe the measurement of fermionic string operators first, then move on to bosonic string operators. We describe how to measure arbitrary products of these two types in Appendix G. The procedures for measuring string operators use lattice surgery and are very similar to those for measuring fermion parity operators, as described in Section 4.3. We begin with the case of a single fermionic string operator, _S_ 1. For concreteness, we assume that Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 19 _S_ 1 _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ (a) (b) Figure 14: Lattice surgery procedure for measuring fermionic string operator _S_ 1. The lower ancilla patch contains logical MZMs Υ <sup>˜</sup> _a_ and Υ <sup>˜</sup> _b_, while the upper patch contains logical information. (a) The setup before lattice surgery, with the ancilla patch prepared in the _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ = +1 state. Blue, red and green boundaries on both patches are indicated; blue boundaries host logical MZMs. Also indicated are blue string operators _S_ 1 and _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ running between blue boundaries on the logical and ancilla patches respectively. (b) Lattice surgery is performed, with extra operators fusing the two patches indicated with lightly colored plaquettes. _S_ 1 terminates on the boundaries of two (fermionic) _T_ B twists. As in Section 4.3.1, we move these two twists to a (green- or red-colored) boundary of the lattice, and introduce an ancilla patch of code nearby to this boundary, hosting two logical MZMs Υ <sup>˜</sup> _a_ and ˜Υ _b_ (hosted on blue boundaries). Alternatively, a hole can be created in the lattice and the ancilla patch prepared in this hole, as described in previous sections. An example of the resulting setup is shown in Figure 14a. The ancilla patch is initialized in the +1 eigenstate of _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ (cf. Section 4.3.1), which is a blue string operator. (The red string operator part of _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_, akin to that in Figure 8a, would now connect the red boundaries and hence can be shrunk: it is a stabilizer element.) To measure the operator _S_ 1, we perform lattice surgery between the logical patch and the ancilla patch. For the example of Figure 14, we perform measurements of the green plaquette operators bridging the gap between the two patches. Notice that the product of these green plaquettes is equal to _±S_ 1( _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ ). This procedure differs from that of Section 4.3.1 since there we only measure two plaquette operators bridging the gap between the patches. Those plaquette operator measurements fused pairs of logical MZMs on the ancilla and code patches. In the present case we fuse the patches along the two string operators shown in Figure 14 resulting in different logical information being extracted. Call the product of all measurement outcomes of these green plaquette operators _λ_ . Similarly to the cases examined in Section 4.3, _λ_ is the measurement outcome for _S_ 1 that we desire (up to a known sign defined by the ordering of the operators). To decouple the ancilla patch, we then destructively measure _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ (cf. Section 4.3.1). This produces the result _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ with certainty (assum _S_ 2 _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ (a) (b) Figure 15: Lattice surgery procedure for measuring a bosonic string operator. Lattices before being fused are shown in (a): _S_ 2 (red) is the bosonic string to be measured; the ancilla patch has logical <mark>M</mark> ZM <mark>s</mark> <mark>Υ</mark> <sup><mark>˜</mark></sup> _a_ and Υ <sup>˜</sup> _b_ (red boundaries) with _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ realized by the red string connecting them. The lattice after fusion is shown in (b), with the extra plaquettes connecting the two patches shown lightly colored. ing perfect measurements) since we can find a representative of this logical operator that commutes with all lattice surgery measurements. Hence we need not track any correction operation, as we had to do in previously-described lattice surgery procedures. We now explain the measurement of a bosonic string operator using lattice surgery. Without loss of generality we assume this is a red string operator, which we call _S_ 2. If _S_ 2 encircles some twists, we move these to one of the boundaries of the lattice, as before. Thus _S_ 2 now terminates on even boundaries. An example involving two twists is shown in Figure 15a. The lattice hosting _S_ 2 in this figure is the same as that hosting _S_ 1 in Figure 14a. While the ancilla patch looks slightly different, it still only hosts two logical Majoranas Υ <sup>˜</sup> _a_ and Υ <sup>˜</sup> _b_ . The patch is prepared in the +1 eigenstate of _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_, a red string operator shown in Figure 15a. Measuring the blue and green/blue plaquettes that fuse the two patches (shown lightly shaded in Figure 15b) measures the operator _±S_ 2 _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ . These measurements commute with the fermionic logical operators on the upper patch and, moreover, do not reveal any information about them. Finally, the ancilla patch is destructively measured leaving the upper patch in the measured eigenstate of _S_ 2. In Appendix G, we extend these procedures to the measurement of arbitrary products of bosonic and fermionic string operators. Thus, any logical operator in the code can be measured using lattice surgery. We can therefore achieve universal quantum computa tion with BT and FT qubits side-by-side, by combining these measurements with the procedures of Sections 4.2-4.4. Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 20 Υ1 Υ2 Υ3 Υ4 _d_ _d_ _d_ _d_ ∆ _d_ ∆ _d_ ∆ _d_ ∆ ###### _L_ _d_ _d_ ∆ Figure 16: (a) Setup for measuring a two-qubit logical Pauli operator, with logical qubits encoded in Majorana triangle code quartets (in dashed boxes). The operator being measured is Υ1Υ2Υ3Υ4, with logical MZMs on triangle codes indicated. An ancilla patch hosts logical MZMs on blue boundaries of weight _d_ ∆, where _d_ ∆ is the minimum weight of logical MZMs on triangle code patches. This patch has alternating thickness _∼_ _d_ ∆ and _∼_ _d_ as shown, to protect from the error mechanism from (b) and FPC errors respectively. The separation of logical MZMs on the patch is everywhere _∼_ _d_ . (b) Ancilla patch altered such that _O_ ( _d_ ∆)-thickness sections run between far-separated logical qubits, located distance _L_ apart. The width of the patch is _∼_ _d_ + _d_ ∆ and _∼_ 2 _d_ ∆ in alternating sections (in this example, _d_ = 10, _d_ ∆ = 5). A potentially undetectable error string is shown, circled. A parity-odd string flips the blue plaquette indicated. Preparation of this patch involves preparing eigenstates of blue bond operators, followed by the measurement of blue plaquettes (with random outcomes). Plaquette measurement errors can result in this flipped plaquette not being detected. Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 21 Qubit Storage State Preparation Long-range Measurement All bosonic <u>32</u> <sup>_d_</sup> <sup>2</sup> <sup>_−_</sup> <sup>2</sup> <sup>_d_</sup> <sup>+ 2</sup> 0 _dL_ + _O_ ( _d_ <sup>2</sup> ) Fermionic qubits and bosonic ancillas 3 _d_ <sup>2</sup> ∆ <sup>+ 1</sup> _O_ ( _d_ <sup>2</sup> ) N/A All fermionic 3 _d_ <sup>2</sup> <u>∆</u> <sup>+ 1</sup> _O_ (1) 2 _d_ ∆ _L_ + _O_ ( _d_ <sup>2</sup> ), Table 3: Number of Majoranas required for Pauli-based computing with various schemes, utilizing either bosonic or fermionic aspects of the MSC. _d_ is the code distance chosen for bosonic patches, while _d_ ∆ ≲ _d_, is half the distance of the triangle code patches (i.e., _d_ ∆ is the minimum weight of the logical Majoranas hosted therein), and the minimum thickness of ancilla patches. The chosen _d_ ∆ will depend on the QPP probability. We compare the requirements for storing a logical qubit in a 6.6.6 lattice (1 <sup>st</sup> column), and the ancilla costs of preparing a magic state (2 <sup>nd</sup> column) and measuring a long-range multi-qubit logical Pauli operator with an ancilla patch of length roughly _L_ (3 <sup>rd</sup> column). 1 <sup>st</sup> row: Majorana requirements for storing magic states in BT qubits and using the same “bosonic” MSC patches (with no logical MZMs) for logical Pauli operator measurements [61]. For state preparation, only those MZMs in the storage patch are required and hence the ancilla cost is zero [61]. 2 <sup>nd</sup> row: requirements for storing qubits in Majorana triangle codes and using bosonic ancilla patches where possible [58]. 3 <sup>rd</sup> row: requirements for storing qubits in Majorana triangle codes and using ancilla patches that contain logical MZMs. 5 Overheads for Universal FaultTolerant Computation Universal quantum computation can be achieved via the measurement of arbitrary Pauli operators on (distilled) magic states [72, 73]. Universal fermionic quantum computation, which is more suitable for fermionic simulation, can be performed in a similar manner [62]. Here, we consider the resource costs for performing such computations using the MSC, in setups in which QPP is suitably rare. We consider encoding logical MZMs in “Majorana triangle codes” [58] and performing Pauli measurements on magic states encoded using these. That is, we perform “Pauli-based computation” with the MSC, taking full advantage of the Gottesman-Knill theorem to reduce the quantum resources required. Our method is able to find potential avenues for increased resource savings by exploiting the fermionic aspects of the MSC. A Majorana triangle code is a patch of MSC encoding a single logical MZM. It has three odd-length boundaries of different colors (see Figure 16a). We begin by preparing _n_ magic states in 4 _n_ Majorana triangle codes, using for each quartet the “off-patch” method outlined in Section 4.4.2, followed by additional measurements to sever the “tails” in Figure 13b. (We assume having high-fidelity magic states, other wise we can employ magic state distillation to improve the magic-state quality.) Let the distance of this encoding be 2 _d_ ∆; that is, the minimum weights of the logical MZMs hosted on the four triangle codes are all _d_ ∆. Meanwhile, let the distance of any bosonic MSC patch be _d_ . We will assume we are in a parameter regime in which _d_ ∆ _< d_ and discuss the possibility of this below. Our state-injection procedure takes only a _d_ ∆independent time (that of the measurements) to increase the distance of the logical qubit from 2 to 2 _d_ ∆. However, the code patches for magic state in jection (cf. Figure 13b) include low-weight logical MZMs, along with thin-width patches of code vulnerable to the type of error process described below. These two features, respectively, act in favor of and against the fidelity of the injected state. The overall magic state preparation process, however, is fault-tolerant because of magic state distillation used. Note that the “tails” of the initial state-injection patches (Figure 13b) may be maintained at a constant length, independent of the code distance. Increasing the tail length beyond a certain length simply increases the diameter of operators _i_ Υ _a_ Υ1, _i_ Υ _b_ Υ2, etc., not the minimum weight _d_ ∆ + 3 of these operators. While this decreases the probability of parityconserving processes resulting in logical errors such as _i_ Υ _a_ Υ1, these logical “errors” act as +1 on the initial state of the patch and hence are inoperative. Hence, since we use tails of constant width and length, the total number of constituent Majoranas involved in the preparation of a single (potentially noisy) magic state is 4 _N_ ∆( _d_ ∆) + _O_ (1), where _N_ ∆( _d_ ∆) is the number of Majoranas in a single side-length- _d_ ∆ triangle code. After the magic states are prepared, the tails can be deleted, resulting simply in four triangle codes (see Figure 16a). For triangle codes based on hexag onal, 6.6.6 lattices (i.e., those with red, green and blue plaquettes having support on 6 Majoranas each) _N_ ∆( _d_ ∆) = <sup><u>3</u></sup> 4 <sup>_d_</sup> ∆ <sup>2</sup> <sup>+</sup> <sup><u>1</u></sup> 4 <sup>.</sup> <sup>Meanwhile,</sup> <sup>for</sup> <sup>triangle</sup> <sup>codes</sup> <sup><u>3</u></sup> 4 <sup>_d_</sup> ∆ <sup>2</sup> <sup>+</sup> <sup><u>1</u></sup> 4 _N_ ∆( _d_ ∆) = <sup><u>3</u></sup> 4 <sup>_d_</sup> ∆ <sup>2</sup> <sup>+</sup> <sup><u>1</u></sup> 4 <sup>.</sup> <sup>Meanwhile,</sup> <sup>for</sup> <sup>triangle</sup> <sup>codes</sup> based on 4.8.8 lattices (i.e., those with square and octagonal plaquettes [61]) _N_ ∆( _d_ ∆) = <sup><u>1</u></sup> 2 <sup>(</sup> <sup>_d_</sup> ∆ <sup>2</sup> <sup>+ 2</sup> <sup>_d_</sup> <sup>∆</sup> <sup>_−_</sup> <sup>1).</sup> tagonal plaquettes [61]) _N_ ∆( _d_ ∆) = <sup><u>1</u></sup> 2 <sup>(</sup> <sup>_d_</sup> ∆ <sup>2</sup> <sup>+ 2</sup> <sup>_d_</sup> <sup>∆</sup> <sup>_−_</sup> <sup>1).</sup> We will continue to analyse the resources of 6.6.6 codes, but we can obtain lower asymptotic overheads with 4.8.8 codes, at the cost of higher-weight stabilizer measurements. The Majorana overhead for qubit storage using triangle codes and bosonic MSC patches are presented in Table 3. Previous work demonstrated computation with Majorana triangle codes but utilized only bosonic aspects of the MSC for the ancilla patches containing magic Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 22 states [58]. This yielded a scheme where magic state injection required an _O_ ( _d_ <sup>2</sup> ) number of ancilla Majoranas in addition to four triangle codes: The ancilla cost is at least that of a distance- _d_ patch (e.g., that of Figure 1). This compares to the _O_ (1) number of ancilla Majoranas [namely the 4 MZMs used to prepare the noisy state for injection, and the _O_ (1)-length tails] required in the off-patch method from Section 4.4.2. Thus, for large _d_, utilizing fermionic aspects of the MSC in magic state preparation and storage becomes more efficient. (Note that it is not possible to use bosonic ancilla patches for measurement as we require odd-length boundaries for lattice surgery with triangle codes; see Table 3.) We will now consider the overheads for information storage and ancilla patches more closely. To make our estimates more precise, suppose that between error-correction rounds, _q_ is the QPP probability (for any given Majorana), _p_ the FPC error probability (along any given bond) and _pm_ is the measurement error probability. For small values of _q_, _p_ and _pm_, a useful proxy for the logical error probability on any given code patch is the probability _p_ LWL of the lowest-weight logical (LWL) error. We will assume _q_ <sup>2</sup> _≪_ _p_, so that we can restrict our attention to logical errors that have only one QPP component. For example, on a triangle code patch at some time long after state preparation, the largest term in _p_ LWL will be proportional to _qp_ <sup>(</sup> <sup>_d_</sup> <sup>∆</sup> <sup>_−_</sup> <sup>1)</sup> <sup>_/_</sup> <sup>2</sup> (where we consider an undetectable fermion-parity-odd error on a triangle patch to be a logical error, even though technically such an error is not a logical operator, as it is parityodd). Meanwhile, the _p_ LWL _∝_ _p_ <sup>_d/_</sup> <sup>2</sup> for a bosonic code patch. The proportionality refers to the multiplicities of each LWL error (which will be functions of _d_ or _d_ ∆). We choose _d_ and _d_ ∆ such that the same _p_ LWL for bosonic and fermionic patches is achieved, which will set the logical error probability for the entire computation (in practice, one would choose _d_ and _d_ ∆ with a target maximum logical error probability for the computation in mind). These distances would depend on _p_ and _q_ . As can be seen from Table 3, if we <u>can</u> _√_ achieve a parameter regime such that _d_ ∆ _<_ _d/_ 2 is _√_ achieve a parameter regime such that _d_ ∆ _<_ _d/_ 2 is permissible, using Majorana triangle codes for logical qubit storage becomes asymptotically favourable for large _d_ or _d_ ∆. To consider the overheads associated with fermionic ancilla patches for logical measurement, we first discuss error processes that we must contend with in order for our procedures to be fault-tolerant. Measurement errors may make thin-width sections of code vulnerable to unobservable, low-weight error mechanisms, depending on the patch preparation and readout used. We illustrate this error through the example shown in Figure 16b (black ring). In this example, ancilla patch preparation starts by preparing blue bond operators in their +1 eigenstates, followed by the measurement of blue plaquettes, which all have random outcomes. A fermion-parity-odd string that terminates on red and green boundaries can flip a blue plaquette, as shown in Figure 16b. However, if such an error string occurs shortly after state preparation along blue bonds, measurement errors can make it unobservable: suppose, for example, a blue plaquette suffers an initial measurement error, and it is then flipped by the parity-odd string described above. Subsequent measurements of the blue plaquette cannot detect the error string because of the initial measurement error (see Ref. [100] for a discussion of analogous error mechanisms in the bosonic Color Code). This error mechanism occurs with probability proportional to _qp_ <sup>(</sup> <sup>_d_</sup> <sup>∆</sup> <sup>_−_</sup> <sup>1)</sup> <sup>_/_</sup> <sup>2</sup> _pm_, for measurement error probability _pm_ (the minimum thickness of the ancilla patch in this example is _d_ ∆). To suppress the probability of such errors occurring, we let all ancilla patches have a thickness above some minimum value. For simplicity, and because we assume _q_ is the smallest of the error probabilities, we assume the minimum patch thickness to be _d_ ∆. We next show that the Majorana overhead of ancilla patches may be reduced compared with bosonic MSC schemes if _d_ ∆ _<_ _d/_ 2 can be permitted in the parameter regime considered. Let us consider the measurement of an arbitrary fermion parity operator _i_ <sup>_k_</sup> Υ1Υ2 _. . ._ Υ2 _k_, where logical MZMs are stored in triangle code patches. To measure this operator, we prepare an ancilla patch containing 2 _k_ logical MZMs along its boundary and perform lattice surgery between the ancilla patch and the triangle codes in the same way as shown in Figure 12. Several sections of this patch have opposite boundaries that are colored differently to one another. In Figure 16a, we show a _k_ = 2 example wherein a two-qubit logical Pauli operator is measured. As can be seen, two sections of the ancilla patch can have minimal thickness _d_ ∆, where opposite boundaries are colored red and green, while the middle section has thickness _d_, where opposite boundaries are both colored red. The _d_ ∆thickness of sections of the patch is afforded by the logical MZMs along blue boundaries - without these, the patch would have boundaries of two colors only. In Pauli-based computation, we may have to measure logical Pauli operators with support on any logical qubit. Thus, the ancilla patch may have to connect two qubits stored in far-separated parts of the system. For these long-range measurements, we can use ancilla patches with _O_ ( _d_ ) thickness between logical MZMs of the same logical qubit and _O_ ( _d_ ∆) thickness in every other section, as shown in Figure 16b. Note that this patch differs from that of Figure 16a only by a change in geometry – the topology of the patch is unchanged. In this way, the _O_ ( _d_ ∆) thickness sections have arbitrarily long length _L_, while the _O_ ( _d_ ) thickness sections have length only _∼_ _d_ +2 _d_ ∆ (sufficient to accommodate two logical MZMs and maintaining their separation Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 23 _∼_ _d_ ). The width required for the length- _L_ sections is 2 _d_ ∆, since one width- _d_ ∆ “arm” of the patch needs to extend its entire length, as shown in Figure 16b (this is true for higher-weight logical Pauli measure ments too). Assuming 2 _d_ ∆ _<_ _d_, we therefore find that this patch improves on the patch geometry from Figure 16a and improves on purely length- _L_ bosonic patches: we require _∼_ 2 _d_ ∆ _L_ + _O_ ( _d_ <sup>2</sup> ) Majoranas, compared to _∼_ _dL_ + _O_ ( _d_ <sup>2</sup> ) for bosonic patches, since the latter require a thickness of _d_ everywhere [61]. For a two-dimensional system with _n_ logical qubits and _O_ ( _d_ ) distance for each, the maximum separation between distant logical qubits is _L_ max = _O_ ( _d_ <sup>_√_</sup> _<u>n</u>_ <u>).</u> Hence this resource saving can be significant for large _n_ and _d_ . Table 3 summarizes these Majorana overheads for long-range measurement. The ability to use ancilla patches with thinner sections is a unique feature of MSCs, owing to the qualitatively different mechanisms of FPC, QPP and measurement errors. For _q_ _≪_ _p_, parameter regimes may exist where _d_ ∆ is significantly smaller than _d_ (by some additive amount). Determining such regimes precisely would require numerics, which we leave for future work. This resource saving depends on all error probabilities. For example, as _pm_ _→_ 0, the resource cost of such a patch becomes _∼_ _wL_ + _O_ ( _d_ <sup>2</sup> ) with _w_ = _O_ (1). There may be non-trivial trade-offs between the overheads of qubit storage and ancilla patches that will depend on _q_, _p_ and _pm_ . 6 Fault-Tolerant Gates on Small Majorana Surface Codes In this penultimate section, we describe another approach to achieving native Clifford gates in the MSC. This method has no analogue in bosonic codes, as it arises from the non-Abelian statistics of constituent Majoranas. Specifically, braiding these Majoranas in the MSC can implement Clifford gates on the logical qubit(s) stored therein. The patches of MSC require one or more lines of mirror symmetry to be suitable for this type of gate. Two examples of these are shown in Figure 17, with the symmetry axes indicated by dashed lines. We require braids to occur across this line of symmetry which, as drawn, are relatively longrange. Hence, this technique would be either suitable for small patches of the MSC or patches that are “folded” along these lines of symmetry to make the braids short-range. We begin with the code shown in Figure 17a, which stores one logical qubit. We will show that we can enact a single-qubit Clifford gate on this qubit by braiding the constituent Majoranas. Let _U_ be the unitary that braids all Majoranas on opposite sides of the symmetry axis of the code (i.e., those labeled with the same numbers in Figure 17a). That is, _U_ = <sup>�</sup> _j_ <sup>7</sup> =1 <sup>exp (</sup> <sup>_<u>π</u>_</sup> 4 <sup>_γ_</sup> <sup>¯</sup> <sup>_jγj_</sup> <sup>),</sup> <sup>where</sup> <sup>_γ_</sup> <sup>¯</sup> <sup>_j_</sup> <sup>is</sup> <sup>in</sup> <sup>the</sup> <sup>top-right</sup> _j_ <sup>7</sup> =1 <sup>exp (</sup> <sup>_<u>π</u>_</sup> 4 <sup>_<u>π</u>_</sup> 4 <sup>_γ_</sup> <sup>¯</sup> <sup>_jγj_</sup> <sup>),</sup> <sup>where</sup> <sup>_γ_</sup> <sup>¯</sup> <sup>_j_</sup> <sup>is</sup> <sup>in</sup> <sup>the</sup> <sup>top-right</sup> half of the code and _γj_ is in the bottom-left. To see that _U_ implements an encoded Clifford gate, we firstly show that it preserves the stabilizer group. We start with the four-body blue plaquette operators in the bottom-left and top-right corners of the code, which we denote _O_ 1 and _O_ <sup>¯</sup> 1 respectively (see Figure 17a). We choose the ordering _O_ 1 = _−γ_ 3 _γ_ 2 _γ_ 4 _γ_ 5 and _O_ <sup>¯</sup> 1 = _−γ_ ¯3 _γ_ ¯2 _γ_ ¯4 _γ_ ¯5. Then _U_ _O_ 1 _U_ <sup>_†_</sup> = _−γ_ ¯3 _γ_ ¯2 _γ_ ¯4 _γ_ ¯5 = _O_ <sup>¯</sup> 1, and similarly _U_ _O_ <sup>¯</sup> 1 _U_ <sup>_†_</sup> = _O_ 1. We similarly choose oppositely-oriented plaquette operators between the two halves, so that _U_ maps stabilizer generators to other stabilizer generators under conjugation, without any sign changes. The blue plaquette operators that are intersected by the symmetry axis have their orientations reversed by _U_ . In the case of the blue four-body operator in the topleft corner, this results in a change of sign. But it picks up another minus sign because, under conjugation, _U_ : _γ_ 1 _�→_ _γ_ ¯1 and _γ_ ¯1 _�→−γ_ 1. It can similarly be seen that the blue hexagonal plaquette operator does not change its sign under conjugation by _U_ . Hence _U_ preserves the whole stabilizer group. We also define logical operators for the encoded qubit: _X_ ¯ = _−γaγ_ 1 _γ_ 2 _γ_ 3 and _Z_ ¯ = _−γ_ 3 _γ_ 5 _γ_ 7 _γd_ . Hence _U_ _XU_ <sup>¯</sup> <sup>_†_</sup> = _−γaγ_ ¯1 _γ_ ¯2 _γ_ ¯3 = _ηZ_ <sup>¯</sup> and _U_ _ZU_ <sup>¯</sup> <sup>_†_</sup> = _λX_ <sup>¯</sup>, where _η, λ_ _∈{_ +1 _, −_ 1 _}_ depend on the definition of the stabilizer operators. Hence _U_ = _H_ ¯, the encoded Hadamard operation, up to a logical Pauli operator (set by _η_ and _λ_ ). This operation _U_ is fault-tolerant as it retains the locality of errors. That is, suppose _E_ _∈_ Maj(18) is an error operator acting on the constituent Majoranas of the code. Then conjugating _E_ with _U_ results in another error operator _E_ <sup>_′_</sup> with the same weight as _E_ . Moreover, we can ensure that _U_ has a very low probability of introducing further errors into the system, since the constituent braids making up _U_ can be made arbitrarily accurate by increasing Majorana separation. In this way we combine the topological protection of constituent braid operations with the protection afforded by the MSC. A larger set of encoded gates via braids can be found in codes that have more than one axis of symmetry. MSCs defined on the same lattice as stellated Color Codes [52], such as the one shown in Figure 17b, have this property. They also possess highly favourable encoding rates among planar code architectures [52], making them interesting candidates for near-term devices. The code of Figure 17b stores two logical qubits and one logical MZM. (It contains an odd number of constituent Majoranas; this implies that it is part of a larger Majorana system.) The logical operators of the encoded qubits are the string operators indicated in Figure 17c. Let _UL_ (resp. _UR_ ) denote the operation that braids all constituent Majoranas across the first (resp. second) line of symmetry [labeled _L_ (resp. _R_ ) in Figure 17b]. One can again show that _UL_ and _UR_ both preserve the stabilizer Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 24 _Z_ ¯1 _Z_ ¯2 _X_ ¯1 _X_ ¯2 (c) _a_ 1 2 3 _L_ _R_ (b) _b_ _c_ 4 _O_ ¯1 5 6 7 _d_ 3 1 2 4 6 _<u>O</u>_ 1 5 7 (a) Figure 17: Surface code patches with symmetry axes (some shown dashed) and with boundary colors indicated. Braiding constituent Majoranas enacts Clifford gates on logical qubits. (a) Patch with one symmetry axis. Braiding equivalently numbered Majoranas across this line results in an encoded Hadamard gate on the logical qubit. (b) Patch with two logical qubits and one logical MZM. This patch has five symmetry axes (the domain wall is a gauge choice, thus does not break this symmetry), two of which are shown and labeled _L_ and _R_ . (c) Logical (string) operators for the patch in (b) are schematically illustrated. group. Furthermore, _ULZ_ <sup>¯</sup> 1 _UL_ <sup>_†_</sup> _L_ <sup>_†_</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯2,</sup> <sup>_UL_</sup> <sup>¯</sup> <sup>_Z_</sup> <sup>2</sup> <sup>_U_</sup> _L_ <sup>_†_</sup> group. Furthermore, _ULZ_ <sup>¯</sup> 1 _UL_ <sup>_†_</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯2,</sup> <sup>_UL_</sup> <sup>¯</sup> <sup>_Z_</sup> <sup>2</sup> <sup>_U_</sup> _L_ <sup>_†_</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯1,</sup> _ULX_ <sup>¯</sup> 1 _UL_ <sup>_†_</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯1 ¯</sup> <sup>_Y_</sup> <sup>2, and</sup> <sup>_ULX_</sup> <sup>¯2</sup> <sup>_U_</sup> _L_ <sup>_†_</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯2 ¯</sup> <sup>_Y_</sup> <sup>1.</sup> <sup>(Different or-</sup> _L_ <sup>_†_</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯1 ¯</sup> <sup>_Y_</sup> <sup>2, and</sup> <sup>_ULX_</sup> <sup>¯2</sup> <sup>_U_</sup> _L_ <sup>_†_</sup> _ULX_ <sup>¯</sup> 1 _UL_ <sup>_†_</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯1 ¯</sup> <sup>_Y_</sup> <sup>2, and</sup> <sup>_ULX_</sup> <sup>¯2</sup> <sup>_U_</sup> _L_ <sup>_†_</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯2 ¯</sup> <sup>_Y_</sup> <sup>1.</sup> <sup>(Different or-</sup> dering choices for the logical operators and stabilizers can introduce signs into the above relations.) These transformations are enacted by the following Clifford circuit: 1 _~~•~~_ _<u>H</u>_ 2 _<u>S</u>_ _<u>H</u>_ _~~•~~_ _<u>S</u>_ (9) so could have a larger set of gates implementable via constituent braids. 7 Conclusion We have presented a comprehensive framework for twist defects in the MSC and have established new methods for fault-tolerant quantum computation with these codes. A complete characterization of the topological features of the MSC reveals a _Z_ 2 fermion-parity grading on boundaries and domain walls. This indicates that twist defects (and equivalently corners) can possess fermionic features leading to a larger set of topologically-protected code states. However, rather than this grading allowing one to simply attach extra microscopic MZMs at twists, as might be naively expected, we find that twists host _logical_ MZMs: largeweight, odd-parity operators commuting with the stabilizer group. Twists in the MSC therefore host not only the same logical qubits seen in bosonic codes with twists, but also logical qubits possible only in fermionic models. As such, comparing twist-based encodings to hole-based ones [57, 60], we can store roughly twice the number of logical qubits in an equivalently sized lattice. We can fault-tolerantly compute with both of these types of twist qubit - BT and FT qubits - simultaneously. We have shown that Clifford gates can be applied to BT qubits by braiding twists via code deformation (Section 4.2) or alternatively by lattice surgery (Section 4.5). This contrasts to techniques for performing single-qubit Clifford gates on hole-encoded logical qubits in the MSC, which involve the introduction of an ancilla qubit and multiple Clifford gates and measurements on target and ancilla qubits [57, 60]. Instead, our Clifford gate implementation is similar to that in bosonic codes with twists [37, 39, 44, 47]. The above twist braids would also implement braid The braid _UR_ maps _Z_ <sup>¯</sup> 1 _�→_ _Z_ <sup>¯</sup> 1, _X_ <sup>¯</sup> 1 _�→_ _X_ <sup>¯</sup> 1 _X_ <sup>¯</sup> 2, _Z_ <sup>¯</sup> 2 _�→_ _Z_ ¯1 ¯ _Y_ 2 and _X_ ¯2 _�→_ _X_ ¯2, up to signs. The Clifford circuit that enacts this gate is the following: 1 _~~•~~_ 2 _<u>H</u>_ _<u>S</u>_ _<u>H</u>_ (10) It is interesting to note that ( _ULUR_ ) <sup>5</sup> = 1 up to a phase, while _UL_ <sup>2</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯1 ¯</sup> <sup>_Z_</sup> <sup>2,</sup> <sup>_U_</sup> _R_ <sup>2</sup> <sup>=</sup> _X_ ¯2 so that to a phase, while _UL_ <sup>2</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯1 ¯</sup> <sup>_Z_</sup> <sup>2,</sup> <sup>_U_</sup> _R_ <sup>2</sup> <sup>=</sup> _X_ ¯2 so that _UL_ <sup>2</sup> <sup>_, U_</sup> _R_ <sup>2</sup> <sup>_∈P_</sup> <sup>2,</sup> <sup>the</sup> <sup>group</sup> <sup>of</sup> <sup>2-qubit</sup> <sup>Pauli</sup> <sup>operators.</sup> Hence, _UL_ and _UR_ do not generate a representation of the dihedral group _D_ 5 (the symmetry group of the code lattice) in _C_ 2 (the 2-qubit Clifford group) as one might expect. Rather they generate a representation of _D_ 5 in _C_ 2 _/P_ 2. We note that _|D_ 5 _|_ = 10 while _|C_ 2 _/P_ 2 _|_ = 720 and hence we can generate only a small fraction of Clifford gates with these two braiding operations. By considering stellated codes with larger dihedral symmetries, we can obtain larger numbers of _C_ 2 _/P_ 2 gates with braids. But since _|Dn|_ = 2 _n_, this is not a very promising avenue for generating the entire _C_ 2. However, expanding the size of this code so that the corners may be braided via code deformation (cf. Section 4.2), one can fault-tolerantly attain more Clifford gates. An interesting direction for further study is to consider higher-dimensional Majorana codes: these may have larger symmetry groups and _L_ <sup>2</sup> <sup>_, U_</sup> _R_ <sup>2</sup> _L_ <sup>2</sup> <sup>=</sup> <sup>_Z_</sup> <sup>¯1 ¯</sup> <sup>_Z_</sup> <sup>2,</sup> <sup>_U_</sup> _R_ <sup>2</sup> Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 25 operations of the form exp( _i_ <sup>_<u>π</u>_</sup> 4 <sup>Υ</sup> <sup>_i_</sup> <sup>Υ</sup> <sup>_j_</sup> <sup>)</sup> <sup>on</sup> <sup>logical</sup> <sup>MZMs</sup> stored in the twists. The effect of braiding twists on FT logical qubits is analogous to that of braiding microscopic MZMs on topological qubits [19, 101]. If we wish twist braids to implement a Clifford gate only on the BT logical qubits of fermionic twists (but not on their FT qubits), we can perform the associated braid and classically track the resulting “error” to the FT logical qubits. We can enact Clifford gates on FT qubits with measurement-based procedures, for which we require the ability to measure logical fermion parity operators and prepare ancilla states. We achieve such measurements with novel lattice surgery techniques. These techniques differ from lattice surgery introduced in previous schemes [58, 61], since the logical measurements performed do not commute with the operator to be measured. Instead, lattice surgery measurements can be understood to be “teleporting” logical MZMs between different odd-length boundaries of the lattice (see Section 4.3.1 and Table 2). This makes our lattice surgery techniques annalogous to “anyonic state teleportation” protocols [102]. To achieve universal computation, we can inject magic states into the code in two different ways. The off-patch method provides a low-overhead approach to preparing magic states in groups of Majorana triangle codes. Finally, we can also perform Clifford gates between BT and FT qubits through measurement-based procedures, using lattice surgery. We also discussed an alternative approach where Clifford gates on BT and FT qubits need not be explicitly implemented. Rather, in the spirit of Paulibased computing (PBC) [72], we can classically track their effects on subsequent gates and measurements in the circuit so long as we can measure arbitrary products of logical Pauli operators. We showed how to measure any operator of the form Γ _F PB_, where Γ _F_ is a logical MZM product and _PB_ is a logical Pauli operator for BT qubits, using lattice surgery. Hence, we can achieve the effects of Clifford gates on BT and FT qubits with zero time overhead (apart from the measurement time and that of efficient classical processing). Beyond these advantages, we have found that, given a suitably small QPP probability, the fermionic features of the MSC could be exploited to reduce the number of Majoranas required. Using PBC, we explored a method for expanding the capacity of an _n_ logical-qubit register [72]. Using Majorana triangle code patches and fermionic ancilla patches, we find potential avenues for a lowered Majorana overhead for logical qubit storage and measurement, depending on the QPP and FPC error rates. This arises when _d_ ∆ - the required minimum weight of logical Majoranas to achieve a desired logical error probability _pL_ - is considerably smaller than _d_ - the bosonic patch distance required to achieve the same _pL_ . We also find in such cases that the Majorana overhead of measuring multi-logical-qubit operators using a fermionic ancilla patch of lengt _√_ <u>h</u> _L_ is reduced from _O_ ( _dL_ ) to _O_ ( _d_ ∆ _L_ ). For _d_ ∆ _< d/_ 2 we also find an asymptotic reduction _√_ For _d_ ∆ _< d/_ 2 we also find an asymptotic reduction in the Majoranas required for logical qubit storage in triangle codes (see Table 3). Even outside of the PBC context, the same considerations result in smaller spatial overheads of measurement-based Clifford gate implementation. More in-depth, numerical analysis is required to determine the parameter regimes in which this reduction in resources is possible. Finally, we explored the consequences of having non-Abelian anyons constitute the building blocks of the MSC. We found that braiding constituent Majoranas can result in fault-tolerant Clifford gates applied to BT qubits, which can be combined with braids between ( _Z_ 2) corners to generate the full Clifford group. This would be a method suitable for either small or “folded” patches of MSC. This ability to achieve Clif ford gates with constituent-Majorana braids is likely related to a connection between a folded MSC and the Color Code, which has a large set of transversal Clifford gates [103]. Future work could investigate this identification of the MSC as an “unfolded” Color Code [56, 104]. One of the advantages of our MSC approach is that it allows different levels of protection for FPC and QPP errors. For example, consider a logical qubit encoded in four logical MZMs located at twist defects. One can protect against FPC errors by increasing the separation between twists, and one can protect against QPP errors by increasing the weights of the logical MZMs. These quantities may be tuned independently (without sacrificing twist separation), to tailor codes for given FPC and QPP error rates. Regarding potential realizations, a key requirement for the MSC with twists is the ability to create superpositions of parities of various subsets of microscopic Majoranas. This requires a setup where a definite parity is required only for the entire collection of 2 _n_ Majoranas. (This is distinct from MSCs that are effectively bosonic surface codes [59–61] based on qubits sparsely encoded [17] in small groups of Majoranas.) A proposal for such a MSC setup exists based on the proximity effect in topological insulators [57], and analogous constructions are expected to be possible for superconducting hybrid structures based on two-dimensional electron gases or spin-orbit nanowires [15, 16]. The stabilizer measurement scheme outlined in Ref. [57], using topological transmon ingredients [105], can in principle be used to implement the manipulations we used in our scheme to compute with the MSC. However, one key consideration with these proposed designs is the expected QPP times. In designs with large-charging-energy, fixed-parity islands the QPP times are expected to be long [22, 29], while the optimal designs without such constraints are less well-specified in the literature. However, the expected Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 26 QPP times may still be comparable to the coherence times of, e.g., superconducting qubits [29], hence the Majorana resource efficiency in our designs may present non-trivial trade-offs among designs. Furthermore, mitigation measures exist that decrease the effect of quasi-particles (QPs) on the coherence times of superconducting qubits, including QP traps [106–108] and pumps [109]. These could be adapted to protect MZMs in bulk superconductors from QPP. One way this could occur is by utilizing traps to reduce QP density near the center of bulk superconductors, to thereby simulate the lower density of QPs expected from mesoscopic superconductors [29]. Furthermore, QP detection may help greatly reduce the effect of QPP in Majorana systems [110]. While these considerations suggest avenues for realizing the marked benefits of our proposals, further work is needed to combine QPP protection with flexible parity constraints in order to identify the most suitable setups. Further studies are needed as well to understand the error thresholds for our MSC scheme under various noise models. We expect these thresholds to be similarly high to those found in other MSC approaches [58, 63]. Future research could also explore other routes for generating encoded gates through braids or other transformations of the constituent Majoranas in MSCs, as we did in Section 6. Studying twist defects in generalizations of the MSC, including parafermion codes [111] or models displaying fracton order, such as the Majorana checkerboard model [112], could also be fruitful. Acknowledgments We thank Heidar Moradi, Wilfred Salmon and Do minic Williamson for discussions. This work was supported by an EPSRC Studentship, the EPSRC Grants EP/S019324/1 and EP/V062654/1, and in part by the ERC Starting Grant No. 678795 TopInSy. References [1] Michael A. Nielsen and Isaac L. Chuang. “Quan tum computation and quantum information: 10th anniversary edition”. [Cambridge](https://dx.doi.org/10.1017/CBO9780511976667) University [Press.](https://dx.doi.org/10.1017/CBO9780511976667) Cambridge (2010). [2] G. E. Volovik. “Monopole, half-quantum vortex, and nexus in chiral superfluids and superconductors”. JETP Lett. 70, 792–796 (1999). [3] A. Yu Kitaev. “Unpaired Majorana fermions in quantum wires”. [Phys.-Uspekhi](https://dx.doi.org/10.1070/1063-7869/44/10S/S29) 44, 131 (2001). [4] Liang Fu and C. L. Kane. “Superconducting proximity effect and Majorana fermions at the surface of a topological insulator”. [Phys.](https://dx.doi.org/10.1103/physrevlett.100.096407) Rev. Lett. [100](https://dx.doi.org/10.1103/physrevlett.100.096407), 096407 (2008). [5] Yuval Oreg, Gil Refael, and Felix von Op pen. “Helical liquids and Majorana bound states in quantum wires”. [Phys. Rev. Lett.](https://dx.doi.org/10.1103/PhysRevLett.105.177002) 105, [177002](https://dx.doi.org/10.1103/PhysRevLett.105.177002) (2010). [6] Roman M. Lutchyn, Jay D. Sau, and S. Das Sarma. “Majorana fermions and a topological phase transition in semiconductorsuperconductor heterostructures”. [Phys.](https://dx.doi.org/10.1103/physrevlett.105.077001) Rev. Lett. [105](https://dx.doi.org/10.1103/physrevlett.105.077001), 077001 (2010). [7] Jason Alicea. “New directions in the pursuit of Majorana fermions in solid state systems”. [Rep.](https://dx.doi.org/10.1088/0034-4885/75/7/076501) Prog. Phys. 75, 076501 (2012). [8] Anindya Das, Yuval Ronen, Yonatan Most, Yu val Oreg, Moty Heiblum, and Hadas Shtrikman. “Zero-bias peaks and splitting in an Al–InAs nanowire topological superconductor as a signature of Majorana fermions”. Nat. [Phys.](https://dx.doi.org/10.1038/nphys2479) 8, [887–895](https://dx.doi.org/10.1038/nphys2479) (2012). [9] V. Mourik, K. Zuo, S. M. Frolov, S. R. Plis sard, E. P. A. M. Bakkers, and L. P. Kouwenhoven. “Signatures of Majorana fermions in hybrid superconductor-semiconductor nanowire devices”. Science [336](https://dx.doi.org/10.1126/science.1222360), 1003–1007 (2012). [10] S. M. Albrecht, A. P. Higginbotham, M. Mad sen, F. Kuemmeth, T. S. Jespersen, J. Nyg˚ard, P. Krogstrup, and C. M. Marcus. “Exponential protection of zero modes in Majorana islands”. Nature [531](https://dx.doi.org/https://doi.org/10.1038/nature17162), 206–209 (2016). [11] Jun Chen, Peng Yu, John Stenger, Mo¨ıra Ho cevar, Diana Car, S´ebastien R. Plissard, Erik P. A. M. Bakkers, Tudor D. Stanescu, and Sergey M. Frolov. “Experimental phase diagram of zero-bias conductance peaks in superconductor/semiconductor nanowire devices”. Sci. [Adv.](https://dx.doi.org/10.1126/sciadv.1701476) 3, [e1701476](https://dx.doi.org/10.1126/sciadv.1701476) (2017). [12] M.-T. Deng, S. Vaitiek˙enas, E. Prada, P. San Jose, J. Nyg˚ard, P. Krogstrup, R. Aguado, and C. M. Marcus. “Nonlocality of Majorana modes in hybrid nanowires”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevB.98.085125) B 98, [085125](https://dx.doi.org/10.1103/PhysRevB.98.085125) (2018). [13] Berthold J¨ack, Yonglong Xie, Jian Li, Sangjun Jeon, B. Andrei Bernevig, and Ali Yazdani. “Observation of a Majorana zero mode in a topologically protected edge channel”. [Sci-](https://dx.doi.org/10.1126/science.aax1444) [ence](https://dx.doi.org/10.1126/science.aax1444) (2019). [14] S Vaitiek˙enas, Y Liu, P Krogstrup, and CM Marcus. “Zero-bias peaks at zero magnetic field in ferromagnetic hybrid nanowires”. [Nat.](https://dx.doi.org/https://doi.org/10.1038/s41567-020-1017-3) Phys. [17](https://dx.doi.org/https://doi.org/10.1038/s41567-020-1017-3), 43–47 (2021). [15] R. M. Lutchyn, E. P. A. M. Bakkers, L. P. Kouwenhoven, P. Krogstrup, C. M. Marcus, and Y. Oreg. “Majorana zero modes in superconductor–semiconductor heterostructures”. Nat. Rev. [Mater.](https://dx.doi.org/10.1038/s41578-018-0003-1) 3, 52–68 (2018). [16] Karsten Flensberg, Felix von Oppen, and Ady Stern. “Engineered platforms for topological superconductivity and Majorana zero modes”. Nat. Rev. [Mater.](https://dx.doi.org/10.1038/s41578-021-00336-6) 6, 944–958 (2021). [17] Sankar Das Sarma, Michael Freedman, and Chetan Nayak. “Majorana zero modes and topo Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 27 logical quantum computation”. npj [Quantum](https://dx.doi.org/10.1038/npjqi.2015.1) Inf. 1, 15001 (2015). [18] Daniel Gottesman. “Stabilizer codes and quan tum error correction”. PhD thesis. CalTech. (1997). [arXiv:quant-ph/9705052.](http://arxiv.org/abs/quant-ph/9705052) [19] D. A. Ivanov. “Non-abelian statistics of halfquantum vortices in _p_ -wave superconductors”. Phys. Rev. [Lett.](https://dx.doi.org/10.1103/PhysRevLett.86.268) 86, 268–271 (2001). [20] Alexei Kitaev. “Anyons in an exactly solved model and beyond”. Ann. Phys. [(N.](https://dx.doi.org/10.1016/j.aop.2005.10.005) Y.) 321, [2–111](https://dx.doi.org/10.1016/j.aop.2005.10.005) (2006). [21] B van Heck, A R Akhmerov, F Hassler, M Bur rello, and C W J Beenakker. “Coulombassisted braiding of Majorana fermions in a josephson junction array”. New J. [Phys.](https://dx.doi.org/10.1088/1367-2630/14/3/035019) 14, [035019](https://dx.doi.org/10.1088/1367-2630/14/3/035019) (2012). [22] Torsten Karzig, Christina Knapp, Roman M. Lutchyn, Parsa Bonderson, Matthew B. Hastings, Chetan Nayak, Jason Alicea, Karsten Flensberg, Stephan Plugge, Yuval Oreg, Charles M. Marcus, and Michael H. Freedman. “Scalable designs for quasiparticlepoisoning-protected topological quantum computation with Majorana zero modes”. [Phys.](https://dx.doi.org/10.1103/physrevb.95.235305) Rev. B [95](https://dx.doi.org/10.1103/physrevb.95.235305), 235305 (2017). [23] Alan Tran, Alex Bocharov, Bela Bauer, and Parsa Bonderson. “Optimizing Clifford gate generation for measurement-only topological quantum computation with Majorana zero modes”. SciPost [Phys.](https://dx.doi.org/10.21468/scipostphys.8.6.091) 8, 91 (2020). [24] Torsten Karzig, Yuval Oreg, Gil Refael, and Michael H. Freedman. “Universal geometric path to a robust Majorana magic gate”. [Phys.](https://dx.doi.org/10.1103/PhysRevX.6.031019) Rev. X [6](https://dx.doi.org/10.1103/PhysRevX.6.031019), 031019 (2016). [25] Torsten Karzig, Yuval Oreg, Gil Refael, and Michael H. Freedman. “Robust Majorana magic gates via measurements”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevB.99.144521) B 99, [144521](https://dx.doi.org/10.1103/PhysRevB.99.144521) (2019). [26] Christina Knapp, Torsten Karzig, Roman M. Lutchyn, and Chetan Nayak. “Dephasing of Majorana-based qubits”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevB.97.125404) B 97, [125404](https://dx.doi.org/10.1103/PhysRevB.97.125404) (2018). [27] Christina Knapp, Michael Zaletel, Dong E. Liu, Meng Cheng, Parsa Bonderson, and Chetan Nayak. “The nature and correction of diabatic errors in anyon braiding”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevX.6.041003) X 6, [041003](https://dx.doi.org/10.1103/PhysRevX.6.041003) (2016). [28] Michael Hell, Jeroen Danon, Karsten Flensberg, and Martin Leijnse. “Time scales for Majorana manipulation using coulomb blockade in gatecontrolled superconducting nanowires”. [Phys.](https://dx.doi.org/10.1103/PhysRevB.94.035424) Rev. B [94](https://dx.doi.org/10.1103/PhysRevB.94.035424), 035424 (2016). [29] Torsten Karzig, William S. Cole, and Dmitry I. Pikulin. “Quasiparticle poisoning of Majorana qubits”. Phys. Rev. [Lett.](https://dx.doi.org/10.1103/physrevlett.126.057702) 126, 057702 (2021). [30] A.Yu. Kitaev. “Fault-tolerant quantum compu tation by anyons”. Ann. Phys. [(N.](https://dx.doi.org/10.1016/s0003-4916%0x2802%0x2900018-0) Y.) 303, [2–30](https://dx.doi.org/10.1016/s0003-4916%0x2802%0x2900018-0) (2003). [31] Sergey B. Bravyi and Alexei Yu. Kitaev. “Quan tum codes on a lattice with boundary” (1998). [arXiv:quant-ph/9811052.](http://arxiv.org/abs/quant-ph/9811052) [32] Eric Dennis, Alexei Kitaev, Andrew Landahl, and John Preskill. “Topological quantum memory”. J. Math. Phys. 43, 4452–4505 (2002). [33] Austin G. Fowler, Matteo Mariantoni, John M. Martinis, and Andrew N. Cleland. “Surface codes: Towards practical large-scale quantum computation”. Phys. [Rev.](https://dx.doi.org/10.1103/physreva.86.032324) A 86 (2012). [34] H. Bomb´ın and M. A. Martin-Delgado. “Topo logical quantum distillation”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevLett.97.180501) Lett. 97, [180501](https://dx.doi.org/10.1103/PhysRevLett.97.180501) (2006). [35] Robert Raussendorf and Jim Harrington. “Fault-tolerant quantum computation with high threshold in two dimensions”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevLett.98.190504) Lett. 98, [190504](https://dx.doi.org/10.1103/PhysRevLett.98.190504) (2007). [36] Barbara M. Terhal. “Quantum error correction for quantum memories”. Rev. [Mod.](https://dx.doi.org/10.1103/revmodphys.87.307) Phys. 87, [307–346](https://dx.doi.org/10.1103/revmodphys.87.307) (2015). [37] Clare Horsman, Austin G Fowler, Simon Devitt, and Rodney Van Meter. “Surface code quantum computing by lattice surgery”. [New J. Phys.](https://dx.doi.org/10.1088/1367-2630/14/12/123011) 14, [123011](https://dx.doi.org/10.1088/1367-2630/14/12/123011) (2012). [38] Jonathan E. Moussa. “Transversal Clifford gates on folded surface codes”. [Phys.](https://dx.doi.org/10.1103/physreva.94.042316) Rev. A [94](https://dx.doi.org/10.1103/physreva.94.042316) (2016). [39] Benjamin J. Brown, Katharina Laubscher, Markus S. Kesselring, and James R. Wootton. “Poking holes and cutting corners to achieve Clif ford gates with the surface code”. [Phys. Rev. X](https://dx.doi.org/10.1103/physrevx.7.021029) 7, [021029](https://dx.doi.org/10.1103/physrevx.7.021029) (2017). [40] Daniel Litinski and Felix von Oppen. “Lattice surgery with a twist: Simplifying Clifford gates of surface codes”. [Quantum](https://dx.doi.org/10.22331/q-2018-05-04-62) 2, 62 (2018). [41] Benjamin J. Brown. “A fault-tolerant nonClifford gate for the surface code in two dimensions”. Sci. Adv. [6](https://dx.doi.org/10.1126/sciadv.aay4929), eaay4929 (2020). [42] Christopher Chamberland and Earl T. Camp bell. “Universal quantum computing with twistfree and temporally encoded lattice surgery”. PRX [Quantum](https://dx.doi.org/10.1103/PRXQuantum.3.010331) 3, 010331 (2022). [43] Christopher Chamberland and Earl T. Camp bell. “Circuit-level protocol and analysis for twist-based lattice surgery”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevResearch.4.023090) Research [4](https://dx.doi.org/10.1103/PhysRevResearch.4.023090), 023090 (2022). [44] R. Raussendorf, J. Harrington, and K. Goyal. “A fault-tolerant one-way quantum computer”. Ann. Phys. [321](https://dx.doi.org/https://doi.org/10.1016/j.aop.2006.01.012), 2242–2270 (2006). [45] H. Bomb´ın and M. A. Martin-Delgado. “Quan tum measurements and gates by code deformation”. J. Phys. A [Math.](https://dx.doi.org/10.1088/1751-8113/42/9/095302) Theor. 42, [095302](https://dx.doi.org/10.1088/1751-8113/42/9/095302) (2009). [46] H. Bomb´ın. “Topological order with a twist: [Ising anyons from an abelian model”. Phys. Rev.](https://dx.doi.org/10.1103/physrevlett.105.030403) Lett. [105](https://dx.doi.org/10.1103/physrevlett.105.030403), 030403 (2010). [47] H Bomb´ın. “Clifford gates by code deformation”. New J. [Phys.](https://dx.doi.org/10.1088/1367-2630/13/4/043005) 13, 043005 (2011). Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 28 [48] Maissam Barkeshli, Chao-Ming Jian, and Xiao Liang Qi. “Twist defects and projective nonabelian braiding statistics”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevB.87.045130) B 87, [045130](https://dx.doi.org/10.1103/PhysRevB.87.045130) (2013). [49] Huaixiu Zheng, Arpit Dua, and Liang Jiang. “Demonstrating non-abelian statistics of Majo rana fermions using twist defects”. [Phys.](https://dx.doi.org/10.1103/PhysRevB.92.245139) Rev. B 92, [245139](https://dx.doi.org/10.1103/PhysRevB.92.245139) (2015). [50] M. B. Hastings and A. Geller. “Reduced space time and time costs using dislocation codes and arbitrary ancillas” (2014). [arXiv:1408.3379.](http://arxiv.org/abs/1408.3379) [51] Theodore J. Yoder and Isaac H. Kim. “The sur face code with a twist”. [Quantum](https://dx.doi.org/10.22331/q-2017-04-25-2) 1, 2 (2017). [52] Markus S. Kesselring, Fernando Pastawski, Jens Eisert, and Benjamin J. Brown. “The boundaries and twist defects of the color code and their applications to topological quantum computation”. [Quantum](https://dx.doi.org/10.22331/q-2018-10-19-101) 2, 101 (2018). [53] Sebastian Krinner et al. “Realizing repeated quantum error correction in a distance-three surface code”. Nature [605](https://dx.doi.org/https://doi.org/10.1038/s41586-022-04566-8), 669–674 (2022). [54] Rajeev Acharya et al. “Suppressing quantum errors by scaling a surface code logical qubit”. Nature [614](https://dx.doi.org/10.1038/s41586-022-05434-1), 676–681 (2023). [55] T. I. Andersen et al. “Non-abelian braiding of graph vertices in a superconducting processor”. Nature [618](https://dx.doi.org/10.1038/s41586-023-05954-4), 264–269 (2023). [56] Sergey Bravyi, Barbara M Terhal, and Bern hard Leemhuis. “Majorana fermion codes”. New J. [Phys.](https://dx.doi.org/10.1088/1367-2630/12/8/083039) 12, 083039 (2010). [57] Sagar Vijay, Timothy H. Hsieh, and Liang Fu. “Majorana fermion surface code for universal quantum computation”. Phys. [Rev.](https://dx.doi.org/10.1103/physrevx.5.041038) X 5, [041038](https://dx.doi.org/10.1103/physrevx.5.041038) (2015). [58] Ying Li. “Fault-tolerant fermionic quantum computation based on color code”. [Phys.](https://dx.doi.org/10.1103/PhysRevA.98.012336) Rev. A 98, [012336](https://dx.doi.org/10.1103/PhysRevA.98.012336) (2018). [59] L. A. Landau, S. Plugge, E. Sela, A. Altland, S. M. Albrecht, and R. Egger. “Towards realistic implementations of a Majorana surface code”. Phys. Rev. [Lett.](https://dx.doi.org/10.1103/physrevlett.116.050501) 116, 050501 (2016). [60] S. Plugge, L. A. Landau, E. Sela, A. Altland, K. Flensberg, and R. Egger. “Roadmap to Majorana surface codes”. Phys. [Rev.](https://dx.doi.org/10.1103/physrevb.94.174514) B 94, [174514](https://dx.doi.org/10.1103/physrevb.94.174514) (2016). [61] Daniel Litinski and Felix von Oppen. “Quantum [computing with Majorana fermion codes”. Phys.](https://dx.doi.org/10.1103/physrevb.97.205404) Rev. B [97](https://dx.doi.org/10.1103/physrevb.97.205404), 205404 (2018). [62] Campbell K. McLauchlan and Benjamin B´eri. “Fermion-parity-based computation and its Majorana-zero-mode implementation”. [Phys.](https://dx.doi.org/10.1103/PhysRevLett.128.180504) Rev. Lett. [128](https://dx.doi.org/10.1103/PhysRevLett.128.180504), 180504 (2022). [63] Oscar Viyuela, Sagar Vijay, and Liang Fu. “Scalable fermionic error correction in Majorana surface codes”. [Phys. Rev. B](https://dx.doi.org/10.1103/PhysRevB.99.205114) 99, 205114 (2019). [64] Sergey B. Bravyi and Alexei Yu. Kitaev. “Fermionic quantum computation”. Ann. Phys. (N. Y.) [298](https://dx.doi.org/10.1006/aphy.2002.6254), 210–226 (2002). [65] T. E. O’Brien, P. Rozek, and A. R. Akhmerov. “Majorana-based fermionic quantum computa tion”. Phys. Rev. [Lett.](https://dx.doi.org/10.1103/physrevlett.120.220504) 120, 220504 (2018). [66] A. R. Akhmerov. “Topological quantum computation away from the ground state using Majorana fermions”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevB.82.020509) B 82, [020509(R)](https://dx.doi.org/10.1103/PhysRevB.82.020509) (2010). [67] G. Goldstein and C. Chamon. “Exact zero modes in closed systems of interacting fermions”. Phys. Rev. [B](https://dx.doi.org/10.1103/PhysRevB.86.115122) 86, 115122 (2012). [68] Jan Behrends and Benjamin B´eri. “Supersymmetry in the standard Sachdev-Ye-Kitaev model”. Phys. Rev. [Lett.](https://dx.doi.org/10.1103/PhysRevLett.124.236804) 124, 236804 (2020). [69] Maissam Barkeshli, Chao-Ming Jian, and Xiao Liang Qi. “Theory of defects in abelian topological states”. Phys. Rev. [B](https://dx.doi.org/10.1103/physrevb.88.235103) 88, 235103 (2013). [70] Jeffrey C.Y. Teo, Taylor L. Hughes, and Ed uardo Fradkin. “Theory of twist liquids: Gauging an anyonic symmetry”. Ann. [Phys.](https://dx.doi.org/10.1016/j.aop.2015.05.012) (N. Y.) 360, [349–445](https://dx.doi.org/10.1016/j.aop.2015.05.012) (2015). [71] Maissam Barkeshli, Parsa Bonderson, Meng Cheng, and Zhenghan Wang. “Symmetry fractionalization, defects, and gauging of topological phases”. Phys. Rev. [B](https://dx.doi.org/10.1103/PhysRevB.100.115147) 100, 115147 (2019). [72] Sergey Bravyi, Graeme Smith, and John A. Smolin. “Trading classical and quantum computational resources”. Phys. [Rev.](https://dx.doi.org/10.1103/physrevx.6.021043) X 6, [021043](https://dx.doi.org/10.1103/physrevx.6.021043) (2016). [73] Mithuna Yoganathan, Richard Jozsa, and Sergii Strelchuk. “Quantum advantage of unitary Clifford circuits with magic state inputs”. [Proc.](https://dx.doi.org/10.1098/rspa.2018.0427) Math. Phys. Eng. [Sci.](https://dx.doi.org/10.1098/rspa.2018.0427) 475, 20180427 (2019). [74] Mitchell Chiew and Sergii Strelchuk. “Discov ering optimal fermion-qubit mappings through algorithmic enumeration”. [Quantum](https://dx.doi.org/10.22331/q-2023-10-18-1145) 7, [1145](https://dx.doi.org/10.22331/q-2023-10-18-1145) (2023). [75] Sergey Bravyi. “Universal quantum computa tion with the _ν_ = 5 _/_ 2 fractional quantum hall state”. Phys. Rev. [A](https://dx.doi.org/10.1103/PhysRevA.73.042313) 73, 042313 (2006). [76] Sergey Bravyi and Alexei Kitaev. “Universal quantum computation with ideal Clifford gates and noisy ancillas”. Phys. [Rev.](https://dx.doi.org/10.1103/physreva.71.022316) A 71, [022316](https://dx.doi.org/10.1103/physreva.71.022316) (2005). [77] Sergey Bravyi and Jeongwan Haah. “Magicstate distillation with low overhead”. [Phys. Rev.](https://dx.doi.org/10.1103/PhysRevA.86.052329) A 86, [052329](https://dx.doi.org/10.1103/PhysRevA.86.052329) (2012). [78] Cody Jones. “Multilevel distillation of magic states for quantum computing”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevA.87.042305) A 87, [042305](https://dx.doi.org/10.1103/PhysRevA.87.042305) (2013). [79] Jeongwan Haah, Matthew B. Hastings, D. Poulin, and D. Wecker. “Magic state distillation with low space overhead and optimal asymptotic input count”. [Quantum](https://dx.doi.org/10.22331/q-2017-10-03-31) 1, [31](https://dx.doi.org/10.22331/q-2017-10-03-31) (2017). [80] Daniel Litinski. “Magic state distillation: Not as costly as you think”. [Quantum](https://dx.doi.org/10.22331/q-2019-12-02-205) 3, 205 (2019). [81] Daniel Arovas, J. R. Schrieffer, and Frank Wilczek. “Fractional statistics and the quan Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 29 tum hall effect”. Phys. Rev. [Lett.](https://dx.doi.org/10.1103/PhysRevLett.53.722) 53, 722– [723](https://dx.doi.org/10.1103/PhysRevLett.53.722) (1984). [82] X. G. Wen and Q. Niu. “Ground-state degen eracy of the fractional quantum Hall states in the presence of a random potential and on highgenus Riemann surfaces”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevB.41.9377) B 41, [9377–9396](https://dx.doi.org/10.1103/PhysRevB.41.9377) (1990). [83] Chetan Nayak, Steven H. Simon, Ady Stern, Michael Freedman, and Sankar Das Sarma. “Non-abelian anyons and topological quantum computation”. Rev. Mod. Phys. 80, [1083–1159](https://dx.doi.org/10.1103/revmodphys.80.1083) (2008). [84] Alexei Kitaev and Liang Kong. “Models for Gapped Boundaries and Domain Walls”. [Com-](https://dx.doi.org/10.1007/s00220-012-1500-5) mun. Math. [Phys.](https://dx.doi.org/10.1007/s00220-012-1500-5) 313, 351–373 (2012). [85] Michael Levin. “Protected edge modes without symmetry”. Phys. Rev. [X](https://dx.doi.org/10.1103/PhysRevX.3.021009) 3, 021009 (2013). [86] Iris Cong, Meng Cheng, and Zhenghan Wang. “Universal quantum computation with gapped boundaries”. Phys. Rev. Lett. 119, [170504](https://dx.doi.org/10.1103/PhysRevLett.119.170504) (2017). [87] Jeffrey C Y Teo. “Globally symmetric topological phase: from anyonic symmetry to twist defect”. J. Phys. [Condens.](https://dx.doi.org/10.1088/0953-8984/28/14/143001) Matter 28, [143001](https://dx.doi.org/10.1088/0953-8984/28/14/143001) (2016). [88] Yi-Zhuang You, Chao-Ming Jian, and Xiao Gang Wen. “Synthetic non-abelian statistics by abelian anyon condensation”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevB.87.045106) B 87, [045106](https://dx.doi.org/10.1103/PhysRevB.87.045106) (2013). [89] Maissam Barkeshli and Xiao-Liang Qi. “Topo logical nematic states and non-abelian lattice dislocations”. Phys. Rev. [X](https://dx.doi.org/10.1103/PhysRevX.2.031013) 2, 031013 (2012). [90] Benjamin J. Brown, Stephen D. Bartlett, An drew C. Doherty, and Sean D. Barrett. “Topological entanglement entropy with a twist”. Phys. Rev. [Lett.](https://dx.doi.org/10.1103/PhysRevLett.111.220402) 111, 220402 (2013). [91] Paul Webster and Stephen D. Bartlett. “Fault tolerant quantum gates with defects in topological stabilizer codes”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevA.102.022403) A 102, [022403](https://dx.doi.org/10.1103/PhysRevA.102.022403) (2020). [92] Joseph J Rotman. “A first course in abstract al gebra with applications”. Prentice-Hall. (2006). [93] Ari M. Turner, Frank Pollmann, and Erez Berg. “Topological phases of one-dimensional fermions: An entanglement point of view”. Phys. Rev. [B](https://dx.doi.org/10.1103/PhysRevB.83.075102) 83, 075102 (2011). [94] Lukasz Fidkowski and Alexei Kitaev. “Topolog ical phases of fermions in one dimension”. [Phys.](https://dx.doi.org/10.1103/PhysRevB.83.075103) Rev. B [83](https://dx.doi.org/10.1103/PhysRevB.83.075103), 075103 (2011). [95] R Raussendorf, J Harrington, and K Goyal. “Topological fault-tolerance in cluster state quantum computation”. New J. [Phys.](https://dx.doi.org/10.1088/1367-2630/9/6/199) 9, 199– [199](https://dx.doi.org/10.1088/1367-2630/9/6/199) (2007). [96] H´ector Bomb´ın. “Gauge color codes: optimal transversal gates and gauge fixing in topological stabilizer codes”. New J. [Phys.](https://dx.doi.org/10.1088/1367-2630/17/8/083002) 17, [083002](https://dx.doi.org/10.1088/1367-2630/17/8/083002) (2015). [97] Sergey Bravyi and Barbara Terhal. “A no-go theorem for a two-dimensional self-correcting quantum memory based on stabilizer codes”. New J. [Phys.](https://dx.doi.org/10.1088/1367-2630/11/4/043029) 11, 043029 (2009). [98] Austin G. Fowler and Craig Gidney. “Low overhead quantum computation using lattice surgery” (2019). [arXiv:1808.06709.](http://arxiv.org/abs/1808.06709) [99] Daniel Litinski and Felix von Oppen. “Braid ing by Majorana tracking and long-range CNOT gates with color codes”. Phys. [Rev.](https://dx.doi.org/10.1103/physrevb.96.205413) B 96, [205413](https://dx.doi.org/10.1103/physrevb.96.205413) (2017). [100] Markus S. Kesselring, Julio C. Magdalena de la Fuente, Felix Thomsen, Jens Eisert, Stephen D. Bartlett, and Benjamin J. Brown. “Anyon condensation and the color code”. PRX [Quantum](https://dx.doi.org/10.1103/prxquantum.5.010342) 5, [010342](https://dx.doi.org/10.1103/prxquantum.5.010342) (2024). [101] Jason Alicea, Yuval Oreg, Gil Refael, Felix von Oppen, and Matthew P. A. Fisher. “Nonabelian statistics and topological quantum information processing in 1d wire networks”. [Nat.](https://dx.doi.org/10.1038/nphys1915) Phys. 7, 412–417 (2011). [102] Parsa Bonderson, Michael Freedman, and Chetan Nayak. “Measurement-only topological quantum computation”. Phys. [Rev.](https://dx.doi.org/10.1103/physrevlett.101.010501) Lett. 101, [010501](https://dx.doi.org/10.1103/physrevlett.101.010501) (2008). [103] Aleksander Kubica and Michael E. Beverland. “Universal transversal gates with color codes: A simplified approach”. Phys. [Rev.](https://dx.doi.org/10.1103/physreva.91.032330) A 91 (2015). [104] Aleksander Kubica, Beni Yoshida, and Fer nando Pastawski. “Unfolding the color code”. New Journal of [Physics](https://dx.doi.org/10.1088/1367-2630/17/8/083026) 17, 083026 (2015). [105] F Hassler, A R Akhmerov, and C W J Beenakker. “The top-transmon: a hybrid superconducting qubit for parity-protected quantum computation”. New J. [Phys.](https://dx.doi.org/10.1088/1367-2630/13/9/095004) 13, 095004 (2011). [106] M. Taupin, I. M. Khaymovich, M. Meschke, A. S. Mel’nikov, and J. P. Pekola. “Tunable quasiparticle trapping in Meissner and vortex states of mesoscopic superconductors”. [Nature](https://dx.doi.org/10.1038/ncomms10977) [Communications](https://dx.doi.org/10.1038/ncomms10977) 7, 10977 (2016). [107] R.-P. Riwar, A. Hosseinkhani, L. D. Burkhart, Y. Y. Gao, R. J. Schoelkopf, L. I. Glazman, and G. Catelani. “Normal-metal quasiparticle traps for superconducting qubits”. Phys. [Rev.](https://dx.doi.org/10.1103/PhysRevB.94.104516) B 94, [104516](https://dx.doi.org/10.1103/PhysRevB.94.104516) (2016). [108] R.-P. Riwar and G. Catelani. “Efficient quasi particle traps with low dissipation through gap engineering”. Phys. Rev. [B](https://dx.doi.org/10.1103/PhysRevB.100.144514) 100, 144514 (2019). [109] Simon Gustavsson et al. “Suppressing relaxation in superconducting qubits by quasiparticle pumping”. Science [354](https://dx.doi.org/10.1126/science.aah5844), 1573–1577 (2016). [110] Abhijeet Alase, Kevin D. Stubbs, Barry C. Sanders, and David L. Feder. “Exponential suppression of Pauli errors in Majorana qubits via quasiparticle detection” (2023). [arXiv:2307.08896.](http://arxiv.org/abs/2307.08896) [111] Utkan G¨ung¨ord¨u, Rabindra Nepal, and Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 30 Alexey A. Kovalev. “Parafermion stabilizer codes”. Phys. Rev. [A](https://dx.doi.org/10.1103/PhysRevA.90.042326) 90, 042326 (2014). [112] Sagar Vijay, Jeongwan Haah, and Liang Fu. “A new kind of topological quantum order: A dimensional hierarchy of quasiparticles built from stationary excitations”. Phys. [Rev.](https://dx.doi.org/10.1103/physrevb.92.235136) B 92, [235136](https://dx.doi.org/10.1103/physrevb.92.235136) (2015). [113] Anton Kapustin and Natalia Saulina. “Topological boundary conditions in abelian Chern–Simons theory”. Nucl. [Phys.](https://dx.doi.org/https://doi.org/10.1016/j.nuclphysb.2010.12.017) B 845, [393–435](https://dx.doi.org/https://doi.org/10.1016/j.nuclphysb.2010.12.017) (2011). A Details of Anyons and Boundaries in the MSC A.1 Anyon Statistics Given a collection of anyons _A_, we can assign to them self-exchange and mutual statistics. The selfexchange statistic _θa_ for _a_ _∈A_ is the phase acquired when two _a_ particles are clockwise interchanged. In general, Abelian anyons can pick up any _U_ (1) phase under self-exchange. The mutual statistic, _Ma,b_, of two anyons, _a, b ∈A_ with _a̸_ = _b_, is the phase acquired when _a_ is wound completely around _b_ in the clockwise direction. In the MSC, the particles R, G and B all have bosonic (+1) self-exchange statistics but mutual semion statistics ( _M_ R _,_ G = _M_ G _,_ B = _M_ B _,_ R = _−_ 1) [57]. This is due to different-colored string operators anticommuting with one another, because they overlap at an odd number of vertices (cf. Figure 1). GB, BR and RG differ from R, G and B by the addition of RGB which has a fermionic ( _−_ 1) self-exchange statistic. Hence these three particles also have fermionic self-exchange statistics. All mutual statistics are preserved under the addition of RGB, as can be seen by splitting it into R, G and B, and separately moving these particles around anyon _a_ _∈A_ (for any such _a_, an even number of _M_ R _,a_, _M_ G _,a_ and _M_ B _,a_ are _−_ 1). A.2 Lagrangian Subgroups In bosonic systems, types of gapped boundaries are in one-to-one correspondence with “Lagrangian subgroups” of the anyon model, and hence can be fully classified with reference only to the anyons and their properties [85, 113]. A Lagrangian subgroup is a subset of the collection of anyons _L_ _⊆A_, such that for all _a, b ∈L_ : (1) _a × b ∈L_ and _a,_ ¯ <sup>¯</sup> _b ∈L_, where _a_ ¯ refers to the antiparticle of _a_ such that _a ×_ _a_ ¯ = 1 ; (2) _a_ and _b_ are self-bosons ( _θa_ = _θb_ = 1) and have trivial mutual statistics (i.e., _Ma,b_ = 1); (3) every _c_ _∈L/_ has non-trivial mutual statistics with at least one _a ∈L_ . To every Lagrangian subgroup we can associate a gapped boundary _GL_ (and vice versa). The boundary _GL_ will be such that all anyons in _L_ can condense at that boundary. This condensation process is achieved by string operators that terminate on the boundary, and hence commute with all plaquette operators around this endpoint. Such condensation processes are shown in Figure 4. The properties of _L_ can be understood as follows. Property (2) ensures that processes that are confined to the boundary _GL_ and that commute with the Hamiltonian act trivially on the ground state. In topological codes, these processes correspond to stabilizer elements, which must mutually commute - hence the associated anyons must have trivial statistics. Property (1) ensures that _L_ is a group under the fusion operation, while (3) ensures that this group is maximal: no other anyon can be added to it without violating either (1) or (2). In the MSC there exist three different Lagrangian subgroups: _L_ R, _L_ G and _L_ B, where _L_ C = _{_ 1 _,_ C _}_ for C = R _,_ G _,_ B. Hence, each boundary can be colored according to the color of the anyon that it condenses (cf. Figure 1). These boundaries are closely related to a subset of gapped boundaries of the Color Code [34, 52]. However, as described in the main text, fermionic systems have an extra _Z_ 2 fermion parity grading along their one-dimensional boundaries, allowing for a further classification. B Properties of Twists and Domain Walls B.1 Gauge Dependence of Domain Walls and Twist Sub-Types Domain walls can be moved, or a closed loop of domain wall can be artificially introduced, by simply relabeling the colors of plaquettes. Thus domain walls are gauge-dependent objects. While the locations of twists are gauge-independent, twists do have gaugedependent features. Consider, for example, wrapping a domain wall _ψ_ around a pair of twists _φ_ and _φ_ <sup>_−_</sup> <sup>1</sup>, with _ψ_ and _φ_ both symmetry transformations of the anyon labels. Then an anyon _a_ encircling the twist _φ_ from outside the domain wall _ψ_ is mapped to _ψ_ <sup>_−_</sup> <sup>1</sup> _◦_ _φ ◦_ _ψ_ ( _a_ ) _̸_ = _φ_ ( _a_ ). Hence, twists are only defined up to conjugation by other permutation group elements. _S_ 3 has two conjugacy classes, one containing all _Z_ 2 twist permutations, the other containing those of the _Z_ 3 twists. To illustrate the gauge-dependence of domain walls, Figure 18 shows two domain walls that have been inserted into the lattice by simply changing plaquette labels. In Figure 18a, a closed loop of _Z_ 2 domain wall (of type _T_ G) is shown. Note that 3-colorability of the lattice is violated along this wall. In Figure 18b, a _Z_ 3 domain wall enacting the permutation _T_ RGB on anyons travelling across it from top to bottom is shown. Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 31 (a) (b) Figure 18: Domain walls can be inserted into the lattice via a gauge transformation (a change of plaquette coloration). In (a) a closed loop of _Z_ 2 domain wall of type _T_ G is illustrated by a yellow dashed line. In (b) a line of _Z_ 3 domain wall of type _T_ RGB (for anyons travelling from top to bottom across the wall) is illustrated by a blue line. B.2 Twist-Corner Correspondence As explained in the main text, twists and domain walls are closely associated with boundaries and corners of a model respectively [69]. For example, creating a domain wall _φ_ along a boundary of the model can change the boundary type. If the original boundary was _GL_, for Lagrangian subgroup _L_, it now becomes _Gφ_ ( _L_ ), where _φ_ ( _L_ ) is also a Lagrangian subgroup, owing to the fact that _φ_ is a symmetry. Twists in these cases are then associated with corners between boundaries of different types. <u>B.3</u> <u>Twist</u> <u>Fusion</u> <u>Rules</u> Similarly to anyons, twists obey fusion rules dictating how they can combine and split. Consider an anyon encircling both a _T_ R twist and a _T_ B twist, located in close proximity to one another. This anyon first undergoes the transformation _T_ R, and then the transformation _T_ B, which is equivalent to the transformation _T_ RGB. Thus we can consider the combination of _T_ R and _T_ B (with a suitable ordering of the domain walls) to be _T_ RGB. We can split a _Z_ 3 twist into any two _Z_ 2 twists of different sub-types. We demonstrate this at the lattice level in Figure 19, where a _T_ RGB domain wall terminates at a (fermionic) _T_ RGB twist on the left, and splits into two _Z_ 2 domain walls on the right. The domain walls shown terminate at a (bosonic) _T_ B twist and a (fermionic) _T_ G twist. In general, twists obey the same relations as members of _S_ 3. The overall fermion grading of the twists must be preserved when combining or splitting them. Thus, for example, bosonic twists can split into two bosonic or two fermionic twists, whereas fermionic twists must split Figure 19: An example of a _Z_ 3 twist having split into two _Z_ 2 twists. On the left we have one fermionic _Z_ 3 twist. On the right, we have a bosonic _T_ B twist (top) and a fermionic _T_ G twist (bottom). into one fermionic and one bosonic twist. B.4 Calculating Quantum Dimensions of Twists We can calculate the quantum dimensions of twists of a given type by determining the number of ground states that a code with those twists possesses. We begin with bosonic _T_ B twists. First, consider the code to contain 2 _n_ Majorana operators, and to be embedded on a torus. With zero twists present, we have the following non-trivial relationship between plaquette operators and the total fermion parity operator Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 32 Γ: _p∈R_ _p∈B_ _Op_ = Γ (11) _Op_ = _p∈G_ _Op_ = where _R_, _G_ and _B_ are sets of red, green and blue plaquettes respectively. Thus the degeneracy of the ground state is: _D_ 0 = 2 <sup>_n−_</sup> <sup>[3(2</sup> <sup>_n/_</sup> <sup>6)</sup> <sup>_−_</sup> <sup>2]</sup> = 4 (12) because there are 2 _n/_ 6 plaquettes of any given color and so the number of independent stabilizer generators [considering Equation (11)] is _n −_ 2. Hence the code contains two logical qubits, owing to the topology of the lattice. We now add a pair of bosonic _T_ B twists into the lattice. In this case, we only have the following nontrivial relations between plaquette operators: _p∈RG_ _Op_ = 1 _,_ _p∈BO_ _Op_ = Γ (13) (a) (b) Figure 20: Logical MZMs in the MSC with twist defects and boundaries. In (a) a logical operator (red string operator, equivalent to Γ) and a logical MZM (red, green and blue operator ~~)~~ ~~are~~ ~~shown~~, for a code with two bosonic _T_ B twists (blue crosses) and a blue boundary (outer blue ring). In (b), the twists are replaced by fermionic twists, allowing for a qubit to be stored in a single parity sector. The logical operators are the blue and red strings indicated. patch of MSC. Without loss of generality, we can consider the boundary as having a single color and all twists as being in the bulk, since corners are equivalent to twists. To begin with _Z_ 2 twists, the ground state is nondegenerate when the boundary is colored differently to the twist type. For example, in a single parity sector (Γ = +1) and in the case of a blue boundary and _T_ R twists, we have the non-trivial relation - _p∈RO_ <sup>_Op_</sup> <sup>=</sup> <sup>Γ.</sup> <sup>Whereas</sup> <sup>without</sup> <sup>twists</sup> <sup>there</sup> <sup>are</sup> two: <sup>�</sup> _p∈R_ <sup>_Op_</sup> <sup>=</sup> <sup>�</sup> _p∈G_ <sup>_Op_</sup> <sup>=</sup> <sup>Γ.</sup> Thus, introduc where _RG_ is the set of all red/green plaquette operators (including those that span the domain wall, colored both red and green in Figure 5a), and _BO_ is the set of all blue and orange operators. From Figure 5a, it can also be seen that introducing a pair of bosonic _Z_ 2 twists lowers the number of stabilizer generators along the domain wall by 1 (note that we also count the orange operators as stabilizer generators). Hence, counting the degeneracy of the ground state when two twists are present, we still obtain: _D_ 2 = 2 <sup>_n−_</sup> <sup>[3(2</sup> <sup>_n/_</sup> <sup>6)</sup> <sup>_−_</sup> <sup>1</sup> <sup>_−_</sup> <sup>1]</sup> = 4 _._ (14) _p∈R_ <sup>_Op_</sup> <sup>=</sup> <sup>�</sup> However, as we continue to add pairs of twists, the number of independent stabilizer generators is decreased by 1 each time, while Equations (13) remain unchanged. Thus, _D_ 4 = 8, _D_ 6 = 16, etc. So for large twist numbers, introducing an additional pair of twists doubles the number of ground states, indicating that the quantum dimension of these twists is _√_ _d_ <sup>_B_</sup> 2 <sup>=</sup> 2. Similarly, introducing a pair of _Z_ 3 twists lowers the number of stabilizer generators along the domain wall by 2 and hence, for large twist numbers, introducing a pair of them quadruples the number of ground states. Thus, their quantum dimension is _d_ <sup>_B_</sup> 3 <sup>= 2.</sup> <sup>In</sup> <sup>both</sup> <sup>cases,</sup> <sup>it</sup> <sup>can</sup> <sup>be</sup> <sup>seen</sup> <sup>from</sup> <sup>Figures</sup> <sup>5a</sup> and 5b that the fermionic counterparts of these twists have 1 fewer stabilizer generators again, indicating that the quantum dimensions of fermionic twists are _√_ _d_ <sup>_F_</sup> 2 <sup>= 2</sup> <sup>and</sup> <sup>_d_</sup> 3 <sup>_F_</sup> <sup>= 2</sup> 2. two: <sup>�</sup> _p∈R_ <sup>_Op_</sup> <sup>=</sup> <sup>�</sup> _p∈G_ <sup>_Op_</sup> <sup>=</sup> <sup>Γ.</sup> Thus, introduc ing two bosonic _T_ R twists lowers the number of constraints by 1 and the number of plaquette operators by 1, thus not changing the number of unconstrained degrees of freedom. However, when two _T_ B twists are introduced to a patch with a blue boundary, the total fermion parity is no longer a product of plaquette (and orange) operators, whereas it still commutes with all _s ∈S_ . So we can expect to find a fermion-parity-odd logical MZM which also commutes with all members of the stabilizer group. Indeed, if we count both fermion-parity odd and even states, the only non-trivial constraint on the plaquette operators before and after the introduction of twists is <sup>�</sup> _p∈RG_ <sup>_Op_</sup> <sup>=</sup> <sup>1.</sup> <sup>So</sup> <sup>introducing</sup> two _T_ B twists increases the number of unconstrained degrees of freedom by 1 (since it decreases the number of independent stabilizer generators along the domain wall), and Γ = _±_ 1 states are now degenerate. The logical MZM (along with the logical operator Γ) is shown in Figure 20a. The logical MZM is equivalent to a process of producing an RGB anyon, splitting this into RG _×_ B, localizing the RG anyon at one of the twists and condensing the B anyon at the boundary. We can similarly find logical MZMs whenever we have However, when two _T_ B twists are introduced to a patch with a blue boundary, the total fermion parity is no longer a product of plaquette (and orange) operators, whereas it still commutes with all _s ∈S_ . So we can expect to find a fermion-parity-odd logical MZM which also commutes with all members of the stabilizer group. Indeed, if we count both fermion-parity odd and even states, the only non-trivial constraint on the plaquette operators before and after the introduction of twists is <sup>�</sup> _p∈RG_ <sup>_Op_</sup> <sup>=</sup> <sup>1.</sup> <sup>So</sup> <sup>introducing</sup> t _√_ <sup>_B_</sup> 2 <sup>=</sup> the quantum di _√_ <sup>_F_</sup> 2 <sup>= 2</sup> <sup>and</sup> <sup>_d_</sup> 3 <sup>_F_</sup> <sup>= 2</sup> 2. C Logical MZMs in Systems with Boundary Logical MZMs can be found in systems with only bosonic twists when boundaries are introduced to the two _Z_ 3 twists in a patch with a boundary, since _Z_ 3 twists can localize RG, GB and BR anyons. In order to encode a qubit with this logical MZM (which requires working with a single total parity sector [17]), we can either encode it into two copies of this code (in which case Γ above becomes the patch fermion parity instead of the total fermion parity, leading to a setup Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 33 _Z_ ¯ _B_ 1 2 3 4 _Z_ ¯ _B_ 1 2 4 3 1 2 1 2 4 3 _X_ ¯ _B_ 4 3 Figure 21: Braiding twists _T_ 3 and _T_ 4 transforms _Z_ <sup>¯</sup> _B_ into _Y_ <sup>¯</sup> _B_ . _X_ ¯ _B_, which is a red string operator encircling _T_ 1 and _T_ 2, is not affected by this braid. The steps of the braid proceed according to the panels, clockwise from the top-left. equivalent to Figure 7a upon merging boundaries), or we can use fermionic twists instead, which support fermion-parity-preserving logical operators as shown in Figure 20b. D Generating Encoded Clifford Gates by Braiding Twists Consider a BT qubit stored between four blue twists, _T_ 1 _, T_ 2 _, T_ 3 _, T_ 4, with logical operators _X_ <sup>¯</sup> and _Z_ <sup>¯</sup> . The resulting setup is shown in Figure 21. By exchanging twists _T_ 3 and _T_ 4 (or _T_ 1 and _T_ 2) we send _Z_ <sup>¯</sup> _�→_ _Y_ <sup>¯</sup> and _Y_ ¯ _�→_ _Z_ ¯ up to a phase, while preserving _X_ ¯, as shown in Figure 21. This braiding operation, which we label _B_ 1, can be written in terms of encoded logic gates as _B_ 1 = _H_ <sup>¯</sup> _S_ <sup>¯</sup> _H_ <sup>¯</sup> (where _H_ <sup>¯</sup> and _S_ <sup>¯</sup> are encoded Hadamard and phase gates respectively) up to a logical Pauli operator, since this reproduces the transformations of the Pauli operators found for _B_ 1 (where _∼_ indicates equality up to a phase): ( _H_ <sup>¯</sup> _S_ <sup>¯</sup> _H_ <sup>¯</sup> ) _Z_ <sup>¯</sup> ( _H_ <sup>¯</sup> _S_ <sup>¯</sup> <sup>_†_</sup> _H_ <sup>¯</sup> ) = _−Y_ <sup>¯</sup> _∼B_ 1 _Z_ <sup>¯</sup> _B_ 1 <sup>_†,_</sup> (15) ( _H_ <sup>¯</sup> _S_ <sup>¯</sup> _H_ <sup>¯</sup> ) _Y_ <sup>¯</sup> ( _H_ <sup>¯</sup> _S_ <sup>¯</sup> <sup>_†_</sup> _H_ <sup>¯</sup> ) = _Z_ <sup>¯</sup> _∼B_ 1 _Y_ <sup>¯</sup> _B_ 1 <sup>_†,_</sup> (16) ( _H_ <sup>¯</sup> _S_ <sup>¯</sup> _H_ <sup>¯</sup> ) _X_ <sup>¯</sup> ( _H_ <sup>¯</sup> _S_ <sup>¯</sup> <sup>_†_</sup> _H_ <sup>¯</sup> ) = _X_ <sup>¯</sup> _∼B_ 1 _X_ <sup>¯</sup> _B_ 1 <sup>_†._</sup> (17) The phase can be set by a careful definition of the logical Pauli operators and plaquette operators in the model. In the same way, exchanging twists _T_ 2 and _T_ 4 preserves the operator _Z_ <sup>¯</sup> while sending _X_ ¯ _�→_ _Y_ ¯ and _Y_ ¯ _�→_ _X_ ¯ . This has the equivalent action as the logical phase gate _S_ <sup>¯</sup> . Thus we have two independent generators of the single-qubit Clifford group and so we can use these to generate all such gates. In Figure 22, we show how braiding two _Z_ 3 twists in a quartet affects the logical operators _X_ <sup>¯</sup> 1, _Z_ <sup>¯</sup> 2 and _Z_ <sup>¯</sup> 1 for the two BT qubits. The effect on logical operator _X_ ¯2 is shown in Figure 10 of the main text. E Lattice Surgery for Large-Weight Logical MZM Bilinear Measurement In Figure 23, we illustrate the lattice surgery procedure for measuring the bilinear operator _i_ Υ _a_ Υ _b_, where these two logical MZMs have arbitrarily high weights. In the example, Υ _a_ is supported on a blue boundary and Υ _b_ on a red boundary. Similarly to in Section 4.3.1, we prepare a patch, supporting ancilla logical MZMs Υ <sup>˜</sup> _a_ and Υ <sup>˜</sup> _b_, in the state _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ = +1. These logical MZMs will have a similar weight to Υ _a_ and Υ _b_ respectively, and will be supported on blue boundaries. We measure the extra plaquette operators shown in Figure 23b connecting the two patches. Note that the product of the eigenvalues of those plaquette operators connecting Υ _a_ and Υ <sup>˜</sup> _a_ is equal to the eigenvalue of _i_ Υ _a_ Υ <sup>˜</sup> _a_, and similarly for _i_ Υ _b_ Υ <sup>˜</sup> _b_ . We then measure _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ destructively (by measuring all blue bond operators) and perform/track a correction operation dependent on this measurement outcome (cf. Section 4.3.1). F Calculating the Correction Operation for Logical Fermion Parity Measurement Here, we go through the details of Section 4.3.2, specifically showing how to determine the correction operation that needs to be tracked when measuring a logical fermion parity operator. To determine this operation, we need to assess whether each logical bilinear operator has been preserved by the measurement-based procedure outlined. We deal with the example of _i_ Υ1Υ3 specifically. We can use the final column of Table 2 to determine that after the lattice surgery measurements, this bilinear is mapped to _λ_ 1 _λ_ 3 _Z_ <sup>¯</sup> _B_ (it is unchanged by the final measurement of _i_ Υ4Υ <sup>˜</sup> 4). The final step of the procedure from Section 4.3.2 is to measure all blue bond operators on the ancilla patch, from which we deduce the measurement outcome of operator Γ <sup>˜</sup> 4 to be _η_ 1, _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_ to be _η_ 2 and _i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_ to be _η_ 3 (these measurements do not commute with _Z_ <sup>¯</sup> _B_ ). The postmeasurement state of the logical qubits can be obtained by acting three logical operators _R_ 1, _R_ 2 and _R_ 3 on the pre-measurement state. This is equivalent to replacing projectors with logical braids in Section 4.3.1. We now determine _R_ 1, _R_ 2 and _R_ 3 for this example. Note the logical operators stabilizing the premeasurement state are those that were just measured via lattice surgery: _λji_ Υ _j_ Υ <sup>˜</sup> _j_ for _j_ = 1 _,_ 2 _,_ 3 _,_ 4. We con Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 34 ### X ¯1 X ¯2 (a) ###### Z ¯2 Z ¯1 (b) ###### X ¯2 _X_ ¯1 _Z_ ¯1 _Z_ ¯1 _Z_ ¯2 _X_ ¯2 (c) Figure 22: Braiding _Z_ 3 twists results in the following transformations of Pauli operators: (a) _X_ <sup>¯</sup> 1 _�→_ _X_ <sup>¯</sup> 2, (b) _Z_ <sup>¯</sup> 2 _�→_ _Z_ <sup>¯</sup> 1 _X_ <sup>¯</sup> 2, and (c) _Z_ <sup>¯</sup> 1 _�→_ _Y_ <sup>¯</sup> 1 _Y_ <sup>¯</sup> 2. Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 35 Υ _a_ ˜Υ _a_ Υ _b_ ˜Υ _b_ (a) (b) Figure 23: Procedure for measuring a high-weight logical MZM bilinear, _i_ Υ _a_ Υ _b_ . In (a), a small section of surface code patch is shown in the top-half of the figure, with the color of all boundaries indicated. Logical MZMs Υ _a_ and Υ _b_ are supported on odd-length boundaries of color blue and red respectively. Ancilla logical MZMs Υ <sup>˜</sup> _a_ and Υ <sup>˜</sup> _b_ are supported on blue boundaries. The ancilla patch is prepared in the +1 eigenstate of _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ . (b) Plaquette operators connecting the surface code patch with the ancilla patch are then measured. The product of light blue plaquettes (left) and four- and six-body plaquettes (right) are the operators _i_ Υ _a_ Υ <sup>˜</sup> _a_ and _i_ Υ _b_ Υ <sup>˜</sup> _b_ respectively. Once these operators are measured non-destructively, destructive measurement of _i_ Υ <sup>˜</sup> _a_ Υ <sup>˜</sup> _b_ is performed. The product of the first two measurements gives the measurement outcome of _i_ Υ _a_ Υ _b_ while the final measurement determines the correction operation required. sider first the measurement of Γ <sup>˜</sup> 4 (it does not matter which we choose to consider first, since the measurements all commute). A logical braid that enacts the same transformation as this measurement is (see Section 4.3.1): We then consider the measurement of _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_ . This anti-commutes with operators _λ_ 1 _λ_ 3Υ1Υ3Υ <sup>˜</sup> 1Υ <sup>˜</sup> 3 and _λ_ 1 _λ_ 4Υ1Υ4Υ <sup>˜</sup> 1Υ <sup>˜</sup> 4, so we can choose: _η_ 2 _λ_ 1 _λ_ 3 _η_ 2 _λ_ 1 _λ_ 3 _<u>π</u>_ _<u>π</u>_ 4 <sup>(</sup> <sup>_i_</sup> <sup>˜Υ1 ˜Υ2</sup> <sup>_X_</sup> <sup>¯</sup> <sup>_B_</sup> <sup>)(Υ1Υ3 ˜Υ1 ˜Υ3)</sup> (20) _<u>π</u>_ 4 <sup>_i_</sup> <sup>˜Υ2Υ3Υ1 ˜Υ3</sup> <sup>_X_</sup> <sup>¯</sup> <sup>_B_</sup> _._ (21) _<u>π</u>_ _<u>π</u>_ ˜Γ4 _i_ Υ1 ˜Υ1 4 _R_ 2 = exp = exp _<u>π</u>_ (18) _R_ 1 = exp = exp _η_ 1 _λ_ 1 _iη_ 1 _λ_ 1 _<u>π</u>_ _<u>π</u>_ 4 <sup>Υ1 ˜Υ2 ˜Υ3 ˜Υ4</sup> _._ (19) We then have the stabilizing operators: _η_ 1Γ <sup>˜</sup> 4, _η_ 2 _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_, _λ_ 1 _λ_ 2Υ1Υ2Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 and _η_ 1 _λ_ 1 _λ_ 2 _λ_ 3 _λ_ 4Γ4. Finally we consider the measurement of _i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_ . We can choose: The measurement operator anti-commutes with all _λji_ Υ _j_ Υ <sup>˜</sup> _j_ and so only products of pairs of these operators will stabilize the post-measurement state. The full list of independent operators stabilizing this state is: _η_ 1Γ <sup>˜</sup> 4, and _λ_ 1 _λj_ Υ1Υ _j_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> _j_ for _j_ = 2 _,_ 3 _,_ 4. Note also that Γ4 = _η_ 1 _λ_ 1 _λ_ 2 _λ_ 3 _λ_ 4 on the post-measurement state. We have the final stabilizing operators: _η_ 1Γ <sup>˜</sup> 4, _η_ 2 _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_, _η_ 3 _i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_ and _η_ 1 _λ_ 1 _λ_ 2 _λ_ 3 _λ_ 4Γ4. _<u>π</u>_ 4 <sup>(</sup> <sup>_i_</sup> <sup>˜Υ2 ˜Υ4 ¯</sup> <sup>_ZB_</sup> <sup>)(Υ1Υ2 ˜Υ1 ˜Υ2)</sup> _._ (22) _R_ 3 = exp _η_ 3 _λ_ 1 _λ_ 2 Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 36 The operator _λ_ 1 _λ_ 3 _Z_ <sup>¯</sup> _B_ is therefore updated by the measurements to: _R_ 3 _R_ 2 _R_ 1( _λ_ 1 _λ_ 3 _Z_ <sup>¯</sup> _B_ ) _R_ 1 <sup>_†R_</sup> 2 <sup>_†R_</sup> 3 <sup>_†_</sup> <sup>=</sup> <sup>_iη_</sup> <sup>2 ˜Υ2Υ3Υ1 ˜Υ3</sup> <sup>_X_</sup> <sup>¯</sup> <sup>_B_</sup> <sup>¯</sup> <sup>_ZB._</sup> (23) We can then multiply this operator by the stabilizers _η_ 2 _i_ Υ <sup>˜</sup> 1Υ <sup>˜</sup> 2 _X_ <sup>¯</sup> _B_, _η_ 3 _i_ Υ <sup>˜</sup> 2Υ <sup>˜</sup> 4 _Z_ <sup>¯</sup> _B_ and _η_ 1Γ <sup>˜</sup> 4 to find the operator that acts equivalently on the post-measurement state. This operator is _−η_ 1 _η_ 3 _i_ Υ1Υ3. Hence, we find that the bilinear _i_ Υ1Υ3 is preserved whenever _−η_ 1 _η_ 3 = 1. Otherwise, we need to apply/track a correction operation which flips (i.e., anti-commutes with) operator _i_ Υ1Υ3. We do the same for all other bilinear operators. The appropriate correction operation is one that anticommutes with all bilinears that need to be flipped and commutes with all bilinears that do not need to be flipped. G Arbitrary String Operator Measurement Details measurements. Interestingly, there are only bosonic twists present during the lattice surgery phase (see pink dots in Figure 24c) and hence the logical MZMs are temporarily of the form discussed in Appendix C. Here we extend the procedures of Section 4.5 to measuring arbitrary products of fermionic and bosonic string operators. We assume we wish to measure a product of _k_ operators, labeled _S_ 1 _, . . ., Sk_ and colored either red or blue. We start by introducing _k_ ancilla patches, each hosting two logical MZMs, Υ <sup>˜</sup> _ja_ and Υ <sup>˜</sup> _jb_ for _j_ = 1 _, . . ., k_, and we prepare each patch in the _i_ Υ <sup>˜</sup> _ja_ Υ <sup>˜</sup> _jb_ = +1 state. This also prepares the +1 eigenstate of operator Γ <sup>˜</sup> = <sup>�</sup> _j_ <sup>_k_</sup> =1 <sup>_i_</sup> <sup>˜Υ</sup> <sup>_j_</sup> _a_ <sup>˜Υ</sup> <sup>_j_</sup> _b_ <sup>.</sup> <sup>An</sup> <sup>example</sup> <sup>of</sup> state of operator Γ <sup>˜</sup> = <sup>�</sup> _j_ <sup>_k_</sup> =1 <sup>_i_</sup> <sup>˜Υ</sup> <sup>_j_</sup> _a_ <sup>˜Υ</sup> <sup>_j_</sup> _b_ <sup>.</sup> <sup>An</sup> <sup>example</sup> <sup>of</sup> this setup is shown in Figure 24a for _k_ = 2. In this example, _S_ 1 is a bosonic string operator encircling a pair of fermionic twists hosting logical MZMs on blue boundaries. Both _S_ 1 and _S_ 2 are red string operators. We then measure _i_ Υ <sup>˜</sup> _jb_ Υ <sup>˜</sup> ( _j_ +1) _a_ for all _j_ _<_ _k_, to entan gle these ancilla patches, while preserving the state of ˜Γ. To achieve this, we can bridge the gap between ancilla patches with other ancilla patches. In Figure 24a, we introduce a patch hosting Υ <sup>˜</sup> _c_ and Υ <sup>˜</sup> _d_ . The measurement of _i_ Υ <sup>˜</sup> 1 _b_ Υ <sup>˜</sup> 2 _a_ is performed via lattice surgery, shown in Figure 24b (see also Section 4.3.1 for an explanation of this procedure). After this measurement, the middle patch hosting Υ <sup>˜</sup> _c_ and Υ <sup>˜</sup> _d_ is discarded. We then measure _Sj_ ( _i_ Υ <sup>˜</sup> _ja_ Υ <sup>˜</sup> _jb_ ) for all _j_, using lattice surgery. This does not reveal any information about the individual _Sj_ but we can use the fact that Γ <sup>˜</sup> = 1 to learn the eigenvalue of <sup>�</sup> _j_ <sup>_k_</sup> =1 <sup>_Sj_</sup> <sup>.</sup> <sup>This measurement is</sup> learn the eigenvalue of <sup>�</sup> _j_ <sup>_k_</sup> =1 <sup>_Sj_</sup> <sup>.</sup> <sup>This measurement is</sup> shown in Figure 24c. Finally we measure _i_ Υ <sup>˜</sup> _j_ 2Υ <sup>˜</sup> ( _j_ +1)1 for all _j_ once again (with _k_ + 1 _≡_ 1), to disentangle the ancilla patches from the code lattice. We can then discard the ancilla patches. Our code patch is left in an eigenstate of <sup>�</sup> _j_ <sup>_k_</sup> =1 <sup>_Sj_</sup> <sup>.</sup> We may need to left in an eigenstate of <sup>�</sup> _j_ <sup>_k_</sup> =1 <sup>_Sj_</sup> <sup>.</sup> We may need to apply/track a correction operation that is dependent on the final ancilla measurements. Notice that the logical MZMs encircled by _S_ 1 in the example of Figure 24 commute with all lattice surgery Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 37 _S_ 1 _i_ Υ <sup>˜</sup> 1 _a_ Υ <sup>˜</sup> 1 _b_ _<u>S</u>_ <u>2</u> _i_ Υ <sup>˜</sup> 2 _a_ Υ <sup>˜</sup> 2 _b_ ˜Υ _d_ ˜Υ _c_ (a) (b) (c) Figure 24: Example setup for measuring a product of string operators _S_ 1 _S_ 2, here represented as red string operators. (a) Ancilla patches host logical MZMs Υ <sup>˜</sup> 1 _a_ and Υ <sup>˜</sup> 1 _b_ (left), Υ <sup>˜</sup> _c_ and Υ <sup>˜</sup> _d_ (centre), Υ <sup>˜</sup> 2 _a_ and Υ <sup>˜</sup> 2 _b_ (right). (b) Ancilla patches are fused with lattice surgery to measure _i_ Υ <sup>˜</sup> 1 _b_ Υ <sup>˜</sup> 2 _a_ . (c) Lattice surgery for measuring _S_ 1( _i_ Υ <sup>˜</sup> 1 _a_ Υ <sup>˜</sup> 1 _b_ ) and _S_ 2( _i_ Υ <sup>˜</sup> 2 _a_ Υ <sup>˜</sup> 2 _b_ ). Accepted in 2024-07-01, click title to verify. Published under CC-BY 4.0. 38

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.