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

Quantum Pin Codes

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Vuillot, Christophe
  2. Breuckmann, Nikolas P.
DOI
10.48550/arxiv.1906.11394
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1906.11394
토픽
Chemical and Physical Properties of Materials
OpenAlex ID
W6929209098

평가 내용

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

초록

We introduce quantum pin codes: a class of quantum CSS codes. Quantum pin codes are a generalization of quantum color codes and Reed-Muller codes and share a lot of their structure and properties. Pin codes have gauge operators, an unfolding procedure and their stabilizers form so-called $\ell$-orthogonal spaces meaning that the joint overlap between any $\ell$ stabilizer elements is always even. This last feature makes them interesting for devising magic-state distillation protocols, for instance by using puncturing techniques. We study examples of these codes and their properties.

본문 134,617자

본문 펼치기
## Quantum Pin Codes Christophe Vuillot and Nikolas P. Breuckmann _Abstract_ —We introduce quantum pin codes: a class of quantum CSS codes. Quantum pin codes are a generalization of quantum color codes and Reed-Muller codes and share a lot of their structure and properties. Pin codes have gauge operators, an unfolding procedure and their stabilizers form so-called _ℓ_ orthogonal spaces meaning that the joint overlap between any _ℓ_ stabilizer elements is always even. This last feature makes them interesting for devising magic-state distillation protocols, for instance by using puncturing techniques. We study examples of these codes and their properties. I. INTRODUCTION HE REALIZATION of a fault-tolerant universal quantum computer is a tremendous challenge. At each level of # T the architecture, from the hardware implementation up to the quantum software, there are difficult problems that need to be overcome. Hovering in the middle of the stack, quantum error correcting codes influence both hardware design and software compilation. They play a major role not only in mitigating noise and faulty operations but also in devising protocols to distill the necessary resources that grant universality to an error corrected quantum computer [1]. The study and design of quantum error correcting codes is therefore one of the major tasks to be undertaken on the way to universal quantum computation. A well-studied class of quantum error correcting codes are Calderbank-Shor-Steane codes (CSS codes) [2], [3], which are stabilizer quantum codes [4], [5]. The advantage of CSS codes over general stabilizer codes is their close connection to linear codes which have been studied in classical coding theory. A CSS code can be constructed by combining two binary linear codes. Roughly speaking, one code performs parity checks in the Pauli _X_ -basis and the other performs parity checks in the Pauli _Z_ -basis. Not any two binary linear codes can be used: it is necessary that any two pairs of code words from each code space have to have even overlap. Several families of CSS codes have been devised based on geometrical, homological or algebraic constructions [6]–[17], however, it is still open which parameters can be achieved. Besides being able to protect quantum information, quantum error correcting codes must also allow for some mechanism to process the encoded information without lifting the protection. It is always possible to find some operations realizing a desired action on the encoded information but these operations may spread errors in the system. Therefore we shall only consider operations to be fault-tolerant if they do not spread errors. For instance, if the operation acts separately on each qubit of a code it cannot spread single qubit errors to multi-qubit C. Vuillot, previously QuTech, TU Delft, now Inria, France, [christophe.vuillot@inria.fr.](mailto:christophe.vuillot@inria.fr) N. P. Breuckmann, University College London, [n.breuckmann@ucl.ac.uk.](mailto:n.breuckmann@ucl.ac.uk) This paper was presented at QEC19 in London. errors. This is called a transversal gate, but not any code admits such gates. More generally, for many codes in the CSS code family it is possible to fault-tolerantly implement Clifford operations, which are all unitary operations preserving Pauli operators under conjugation. Clifford operations by themselves do not form a universal gate set. Several techniques to obtain a universal gate set, by supplementing the non-Clifford _T_ gate to Cliffords for example, have been devised [18], [19], among which magic state distillation is currently the most promising candidate. In this work we introduce a new class of CSS codes, which we call _quantum_ _pin_ _codes_ . They are inspired from _D_ dimensional quantum color codes [20] which are known for their transversal gates. Quantum pin codes form a large family while at the same time have structured stabilizer generators. Namely, they form _ℓ_ -orthogonal spaces, meaning that the common overlap between any _ℓ_ stabilizer elements is even. This structure is necessary for codes to admit transversal phase gates and it can be leveraged to obtain codes that can be used within magic state distillation protocols. This structure comes from an underlying multi-ary relation with a single simple property and we show different ways of constructing such relations. While the whole family is too large to feature interesting transversal gates for all its members it could lead to interesting subfamilies. Besides one can obtain magic state distillation protocols from any relation defining a quantum pin code by using puncturing techniques. Moreover, using a slightly different code definition, one can obtain a quantum code with transversal _T_ gates realizing a logical circuit of _CCZ_ gates. Moreover the construction of pin codes differs substantially from previous approaches making it an interesting space to explore further. In Section II, after introducing some notations and terminology, we define quantum pin codes, explain their relation to quantum color codes and give some concrete approaches to construct them. In Section III, we discuss the conditions for transversal implementation of phase gates on a CSS code and magic state distillation. In Section IV, we investigate the properties of pin codes. Finally, in Section V, we study concrete examples of pin codes obtained from Coxeter groups and chain complexes. We also discuss applications for magic state distillation. II. PIN CODES _A._ _Quantum stabilizer codes, CSS codes and subsystem codes_ A quantum code can be defined by considering an Abelian subgroup _S_ of the Pauli group on _n_ qubits such that _−I̸_ _∈_ _S_ . That is to say a commuting group generated by tensor product of the single-qubit Pauli operators and identity: �0 _−i_ _,_ (1) _i_ 0 _X_ = �0 1� _,_ _Y_ = 1 0 �1 0� _._ (2) 0 1 �1 0 0 1 If a pin _p_ is contained in a set _Lj_ then _j_ is called the _rank_ of _p_ . Since all the _Lj_ are disjoint each pin has a unique rank. Consider a ( _D_ + 1)-ary relation on the _D_ + 1 levels _L_ 0 _, . . ., LD_, that is to say a subset of their Cartesian product _F_ _⊂_ _L_ 0 _×· · ·×LD_ . The tuples in the relation _F_ will be called _flags_ . A subset of the ranks, _T_ _⊂{_ 0 _, . . ., D}_, is called a _type_ . We will consider tuples of pins coming from a subset of the levels selected by a type _T_ and call them _collection_ of pins of type _T_ . A collection of pins of type _T_ = _{j_ 1 _, . . ., jk}_, is therefore an element _s_ _∈_ _Lj_ 1 _× · · · × Ljk_ . Note that we can interchangeably view a collection of pins as a tuple or a set as long as no two pins come from the same level in the set. We now define specific subsets of flags, called pinned sets, using projections. Definition 1 (Projection of type _T_ ) . _Given_ _a_ _set_ _of_ _flags_ _F_ _and a type T_ = _{j_ 1 _, . . ., jk}, the projection,_ Π _T, is defined as_ _the_ _natural_ _Cartesian_ _product_ _projection_ _acting_ _on_ _the_ _flags_ Π _T_ : _F_ _→_ _Lj_ 1 _× · · · × Ljk_ ( _p_ 0 _, . . ., pD_ ) _�→_ ( _pj_ 1 _, . . ., pjk_ ) _._ Note that the projection of empty type, Π _∅_, is also well defined: for any _f_ _∈_ _F_ we have Π _∅_ ( _f_ ) = (). Definition 2 (Pinned set) . _Let_ _F_ _be_ _a_ _set_ _of_ _flags,_ _s_ _be_ _a_ _collection_ _of_ _pins_ _of_ _type_ _T_ _and_ Π _T_ _be_ _the_ _corresponding_ _projection as defined above. We define the pinned set of type T_ _and_ _collection_ _of_ _pins_ _s,_ _PT_ ( _s_ ) _,_ _as_ _the_ _preimage_ _of_ _s_ _under_ _the_ _projection_ Π _T,_ _PT_ ( _s_ ) = Π <sup>_−_</sup> _T_ <sup>1</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_⊂_</sup> <sup>_F._</sup> In words: a pinned set is the set of flags whose projection of a given type _T_ yields a given collection of pins, _s_ . A definition of a pinned set which is equivalent to the one given above is _PT_ ( _pj_ 1 _, . . ., pjk_ ) = _F_ _∩_ ( _L_ 0 _· · · × { pj_ 1 _} × · · · × { pjk_ _} × · · · LD_ ) _._ (5) Proving that these definitions are equivalent amounts to proving _Z_ = �1 0 _,_ _I_ = 0 _−_ 1 �1 0 0 _−_ 1 The quantum code associated with _S_ is defined as the common +1-eigenspace of all elements of _S_ . _C_ = _{|ψ⟩| ∀s ∈_ _S, s |ψ⟩_ = _|ψ⟩} ._ (3) Quantum codes defined in this way are called _stabilizer codes_, the generator elements of _S_ are called stabilizer generators and generic elements of _S_ simply stabilizers. A generating set of _S_ defines stabilizer checks which can be measured in order to infer information about the errors. The logical operators of a stabilizer code are the Pauli operators which commute with all stabilizers. That is to say they belong to the centralizer of the stabilizer group. The fact that they commute with stabilizers makes them preserve the code space. A logical operator which also belongs to the stabilizer group is called trivial as it not only preserve the code space but also each code state. Logical operators outside of the stabilizer group are non-trivial as they act non-trivially on the code states while preserving the codes space. For more background on stabilizer codes see [4]. A stabilizer code is called a Calderbank-Shor Steane (CSS) code [2], [3] if there exists a set of stabilizer checks which only act non-trivially as either Pauli- _X_ or Pauli- _Z_ on each qubit in their support. In that case the code is most conveniently described by two classical binary linear codes, _CX_ _⊂_ F <sup>_n_</sup> 2 <sup>and</sup> <sup>_CZ_</sup> <sup>_⊂_</sup> <sup>F</sup> 2 <sup>_n_</sup> <sup>,</sup> by two classical binary linear codes, _CX_ _⊂_ F <sup>_n_</sup> 2 <sup>and</sup> <sup>_CZ_</sup> <sup>_⊂_</sup> <sup>F</sup> 2 <sup>_n_</sup> <sup>,</sup> generating the _X_ -type and _Z_ -type stabilizers respectively. To form a valid stabilizer code the _X_ -type stabilizers and _Z_ -type stabilizer must commute which constraints _CX_ and _CZ_ to be included in each others dual space: _CX_ _⊂CZ_ <sup>_⊥_</sup> <sup>,</sup> <sup>note</sup> <sup>that</sup> <sup>this</sup> included in each others dual space: _CX_ _⊂CZ_ <sup>_⊥_</sup> <sup>,</sup> <sup>note</sup> <sup>that</sup> <sup>this</sup> condition is symmetric. The logical operators of a CSS code also split into _X_ - and _Z_ -type operators, they are given by _CZ_ <sup>_⊥_</sup> and _CX_ <sup>_⊥_</sup> <sup>respectively.</sup> <sup>Code</sup> <sup>states</sup> <sup>of</sup> <sup>CSS</sup> <sup>codes</sup> <sup>are</sup> <sup>simply</sup> expressed as equal superposition of computational basis states over cosets: <u>1</u> _~~|x⟩~~_ = _~~√~~_ 2 <sup>_|CX_</sup> <sup>_|_</sup> _y∈CX_ _|y ⊕_ _x⟩_ _,_ (4) Π <sup>_−_</sup> _T_ <sup>1</sup> <sup>_−_</sup> _T_ <sup>1</sup> <sup>(</sup> <sup>_s_</sup> <sup>) =</sup> <sup>_F_</sup> <sup>_∩_</sup> <sup>(</sup> <sup>_L_</sup> <sup>0</sup> <sup>_· · · × { pj_</sup> 1 <sup>_} × · · · × { pj_</sup> _k_ <sup>_} × · · · LD_</sup> <sup>)</sup> <sup>_._</sup> where _x ∈CZ_ <sup>_⊥_</sup> _Z_ <sup>_⊥_</sup> <sup>and</sup> <sup>_~~x~~_</sup> <sup>designate</sup> <sup>the</sup> <sup>coset</sup> <sup>of</sup> <sup>_x_</sup> <sup>in</sup> <sup>_C_</sup> _Z_ <sup>_⊥_</sup> where _x ∈CZ_ <sup>_⊥_</sup> <sup>and</sup> <sup>_~~x~~_</sup> <sup>designate</sup> <sup>the</sup> <sup>coset</sup> <sup>of</sup> <sup>_x_</sup> <sup>in</sup> <sup>_C_</sup> _Z_ <sup>_⊥/CX_</sup> <sup>.</sup> Subsystem codes are a generalization of stabilizer codes. A subsystem code is defined by any (non-Abelian) subgroup of the Pauli group _G_ which is called the _gauge_ _group_ . In order to define the code we define the stabilizer subgroup _S_ of _G_ to be the center of _G_, i.e. the largest Abelian subgroup of _G_ . The code is then defined as the stabilizer code of _S_ . The reason to define a code in this way is that a generating set of _G_ (called _gauge checks_ ) can be of lower weight than any generating elements of _S_ . This allows to infer the eigenvalues of the stabilizer checks by measuring the lower-weight gauge checks. _B._ _Terminology_ _and_ _formalism_ Consider _D_ +1 finite, disjoint sets, ( _L_ 0 _, . . ., LD_ ) which we call _levels_ . The elements in each of the levels are called _pins_ . (6) To prove the inclusion of the left-hand side in the righthand side we observe that an element in the set from the left hand-side is in _F_ by definition of Π _T_ and in ( _L_ 0 _· · · × { pj_ 1 _} × · · · × { pjk_ _} × · · · LD_ ) since _s_ = ( _pj_ 1 _, . . ., pjk_ ). To prove the inclusion of the right-hand side in the left-hand side one takes any element _f_ _∈_ _F ∩_ ( _L_ 0 _· · · × { pj_ 1 _} × · · · × { pjk_ _} × · · · LD_ ) and notice that Π _T_ ( _f_ ) = _s_ . The pinned set with respect to the empty type is none other than the full set of flags, _F_ . For convenience, we will refer to a pinned set defined by a collection with _k_ pins as a _k-pinned_ _set_ . If one wants to form a mental image one can imagine a pin-board with pins of different colors for each levels on it. Then the flags can be represented by cords each attached to one pin of each level, see Fig. 1 as an example. Fig. 1. Illustration of three levels (red, green and blue) each containing two pins and a relation containing three flags ( _f_ 0, _f_ 1 and _f_ 2) symbolized by cords attached to the pins. The pinned set _P_ green( _b_ ) is composed of the flags _f_ 1 and _f_ 2. The pinned set _P_ (red _,_ blue)(1 _, α_ ) only contains the flag _f_ 0. The structure of pinned sets layed out above is such that they intersect and decompose nicely. This is captured by the following two propositions. Proposition 1 (Intersection of pinned sets) . _Given_ _F_ _,_ _a_ _set_ _of_ _flags,_ _let_ _s_ 1 _and_ _s_ 2 _be_ _two_ _collections_ _of_ _pins_ _of_ _types_ _T_ 1 _and_ _T_ 2 _respectively._ _Then_ _the_ _intersection_ _of_ _the_ _two_ _pinned_ _sets_ _PT_ 1( _s_ 1) _and_ _PT_ 2( _s_ 2) _is_ _either_ _empty_ _or_ _a_ _pinned_ _set_ _of_ _type_ _T_ 1 _∪_ _T_ 2 _characterized_ _by_ _the_ _collection_ _of_ _pins_ _s_ 1 _∪_ _s_ 2 _,_ _PT_ 1( _s_ 1) _∩_ _PT_ 2( _s_ 2) = _PT_ 1 _∪T_ 2( _s_ 1 _∪_ _s_ 2) _if_ _|s_ 1 _∪_ _s_ 2 _|_ = _|T_ 1 _∪_ _T_ 2 _|_ _∅_ _otherwise._ _Proof:_ We write _s_ 1 = ( _pi_ 1 _, . . ., pik_ 1 ) and _s_ 2 = ( _qj_ 1 _, . . ., qjk_ 2 ). Consider the case where _T_ 1 _∩_ _T_ 2 = _∅_ . Then it is always the case that _|s_ 1 _∪_ _s_ 2 _|_ = _|T_ 1 _∪_ _T_ 2 _|_ since the levels are disjoint. Using the alternative characterization of pinned sets given in (5) the conclusion then straightforwardly follows. Consider the case where _T_ 1 _∩_ _T_ 2 _̸_ = _∅_ . Either there exist a rank _j_ _∈_ _T_ 1 _∩_ _T_ 2 such that _pj̸_ = _qj_ then given _f_ 1 _∈_ _PT_ 1( _s_ 1) and _f_ 2 _∈_ _PT_ 2( _s_ 2) one has Π _j_ ( _f_ 1) = _pj̸_ = _qj_ = Π _j_ ( _f_ 2) hence _f_ 1 _̸_ = _f_ 2 and so _PT_ 1( _s_ 1) _∩_ _PT_ 2( _s_ 2) = _∅_ . In this case it also holds that _|s_ 1 _∪_ _s_ 2 _| > |T_ 1 _∪_ _T_ 2 _|_ since for every shared rank in _j_ _∈_ _T_ 1 _∩T_ 2 for which _pj̸_ = _qj_ the difference _|s_ 1 _∪s_ 2 _|−|T_ 1 _∪T_ 2 _|_ is increased by one. In the other case for all _j_ _∈_ _T_ 1 _∩_ _T_ 2 we have _pj_ = _qj_ . Hence it holds that _|s_ 1 _∪_ _s_ 2 _|_ = _|T_ 1 _∪_ _T_ 2 _|_ and _PT_ 1( _s_ 1) _∩_ _PT_ 2( _s_ 2) = _PT_ 1 _∪T_ 2( _s_ 1 _∪_ _s_ 2) using (5) again. Proposition 2 (Pinned set decomposition) . _Given_ _F_ _,_ _a_ _set_ _of_ _flags,_ _let_ _s_ _be_ _a_ _type_ _T_ _collection_ _of_ _pins_ _and_ _let_ _T_ <sup>_′_</sup> _be_ _a_ _type_ _containing T_ _, i.e. T_ <sup>_′_</sup> _⊃_ _T_ _. The pinned set PT_ ( _s_ ) _is partitioned_ _into_ _some_ _number,_ _say_ _m,_ _of_ _pinned_ _sets,_ _each_ _characterized_ _by_ _a_ _type_ _T_ <sup>_′_</sup> _collections_ _of_ _pins_ _containing_ _s,_ _i.e._ _s_ <sup>_′_</sup> _j_ <sup>_⊃_</sup> <sup>_s,_</sup> _PT_ ( _s_ ) = _m_ _j_ =1 _PT ′_ ( _s_ <sup>_′_</sup> _j_ <sup>)</sup> <sup>_._</sup> _PT ′_ ( _s_ <sup>_′_</sup> _j_ _Proof:_ Let _s_ be a type _T_ collection of pins and let _T_ <sup>_′_</sup> be a type such that _T_ <sup>_′_</sup> _⊃_ _T_ . Define the following set of collections of pins _S_ = Π _T ′_ ( _PT_ ( _s_ )) _,_ (7) then it is the case that Finally the fact that the union is disjoint follows from Prop. 1. _C._ _Definition_ _of_ _a_ ( _x, z_ ) _-pin_ _code_ Equipped with the notions layed out in the previous section, we now construct quantum codes. They are defined by a choice of flags _F_ and two natural integers _x_ and _z_ which fulfill the condition _x_ + _z_ _≤_ _D_ . The flags are identified with qubits, so that _n_ = _|F_ _|_ . The _X_ -stabilizers generators are defined by all the _x_ -pinned sets and the _Z_ -stabilizers generators by the _z_ -pinned sets in the following way. For each _x_ -pinned set we define the Pauli operator acting as the Pauli- _X_ operator on the qubits corresponding to the flags in the pinned set and as the identity on the rest; we then add it to the generating set of the _X_ -stabilizers. We do similarly for the _z_ -pinned sets to form the generating set of the _Z_ -stabilizers. In order to ensure the correct commutation relations between the _X_ - and _Z_ -stabilizers it is sufficient to enforce the following condition on the relation _F_ . Definition 3 (Pin code relation) . _A_ ( _D_ +1) _-ary relation, F_ _, is_ _a_ pin code relation _if_ _all_ _D-pinned_ _sets_ _have_ _even_ _cardinality._ This property is sufficient for the overlap between two pinned sets to be even every time they are pinned by a small enough number of pins. This is summarized in the following proposition. Proposition 3 (Even overlap) . _Let_ _F_ _be_ _a_ ( _D_ + 1) _-ary_ _pin_ _code_ _relation_ _as_ _per_ _Definition_ _3._ _Let_ _x_ _and_ _z_ _be_ _two_ _natural_ _integers_ _such_ _that,_ _x_ + _z_ _≤_ _D._ _Then,_ _the_ _intersection_ _between_ _any_ _x-pinned_ _set_ _and_ _any_ _z-_ _pinned_ _set_ _has_ _even_ _cardinality._ _Proof:_ By Proposition 1, the intersection of a _x_ -pinned set and a _z_ -pinned set is either empty or a pinned set with at most _x_ + _z_ _≤_ _D_ pins. In turn by Proposition 2, the intersection can be partitionned into _D_ -pinned sets which all have even cardinality since the relation _F_ is a pin code relation. Using a pin code relation we can therefore define a CSS code as follows. Definition 4 (( _x, z_ )-pin code) . _Given_ _a_ _pin_ _code_ _relation,_ _F_ _,_ _on_ ( _D_ + 1) _sets_ _and_ _two_ _natural_ _integers_ ( _x, z_ ) _∈_ N <sup>2</sup> _,_ _such_ _that_ _x_ + _z_ _≤_ _D,_ _we_ _define_ _the_ _corresponding_ ( _x, z_ ) _-pin_ _code_ _by_ _associating_ _the_ _elements_ _of_ _F_ _with_ _qubits,_ _all_ _the_ _x-pinned_ _sets with X-stabilizer generators and all the z-pinned sets with_ _Z-stabilizer_ _generators._ _By_ _Proposition_ _3_ _the_ _defined_ _code_ _is_ _a_ _valid_ _CSS_ _code._ A first remark is that the choice of _x_ = 0 (or _z_ = 0) is not particularly interesting since in this case there is a single _X_ stabilizer (or _Z_ -stabilizer) acting on all the qubits. A second remark is that in the strict case, where _x_ + _z_ _< D_, the code will contain many low weight logical operators which are naturally identified as gauge operators. This is explained in details in Sec. IV-C. Table I summaries the objects defined and their role to define a quantum code. The main task is to construct a pin code _PT_ ( _s_ ) = _PT ′_ ( _s_ <sup>_′_</sup> ) _._ (8) _s_ <sup>_′_</sup> _∈S_ Indeed, since _T_ <sup>_′_</sup> _⊃_ _T_ and _∀s_ <sup>_′_</sup> _∈_ _S,_ _s_ <sup>_′_</sup> _⊃_ _s_ we have that _∀s_ <sup>_′_</sup> _∈_ _S,_ _PT ′_ ( _s_ <sup>_′_</sup> ) _⊂_ _PT_ ( _s_ ) showing the right to left inclusion. The left to right inclusion follows from the definition of _S_ . relation which permits to define the rest. Before explaining how to construct pin code relations we show that Reed-Muller codes can be generated by pinned-sets of a specific relation, and that quantum color codes are a subclass of pin codes. TABLE I SUMMARY OF THE OBJECTS DEFINING QUANTUM PIN CODES. <u>Objects</u> <u>Quantum</u> <u>code</u> Level: _Lj_ _−_ Pin: _p ∈_ _Lj_ _−_ Type: _T_ _⊂{_ 0 _, . . ., D}_ _−_ Collection: _s ∈_ _Lj_ 1 _× · · · × Ljk_ _−_ Relation: _F_ _⊂_ _L_ 0 _× · · · × LD_ All qubits Flag: _f_ _∈_ _F_ Qubit _x_ -pinned set: _PT_ ( _s_ ) _⊂_ _F_ ( _|T_ _|_ = _x_ ) _X_ -stabilizer _z_ -pinned set: _PT_ ( _s_ ) _⊂_ _F_ ( _|T_ _|_ = _z_ ) _Z_ -stabilizer _D._ _Relation_ _to_ _Reed-Muller_ _codes_ Given integers _r_ and _m_, the classical Reed-Muller code, _RM_ ( _r, m_ ), is defined as the space generated by the vectors of all evaluations of polynomials over _m_ variables of degree at most _r_ : where _Xj_ is a variable that does not appear in _q_ . It follows by induction that they generate all degree at most _r_ polynomials and so _RM_ ( _r, m_ ) = _P_ ( _r, m_ ) _._ (15) Another way to see this is to use the decomposition property of pinned sets (Proposition 2) and generate the lower degree monomial directly with pinned sets with less pins and decompose these pinned sets into disjoint union of _r_ -pinned sets. _RM_ ( _r, m_ ) = ( _p_ ( _x_ )) _x∈_ F _m_ 2 <sup>:</sup> _p ∈_ F2[ _X_ 0 _, . . ., Xm−_ 1] _,_ Classical Reed-Muller codes have been used in several different ways to define quantum codes. Some of their useful properties include that the dual of _RM_ ( _r, m_ ) is _RM_ ( _m −_ 1 _−_ _r, m_ ) and that if _r_ _≤_ _s_ then _RM_ ( _r, m_ ) _⊆RM_ ( _s, m_ ). Some constructions use directly Reed-Muller codes to define the _X_ and _Z_ stabilizers [21]–[23]. In [21] the _X_ -stabilizers are given by _RM_ ( _r, m_ ) and the _Z_ -stabilizers are given by _RM_ ( _r_ _−_ 1 _, m_ ). In addition some of the generators for the _X_ -stabilizers can be modified to increase the distance of the code by half while loosing the CSS property. Before this modification this construction can be directly interpreted as the quantum pin code defined by the relation _FRM_ <sup>_m_</sup> <sup>from</sup> <sup>(11)</sup> and by setting _x_ = _r_ and _z_ = _r −_ 1 with 2 _r −_ 1 _≤_ _m −_ 1 which ensures that _x_ + _z_ _≤_ _D_ = _m −_ 1. In the papers [22], [23], the _X_ -stabilizers are given by _RM_ ( _r −_ 1 _, m_ ) and the _Z_ -stabilizers by _RM_ ( _m_ _−_ _r_ _−_ 1 _, m_ ). This can be directly interpreted as the quantum pin code defined by the relation _FRM_ <sup>_m_</sup> <sup>from</sup> <sup>(11)</sup> <sup>and</sup> <sup>by</sup> <sup>setting</sup> <sup>_x_</sup> <sup>=</sup> <sup>_r −_</sup> <sup>1</sup> <sup>and</sup> <sup>_z_</sup> <sup>=</sup> <sup>_m −_</sup> <sup>_r −_</sup> <sup>1</sup> (then automatically _x_ + _z_ _≤_ _D_ = _m −_ 1). Several other works use the shortened versions of ReedMuller codes [18], [24]–[29]. The shortened version of the Reed-Muller code consists in removing the constant 1 from the polynomials and throwing away the evaluation bit _p_ (0) (it is now always 0). The idea is that if one where to take _RM_ ( _r, m_ ) and _RM_ ( _m −_ _r −_ 1 _, m_ ) as _X_ and _Z_ stabilizers respectively, one would get exactly 0 logical qubits since these two codes are dual of one another. Taking the shortened versions one gets a single logical qubit. This can be interpreted as a quantum pin code defined by the relation _FRM_ <sup>_m_</sup> <sup>from</sup> <sup>(11),</sup> <sup>by</sup> <sup>setting</sup> _x_ and _z_ such that _x_ + _z_ = _D_ = _m −_ 1, and declaring as _free_ _pins_ the 1 in all levels _Lj_ in (10), see Section IV-E. _E._ _Relation_ _to_ _quantum_ _color_ _codes_ The formalism and definitions for quantum pin codes can be viewed as a generalization of quantum color codes without boundaries [11], [20], [30]. However it is also possible to integrate the notion of boundaries into the general framework of pin codes but we delay these considerations to Sec. IV-E. A _D_ -dimensional color code is defined by a homogeneous, _D_ dimensional, simplicial complex, triangulating a _D_ -manifold, whose vertices are ( _D_ + 1)-colorable. A _D_ -dimensional, simplicial complex is called homogeneous if every simplex of dimension less than _D_ is a face of some _D_ -simplex. The (Poincar´e) dual of a simplicial complex as defined above is sometimes called a colex [20], it consists in a tessellation where the vertices are ( _D_ + 1)-valent and the _D_ -cells are ( _D_ + 1)-colorable. In the original simplicial complex, the deg( _p_ ) _≤_ _r_ _._ (9) We now show that _RM_ ( _r, m_ ) is generated by the pinned sets with _r_ pins of a certain pin code relation _F_ . Consider _m_ levels, each containing two pins, _∀j_ _∈{_ 0 _, . . ., m −_ 1 _},_ _Lj_ = _{_ 0 _,_ 1 _},_ (10) and the complete _m_ -ary relation, _FRM_ <sup>_m_</sup> <sup>=</sup> <sup>_L_</sup> <sup>0</sup> <sup>_× · · · × Lm−_</sup> <sup>1</sup> <sup>_,_</sup> (11) see also the left of Figure 10. Consider now a _r_ -pinned set defined, with type _T_ = _{j_ 1 _, . . ., jr}_, and pins _b_ = ( _bj_ 1 _, . . ., bjr_ ). One can check that a flag, _f_ _∈_ _F_ = F <sup>_m_</sup> 2 <sup>,</sup> <sup>belongs</sup> <sup>to</sup> <sup>_PT_</sup> <sup>(</sup> <sup>_b_</sup> <sup>)</sup> <sup>if</sup> and only if the following degree _r_ polynomial, _pT,b_, evaluates to 1, _pT,b_ = _j∈T_ _bj_ =1 _Xj_ _k∈T_ _bk_ =0 (1 _−_ _Xk_ ) _._ (12) So the pinned sets with _r_ pins generate the following code, _P_ ( _r, m_ ) = ( _pT,b_ ( _x_ )) _x∈_ F _m_ 2 <sup>:</sup> _T_ _⊂{_ 0 _, . . ., m −_ 1 _},_ _|T_ _|_ = _r,_ _b ∈_ F <sup>_m_</sup> 2 _._ (13) Then we just have to check that these generate all polynomial of degree at most _r_ . By definition they generate polynomials constituted of a product of _r_ elements being either _Xj_ or (1 _−_ _Xj_ ). Let’s suppose, for some _ℓ_ _≤_ _r_, they can generate all such product with only _ℓ_ terms. Then we can contruct all product with only _ℓ_ _−_ 1 terms, _q_, as follows _q_ = _q ·_ (1 _−_ _Xj_ ) + _q · Xj,_ (14) qubits are identified with the _D_ -simplices and one chooses two natural integers, (˜ _x,_ ˜ _z_ ) _∈_ N <sup>2</sup> with _x_ ˜ + _z_ ˜ _≤_ _D_ _−_ 2, to define the _X_ - and _Z_ -checks using the _x_ ˜- and _z_ ˜-simplices in the following way. Each _X_ -stabilizer generator is identified with a _x_ ˜-simplex which acts as Pauli- _X_ on all _D_ -simplices in which it is contained. Similarly, each _Z_ -stabilizer generator operate on all the _D_ -simplices as Pauli- _Z_ in which the corresponding _z_ ˜-simplex is contained, respectively. This definition can be restated in the language of pin codes: the _D_ +1 levels, _L_ 0 _, . . ., LD_, are indexed by the _D_ +1 colors and each level contains the vertices of a given color. The flags, _F_, are defined using the _D_ -simplices (each containing _D_ + 1 vertices); this defines a relation, _F_ _⊂_ _L_ 0 _×· · ·×_ _LD_ thanks to the colorability condition as each _D_ -simplex will not contain two vertices of the same color. One can further check that the relation _F_ is a pin code relation as stated in Def. 3. Proposition 4. _(D-simplices_ _form_ _a_ _pin_ _code_ _relation)._ _Let_ _T_ _be_ _a_ _homogeneous_ _D-dimensional_ _simplicial_ _complex_ _whose_ _vertices_ _are_ ( _D_ + 1) _-colorable,_ _triangulating_ _a_ _D-manifold._ _Given_ _a_ ( _D_ + 1) _-coloration_ _with_ _colors_ _numbered_ _from_ 0 _to_ _D, define Lj_ _as the set of vertices of color number j_ _in T . The_ _relation F_ _⊂_ _L_ 0 _×· · ·×LD_ _representing the set of D-simplices_ _is_ _a_ _pin_ _code_ _relation._ _Proof:_ _D_ -pinned sets correspond to ( _D_ _−_ 1)-simplices which are contained in exactly two _D_ -simplices since the simplicial-complex triangulates a _D_ -manifold without boundaries. This shows that it is a pin code relation. Then subsets of the ( _D_ + 1) colors correspond to types and any _k_ -simplex corresponds directly to a collection of pins of type given by the ( _k_ + 1) different colors of the ( _k_ + 1) vertices of the _k_ -simplex. The corresponding ( _k_ +1)-pinned set contains all the _D_ -simplices containing the original _k_ -simplex. As such all the non-empty ( _k_ + 1)-pinned sets are given by all the collection of pins and type corresponding to all the _k_ -simplices. With these consideration, we see that choosing _x_ = _x_ ˜ + 1 and _z_ = _z_ ˜ + 1, the corresponding ( _x, z_ )-pin code is the same as the original color code. Proposition 5. _(Quantum color codes are quantum pin codes)._ _Let_ _T_ _be_ _a_ _homogeneous_ _D-dimensional_ _simplicial_ _complex_ _whose_ _vertices_ _are_ ( _D_ + 1) _-colorable,_ _triangulating_ _a_ _D-_ _manifold._ _For_ _integers_ _x_ _and_ _z_ _such_ _that_ _x_ + _z_ _≤_ _D_ _−_ 2 _,_ _the_ ( _x −_ 1 _, z_ _−_ 1) _-color_ _code_ _defined_ _on_ _T_ _is_ _equal_ _to_ _the_ ( _x, z_ ) _-pin_ _code_ _defined_ _by_ _the_ _relation_ _on_ _the_ _colored_ _vertices_ _given_ _by_ _the_ _set_ _of_ _D-simplices._ _Proof:_ By inspection, using Table II, one checks that the qubits and stabilizers exactly coincide in the definition of the ( _x −_ 1 _, z −_ 1)-color code and the ( _x, z_ )-pin code. An example for _D_ = 2, based on the hexagonal color code, is shown in Figure 2a. To summarize: to go from color codes to pin codes one just forgets the geometry, keeping only the ( _D_ +1)-ary relation given by the ( _D_ +1)-colored _D_ -simplices. Importantly, pin codes are more general, as there are pin code relations which are not derived from these specific simplicial complexes. In the next section after recalling a concrete color code construction we give two more general constructions of pin code relations. TABLE II CORRESPONDENCE BETWEEN COLOR CODES AND QUANTUM PIN CODES. <u>Color</u> <u>code</u> <u>Quantum</u> <u>pin</u> <u>code</u> <u>Set</u> <u>of</u> <u>vertices</u> <u>of</u> <u>color</u> _j_ <u>Level:</u> _Lj_ <u>Vertex</u> <u>of</u> <u>color</u> _j_ <u>Pin:</u> _p ∈_ _Lj_ <u>Set</u> <u>of</u> _D_ <u>-simplices</u> <u>Relation:</u> _F_ _⊂_ _L_ <u>0</u> _× · · · × LD_ <u>A</u> <u>given</u> _D_ <u>-simplex</u> <u>Flag:</u> _f_ _∈_ _F_ <u>A</u> <u>given</u> _k_ <u>-simplex</u> <u>Collection:</u> _s ∈_ _Lj_ <u>0</u> _× · · · × Ljk_ All _D_ -simplices ( _k_ + 1)-pinned set: _PT_ ( _s_ ) _⊂_ _F_ containing a given _k_ <u>-simplex</u> _F._ _Constructing_ _pin_ _codes_ (a) (b) Fig. 2. (a) An example of flag set based on the triangular lattice: _F_ = _{f_ 0 _, . . ., f_ 23 _}_ from _D_ + 1 = 3 levels: _L_ 0 = - _p_ <sup>0</sup> 0 <sup>_, . . ., p_</sup> <sup>3</sup> 0� in red, _L_ 1 = - _p_ <sup>0</sup> 1 <sup>_, . . ., p_</sup> <sup>3</sup> 1� in blue, _L_ 2 = - _p_ <sup>0</sup> 2 <sup>_, . . ., p_</sup> <sup>3</sup> 2� in green. The figure wraps around on itself according to the arrows so that there are no boundaries, and the surface obtained is a torus. (b) Schematic representation of the flags of the square lattice and the corresponding pins. Each triple of incident vertex (green pin), edge (red pin) and face (blue pin) is a flag. They are symbolized in the picture as actual flags put closest to the elements in the triple (vertex, edge, face) they stand for. The corresponding color code is the well known 4.8.8 color code: there are eight flags around each vertex, four around each edge and eight around each face. - _p_ <sup>0</sup> 0 <sup>0</sup> 1 <sup>_, . . ., p_</sup> <sup>3</sup> 1� in blue, _L_ 2 = - _p_ <sup>0</sup> 2 _1)_ _Color_ _codes_ _from_ _tilings:_ In [20], the authors explain how to obtain a colex from any tiled _D_ -manifold. The idea is to successively inflate the ( _D_ _−_ 1)-cells, ( _D_ _−_ 2)-cells, ..., 0-cells into _D_ -cells. The dual of the tiling obtained is then a ( _D_ + 1)-colorable triangulation of the _D_ -manifold, see Appendix A of [20]. This can also be understood directly, without inflating the cells, as follows: Separate all the cells into ( _D_ + 1) sets, _L_ 0 _, . . ., LD_, according to their dimensions, i.e. _Lj_ contains all the _j_ -cells. We can now define a ( _D_ + 1)ary relation on the cells via the incidence relation. Two cells of different dimension are incident if and only if one is a subcell of the other. An element of this relation, i.e. a ( _D_ + 1)tuple containing a 0-cell (a vertex), a 1-cell (an edge), etc...up to a _D_ -cell, is called a flag. See for example Fig. 2b for a representation of the flags of the square lattice. The flag relation obtained this way is the same as the one after going through the inflating procedure and it is a pin code relation. A similar way to construct ( _D_ + 1)-colorable tessellations in _D_ dimensions directly is to use the Wythoff construction [31]. The construction is quite general, but for simplicity, let us start on the 2D euclidean plane. Consider a right-angled with even order. A Coxeter group is a finitely presented group with reflections as generators, denoted as _G_ = _⟨a_ 0 _, . . ., aD|a_ <sup>2</sup> 0 <sup>=</sup> <sup>_· · ·_</sup> <sup>=</sup> <sup>_a_</sup> <sup>2</sup> _D_ <sup>= (</sup> <sup>_aiaj_</sup> <sup>)</sup> <sup>_kij_</sup> <sup>=</sup> <sup>_rk_</sup> <sup>=</sup> <sup>_· · ·_</sup> <sup>= 1</sup> <sup>_⟩,_</sup> (16) where the _kij_ are integers defining relations between the generators, _rk_ are additional relations between generators and 1 is the trivial element [32], [33]. Define the subgroups, _Hj_ for _j_ _∈{_ 0 _, . . ., D}_, as (a) (b) (c) Fig. 3. (a) The fundamental triangle of the Wythoff construction. A vertex (white cirlce) is placed in the middle and three edges are drawn to the boundary. The three regions are colored red, green and blue. (b) Reflecting the fundamental triangle along its sides creates a three colored lattice. In this case the 4.6.12 lattice. Note that we can obtain the red/blue/green shrunk lattice by moving the vertex into the red/blue/green corner, see Sec. IV-B. (c). The Wythoff construction can be generalized to higher dimensions as well. This example shows the vertex put into the middle of a 3D simplex, a tetrahedron, and one of the four corner cells colored in red (see main text for more information). triangle and draw a point into its interior. From this point we draw three lines, each intersecting a boundary edge in a right angle (see Fig. 3a). This creates three regions in the triangle which we assign three different colors. We can now reflect the triangle along its boundary edges. The internal points of the original and the reflected triangles become the vertices of a uniform tiling. The faces of the tiling are colored by the three colors and by construction no two faces of the same color are adjacent (see Fig. 3b). If the angles of the triangle are 2 _π/r_, 2 _π/s_ and 2 _π/l_ then the result will be a _r_ . _s_ . _l_ -tiling, meaning that the three faces around a vertex will have _r_, _s_ and _l_ number of sides. This idea readily generalizes to higher dimensions by placing a vertex into a _D_ -dimensional simplex and drawing lines to the mid-point of the _D_ _−_ 1-dimensional faces of the simplex (see Fig. 3c for the case _D_ = 3). The faces of the simplex are simplices themselves, so this process can be iterated until _D_ = 2. Reflecting along the faces of the _D_ -simplex gives rise to a uniform tiling of the _D_ -dimensional space with _D_ cells being colored by _D_ + 1 colors and no two cells of the same color sharing a _D −_ 1-dimensional face. The number of vertices of the _D_ -cells is then determined by the orbit of the reflections along all but one of the sides. The color codes from regular tilings can be obtained this way, for example, in 2D Euclidean space, the hexagonal, 4.8.8. or 4.6.12. color codes or more generally both Euclidean and hyperbolic tilings in any dimension. In order to obtain a finite code from the infinite tessellation we can either introduce boundaries or by introducing periodic boundary conditions. The details will depend on the individual lattice. _2)_ _Coxeter_ _group_ _approach:_ The Wythoff construction of the previous section can be generalized in the language of group theory. The reflections used to tile the space form groups called _Coxeter_ _groups_ . The fundamental triangles can be seen as group elements and reflections about their sides are generators of the group. In this section we will explain the more general approach based on these groups or more generally on finite groups which are generated by elements - _._ (17) _Hj_ = - _{a_ 0 _, . . ., aD} \ {aj}_ Define the levels, _Lj_, as the sets of left cosets for each _Hj_, i.e. _Lj_ = _{gHj_ _| g_ _∈_ _G} ._ (18) The cosets of a subgroup always form a partition of the full group. So for every _j_ _∈{_ 0 _, . . ., D}_, a group element _g_ _∈_ _G_ uniquely defines a coset _pj_ _∈_ _Lj_ such that _g_ _∈_ _pj_ . Hence, each group element defines a ( _D_ + 1)-tuple of cosets, ( _p_ 0 _, . . ., pD_ ) _∈_ _L_ 0 _×· · ·×LD_ . Taking the set of all such tuples defines a ( _D_ +1)-ary relation on the cosets, _F_ _⊂_ _L_ 0 _×· · ·×LD_, which is a pin code relation. The fact that this _F_ is a pin code relation can be verified by the following argument. A _k_ -pinned set here correspond to the intersection of _k_ different cosets with respect to _k_ different subgroups _Hj_ . It always holds that the intersection of several cosets is either empty or is a coset with respect to the intersection of the subgroups of the original cosets. Hence non-empty _k_ -pinned sets are cosets with respect to a subgroup, _Hj_ 1 _,...,jk_, _Hj_ 1 _,...,jk_ = - _k_ _i_ =1 _Hji._ (19) Each subgroup _Hji_ is generated by all generators of _G_ except one, this means that _Hj_ 1 _,...,jk_ contains at least a subgroup generated by _D −_ _k_ + 1 of the generators, _Hj_ 1 _,...,jk_ _⊇_ - _{a_ 0 _, . . ., aD} \ {aj_ 1 _, . . ., ajk_ _}_ - _._ (20) In particular, the _D_ -pinned sets are cosets with respect to a subgroup that contains _⟨aj⟩_ for some _j_ . We note that _⟨aj⟩_ has order two, since _aj_ is a reflection, and thus all _D_ -pinned sets have even order. In well behaved cases the containment in (20) will actually be an equality, but this is not guaranteed due to relations between generators that may exist. In the case where the Coxeter group describes the symmetries of a tiling this construction is equivalent to the Wythoff construction described above. But one also obtains more general pin codes when considering Coxeter groups not defining tilings or more general finite groups with generators of even order. Note that it is generally not possible to directly obtain the properties of the quantum pin code derived from a Coxeter group from the group’s representation and the choice of subgroups _Hi_ . In Sec. V-A we explore in more details the construction of pin codes from 3D hyperbolic Coxeter groups and give some explicit examples. TABLE III CORRESPONDENCE BETWEEN COXETER GROUPS AND QUANTUM PIN CODES. <u>Coxeter</u> <u>group</u> <u>Quantum</u> <u>pin</u> <u>code</u> All left cosets of _Hj_ = Level: _Lj_ - _{a_ <u>0</u> _, . . ., aD} \ {aj_ _}_ <u>A</u> <u>given</u> <u>left</u> <u>coset</u> _gHj_ <u>Pin:</u> _p ∈_ _Lj_ <u>All</u> <u>group</u> <u>elements</u> _G_ <u>Relation:</u> _F_ _⊂_ _L_ <u>0</u> _× · · · × LD_ <u>A</u> <u>group</u> <u>element</u> _g_ _∈_ _G_ <u>Flag:</u> _f_ _∈_ _F_ TABLE IV CORRESPONDENCE BETWEEN CHAIN COMPLEXES AND QUANTUM PIN CODES. <u>Chain</u> <u>Complex</u> <u>Quantum</u> <u>pin</u> <u>code</u> <u>Basis</u> <u>set</u> <u>of</u> _Cj_ <u>Level:</u> _Lj_ A basis element Pin: _p ∈_ _Lj_ _pj_ _∈Cj_ Relation: _F_ _⊂_ _L_ 0 _× · · · × LD_ Flag: _f_ _∈_ _F_ All basis elements ( _p_ 0 _, . . ., pD_ ) such that _pj_ _∈_ _∂pj_ <u>+1</u> A tuple ( _p_ 0 _, . . ., pD_ ) <u>such</u> <u>that</u> _pj_ _∈_ _∂pj_ <u>+1</u> _k_ + 1 basis elements Collection: _s ∈_ _Lj_ 0 _× · · · × Ljk_ levels _k_ + 1 left cosets ( _g_ <u>0</u> _Hj_ <u>0</u> _, . . ., gkHjk_ ) Elements of a left coset _gHj_ <u>0</u> _<u>,...,jk</u>_ Collection: _s ∈_ _Lj_ 0 _× · · · × Ljk_ ( _k_ + 1)-pinned set: _PT_ ( _s_ ) _⊂_ _F_ from different levels - _pj_ <u>0</u> _, . . ., pjk_ ( _k_ + 1)-pinned set: _PT_ ( _s_ ) _⊂_ _F_ _3)_ _Chain_ _complex_ _approach:_ An other way of obtaining a pin code relation is from F2 chain complexes of length _D_ +1. For our purposes, these algebraic objects are composed of ( _D_ + 1) finite-dimensional vector spaces over F2, say _C_ 0 _, . . ., CD_, together with _D_ linear maps called boundary maps, _∂j_ : _Cj_ _→Cj−_ 1, which are such that _∀j_ _∈{_ 0 _, . . ., D −_ 1 _},_ _∂j_ _◦_ _∂j_ +1 = 0 _._ (21) For example the tiling of a _D_ -manifold can be seen as a chain complex, taking the _j_ -cells as a basis for the _Cj_ vector space and the natural boundary map. We have shown how to get a pin code relation from such a tiling by taking its flags, but it can as well be obtained from any F2 chain complex. For more background see [34]. The construction works as follows: choose a basis set _Lj_ for each vector space _Cj_ . The _Lj_ basis sets are the levels and the basis elements the pins. Then use the boundary map, _∂_, to define binary relations, _Rj,j_ +1 _⊂_ _Lj_ _×_ _Lj_ +1, where ( _pj, pj_ +1) _∈_ _Rj,j_ +1 if _pj_ appears in the decomposition of _∂_ ( _pj_ +1) over the basis set _Lj_ . Then the relation _F_ _⊂_ _L_ 0 _× · · · × LD_ is defined as follows _F_ = _{_ ( _p_ 0 _, . . ., pD_ ) _| ∀j,_ ( _pj, pj_ +1) _∈_ _Rj,j_ +1 _} ._ (22) The relation _F_ obtained like this is almost a pin code relation. All the pinned sets of type _t_ = _{_ 0 _, . . ., D}\{j}_ with 0 _< j_ _<_ _D_ have even cardinality since their size is given by the number of paths between the pin _pj_ +1 and the pin _pj−_ 1 which has to be even by the property of the boundary map _∂_ given in (21). For pinned sets of type _T_ = _{_ 1 _, . . ., D}_ or _T_ = _{_ 0 _, . . ., D −_ 1 _}_ it is not generally the case that they have even cardinality. Although this can be easily fixed by adding at most two pins: the idea is then to add one rank-0 pin, _b_ 0, in the level _L_ 0 and add all pairs ( _b_ 0 _, c_ <sup>_⋆_</sup> ) such that _|{p_ 0 _|_ ( _p_ 0 _, c_ <sup>_⋆_</sup> ) _∈_ _R_ 0 _,_ 1 _}|_ = 1 (mod 2) _,_ (23) to the new relation _R_ 0 _,_ 1. Then do the same for the level _D_, adding _bD_ in _LD_ . After this modification the resulting flag relation _F_ is a pin code relation. Note that this way of obtaining a quantum code from any F2 chain complex is fundamentally different from the usual homological code construction. In the homological code construction one chooses one of the levels, say _Lj_, and identifies its elements with qubits. Then the _Z_ -stabilizer generators All tuples ( _q_ 0 _, . . ., qD_ ) _∈_ _F_ such - _qj_ 0 _, . . ., qjk_ - = - _pj_ <u>0</u> _, . . ., pjk_ that - _qj_ 0 _, . . ., qjk_ are given by the boundary of the elements in _Lj_ +1 and the _X_ -stabilizer generators by the coboundary of the elements in _Lj−_ 1. These are different from the flags and pinned sets used to define a pin code. In Sec. V-B we give some explicit pin codes constructed from chain complexes. _G._ _Remarks_ While some flag relations _F_ obtained from Coxeter groups can be equivalently viewed as coming from some F2 chain complex, the converse does not necessarily hold. Indeed not every multi-ary relation can be decomposed into a sequence of binary relations, the hexagonal lattice depicted in Fig. 2a is an example of such a relation which cannot be decomposed this way. The other way around, not all flag relations obtained from a F2 chain complex can be seen as coming from a Coxeter groups as in general they would lack the regular structure required. Depending on the pin code relation, _F_, it can happen that some pinned sets can in fact be safely split when defining the stabilizers. That is to say, one can separate them into several disjoint sets of flags defining each an independent stabilizer still commuting with the rest of the stabilizers. For example this is the case for Coxeter groups for which (20) is strict, i.e. - _{ ai_ 1 _, . . ., ais_ _}_ 1 _, . . ., ais_ _}_ - _∩_ - _{ aj_ 1 _, . . ., ajt_ _}_ - ⊋ - _{ ai_ 1 _, . . ., ais_ _} ∩{ aj_ 1 _, . . ., ajt_ _}_ - _._ - _∩_ - _{ aj_ 1 _, . . ., ajt_ _}_ - _._ (24) In this case the cosets with respect to the first group can be further split into cosets with respect to the second one without harming the commutation relations. Groups generated by reflections for which (20) is always an equality are called C-groups [35]. If the stabilizers are still defined as whole pinned sets, in cases where they could be split, then these smaller sets of qubits would be logical operators which would be detrimental to the overall distance of the code. III. TRANSVERSAL GATES AND MAGIC STATE DISTILLATION In this section we present independently of pin codes what structure is desirable for CSS codes to admit transversal phase gates of different levels of the Clifford hierarchy. The presentation here is close in spirit to that of [36], [37]. It is included here to fix terminology and to be self-contained. Given _ℓ_ binary row vectors, _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_ℓ_</sup> _∈_ F <sup>_n_</sup> 2 <sup>,</sup> <sup>we</sup> <sup>denote</sup> their element-wise product as, _v_ <sup>1</sup> _∧· · · ∧_ _v_ <sup>_ℓ_</sup>, its _j_ <sup>th</sup> entry is given by Although it is strong enough to verify the conditions only on a basis of the space, which is proven in Appendix A. Proposition 7 (multi-even/orthogonal space verification on a basis) . _It is necessary and sufficient to verify_ (26) _or_ (29) _on a_ _basis_ _to_ _ensure_ _that_ _a_ _space_ _is_ _multi-even_ _or_ _multi-orthogonal_ _respectively._ The single-qubit phase gates are denoted as _Rℓ_ = �1 0 0 _ωℓ_ _,_ _ωℓ_ = e <sup>_i_</sup> <sup><u>2</u></sup> 2 <sup>_<u>πℓ</u>_</sup> _._ (30) _,_ _ωℓ_ = e <sup>_i_</sup> <sup><u>2</u></sup> 2 <sup>_<u>πℓ</u>_</sup> - - _ℓ_ _m_ =1 _v_ <sup>_m_</sup> = _j_ _j_ <sup>1</sup> <sup>_v_</sup> _j_ <sup>2</sup> _j_ <sup>2</sup> <sup>_· · · v_</sup> _j_ <sup>_p_</sup> _j_ <sup>_p._</sup> (25) _v_ <sup>1</sup> _∧_ _v_ <sup>2</sup> _∧· · · ∧_ _v_ <sup>_ℓ_</sup> <sup>�</sup> _j_ <sup>=</sup> <sup>_v_</sup> _j_ <sup>1</sup> For instance _R_ 1 = _Z_, _R_ 2 = _S_ and _R_ 3 = _T_ in the usual notations. _A._ _Weighted_ _polynomials_ _and_ _transversal_ _gates_ Given _k_ qubits and some integer _ℓ_, we consider quantum gates, _UFℓ_, acting diagonally on the computational basis, such that for _x_ _∈_ F <sup>_k_</sup> 2 <sup>,</sup> _UFℓ_ _|_ _x_ _⟩_ = _ωℓ_ <sup>_Fℓ_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> _|_ _x_ _⟩_ _,_ (31) where _Fℓ_ is a so-called weighted polynomial of the form The Hamming weight of a binary vector _v_ is denoted as _|_ _v_ _|_, it is given by the sum of its entries. We also define the notions of multi-even and multi-orthogonal spaces: Definition 5 (Multi-even space) . _Given_ _an_ _integer,_ _ℓ_ _∈_ N _,_ _a_ _subspace_ _C_ _⊂_ F <sup>_n_</sup> 2 <sup>_,_</sup> <sup>_is_</sup> <sup>_called_</sup> <sup>_ℓ-even_</sup> <sup>_if_</sup> <sup>_all_</sup> <sup>_vectors_</sup> <sup>_in_</sup> <sup>_C_</sup> <sup>_have_</sup> _Hamming_ _weight_ _divisible_ _by_ 2 <sup>_ℓ_</sup> _:_ _∀_ _v_ _∈C,_ _|_ _v_ _|_ = 0 (mod 2 <sup>_ℓ_</sup> ) _._ Proposition 6 (Characterization of multi-even spaces) . _Given_ _ℓ_ _∈_ N _,_ _a_ _subspace_ _C_ _⊂_ F <sup>_n_</sup> 2 <sup>_is_</sup> <sup>_ℓ-even_</sup> <sup>_if_</sup> <sup>_and_</sup> <sup>_only_</sup> <sup>_if_</sup> _for_ _any_ _integer_ _s_ _∈{_ 1 _, . . ., ℓ}_ _and_ _any_ _s-tuple_ _of_ _vectors,_ ( _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_s_</sup> ) _∈C_ <sup>_s_</sup> _,_ _it_ _holds_ _that_ �� _v_ 1 _∧· · · ∧_ _v_ _s_ �� = 0 (mod 2 <sup>_ℓ−s_</sup> <sup>+1</sup> ) _._ (26) The proof is deferred to Appendix A, it makes use of the following convenient lemma for converting binary addition to regular integer addition. Lemma 1 (Binary addition and integer addition) . _Denote_ _binary_ _addition_ _with_ _⊕_ _and_ _integer_ _addition_ _with_ + _or_ <sup>�</sup> _._ _Given_ _r_ _binary_ _vectors_ _w_ <sup>1</sup> _, . . .,_ _w_ <sup>_r_</sup> _∈_ F <sup>_n_</sup> 2 <sup>_it_</sup> <sup>_holds_</sup> <sup>_that_</sup> 2 <sup>_s−_</sup> <sup>1</sup> - _αm_ 1 _...ms_ _· xm_ 1 _· · · xms_ _,_ 1 _≤m_ 1 _<···<ms≤ℓ_ _Fℓ_ ( _x_ ) = _ℓ_ _s_ =1 _r_ _m_ =1 _r_ �( _−_ 2) <sup>_s−_</sup> <sup>1</sup> _r_ _s_ =1 (32) with coefficients _αm_ 1 _...ms_ in F2 _ℓ_ . Any such gate _UFℓ_ belongs to the _ℓ_ th level of the Clifford hierarchy [38]. Examples, and generating set for _ℓ_ = 3, are given in Table V. TABLE V WEIGHTED POLYNOMIALS CORRESPONDING TO SOME WELL KNOWN GATE, FOR _ℓ_ = 3, ARRANGED ACCORDING NUMBER OF QUBITS INVOLVED AND LEVEL OF THE CLIFFORD HIERARCHY. _UF_ <u>3</u> _↔_ _F_ <u>3(</u> _x_ ) <u>1st</u> <u>level</u> <u>2nd</u> <u>level</u> <u>3rd</u> <u>level</u> 1 qubit _Z_ _⊗_ 1 _⊗_ 1 _↔_ 4 _x_ 1 _S ⊗_ 1 _⊗_ 1 _↔_ 2 _x_ 1 _T_ _⊗_ 1 _⊗_ 1 _↔_ _x_ 1 2 qubits - C _Z_ _⊗_ 1 _↔_ 4 _x_ 1 _x_ 2 C _S ⊗_ 1 _↔_ 2 _x_ 1 _x_ 2 <u>3</u> <u>qubits</u> <u>-</u> <u>-</u> CC _Z_ _↔_ 4 _x_ <u>1</u> _x_ <u>2</u> _x_ <u>3</u> _w_ <sup>_m_</sup> = 1 _≤m_ 1 _<···<ms≤r_ - _s_ _w_ <sup>_mi_</sup> _._ (27) _i_ =1 _Similarly_ _for_ _their_ _Hamming_ _weights_ The goal is to implement such a gate on the logical level of a quantum error correcting code by the transversal application of some phase gates. A transversal application of the singlequbit phase gate _Rℓ_ means that each qubit is acted on with _Rℓ_, which amounts to applying the tensor product _Rℓ_ <sup>_⊗n_</sup> = _r_ ����� _m_ =1 ����� = (28) ����� _._ 1 _≤m_ 1 _<···<ms≤r_ _w_ <sup>_m_</sup> _r_ �( _−_ 2) <sup>_s−_</sup> <sup>1</sup> _r_ _s_ =1 _w_ <sup>_mi_</sup> ����� - _s_ _i_ =1 The proof of this lemma is deferred to Appendix A where we also give an illustrative example. The alternative characterization given in Prop. 6 for a multi-even space, as per Def. 5, shows that some strong divisibility conditions on the overlap between vectors of the space have to be imposed. It is possible to relax these conditions and define what is called a multi-orthogonal space. Definition 6 (Multi-orthogonal space) . _Given_ _an_ _integer,_ _ℓ_ _∈_ N _, a subspace C_ _⊂_ F <sup>_n_</sup> 2 <sup>_, is called ℓ-orthogonal if for any ℓ-tuple_</sup> _of_ _vectors,_ - _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_ℓ_</sup> <sup>�</sup> _∈C_ <sup>_ℓ_</sup> _,_ _Rℓ_, which amounts to applying the tensor product _Rℓ_ <sup>_⊗n_</sup> = _R_ CSS _ℓ_ _⊗· · · ⊗_ code, define _Rℓ_ on _G_ theasfullthesystem. _r × n_ matrixGiven whosean - _n, k, d_ rows� quantumdescribe a generating set of the _X_ -stabilizers of the code, and define _L_ as the _k × n_ matrix whose rows describe a basis for the _X_ logical operators. The code state in this basis corresponding to _x_ _∈_ F <sup>_k_</sup> 2 <sup>can</sup> <sup>then</sup> <sup>be</sup> <sup>expressed</sup> <sup>as</sup> Applying transversally the gate _Rℓ_ on this code state, _~~|~~_ _<u>x</u>_ _~~⟩~~_, yields <sup>_k_</sup> 2 <sup>can</sup> <sup>then</sup> <sup>be</sup> <sup>expressed</sup> <sup>as</sup> <u>1</u> _~~|~~_ _<u>x</u>_ _~~⟩~~_ = _~~√~~_ _|_ _x_ _L ⊕_ _y_ _G⟩_ _._ (33) <sup>_r_</sup> 2 2 <sup>_r_</sup> _y_ _∈_ F <sup>_r_</sup> _y_ _∈_ F <sup>_r_</sup> 2 - _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_ℓ_</sup> <sup>�</sup> _, . . .,_ _v_ <sup>_ℓ_</sup> <sup>�</sup> _∈C_ <sup>_ℓ_</sup> _,_ �� _v_ 1 _∧· · · ∧_ _v_ _ℓ_ �� = 0 (mod 2) _._ (29) _ωℓ_ <sup>_|_</sup> <sup>_x_</sup> <sup>_L⊕_</sup> <sup>_y_</sup> <sup>_G|_</sup> <sup>_r_</sup> 2 These two characterizations, Prop. 6 and Def. 6, are expressed as conditions on any tuple of vectors from the space. <u>1</u> _ℓ_ <sup>_⊗n_</sup> _~~|~~_ _<u>x</u>_ _~~⟩~~_ = _~~√~~_ _y_ _∈_ F <sup>_r_</sup> 2 _Rℓ_ <sup>_⊗n_</sup> 2 <sup>_r_</sup> _y_ _∈_ F <sup>_r_</sup> _ℓ_ <sup>_|_</sup> <sup>_x_</sup> <sup>_L⊕_</sup> <sup>_y_</sup> <sup>_G|_</sup> _|_ _x_ _L ⊕_ _y_ _G⟩_ _._ (34) Using (27), the power of _ωℓ_ above can be rewritten in three parts as _|_ _x_ _L ⊕_ _y_ _G|_ = _Fℓ_ ( _x_ ) + _Fℓ_ <sup>_′_</sup> _ℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_y_</sup> <sup>) +</sup> <sup>_F ′′_</sup> _ℓ_ <sup>_′′_</sup> _ℓ_ <sup>(</sup> <sup>_x_</sup> <sup>_,_</sup> <sup>_y_</sup> <sup>)</sup> <sup>_,_</sup> (35) circuit for _C_, see [36]. Note that we can also define intermediate conditions so that the correction belongs to the ( _ℓ_ _−_ _q_ )th level of the Clifford hierarchy for some 1 _≤_ _q_ _≤_ _ℓ_ . Here we have just defined the two extreme ones, for which the correction belongs either to the 0th level or the ( _ℓ_ _−_ 1)th level of the Clifford hierarchy. Propositions 8 and 9 where stated in slightly different form in [36]. _B._ _Magic-state_ _distillation_ Given a code which exhibits exact transversality or quasitransversality it is possible to devise magic-state distillation protocols. We describe briefly a variant here, see also [18], [26], [36], [37], [39]–[41]. A magic state enables the implementation of some gate on another state. The most common example is the state _|A⟩_ = _T_ _|_ + _⟩_ which can be used to implement a _T_ gate using only a CNOT gate, a measurement and possibly a _S_ correction (see for example Figure 2 of [1]). If one uses a CSS code to encode information then the CNOT gate on the encoded level can be done transversally between two encoded blocks. The main difficulty lies in obtaining an encoded magic state of good quality. The usual starting point is one logical qubit being encoded in a _base_ _code_ chosen to protect them from noise and with access to fault-tolerant implementations of all Clifford gates. Then a common protocol consists in concatenating the base codewhichwithadmitsa _distillation_ the implementation _code_, sayofoflogicalparameters _T_ gates� _n, k, d_ on the�, encoded level by applying _T_ gates to the physical qubits. Then using _n_ possibly low fidelity magic states encoded in the base code, one applies a transversal _T_ gate on _|_ + _⟩_ states at the level of the distillation code using the circuit described in the previous paragraph. Measuring the checks of the distillation code conditioning on seeing a trivial syndrome and decoding to the base code one obtains _k_ magic states encoded in the base code of better quality. Provided that the quality of the initial magic states is not too low, repeating the protocol sufficiently many times will reach any desired accuracy. Then the amount of resources spent will directly depend on the parameters of the distillation code �in _n, k, d_ just one�. Thequantity:efficiency of the protocol is often summarized _γ_ = <sup><u>log(</u></sup> <sup>_<u>n/k</u>_</sup> <sup><u>)</u></sup> (41) log( _d_ ) <sup>_,_</sup> where we defined _Fℓ_ ( _x_ ) = _|_ _x_ _L|_ (36) _Fℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_y_</sup> <sup>) =</sup> <sup>_|_</sup> <sup>_y_</sup> <sup>_G|_</sup> (37) _Fℓ_ <sup>_′′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_,_</sup> <sup>_y_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>2</sup> <sup>_|_</sup> <sup>_x_</sup> <sup>_L ∧_</sup> <sup>_y_</sup> <sup>_G|_</sup> (38) Using again (27), one can express these three parts as weighted polynomials whose coefficients are given by the different overlap between _X_ -logical operator generators, between _X_ -stabilizer generators or between both, see Appendix B. Provided that it is possible to cancel the action of _Fℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_y_</sup> <sup>) and</sup> _Fℓ_ <sup>_′′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_,_</sup> <sup>_y_</sup> <sup>) then the resulting operation would correspond to the</sup> gate _UFℓ_ on the logical qubits of the code. The following two properties of CSS codes are designed to get rid of these two unwanted parts. Proposition 8 (Exact transversality) . _Let_ _C_ _be_ _a_ _CSS_ _code,_ _given_ _an_ _integer_ _ℓ,_ _the_ _code_ _C_ _allows_ _for_ _the_ _transversal_ _application_ _of_ _Rℓ_ _if_ _the_ _following_ _conditions_ _hold:_ _(i)_ _The_ _X-stabilizers_ _form_ _an_ _ℓ-even_ _space._ _(ii)_ _Element-wise products of a X-logical operator and a X-_ _stabilizer always have Hamming weight divisible by_ 2 <sup>_ℓ−_</sup> <sup>1</sup> _._ _The_ _gate_ _performed_ _at_ _the_ _logical_ _level_ _is_ _then_ _given_ _by_ _the_ _weighted_ _polynomial_ _in_ (36) _._ Indeed the two conditions above exactly give _ℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_y_</sup> <sup>) =</sup> <sup>_F ′′_</sup> _ℓ_ _Fℓ_ <sup>_′_</sup> <sup>_′′_</sup> _ℓ_ <sup>(</sup> <sup>_x_</sup> <sup>_,_</sup> <sup>_y_</sup> <sup>) = 0</sup> (mod 2 <sup>_ℓ_</sup> ) _,_ (39) which precisely enforce that the actions of _Fℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_y_</sup> <sup>)</sup> <sup>and</sup> _Fℓ_ <sup>_′′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_,_</sup> <sup>_y_</sup> <sup>) are trivial. We can also settle for a weaker condition</sup> under which the unwanted part is not trivial but belong to the ( _ℓ_ _−_ 1)th level of the Clifford hierarchy. _code, with_ Proposition 9 _r×n_ (Quasi-transversality) _generating matrix, G_ . _, for itsLet C_ _Xbe a-stabilizers and_ - _n, k, d_ - _CSS_ _k_ _×_ _n generating matrix, L, for its X-logical operators. Given_ _an_ _integer_ _ℓ,_ _the_ _code_ _C_ _allows_ _for_ _the_ _transversal_ _application_ _of Rℓ_ _up to a_ ( _ℓ−_ 1) _th-level Clifford correction if the following_ _conditions_ _hold:_ _(i)_ _The_ _X-stabilizers_ _form_ _an_ _ℓ-orthogonal_ _space._ _(ii)_ _For_ _any_ _choice_ _of_ _s_ _≥_ 1 _X-logical_ _operators_ _and_ _t_ _≥_ 1 _X-stabilizers_ _with_ _s_ + _t ≤_ _ℓ_ ������ - _s_ _i_ =1 _L_ <sup>_mi_</sup> - _t_ _j_ =1 _G_ <sup>_nj_</sup> = 0 (mod 2) _._ ������ _The gate performed at the logical level after correction is then_ _given_ _by_ _the_ _weighted_ _polynomial_ _in_ (36) _._ Indeed, under this condition it follows that, see Appendix B since the average number of output distilled magic states at a desired accuracy, _ϵ_ out, per initial noisy magic state is given by 1 _/O_ �log( _ϵ_ <sup>_−_</sup> out <sup>1</sup> - _γ_ ). Hence, the smaller _γ_ the more efficient by 1 _/O_ �log( _ϵ_ <sup>_−_</sup> out <sup>1</sup> - _γ_ ). Hence, the smaller _γ_ the more efficient the distillation protocol. Previously it was conjectured that _γ_ has to be at least 1. However, it has recently been shown that _γ_ _<_ 1 is achievable [41]. �log( _ϵ_ <sup>_−_</sup> out <sup>1</sup> out _ℓ_ <sup>_F_</sup> _ℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_y_</sup> <sup>)+</sup> <sup>_F_</sup> _ℓ_ <sup>_′′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_,_</sup> <sup>_y_</sup> <sup>)</sup> = _ωℓ_ <sup>2 ˜</sup> _Fℓ−_ 1( _x_ _,_ _y_ ) = _ω_ _C._ _Puncturing_ _techniques_ As explained above, most magic state distillation procedures rely on a distillation code which is a CSS code for which the _T_ gate is transversal and correspond to a transversal _T_ gate _ωℓ_ <sup>_F_</sup> _ℓ_ <sup>_′_</sup> _ℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_y_</sup> <sup>)+</sup> <sup>_F_</sup> _ℓ_ <sup>_′′_</sup> _F_ ˜ _ℓ−_ 1( _x_ _,_ _y_ ) _ℓ−_ 1 _,_ (40) where _F_ <sup>˜</sup> _ℓ−_ 1 is a properly weighted polynomial which defines a ( _ℓ_ _−_ 1)th-level Clifford correction to be applied. The exact correction is given by the conjugation of _UF_ ˜ _ℓ−_ 1 <sup>by a decoding</sup> on the logical level of the code. These codes are called triorthogonal codes [18], [26], and rely on 3-orthogonal or 3-even spaces. In more details and stated in general for the _Rℓ_ gate, this �of _n, k, d_ exact� transversalitydistillation code,as per _C_ distillProp. _._, has8 astowellfulfillasthehavingconditions _|_ _x_ _L|_ = _k_ _xj_ (mod 2 <sup>_ℓ_</sup> ) _,_ (42) _j_ =1 where _L_ is a _k ×_ _n_ generating matrix for the _X_ -logical operators of _C_ distill _._ . Fulfilling the exact transversality conditions of Prop. 8 ensures that one can transversally apply the _Rℓ_ gate on the code and (42) ensures that the resulting operation on the logical level is the transversal _Rℓ_ gate. If one has easy access to operations in the ( _ℓ−_ 1)th level of the Clifford hierarchy (as is usual in the case _ℓ_ = 3) then the following weaker conditions are enough. The code _C_ distill _._ has to fulfill the conditions of quasi-transversality as per Prop. 9 as well as having _|_ _x_ _L|_ = _k_ _xj_ (mod 2) _._ (43) _j_ =1 Starting from an _ℓ_ -even, _ℓ_ -orthogonal space respectively, it is simple to obtain such codes by puncturing them [37], [41], [42]. We describe this technique here and will apply it to some _ℓ_ -orthogonal spaces obtained from pin code relations in Section V-C. The idea goes as follows: consider an _ℓ_ -even subspace of F <sup>_n_</sup> 2 <sup>of</sup> <sup>dimension</sup> <sup>_m_</sup> <sup>and</sup> <sup>take</sup> <sup>a</sup> <sup>_m × n_</sup> <sup>generating</sup> matrix, _G_ _∈_ F <sup>_m_</sup> 2 <sup>_×n_</sup> . Using Gaussian elimination it is always possible to change the basis and put the matrix _G_ in the following form: one obtains a CSS code for which _Rℓ_ is quasi-transversal as per Prop. 9 and that the logical operation is also the transversal _Rℓ_ up to a ( _ℓ_ _−_ 1)th level correction. These type of codes when used in a distillation procedure distill _n_ magic states into _k_ ones of better quality which depends on the distance of the code that has to be computed independently. IV. PROPERTIES OF QUANTUM PIN CODES In this section we examine the properties of pin codes. Since their definition is fairly general, their properties depend on the precise choice of pin code relations _F_ . We stay as general as possible and state precisely when the pin code relations need to be restricted. _A._ _Code_ _parameters_ _and_ _basic_ _properties_ First we investigate the LDPC (Low Density Parity Check) property. A code family is LDPC if it has stabilizer checks of constant weight and each of its qubits are acted upon by a constant number of checks. LDPC codes were first considered by Gallager in the classical setting [43]. For pin codes, both properties depend on the relation _F_, but it is fairly easy to construct LDPC families. For instance, pin codes based on Coxeter groups with fixed relations between generators and one growing compactifying relation can be LDPC, see Sec. V-A. As another example, pin codes from chain complexes with fixed length _D_ + 1, sparse boundary map and growing dimension of the levels are LDPC as well. Let us examine a simple example: choose some _D_ _∈_ N, a set, _C_, of size 2 _m_ for some _m ∈_ N and the complete relation on _D_ + 1 copies of C: _F_ = _C_ <sup>_D_</sup> <sup>+1</sup> . One can easily verify that the relation _F_ is a pin code relation as _C_ has even cardinality. The number of flags is _nq_ = _|F_ _|_ = (2 _m_ ) <sup>_D_</sup> <sup>+1</sup> and the number of _x_ - and _z_ -pinned sets are _nx_ = - _Dx_ +1� _×_ (2 _m_ ) <sup>_x_</sup> and _nz_ = of _x_ - and _z_ -pinned sets are _nx_ = - _Dx_ +1� _×_ (2 _m_ ) <sup>_x_</sup> and _nz_ = - _Dz_ +1� _×_ (2 _m_ ) <sup>_z_</sup> . If one considers growing _m_ then, the code - _D_ +1 _x_ _G_ = _k_ _↕_ - <sup>_←_</sup> 1 <sup>_k_</sup> <sup>_→_</sup> _←Gn_ 1 _→_ _r_ _↕_ 0 _G_ 0 _,_ (44) where _k_ is some chosen integer such that 1 _≤_ _k_ _≤_ _m_ and _r_ = _m −_ _k_ . To obtain this form one just performs row operations. This corresponds to puncturing the first _k_ positions of the space but note that one can perform some permutation of the columns before the Gaussian elimination which would yield some different _G_ 0 and _G_ 1 and corresponds to puncturing some other _k_ positions. The rows of _G_ are a basis of the space and hence, by Prop. 7, they verify (26). We can deduce that the CSS code defined by _G_ 0 as the generating matrix for the _X_ stabilizers and _G_ 1 as the generating matrix for the _X_ -logical operators verify the exact transversality conditions in Prop. 8. The _Z_ -stabilizers of this code are given by the space dual to the space generated by the rows of both _G_ 0 and _G_ 1. Moreover one can readily compute that - _Dz_ +1� _×_ (2 _m_ ) <sup>_z_</sup> . If one considers growing _m_ then, the code would not be LDPC, but more strikingly the ratio of number of stabilizer checks to number of qubits would go to zero. This illustrates that for a fixed _D_ the complete relation leads to very high rate and very low distance. To get interesting codes, one either needs to vary _D_, or find some other relations with a number of flags growing significantly slower than the complete relation. Concerning logical operators, we first note that they have even weight. Proposition 10 (Logical operators have even weight) . _Let_ _F_ _be a pin code relation on D_ +1 _sets and let C_ _be the associated_ ( _x, z_ ) _-pin code for_ ( _x, z_ ) _∈{_ 1 _, . . ., D}_ <sup>2</sup> _with x_ + _z_ _≤_ _D. Then_ _the_ _X-_ _and_ _Z-logical_ _operators_ _of_ _C_ _have_ _even_ _weight._ _Proof:_ Let the set _L ⊂_ _F_ represent a _X_ -logical operator, and let _T_ be a type of size _z_ . Consider the set, S, of collections of pins given by the projection of type _T_ of the set _L_, _S_ = Π _T_ ( _L_ ) _._ (46) For every _s_ _∈_ _S_, the pinned set _PT_ ( _s_ ) correspond to a _Z_ stabilizer and therefore has an even intersection with _L_ . Pinned sets of the same type but defined by two different collections of _|_ _x_ _L|_ = _k_ �2 <sup>_ℓ_</sup> _−_ 1� _j_ =1 _xj_ (mod 2 <sup>_ℓ_</sup> ) _._ (45) Note that we did not obtain a transversal _Rℓ_ on the logical level but rather _Rℓ_ <sup>_−_</sup> <sup>1.</sup> <sup>The</sup> <sup>difference</sup> <sup>is</sup> <sup>_R_</sup> _ℓ_ <sup>2</sup> <sup>which</sup> <sup>is</sup> <sup>in</sup> <sup>the</sup> ( _ℓ_ _−_ 1)th level of the Clifford hierarchy. Starting from a _ℓ_ -orthogonal space instead and going through the same procedure it is straightforward to see that pins are disjoint. Hence, every element in _L_ appear in exactly one of the pinned sets _PT_ ( _s_ ) for some _s_ _∈_ _S_ and so the cardinal of _L_ is even. The proof for _Z_ -logical operators is the same. One can also prove the following general lower bound on the distance of pin codes. Proposition 11 (Distance at least 2 <sup>min(</sup> <sup>_x,z_</sup> <sup>)+1</sup> ) . _Let_ _F_ _be_ _a_ _pin_ _code_ _relation_ _on_ _D_ + 1 _sets_ _and_ _let_ _C_ _be_ _the_ _associated_ ( _x, z_ ) _-pin_ _code_ _for_ ( _x, z_ ) _∈{_ 1 _, . . ., D}_ <sup>2</sup> _with_ _x_ + _z_ _≤_ _D._ _Then_ _the_ _minimum_ _distance_ _of_ _C_ _is_ _at_ _least_ 2 <sup>min(</sup> <sup>_x,z_</sup> <sup>)+1</sup> _._ _Proof:_ Without loss of generality we can assume _x ≤_ _z_ . Take any set _Sx_ _⊂_ _F_ containing less than 2 <sup>_x_</sup> <sup>+1</sup> distinct flags: _|Sx| <_ 2 <sup>_x_</sup> <sup>+1</sup> _._ (47) Our goal is to show that this cannot represent a logical Pauli operator. To do so we will exhibit a sequence of pins, each pin in this sequence will successively allow us to eliminate half or more of the remaining flags by pinning. All the pins of the sequence will define a pinned set corresponding to a stabilizer with overlap on exactly one flag with _Sx_ showing that _Sx_ cannot be a logical Pauli operator. Since all the flags in _Sx_ are distinct, there necessarily exists a rank _jx_ such that ��Π _{jx}_ ( _Sx_ )�� _>_ 1, that is to say there exists a level on which they go through at least two different pins. We can use the pins in Π _{jx}_ ( _Sx_ ) to partition _Sx_ : and this in at most _x_ steps, hence we have _k_ _≤_ _x_ . For this set we have _{f_ _}_ = _Sx−k_ = _P{jx−k_ +1 _}_ ( _px−k_ +1) _∩_ _Sx−k_ +1 = _P{jx−k_ +1 _}_ ( _px−k_ +1) _∩_ _P{jx−k_ +2 _}_ ( _px−k_ +2) _∩_ _Sx−k_ +2 ... = _k−_ 1 _m_ =0 _P{jx−m}_ ( _px−m_ ) _∩_ _Sx_ - _._ (48) _{f_ _}_ = _P{jx,jx−_ 1 _,...jx−k_ +1 _}_ ( _px, px−_ 1 _, . . ., px−k_ +1) _∩_ _Sx,_ (54) where we used the intersection property, Prop. 1, for the last equality. Since _k_ _≤_ _x_ _≤_ _z_ and using the decomposition proposition Prop. 2, the _k_ -pinned set _P{jx,jx−_ 1 _,...jx−k_ +1 _}_ ( _px, px−_ 1 _, . . ., px−k_ +1) can represent both a _X_ - and a _Z_ -stabilizer and its intersection with _Sx_ is on only one flag, hence _Sx_ cannot represent a _X_ - nor _Z_ -logical operator. This concludes the proof that the distance of the code is at least 2 <sup>_x_</sup> <sup>+1</sup> . In order to get odd weight logical operators, one has to introduce free pins, see Sec. IV-E. Note that in the presence of free pins, the proof above does not hold anymore. Making precise statements about the dimension of pin codes is difficult in general. To get closer to be able to do this we need to study the structure of the logical operators. _B._ _Colored_ _logical_ _operators_ _and_ _unfolding_ The structure of the logical operators of color codes is understood as colored string-nets or membrane nets [20] and this structure is directly linked to an unfolding procedure existing for color codes [44]–[46]. This structure mostly remains for all pin codes which means that we can map a given quantum pin code (seen as a chain complex) to several smaller chain complexes whose homological representatives can be lifted to logical operators of the original quantum pin code. In the case of color codes these mappings fully characterize all logical operators. While this is not true for a general quantum pin code it can bring insight into the structure of some of its logical operators. The general idea is to group qubits into sets with even overlap with all except one sort of stabilizer which will correspond to all stabilizers defined by pinned sets of a given type. Logical operators build out of these sets then only depend on the structure of the one type of stabilizer selected. Repeating this for different choices of type of stabilizer fully covers all logical operators in the case of color codes. Consider a pin code relation, _F_ _⊂_ _L_ 0 _× · · · × LD_, and the associated ( _x, z_ <u>)-pin</u> code. Define the complement of a type, _T_, denoted as _T_ : _T_ = _{_ 0 _, . . ., D} \ T._ (55) The intersection between a pinned set of type _T_ and a pinned set of type _T_ is either empty or it contains exactly one flag. Furthermore for any another type with the same number of pins as _T_, the corresponding pinned <u>sets</u> have necessarily even overlap with pinned sets of type _T_, see Figs. 4a and _Sx_ = _p∈_ Π _{jx}_ ( _Sx_ ) - _P{jx}_ ( _p_ ) _∩_ _Sx_ Since this is a partition, one of these subsets necessarily contains half or less of _Sx_ . That is to say there exists a pin _px_ _∈_ _Ljx_ such that 0 _<_ �� _P{jx}_ ( _px_ ) _∩_ _Sx_ �� _<_ 2 _x._ (49) We define a new set, subset of _Sx_ : _Sx−_ 1 = _P{jx}_ ( _px_ ) _∩_ _Sx,_ (50) which is such that 0 _< |Sx−_ 1 _| <_ 2 <sup>_x_</sup> _._ (51) There are then two cases: either _|Sx−_ 1 _|_ = 1 in which case we stop. Otherwise we iterate the process on _Sx−_ 1. This gives a sequence of ranks ( _jx, jx−_ 1 _, . . ._ ) and pins of corresponding ranks ( _px, px−_ 1 _, . . ._ ) and a sequence of sets of flags _Sx_ ⊋ _Sx−_ 1 ⊋ _· · ·_ which are such that _Sx−m_ = _P{jx−m_ +1 _}_ ( _px−m_ +1) _∩_ _Sx−m_ +1 _,_ (52) 0 _< |Sx−m| <_ 2 <sup>_x−m_</sup> <sup>+1</sup> _._ (53) Note that a rank chosen at some step cannot be chosen again at a subsequent step. Indeed by construction ��Π _{jx−k}_ ( _Sx−k−_ 1)�� = _|{px−k}|_ = 1 and since for _m_ _≥_ _k_ we have _Sx−k−_ 1 ⊋ _Sx−m−_ 1 then ��Π _{jx−k}_ ( _Sx−m−_ 1)�� = _|{px−k}|_ = 1. From (53) we can infer that we necessarily find a set with only one remaining flag, say _f_, i.e. _Sx−k_ = _{f_ _}_, (a) (b) (c) Fig. 4. (a) Schematic representation of the different types for the _X_ - and _Z_ -stabilizers in the case of _D_ = 3. Each line represents a level. Types are represented by columns of dots where a dot is present if the level is in the type. The different types are classified according to their possible intersection with the complementary type to _t_ 0. For some, the <u>intersection,</u> if not empty, is a unique flag, they are labeled by the symbol “!”. For the others, the intersection, if not empty, is the full pinned set of type _t_ 0, they are labeled by the symbol “ _∀_ ”. (b) <u>The</u> chain complex corresponding to the pin code, highlighting the intersections between the different sorts of _X_ - and _Z_ -stabilizers and pinned sets of type _t_ 0. (c) The _t_ 0-shrunk chain complex derived from the pin code (see main text). (a) (b) (c) Fig. 5. (a) Schematic representation of the different types classified according to their possible intersection with the complementary type to _t_ 01. Each line represents a level. Types are represented by columns of dots where a dot is present if the level is in the type. The ones with unique intersection are labeled with “!”, the ones with even intersection with “E” and the one with full containment with “ _∀_ ”. (b) <u>The</u> chain complex corresponding to the pin code, highlighting the intersections between the different sorts of _X_ - and _Z_ -stabilizers and pinned sets of type _t_ 01. (c) The _t_ 01-shrunk (co)chain complex derived from the pin code (see main text). 5a for visual representations of this. This means that grouping flags according to pinned set of the complementary type _T_ can single out logical operators only having to ensure commutation with pinned sets of type _T_ . For our code, _X_ -stabilizers are generated by _x_ -pin sets, which come in - _Dx_ +1� different types. - _D_ +1 _x_ generated by _x_ -pin sets, which come in - _Dx_ +1� different types. Take one such type, _<u>Tx</u>_, and group the qubits according to pinned sets of type _Tx_ . Now the _Z_ -stabilizers are generated by _z_ -pinned sets, which come in - _Dz_ +1� different types. Some - _D_ +1 _z_ by _z_ -pinned sets, which come in - _Dz_ +1� different types. Some <u>of</u> these types, we denote them as _Tz_ <sup>inc</sup> <sup>_._</sup>, are fully included in _T_, which means that pinned sets of such type fully contain any group of qubits they intersect. The other types only partially intersect with the groups of qubits. The situation is schematized in Fig. 4b for _D_ = 3, _x_ = 1 and _z_ = 2. From these considerations, one can construct a chain complex for which the homology gives candidate _Z_ -logical operators. Take the <u>pinned</u> sets of type _Tx_, for the level 0, the pinned sets of type _Tx_ for the level 1, and the pinned sets of types _Tz_ <sup>inc</sup> <sup>_._</sup> for type _Tx_ for the level 1, and the pinned sets of types _Tz_ <sup>inc</sup> <sup>_._</sup> for level 2 and the boundary map is given by the overlaps of these sets. This is represented in Fig. 4c, we call it the _Tx_ -shrunk chain complex. Then one can check that an element of the homology of this chain complex can be lifted to a potential _Z_ -logical operator for the pin code. Indeed it would commute with all the _X_ -stabilizer, by homology for the stabilizers of type _Tx_ and by construction for the other _X_ -stabilizers. It would also not be simply generated by _Z_ -stabilizers of type _Tz_ <sup>inc</sup> <sup>_._</sup> by homology, and one would have to check for the other _Z_ types. So it is a valid (potentially trivial) _Z_ -logical operator. The same procedure can be done for each of the _X_ types. Symmetrically, the same can be done for the _X_ -logical with the _Z_ types, and this is represented in Fig. 5 in the case _D_ = 3, _x_ = 1 and _z_ = 2. Given a type _T_, the chain complexes constructed like this are called _T_ -shrunk lattices in the case of color codes [20]. For color codes obtained from the Wythoff construction described in Sec. II-F1, the construction of the _T_ -shrunk lattice is fairly direct. First move the vertex from the middle of the fundamental simplex to the corner corresponding to the first rank in the type _T_, then focus on the opposite face: a simplex of dimension one less which now looks exactly like the beginning of the procedure but in a lower dimension. Recursively exhaust all the ranks of _T_ in this way by each time adding a vertex in the middle of the current simplex and moving it to the corresponding corner. These shrunk lattices are the basis for the unfolding procedure proved for color codes in all dimensions in [44], [46]. This procedure establishes a local unitary equivalence between a color codes and the reunion of the homological codes on the shrunk lattices corresponding to all the different types for _X_ -stabilizers except one. The local unitary acts separately on groups of qubits defined by the _X_ -stabilizer generators of the type that is not used to produce one of the shrunk lattices. The proof of the existence of the local unitary relies on the analysis of the so called overlap groups of stabilizers restricted to the support of the _X_ -stabilizer generators aforementioned and the corresponding groups of qubits in the shrunk lattices. The global structure is still present for general pin codes, but for the proof to hold we need to require that the linear dependency between the generators within the overlap groups in the pin code is such that the number of independent generators agrees with the number of independent generators in the corresponding shrunk lattices as an additional assumption. These shrunk lattices are also the basis for some color code decoders [46]–[49] but these decoders rely on a lifting procedure from the shrunk lattices to the color code lattice which seems intrinsically geometric as it consists in finding a surface filling inside a boundary. So it is at this point unclear how to leverage this structure in order to decode general pin codes. _C._ _Gauge_ _pin_ _codes_ In this section we define gauge pin codes from a pin code relation. Gauge pin codes can also be viewed as a generalization of gauge color codes [19]. A gauge code, or subsystem code, is a code defined by a so called gauge group instead of a stabilizer group [10], [50]. For stabilizer codes, the code states are eponymously stabilized by the stabilizer group which is an abelian subgroup of the group of Pauli operators. For gauge codes, the gauge group is not abelian and hence all gauge operators cannot share a common +1-eigenspace. In this case the code states are stabilized by the center of the gauge group. Gauge operators not in the center of the gauge group would qualify as logical operators in the case of a stabilizer code but are not used to encode information. Take a pin code relation _F_ and two positive integers _x_ and _z_ such that _x_ + _z_ _<_ _D_ . The associated pin code has its _X_ stabilizer generators defined by all the _x_ -pinned sets and its _Z_ -stabilizers generators defined by all the _z_ -pinned sets. Since the relation _F_ is a pin code relation, by Prop. 3 any ( _D −_ _x_ )pinned set has an even intersection with any _x_ -pinned set. So all the ( _D −_ _x_ )-pinned sets correspond to some _Z_ -logical operators. On top of that, they generate all the _Z_ -stabilizers. Indeed using Prop. 2 and the fact that _D−x > z_ one shows that the _z_ -pinned sets decompose into disjoint ( _D_ _−x_ )-pinned sets. As such ( _D−x_ )-pinned set define naturally _Z_ -gauge operators which can be measured individually and whose outcomes can be recombined to reconstruct the value of the _Z_ -stabilizers defined by _z_ -pinned sets. Symmetrically, the same happens for ( _D −_ _z_ )-pinned sets which have even overlap with _z_ -pinned sets and generate _x_ -pinned sets and therefore can be viewed as _X_ -gauge operators. Proposition 12 (Gauge pin code) . _Given_ _a_ _pin_ _code_ _relation_ _F_ _and_ _two_ _natural_ _integers_ _x_ _and_ _z_ _such_ _that_ _x_ + _z_ _< D,_ _one_ _can_ _define_ _a_ _gauge_ _pin_ _code_ _by_ _choosing_ _X-gauge_ _operators_ _to_ _be_ _the_ ( _D −_ _z_ ) _-pinned_ _sets_ _and_ _Z-gauge_ _operators_ _to_ _be_ _the_ ( _D −_ _x_ ) _-pinned_ _sets._ _The_ _corresponding_ _stabilizer_ _group_ _for this gauge code contains the x-pinned sets as X-stabilizer_ _generators_ _and_ _z-pinned_ _sets_ _as_ _Z-stabilizer_ _generators._ _The_ _number_ _of_ _logical_ _qubits_ _is_ _at_ _most_ _the_ _number_ _of_ _logical_ _qubits_ _of_ _the_ ( _x, D_ _−_ _x_ ) _-pin_ _code_ _or_ _of_ _the_ ( _D_ _−_ _z, z_ ) _-pin_ _code_ _obtained_ _from_ _the_ _same_ _relation_ _F_ _._ _Proof:_ Let us first prove that ( _D_ _−_ _z_ )-pinned sets and ( _D −_ _x_ )-pinned sets indeed define gauge operators that do not necessarily commute. For this, take any qubit in _F_, say _f_ _∈_ _F_, and any two types _Tx_ and _Tz_ of size _|Tx|_ = _D −_ _z_ and _|Tz|_ = _D −_ _x_, respectively. Define the two collections _sx_ = Π _Tx_ ( _f_ ) and _sz_ = Π _Tz_ ( _f_ ), and the two ( _D −_ _z_ )- and ( _D −_ _x_ )-pinned sets, _PTx_ ( _sx_ ) and _PTz_ ( _sz_ ). One straightforwardly verifies that these pinned sets are constructed such that their intersection is a singleton, more precisely _PTx_ ( _sx_ ) _∩_ _PTz_ ( _sz_ ) = _{f_ _},_ (56) and they define a _X_ -gauge operator and a _Z_ -gauge operator, respectively, which therefore do not commute with one another. Let us prove now that the center of the gauge group, i.e. the stabilizer group, contains the _x_ -pinned sets as _X_ -stabilizers and _z_ -pinned sets as _Z_ -stabilizers. We have that _x_ _<_ _D −_ _z_, hence by the decomposition property, Prop. 2, _x_ -pinned sets as _X_ operators are generated by _D −_ _z_ -pinned sets which are _X_ gauge operators. Similarly, _z_ _<_ _D −_ _x_ and _z_ -pinned sets as _Z_ operators are generated by _D −_ _x_ -pinned sets which are _Z_ gauge operators. Moreover, _x_ + ( _D −_ _x_ ) = _z_ + ( _D −_ _z_ ) = _D,_ (57) and so by Proposition 3, the _x_ -pinned sets as _X_ operators and _z_ -pinned sets as _Z_ operators commute with all gauge operators and belong to the center of the gauge group. Note that the stabilizer group can be larger than the group generated by _x_ -pinned sets as _X_ stabilizers and _z_ -pinned sets as _Z_ stabilizers. That is why in turn it can happen that the number of logical qubits is strictly smaller than that of the ( _x, D −_ _x_ )-pin code or of the ( _D −_ _z, z_ )-pin code from the same relation _F_ . The error correction procedure for a gauge code with only fully _X_ -type or fully _Z_ -type gauge operators is conveniently performed in two parts. In one part, one measures the _X_ -gauge operators, reconstructs the syndrome for the _X_ -stabilizers and uses it to correct _Z_ -errors. In the other part, one measures the _Z_ -gauge operators, reconstructs the syndrome for the _Z_ stabilizers and uses it to correct _X_ -errors. The advantages of this procedure in the case of gauge pin codes are two-fold. First, the weight of the gauge generators, i.e. the number of qubits involved in each generator, is reduced compared to the weight of the stabilizer generators making their measurement easier and less error prone. Second, the record of gauge operator measurements contains the information of the stabilizer measurements with redundancy. To understand this redundancy consider a _x_ -pinned set and define _k_ = ( _D_ _−_ _z_ ) _−_ _x_ . This is the number of additional levels to pin in order to decompose the _x_ -pinned set into ( _D −_ _z_ )pinned sets. There are - _D_ +1 _−x_ - different ways to choose these _k_ - _D_ +1 _−x_ _k_ pinned sets. There are - _D_ +1 _−x_ - different ways to choose these _k_ additional levels to pin and therefore that many different ways to reconstruct the _x_ -pinned set. This redundancy permits a more robust syndrome extraction procedure which can even become in some cases single-shot, meaning that the syndrome measurements do not have to be repeated to reliably decode [51]. Meaning that even when the measurements are noisy one can measure the gauge operators only once and process the obtained information to reduce the noise enough and proceed with the computation. _D._ _Transversality_ We examine here pin codes in regards of Prop. 8 and Prop. 9. Nicely, _x_ -pinned sets always have some multiorthogonality property. Proposition 13 (Multi-orthogonality of pinned sets) . _Let_ _F_ _be_ _a_ ( _D_ + 1) _-ary_ _pin_ _code_ _relation._ _For_ _any_ _x ∈{_ 1 _, . . ., D},_ _the_ _x-pinned_ _sets_ _seen_ _as_ _binary_ _vectors_ _in_ F <sup>_F_</sup> 2 <sup>_generate_</sup> <sup>_a_</sup> _⌊D/x⌋-orthogonal_ _space._ _Proof:_ Given _x ∈{_ 1 _, . . ., D}_, we have that _x · ⌊D/x⌋≤_ _D_ . Hence by Prop. 1, the intersection of _⌊D/x⌋_ (or less) _x_ -pinned sets is either empty or a pinned sets with at most _D_ pins. This pinned set with at most _D_ pins can always be decomposed by Prop. 2 into a disjoint union of _D_ -pinned sets and hence has even weight as _F_ is a pin code relation as per Def. 3. Interestingly it is also not too difficult to find pin code relations for which the 1-pin sets are _D_ -even. For example, using a chain complex whose boundary map have even row and column weights and is regular enough will typically suffice. One could also hope for the second part of Proposition 9 to always holds. Unfortunately it holds only partially in general. Proposition 14 ( _X_ -logical intersection with _X_ -stabilizers) . _Let_ _F_ _be_ _a_ ( _D_ + 1) _-ary_ _pin_ _code_ _relation,_ _and_ _consider_ _the_ _associated_ ( _x, z_ ) _-pin code for x ∈{_ 1 _, . . ., D} and z_ = _D_ _−x._ _Then_ _for_ _any_ _one_ _X-logical_ _operator,_ _L_ _,_ _and_ _k_ _X-stabilizer_ _generators,_ _G_ <sup>_j_</sup> _,_ _with_ _k_ _≤⌊D/x⌋−_ 1 _,_ (mod 2) _._ ��� _L_ _∧_ _G_ 1 _∧· · · ∧_ _G_ _k_ ��� = 0 _Proof:_ Indeed, using Prop. 1, the overlap between _⌊D/x⌋−_ 1 (or less) different _x_ -pinned sets is either empty or a pinned set with at most _D_ _−x_ = _z_ pins. Hence by Prop. 2, it can be decomposed into _z_ -pinned sets, i.e. _Z_ -stabilizers which have even overlap with _X_ -logical operators by definition. Overlaps involving more than one _X_ -logical operator do not have such guarantees in general. Focusing on the case _ℓ_ = 3, given the two propositions above the only problematic conditions are the ones of type (mod 2) _._ (58) ��� _L_ _j_ _∧_ _L_ _k ∧_ _G_ _ℓ_ ��� = 0 In order for these terms to hold, one has to have that the intersection of two _X_ -logical operators is always a _Z_ -logical operator. This is the case for example for euclidean color codes. In Sections V-C and V-D we show how to use the multiorthogonality properties of pinned-sets to get quantum codes with interesting transversal gates from any pin code relation. Another approach would be to restrict the pin code relations in order to devise subfamilies of quantum pin codes for which the condition (58) is fulfilled. _E._ _Boundaries_ _and_ _free_ _pins_ The geometrical notion of colored boundaries existing for color codes can also be generalized to pin codes. The way to do this is to introduce a specific type of pins which will be called _free_ _pins_ . Consider the chain complex approach to building pin code relations presented in Sec. II-F3. In this construction, it is sometimes necessary to add a rank-0 pin _b_ 0 (in the level _L_ 0) or a rank- _D_ pin _bD_ (in the level _LD_ ) in order to ensure that the relation _F_ is a pin code relation. The new pin _b_ 0 is linked to all the rank-1 pins which previously where linked to an odd number of rank-0 pins. So even if the initial boundary relation is sparse, the number of connections to _b_ 0 may be large. As such the 1-pinned set pinned by this new pin _b_ 0 potentially contains a large number of flags. To keep the size of the 1pinned sets under control it is then preferable to not allow to pin _b_ 0 alone. That is why we then call _b_ 0 a free pin. Any of the _D_ + 1 levels can contain free pins, the chain complex construction potentially put one in _L_ 0 and one in _LD_ . The rule for a larger collection of pins is that if it contains at least one non-free pin then it can define a valid pinned set, but if it is composed of only free pins then it is disregarded. Finally consider when a flag is only composed of free pins, in that case this flag will not enter any valid pinned sets. Hence such flags must also be discarded. This is summarized in the following definition. Definition 7 (Pin code with free pins) . _Let_ _F_ _be_ _a_ _pin_ _code_ _relation_ _defined_ _on_ _D_ + 1 _levels_ _of_ _pins._ _Let_ _some_ _of_ _the_ _pins_ _be_ _labeled_ _as_ _free_ _pins._ _Let_ _x_ _and_ _z_ _be_ _two_ _natural_ _integers_ _such that x_ + _z_ _≤_ _D. The associated_ ( _x, z_ ) _-pin code is defined_ _as follows: The elements of F_ _containing at least one non-free_ _pin_ _are_ _associated_ _with_ _qubits._ _All_ _the_ _x-pinned_ _sets_ _defined_ _by a collection of pins containing at least one non-free pin are_ _associated_ _with_ _X-stabilizer_ _generators._ _All_ _the_ _z-pinned_ _sets_ _defined by a collection of pins containing at least one non-free_ _pin_ _are_ _associated_ _with_ _Z-stabilizer_ _generators._ As examples we give a representation of Steane’s �7 _,_ 1 _,_ 3� incode and theFigure 6. �4 _,_ 2 _,_ 2� code as a (1 _,_ 1)-pin codes with free pins One idea to introduce free pins in every level could be to consider boundary map matrices which are almost sparse from a chain complex with free pins. There are three levels represented by theFig. 6. (Left) Representation of Steane’s �7 _,_ 1 _,_ 3� code as a (1 _,_ 1)-pin code colors red green and blue. The free pins are represented between parenthesis. There are 8 flags (all the paths going down from top to bottom) but one is composed only of free pins hence only 7 qubits. There are three nonfree pins defining three 1-pinned sets for both _X_ - and _Z_ -stabilizers. (Right) areRepresentation of thefour flags (all the �4paths _,_ 2 _,_ 2�goingcode as adown (1from _,_ 1)-pin code with free pins. Theretop to bottom), and a single non-free pin defining the _X_ - and _Z_ -stabilizer both containing the four flags. 9 0 1 8 2 3 7 6 5 4 7 3 4 5 6 (a) 2 8 1 0 9 (b) (c) Fig.symmetry.7. (a)The�8 _,_ 2octahedron _,_ 2� color codeis topologicallyon the projectivea sphereplanewhichbasedcan beon turnedoctahedralinto thea projectiveprojectiveplaneplanebybasedidentifyingdodecahedraloppositesymmetry.sides. (b) (c)�603-colored _,_ 2 _,_ 6� colorhyperboliccode on tiling with edges and vertices forming a 3-valent graph. except for a small number of row or columns which could be dense. The basis element corresponding to these would then be labeled as free pins in the construction of the pin code relation. Note that in the presence of free pins, the proof of Prop. 10 can only be reproduced when at least one level selected by the chosen type _T_ does not contain any free pin. So as long as at least one level does not contain any free pin, it still holds that all logical operators have even weight. When all levels contain at least one free pin then the code may contain odd weight logical operators. The notion of free pins carries over straightforwardly to gauge pin codes. V. EXAMPLES AND APPLICATIONS _A._ _Coxeter_ _groups,_ _hyperbolic_ _color_ _codes_ In Section II-F1 we discussed the construction of pin codes from tilings and Coxeter groups. Well-known examples of such code families are color codes on euclidean tilings such as the hexagonal tiling in 2D and the bitruncated cubic honeycomb in 3D. Using the Wythoff construction we can construct tilings which fulfill right pin code condition and therefore have the correct colorability for defining a color code. Besides the known euclidean examples we can consider tilings of more exotic spaces. For the projective plane (cf. [7]) there exist two tilings based on the Wythoff construction: The first is based on the symmetry group of an octahedron. It is an �8 _,_ 2 _,_ 2� -code where the check generators correspond to one octagon, two red squares and two green squares, see Figure 7a. Note that this code does not quite fit the pin code definition because it contains distinct qubits which would be described by the same flag, for example ( _d, c, a_ ) on edge 1. This degeneracy explains why it escapes Prop. 11. The second is based on the icosahedral symmetry group, which gives a 10a �60hexagons _,_ 2 _,_ 6� -code(green)withandchecks15 squaresgiven(red),by 6seedecagonsFigure 7b.(blue), Color codes based on two-dimensional hyperbolic tilings were first considered in [52] were 3-colorability and 3-valence was postulated (see Figure 7c for an example). The Wythoff construction of Section II-F1 allows us to obtain color codes from arbitrary regular tilings of closed hyperbolic surfaces. To define a family of closed surfaces one needs to compactify the infinite lattice as explained in [53]. There are infinitely many regular tilings of 2D hyperbolic space. The lowest weight achievable with our construction is 4.8.10, meaning that checks are squares, octagons and dodecagons. The smallest code in this family isorientable hyperbolic surface (cf. �Table120 _,_ 103.1 _,_ 6in� based on a non-[54]). Another smallweightexample4 and 10is abased�160 _,_ 20on _,_ 8a �4.10.10code withtilingstabilizerof an orientablechecks of hyperbolic surface of genus 10. Using the construction outlined in Section II-F1 we can consider any _D_ -dimensional hyperbolic reflection group and obtain a tiling which is _D_ + 1-colorable and which has a _D_ + 1-valent graph. In particular, we can consider hyperbolic tilings in 3D which are 4-colorable. There exist four regular hyperbolic tilings in 3D of which two are self-dual tilings and two related by duality. The self-dual ones are a tiling by dodecahedra, denoted _{_ 5 _,_ 3 _,_ 5 _}_, and one by icosahedra, denoted _{_ 3 _,_ 5 _,_ 3 _}_ . The other are a tiling by cubes _{_ 4 _,_ 3 _,_ 5 _}_ and its dual _{_ 5 _,_ 3 _,_ 4 _}_ . All of these give rise to codes with maximum stabilizer weight 120. Here we will focus on the _{_ 5 _,_ 3 _,_ 5 _}_ -tiling, which is the unique self-dual tiling of space by dodecahedra where five dodecahedra are placed around an edge. Performing the Wythoff construction on a family of closed manifolds, all equipped with a _{_ 5 _,_ 3 _,_ 5 _}_ -tiling yields a code family where checks are of weight 20 and 120. The weight of the stabilizer is given by the order of the subgroup of the full reflection group which is generated by all except for one of the generators. The smallest example is a �7200 _,_ 5526 _,_ 4� code. _B._ _Pin_ _codes_ _from_ _chain_ _complexes_ In Sec. II-F3 we showed how from any F2 chain complex one can construct a pin code relation. In this section we explore some specific examples of chain complexes and the corresponding pin codes. One way to obtain arbitrary length chain complexes is to use repeatedly the hypergraph product with a classical code. The hypergraph product was introduced in [15] as a way to turn any two classical codes into a quantum code. This product can be viewed as the tensor product of chain complexes, which takes two length-2 chain complexes to a length-3 chain complex. More generally the product of a length- _k_ 1 and length- _k_ 2 chain complexes yields a length-( _k_ 1 + _k_ 2 _−_ 1) chain complex. This generalization and its characteristics has been studied in the context of homological codes [16], [55], [56]. We consider here the approach of [56] but look at the resulting chain complexes from the point of view of pin codes. The idea goes as follows: consider _A_, a F2 chain complex of length _k_, characterized by F2-vector spaces ( _Aj_ )0 _≤j≤k−_ 1 and ( _k −_ 1) boundary maps _∂j_ <sup>_A_</sup> <sup>:</sup> <sup>_Aj_</sup> <sup>_→Aj−_</sup> <sup>1,</sup> <sup>obeying</sup> <sup>(21).</sup> We now take the product with a chain complex of length 2. Note that any two vector spaces, _B_ 1 and _B_ 0 and any linear map between them _∂_ <sup>_B_</sup> : _B_ 1 _→B_ 0 defines a length-2 chain complex. The product, _C_ = _A_ _⊗B_, is defined by ( _k_ + 1) vector spaces _Cj_ for 0 _≤_ _j_ _≤_ _k_, _Cj_ = ( _B_ 1 _⊗Aj−_ 1) _⊕_ ( _B_ 0 _⊗Aj_ ) _,_ (59) with the convention that _A−_ 1 and _Ak_ are both the zero vector spaces. And the _k_ boundary maps, _∂j_ <sup>_C_</sup> <sup>:</sup> <sup>_Cj_</sup> <sup>_→Cj−_</sup> <sup>1, are defined</sup> as _∀u_ = _v ⊕_ _w_ _∈_ ( _B_ 1 _⊗Aj−_ 1) _⊕_ ( _B_ 0 _⊗Aj_ ) 10 <sup>2</sup> 10 <sup>1</sup> _D_ = 2 _D_ = 3 _D_ = 6 _d_ = 4 _d_ = 6 _d_ = 8 _d_ = 16 _j_ <sup>_C_</sup> <sup>(</sup> <sup>_u_</sup> <sup>) = (1</sup> <sup>_B_</sup> 1 <sup>_⊗_</sup> <sup>_∂_</sup> _j_ <sup>_A_</sup> _∂j_ <sup>_C_</sup> _j_ <sup>_A_</sup> _−_ 1 <sup>+</sup> <sup>_∂B ⊗_</sup> <sup>1</sup> <sup>_A_</sup> _j−_ 1 <sup>)(</sup> <sup>_v_</sup> <sup>) + (1</sup> <sup>_B_</sup> 0 <sup>_⊗_</sup> <sup>_∂_</sup> _j_ <sup>_A_</sup> _j_ <sup>_A_</sup> <sup>)(</sup> <sup>_w_</sup> <sup>)</sup> <sup>_._</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> n Fig. 9. Plot of the maximum _X_ -stabilizer weight of the pin codes from chain complexes described in this section. Prop. 11. A few of them seem to reach distance 6 or 8 but for significantly smaller rates. The codes yielding no logical qubits are not displayed in this plot. Note that this procedure is far from generating all chain complex of a given length. As a comparison note that in [57] one can find codes with parameters such as �104 _,_ 52 _,_ 10�, �104 _,_ 26 _,_ 15� or �(1104 _/_ 2, _,_ 1 13 _/,_ 4 19 and�. 1This _/_ 8) the distance can be higher. Although theseis to illustrate that even at these high rates codes have larger stabilizer weights. We have also looked at a few pin code relations for _D_ = 6 using small even size levels and the complete relation for _F_ . Three notable examples are presented in Table. VI. When writing 2 <sup>_×_</sup> <sup>6</sup> _×_ 4 we mean that 6 of the levels contain each 2 pins and the last one contains 4. Since we use the complete relation, the number of flags and the size of the pinned sets are easily computed as a product of the size of some levels. The number of logical qubits is computed numerically and for the distance we numerically found low-weight logical operators matching the lower bound of Prop. 11. All these examples give a good indication that the lower bound on the distance is tight. TABLE VI PARAMETERS OF SOME _D_ = 6 PIN CODES USING THE COMPLETE RELATION DESCRIBED BY THE SIZE OF THE _D_ + 1 = 7 LEVELS. ( _x, z_ ) 2 <sup>_×_</sup> <sup>6</sup> _×_ 4 2 <sup>_×_</sup> <sup>5</sup> _×_ 4 <sup>_×_</sup> <sup>2</sup> 2 <sup>_×_</sup> <sup>4</sup> _×_ 4 <sup>_×_</sup> <sup>3</sup> (2 _,_ 4) �256 _,_ 30 _,_ 8� �512 _,_ 120 _,_ 8� �1024 _,_ 358 _,_ 8� (3 _,_ 3) �256 _,_ 40 _,_ 16� �512 _,_ 160 _,_ 16� �1024 _,_ 472 _,_ 16� We also represent the maximum weight of the _X_ -stabilizers for these codes in Fig. 9. When checking for transversal phase gates for _ℓ_ = 3, most of the codes examined above do not satisfy (58). _C._ _Puncturing_ _triply-even_ _spaces_ If pin codes in general are not guaranteed to fulfill all the requirements of Prop. 8 or Prop. 9, their stabilizers always form multi-orthogonal spaces, see Prop. 13. This is directly useful as multi-orthogonal spaces together with puncturing (60) One straightforwardly checks that the _∂j_ <sup>_C_</sup> <sup>are</sup> <sup>valid</sup> <sup>boundary</sup> maps, i.e. obeying (21). Repeatedly taking the product with a length-2 chain complex therefore increase the length of the resulting chain complex each time by one. Moreover any binary matrix defines a valid F2 chain complex of length 2 so this approach allows to explore numerically many pin codes. 10 <sup>4</sup> 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> _D_ = 2 _D_ = 3 _D_ = 6 _d_ = 4 _d_ = 6 _d_ = 8 _d_ = 16 1 _/_ 2 rate 1 _/_ 8 rate 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> n Fig.described8. Plotin thisof thesection.� _n, k, d_ One� parametersapplication ofof pinthe codeshypergraphfrom productchain complexeson 3 _×_ 4 binary matrices yields the _D_ = 2 pin codes represented by ‘ _×_ ’ and two applications the _D_ = 3 pin codes represented by ‘+’. The _D_ = 6 pin codes described in Table. VI are represented by stars. The colors indicate the distance of the codes. The dashed and dotted lines represent the rates _k/n_ = 1 _/_ 2 and _k/n_ = 1 _/_ 8, respectively. We have looked at small binary matrices, up to 3 _×_ 4, and their self product to form pin code relations with _D_ = 2 and _D_ = 3. We plot in Fig. 8 the code parameters obtained ing instances of low-weight logical operators. Strinkingly these� _n, k, d_ �. The distance is upper-bounded by numerically findcodes seem to show a general trend of high encoding rate _k/n_ for a small distance. Indeed most of them are around 1 _/_ 2 rate but just distance 4 which is the lower bound guaranteed by Fig. 10. Some possible variations on Reed-Muller codes seen as pin codes on a chain complexes, by modifying the ends of the chain complex, the left most chain complex is used to define Reed-Muller codes. Each row of dots represent a level and the relation _F_ is given by all paths going down from top to bottom. Example of dimension 6 are shown here, making variations on _RM_ (2 _,_ 7). The number of flags is written above each chain complex and an identification number is given below. techniques can be used to construct codes fulfilling Prop. 9 (or Prop. 8 if the space is multi-even), see Section III-C. We focus here on 3-even spaces (Def. 5) and 3-orthogonal spaces (Def. 6) also referred to as triply-even spaces and triorthogonal spaces respectively. In [37], the authors use Reed-Muller codes, _RM_ ( _r, m_ ), to obtain initial tri-orthogonal spaces (also triply-even). Viewed as generated by pinned-set, _RM_ ( _r, m_ ) comes from a simple chain complex, represented on the left of Figure 10, see also Section II-D. This chain complex can be modified in several ways to obtain different pin codes. We tried different modifications in the case _D_ = 6, they are represented in Figure 10. For all of them the 2-pinned sets generate a triplyeven space. We tried to randomly puncture the pin codes obtained from these chain complexes; similarly to [37] but without deploying the more advanced techniques. We were able to find a few interesting codes this way, see Table VII, which can be used to distill _T_ magic states. The obtained parameters _γ_, see (41), are similar but do not improve on the small examples found in [37]. TABLE VII SOME TRI-ORTHOGONAL CODES FOUND BY RANDOMLY PUNCTURING THE PIN CODES REPRESENTED IN FIGURE 10. <u>code</u> <u>#</u> <u>initial</u> _n_ _γ_ = <sup><u>ln(</u></sup> <u>ln</u> <sup>_<u>n/k</u>_</sup> _<u>d</u>_ <sup><u>)</u></sup> <u>punctured</u> <u>code:</u> <u>�</u> _n, k, d_ <u>�</u> 0 128 �116 _,_ 12 _,_ 4� 1 _._ 64 1 192 �175 _,_ 17 _,_ 4� 1 _._ 68 2 256 �236 _,_ 20 _,_ 4� 1 _._ 78 3 288 �261 _,_ 27 _,_ 4� 1 _._ 64 4 512 �466 _,_ 46 _,_ 4� 1 _._ 67 TABLE VIII ALTERNATIVE CONSTRUCTION OF CSS CODES WITH TRANSVERSAL _T_ IMPLEMENTING SOME CIRCUIT OF CC _Z_ GATES ON THE LOGICAL LEVEL. _D_ = 5 _, x_ = 2 _D_ = 8 _, x_ = 3 �64 _,_ 15 _,_ 4� �512 _,_ 84 _,_ 8� �96 _,_ 23 _,_ 4� �768 _,_ 126 _,_ 8� �128 _,_ 31 _,_ 4� �1024 _,_ 168 _,_ 8� �144 _,_ 35 _,_ 4� �1152 _,_ 188 _,_ 8� �256 _,_ 63 _,_ 4� �2048 _,_ 332 _,_ 8� _D._ _Logical_ _circuits_ _of_ _CCZs_ It is also possible to use the property of multi-orthogonality of pinned sets on a given pin code relation in a slightly different way. The construction proposed for Reed-Muller codes in [23] can be directly adapted to general pin code relations. Proposition 15. _Let_ _ℓ>_ 1 _and_ _x >_ 1 _be_ _two_ _integers_ _and_ _F_ _be a pin code relation on xℓ_ _sets (D_ = _xℓ_ _−_ 1 _). The CSS code_ _defined_ _by_ ( _x −_ 1) _-pinned_ _sets_ _as_ _X-stabilizer_ _generators_ _and_ _x-pinned_ _sets_ _as_ _X-logical_ _operators_ _satisfies_ _Proposition_ _9._ _Proof:_ We need for the condition ( _i_ ) to verify first that the ( _x −_ 1)-pinned sets form a _ℓ_ -orthogonal space. According to Proposition 13, they form a - _<u>D</u>_ �-orthogonal space and _x−_ 1 Hence ( _i_ ) is satisfied. For the condition ( _ii_ ) we use the intersection property (Prop. 1): Taking two integers _s_ and _t_ such that _s_ _≥_ 1, _t_ _≥_ 1 and _s_ + _t_ _≤_ _ℓ_, the intersection of _s_ _x_ -pinned sets with _t_ ( _x −_ 1)-pinned sets, gives a pinned sets with at most ( _ℓ_ _−_ 1) _x_ + ( _x −_ 1) = _xℓ_ _−_ 1 = _D_ pins. Since _F_ is a pin code relation _D_ -pinned sets are always even. This proves ( _ii_ ). Note that the parameters _D_ and _x_ where chosen not only to obtain a code guaranteed to satisfy Prop. 9 but also where the logical operation realized belongs strictly to the level _ℓ_ of the Clifford hierarchy because some intersections of _ℓX_ -logical operators will be exactly one. Indeed _X_ -logical operators are _x_ -pinned sets so intersecting _ℓ_ of them can give (among other things) any pinned set with _xℓ_ = _D_ + 1 pins which are either empty or singletons of one flag. We can for example adapt the pin code relations presented in Fig. 10 to have the correct dimension _D_ by inserting or removing levels of size 2 in the middle of the chain complexes and look at what code parameters they give. These parameters are compiled in Table. VIII, for _D_ = 5 we remove the middle level and for _D_ = 8 we add two levels of size 2 compared to Fig. 10. All these codes support the transversal _T_ and up to a Clifford correction the logical operation implemented is some circuit of CC _Z_ s characterized by which triple of _X_ -logical operators have an odd overlap. VI. DISCUSSION Quantum pin codes form a large family of CSS codes which we have just begun to explore. These codes can be viewed as - _<u>D</u>_ _x−_ 1 to Proposition 13, they form a - _<u>D</u>_ �-orthogonal space and _x−_ 1 we can compute - _<u>D</u>_ _x −_ 1 = - _<u>xℓ</u>_ _<u>−</u>_ <u>1</u> _x −_ 1 = - _ℓ_ + <sup>_<u>ℓ</u>_</sup> <sup>_<u>−</u>_</sup> <sup><u>1</u></sup> _x −_ 1 _≥_ _ℓ._ (61) a vast generalization of quantum color codes and the notions of boundaries, colored logical operators and shrunk lattices all generalize to pin codes. Pin codes also have a gauge code version with potentially similar advantage as the gauge color codes. The main property of pin codes is that their _X_ - and _Z_ stabilizers form multi-orthogonal spaces. We have presented two concrete ways of constructing pin codes and numerically explored some examples. Several aspects of pin codes merit further studying. First is finding restricted families with good parameters and LDPC property. Exploring other finite groups with even order generators, other families of sparse chain complexes or finding other constructions of pin code relations altogether would help figuring out the achievable parameters for pin codes. Second one concerns logical operators. Understanding if some conditions on the pin code relation _F_ can make the logical operators fulfill the second condition of Prop. 8 or Prop. 9 would help in the design of codes with transversal gates. Also, logical operators and boundaries of 2D color codes have a richer structure than the colored logical operators and boundaries that we have explored, it would be interesting to generalize to pin codes with _D_ = 2 all the ones presented in [58], as well as for larger _D_ . Moreover, the structure of colored logical operators plays a key role in decoding color codes [46]–[49]. Understanding if it can help in finding efficient decoders for more general pin codes is a natural question. Finally more extensively exploring tri-orthogonal spaces obtained from pin code relations and puncturing them to obtain good _T_ distillation protocols as well as using them as the basis for _T_ -to-CC _Z_ or other protocols seems promising, as distilling magic state will constitute a sizable fraction of any fault-tolerant quantum computation. APPENDIX A PROOFS OF SECTION III This Appendix contains examples and proofs omitted in Section III. We first restate and prove Lemma 1: Lemma 1 (Binary addition and integer addition) . _Denote_ _binary_ _addition_ _with_ _⊕_ _and_ _integer_ _addition_ _with_ + _or_ <sup>�</sup> _._ _Given_ _r_ _binary_ _vectors_ _w_ <sup>1</sup> _, . . .,_ _w_ <sup>_r_</sup> _∈_ F <sup>_n_</sup> 2 <sup>_it_</sup> <sup>_holds_</sup> <sup>_that_</sup> which can also be computed in the following way       0 0 1 1 0 0 0 1     <sup>+</sup>            (65)             (66)   (66)    <sup>+</sup>    0 1 1 1 0 0 1 1      <sup>+</sup>     <sup>+</sup>    0 0 0 1 0 0 0 1 _−_ 2     0 1 0 1        (67)  <sup>_._</sup>     =  +4 0 0 0 1 _Proof:_ Since the Hamming weight of a binary vector is simply the integer sum of its components we immediately have that (62) _⇒_ (63). Moreover since the operations in (62) are component-wise operations it is sufficient to prove it for _r_ binary numbers _w_ <sup>1</sup> _, . . ., w_ <sup>_r_</sup> _∈_ F2. One directly checks that for _r_ = 2 _w_ <sup>1</sup> _⊕_ _w_ <sup>2</sup> = _w_ <sup>1</sup> + _w_ <sup>2</sup> _−_ 2 _w_ <sup>1</sup> _∧_ _w_ <sup>2</sup> _._ (68) By induction suppose that (62) holds for some _r_ _≥_ 2, then we have _r_ +1 _m_ =1 _w_ <sup>_m_</sup> = = = = _⊕_ _w_ <sup>_r_</sup> <sup>+1</sup> + _w_ <sup>_r_</sup> <sup>+1</sup> _−_ 2 - _r_ - _w_ <sup>_m_</sup> _m_ =1 - _r_ - _w_ <sup>_m_</sup> _m_ =1 _r_ +1 �( _−_ 2) <sup>_s−_</sup> <sup>1</sup> - _r_ _m_ =1 - _s_ _w_ <sup>_m_</sup> _∧_ _w_ <sup>_r_</sup> <sup>+1</sup> _w_ <sup>_mi_</sup> + _w_ <sup>_r_</sup> <sup>+1</sup> _r_ �( _−_ 2) <sup>_s−_</sup> <sup>1</sup> _s_ =1 _−_ 2   _r_ �( _−_ 2) <sup>_s−_</sup> <sup>1</sup> _r_ _s_ =1 1 _≤m_ 1 _<···<ms≤r_ _i_ =1 1 _≤m_ 1 _<···<ms≤r_ _w_ <sup>_mi_</sup>   _∧_ _w_ <sup>_r_</sup> <sup>+1</sup> - _s_ _i_ =1 _w_ <sup>_mi_</sup> _,_ (69) _s_ =1 1 _≤m_ 1 _<···<ms≤r_ +1 - _s_ _i_ =1 _r_ _m_ =1 1 _≤m_ 1 _<···<ms≤r_ - _s_ _i_ =1 _w_ <sup>_mi_</sup> _._ (62) _w_ <sup>_m_</sup> = _r_ �( _−_ 2) <sup>_s−_</sup> <sup>1</sup> _r_ _s_ =1 _Similarly_ _for_ _their_ _Hamming_ _weights_ ����� _r_ _m_ =1 _r_ _s_ =1 - _s_ _w_ <sup>_mi_</sup> _i_ =1 where we first used (68) then the induction hypothesis then the distributivity of _∧_ . We can now restate and prove Proposition 6: Proposition 6 (Characterization of multi-even spaces) . _Given_ _ℓ_ _∈_ N _,_ _a_ _subspace_ _C_ _⊂_ F <sup>_n_</sup> 2 <sup>_is_</sup> <sup>_ℓ-even_</sup> <sup>_if_</sup> <sup>_and_</sup> <sup>_only_</sup> <sup>_if_</sup> _for_ _any_ _integer_ _s_ _∈{_ 1 _, . . ., ℓ}_ _and_ _any_ _s-tuple_ _of_ _vectors,_ ( _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_s_</sup> ) _∈C_ <sup>_s_</sup> _,_ _it_ _holds_ _that_ �� _v_ 1 _∧· · · ∧_ _v_ _s_ �� = 0 (mod 2 <sup>_ℓ−s_</sup> <sup>+1</sup> ) _._ (70) _Proof:_ The characterization given in Proposition 6 implies the one given in Definition 5, hence it suffice to prove the converse. The case _s_ = 1 is trivially verified, now suppose that for some 1 _≤_ _s < ℓ_ one has for all _t ≤_ _s_ and all ( _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_t_</sup> ) _∈_ _C_ <sup>_t_</sup> �� _v_ 1 _∧· · · ∧_ _v_ _t_ �� = 0 (mod 2 <sup>_ℓ−t_</sup> <sup>+1</sup> ) _._ (71) 1 _≤m_ 1 _<···<ms≤r_ ����� (63) ����� _._ _w_ <sup>_m_</sup> ����� = _r_ �( _−_ 2) <sup>_s−_</sup> <sup>1</sup> It can be useful to work out an example for (62) and (63), here is one with _r_ = 3 and _n_ = 4      0 0 1 1     <sup>_⊕_</sup>      0 1 0 1   (64)  <sup>_,_</sup> 0 0 0 1     <sup>_⊕_</sup>     <sup>=</sup>       0 1 1 1 Take _s_ + 1 vectors ( _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_s_</sup> <sup>+1</sup> ) _∈C_ <sup>_s_</sup> <sup>+1</sup>, using (63) from Lemma 1 we can write of _Rℓ_ on code states. Using identity (27) and denoting _L_ <sup>_m_</sup> as the _m_ <sup>th</sup> row of matrix _L_ and _G_ <sup>_n_</sup> as the _n_ <sup>th</sup> row of matrix _G_ we can write _Fℓ_ ( _x_ ) = _|_ _x_ _L|_ _s_ +1 _m_ =1 ( _−_ 2) <sup>_s_</sup> <sup>��</sup> _v_ <sup>1</sup> _∧· · · ∧_ _v_ <sup>_s_</sup> <sup>+1��</sup> = ����� _w_ <sup>_m_</sup> ����� 1 _≤mi≤k_ ����� _xmi,_ (75) _ynj_ _,_ (76) - _u_ _i_ =1 1 _≤m_ 1 _<···<mu≤s_ +1 _s_ _i_ =1 ����� _ℓ_ �( _−_ 2) <sup>_s−_</sup> <sup>1</sup> _ℓ_ _s_ =1 _L_ <sup>_mi_</sup> _−_ _s_ _u_ =1 ( _−_ 2) <sup>_u−_</sup> <sup>1</sup> _w_ <sup>_mi_</sup> = ����� ����� _i_ �=1 _s_ ����� =0 _−_ 0 (mod 2 <sup>_ℓ_</sup> ) _,_ (72) using (71) to verify the divisibility by 2 <sup>_ℓ_</sup> of the second part. Hence we have �� _v_ 1 _∧· · · ∧_ _v_ _s_ +1�� = 0 (mod 2 <sup>_ℓ−s_</sup> ) _._ (73) Finally we restate and prove Proposition 7: Proposition 7 (multi-even/orthogonal space verification on a basis) . _It is necessary and sufficient to verify_ (26) _or_ (29) _on a_ _basis_ _to_ _ensure_ _that_ _a_ _space_ _is_ _multi-even_ _or_ _multi-orthogonal_ _respectively._ _Proof:_ As basis vectors belong to the space it is immediate to check that they necessarily verify (26) or (29) respectively, if the space is multi-even or multi-orthogonal respectively. The sufficient proof for both the multi-even and multi-orthogonal cases relies on decomposing vectors over the basis _B_ = - _b_ <sup>1</sup> _, . . .,_ _b_ <sup>_m_</sup> <sup>�</sup> which verifies the property (either (26) or (29)) and using (28) several times. Pick _s ∈{_ 1 _, . . ., ℓ}_ and _s_ vectors - _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_s_</sup> <sup>�</sup> _∈C_ <sup>_s_</sup> . Each of the vectors _v_ <sup>_j_</sup> can <sup>_t_</sup> _j_ =1 <sup>_G_</sup> <sup>_nj_</sup> _Fℓ_ <sup>_′_</sup> <sup>(</sup> <sup>_y_</sup> <sup>) =</sup> <sup>_|_</sup> <sup>_y_</sup> <sup>_G|_</sup> 1 _≤nj_ _≤r_ ������ - _t_ _j_ =1 = _ℓ_ �( _−_ 2) <sup>_t−_</sup> <sup>1</sup> _ℓ_ _t_ =1 _G_ <sup>_nj_</sup> ������ _j_ _Fℓ_ <sup>_′′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_,_</sup> <sup>_y_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>2</sup> <sup>_|_</sup> <sup>_x_</sup> <sup>_L ∧_</sup> <sup>_y_</sup> <sup>_G|_</sup> <sup>=</sup> _Fℓ_ <sup>_′′_</sup> _ℓ_ ( _−_ 2) <sup>_s_</sup> <sup>+</sup> <sup>_t−_</sup> <sup>1</sup> _G_ <sup>_nj_</sup> - _t_ _j_ =1 - _t_ _s_ _i_ =1 _xmi_ - _t_ _j_ =1 _ynj_ _._ _s_ + _t_ =2 _s≥_ 1 _, t≥_ 1 1 _≤mi≤k_ 1 _≤nj_ _≤r_ ������ ������ - _s_ _L_ <sup>_mi_</sup> _i_ =1 _j_ =1 - _b_ <sup>1</sup> _, . . .,_ _b_ <sup>_m_</sup> <sup>�</sup> and _s_ vectors - _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_s_</sup> <sup>�</sup> _∈C_ <sup>_s_</sup> . Each of the vectors _v_ <sup>_j_</sup> can be decomposed over _B_ : (77) One can readily see that these are all correctly weighted polynomial, i.e. with a prefactor of 2 <sup>_s−_</sup> <sup>1</sup> in front of monomials of degree _s_, and their coefficients are given by the size of the overlaps between rows of the matrices _L_ or _G_ . We can check that (40) follows from Proposition 9. Indeed, assuming Prop. 9 holds, then ( _i_ ) enforces that all coefficients ���� _jt_ =1 <sup>_G_</sup> <sup>_nj_</sup> ��� are divisible by 2 and ( _ii_ ) that all coefficients ���� _jt_ =1 <sup>_G_</sup> <sup>_nj_</sup> ��� are divisible by 2 and ( _ii_ ) that all coefficients ���� _is_ =1 <sup>_L_</sup> <sup>_mi_</sup> <sup>�</sup> <sup>_t_</sup> _j_ =1 <sup>_G_</sup> <sup>_nj_</sup> ��� also are divisible by 2. Hence we can - _v_ <sup>1</sup> _, . . .,_ _v_ <sup>_s_</sup> <sup>�</sup> _v_ <sup>_j_</sup> = _pj_ _i_ =1 _b_ <sup>_k_</sup> _i_ <sup>_j_</sup> _,_ (74) ���� _is_ =1 <sup>_L_</sup> <sup>_mi_</sup> <sup>�</sup> <sup>_t_</sup> _j_ =1 <sup>_G_</sup> <sup>_nj_</sup> ��� also are divisible by 2. Hence we can pull out a factor 2 in front of everything while keeping the correct prefactor in front of each monomial. where _pj_ is the number of basis elements in the decomposition of _v_ <sup>_j_</sup> over _B_ and the _ki_ <sup>_j_</sup> <sup>their</sup> <sup>indices.</sup> <sup>We</sup> <sup>can</sup> <sup>now</sup> <sup>rewrite</sup> <sup>the</sup> Hamming weight of the element-wise product by using the decomposition of the _v_ <sup>_j_</sup> and (28) one after the other. This is done in (78). Considering expression (78), the case of the multiorthogonal property is the most straightforward. In this case we assume that (29) holds for the elements of _B_ and choose _s_ = _ℓ_ . Elements of the sum in (78) with _ℓ_ basis vector in the elementwise product will be even by (29) and the other elements have a prefactor of two. This proves that �� _v_ 1 _∧· · · ∧_ _v_ _ℓ_ �� = 0 (mod 2) and that the space is _ℓ_ -orthogonal. For the case of the multi-even property, we assume that (26) holds for the elements of _B_ . Elements of the sum in (78) where <sup>�</sup> _qj_ _≤_ _ℓ_ have a Hamming weight for the element-wise product which is zero modulo 2 <sup>_ℓ−_</sup> <sup>�</sup> <sup>_qj_</sup> <sup>+1</sup> by (26). Moreover they are multiplied by 2� _qj_ _−s_ and hence are zero modulo 2 <sup>_ℓ−s_</sup> <sup>+1</sup> . The other terms have a prefactor of 2 <sup>_ℓ−s_</sup> <sup>+1</sup> . Hence �� _v_ 1 _∧· · · ∧_ _v_ _s_ �� = 0 (mod 2 _ℓ−s_ +1) and the space is _ℓ_ -even. APPENDIX B QUASI-TRANSVERSALITY In this appendix we detail the three weighted polynomial in (36), (37) and eq:Flxy which determine the transversal action ACKNOWLEDGMENT C.V. would like to thank B. Audoux, E.T. Campbell and L.P. Pryadko for fruitful discussions at different stages of this project. C.V. acknowledge support by the European Research Council (EQEC, ERC Consolidator Grant No: 682726) as well as a QuantERA grant for the QCDA consortium. NPB is supported by the UCLQ fellowship. REFERENCES [1] E. T. Campbell, B. M. Terhal, and C. Vuillot, “Roads towards fault-tolerant universal quantum computation,” _Nature_, vol. 549, no. 7671, pp. 172–179, Sep. 2017. [Online]. Available: [https:](https://www.nature.com/articles/nature23460) [//www.nature.com/articles/nature23460](https://www.nature.com/articles/nature23460) [2] A. R. Calderbank and P. W. Shor, “Good quantum error-correcting codes exist,” _Physical_ _Review_ _A_, vol. 54, no. 2, pp. 1098–1105, Aug. 1996. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.54.1098](https://link.aps.org/doi/10.1103/PhysRevA.54.1098) [3] Steane Andrew, “Multiple-particle interference and quantum error correction,” _Proceedings_ _of_ _the_ _Royal_ _Society_ _of_ _London._ _Series_ _A:_ _Mathematical,_ _Physical_ _and_ _Engineering_ _Sciences_, vol. 452, no. 1954, pp. 2551–2577, Nov. 1996. [Online]. Available: [https:](https://royalsocietypublishing.org/doi/10.1098/rspa.1996.0136) [//royalsocietypublishing.org/doi/10.1098/rspa.1996.0136](https://royalsocietypublishing.org/doi/10.1098/rspa.1996.0136) [4] D. Gottesman, “Stabilizer codes and quantum error correction,” PhD Thesis, California Institute of Technology, Jan. 1997. [5] A. R. Calderbank, E. M. Rains, P. W. Shor, and N. J. A. Sloane, “Quantum error correction via codes over GF(4),” in _Proceedings_ _of_ _IEEE_ _International_ _Symposium_ _on_ _Information_ _Theory_, Jun. 1997, pp. 292–. [6] M. Grassl, T. Beth, and T. Pellizzari, “Codes for the quantum erasure channel,” _Physical_ _Review_ _A_, vol. 56, no. 1, pp. 33–38, Jul. 1997. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.56.33](https://link.aps.org/doi/10.1103/PhysRevA.56.33) �� _v_ 1 _∧_ _v_ 2 _∧· · · ∧_ _v_ _s_ �� = = = ����� _p_ 1 ����� _i_ =1 _b_ <sup>_k_</sup> _i_ <sup>1</sup> _∧_ _v_ <sup>2</sup> _· · · ∧_ _v_ <sup>_s_</sup> _i_ <sup>1</sup> _∧_ _v_ <sup>2</sup> _· · · ∧_ _v_ <sup>_s_</sup> ����� _p_ 1 - ( _−_ 2) <sup>_q_</sup> <sup>1</sup> <sup>_−_</sup> <sup>1</sup> _q_ 1 _r_ =1 _k_ <sup>1</sup> ����� _b_ _m_ <sup>1</sup> <sup>1</sup> _r_ _∧_ _v_ <sup>2</sup> _· · · ∧_ _v_ <sup>_s_</sup> _q_ 1=1 _p_ 1 _,...,ps_ ( _−_ 2)� _sj_ =1 <sup>(</sup> <sup>_qj_</sup> <sup>_−_</sup> <sup>1)</sup> _b_ 1 _≤m_ <sup>1</sup> 1 <sup>_<···<m_</sup> <sup>1</sup> _q_ 1 <sup>_≤p_</sup> <sup>1</sup> ����� _q_ 1 _r_ =1 (78) ����� _._ _k_ <sup>1</sup> _qs_ _r_ =1 _b_ <sup>_k_</sup> _m_ <sup>_s_</sup> <sup>_s_</sup> _r_ <sup>1</sup> _m_ <sup>1</sup> _r_ _∧· · ·_ _q_ 1 _,...,qs_ =1 [7] M. H. Freedman and D. A. Meyer, “Projective Plane and Planar Quantum Codes,” _Foundations_ _of_ _Computational_ _Mathematics_, vol. 1, no. 3, pp. 325–332, Jul. 2001. [Online]. Available: [https://doi.org/10.](https://doi.org/10.1007/s102080010013) [1007/s102080010013](https://doi.org/10.1007/s102080010013) [8] M. H. Freedman, D. A. Meyer, and F. Luo, “$Z <u>2$-systolic</u> freedom and quantum codes,” in _Mathematics_ _of_ _quantum_ _computation_, ser. Computational Mathematics, R. K. Brylinski and G. Chen, Eds. Boca Raton, FL: Chapman & Hall/CRC, 2002, no. 3, pp. 287–320. [9] A. Y. Kitaev, “Fault-tolerant quantum computation by anyons,” _Annals_ _of_ _Physics_, vol. 303, no. 1, pp. 2–30, Jan. 2003. [Online]. Available: [http://www.sciencedirect.com/science/article/pii/S0003491602000180](http://www.sciencedirect.com/science/article/pii/S0003491602000180) [10] D. Bacon, “Operator quantum error-correcting subsystems for self correcting quantum memories,” _Physical_ _Review_ _A_, vol. 73, no. 1, p. 012340, Jan. 2006. [Online]. Available: [https://link.aps.org/doi/10.1103/](https://link.aps.org/doi/10.1103/PhysRevA.73.012340) [PhysRevA.73.012340](https://link.aps.org/doi/10.1103/PhysRevA.73.012340) [11] H. Bombin and M. A. Martin-Delgado, “Topological Quantum Distillation,” _Physical_ _Review_ _Letters_, vol. 97, no. 18, p. 180501, Oct. 2006. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevLett.](https://link.aps.org/doi/10.1103/PhysRevLett.97.180501) [97.180501](https://link.aps.org/doi/10.1103/PhysRevLett.97.180501) [12] A. A. Kovalev and L. P. Pryadko, “Quantum Kronecker sum-product low-density parity-check codes with finite rate,” _Physical_ _Review_ _A_, vol. 88, no. 1, p. 012311, Jul. 2013. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.88.012311](https://link.aps.org/doi/10.1103/PhysRevA.88.012311) [13] A. Couvreur, N. Delfosse, and G. Z´emor, “A Construction of Quantum LDPC Codes From Cayley Graphs,” _IEEE_ _Transactions_ _on_ _Information_ _Theory_, vol. 59, no. 9, pp. 6087–6098, Sep. 2013. [14] L. Guth and A. Lubotzky, “Quantum error correcting codes and 4 dimensional arithmetic hyperbolic manifolds,” _Journal_ _of_ _Mathematical_ _Physics_, vol. 55, no. 8, p. 082202, Aug. 2014. [Online]. Available: [https://aip.scitation.org/doi/10.1063/1.4891487](https://aip.scitation.org/doi/10.1063/1.4891487) [15] J. Tillich and G. Z´emor, “Quantum LDPC Codes With Positive Rate and Minimum Distance Proportional to the Square Root of the Blocklength,” _IEEE_ _Transactions_ _on_ _Information_ _Theory_, vol. 60, no. 2, pp. 1193– 1202, Feb. 2014. [16] B. Audoux and A. Couvreur, “On tensor products of CSS codes,” _Annales_ _de_ _l’Institut_ _Henri_ _Poincar´e_ _D_, vol. 6, no. 2, pp. 239–287, Mar. 2019. [Online]. Available: [https://www.ems-ph.org/journals/show](https://www.ems-ph.org/journals/show_abstract.php?issn=2308-5827&vol=6&iss=2&rank=4) [abstract.php?issn=2308-5827&vol=6&iss=2&rank=4](https://www.ems-ph.org/journals/show_abstract.php?issn=2308-5827&vol=6&iss=2&rank=4) [17] A. Leverrier, J. Tillich, and G. Z´emor, “Quantum Expander Codes,” in _2015_ _IEEE_ _56th_ _Annual_ _Symposium_ _on_ _Foundations_ _of_ _Computer_ _Science_, Oct. 2015, pp. 810–824. [18] S. Bravyi and A. Kitaev, “Universal quantum computation with ideal Clifford gates and noisy ancillas,” _Physical_ _Review_ _A_, vol. 71, no. 2, p. 022316, Feb. 2005. [Online]. Available: [https:](https://link.aps.org/doi/10.1103/PhysRevA.71.022316) [//link.aps.org/doi/10.1103/PhysRevA.71.022316](https://link.aps.org/doi/10.1103/PhysRevA.71.022316) [19] H. Bomb´ın, “Gauge color codes: optimal transversal gates and gauge fixing in topological stabilizer codes,” _New_ _Journal_ _of_ _Physics_, vol. 17, no. 8, p. 083002, Aug. 2015. [Online]. Available: [https://doi.org/10.1088%2F1367-2630%2F17%2F8%2F083002](https://doi.org/10.1088%2F1367-2630%2F17%2F8%2F083002) [20] H. Bombin and M. A. Martin-Delgado, “Exact topological quantum order in _{_ $d=3$ _}_ and beyond: Branyons and brane-net condensates,” _Physical_ _Review_ _B_, vol. 75, no. 7, p. 075103, Feb. 2007. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevB.75.075103](https://link.aps.org/doi/10.1103/PhysRevB.75.075103) [21] A. Steane, “Quantum Reed-Muller codes,” _IEEE_ _Transactions_ _on_ _Infor-_ _mation_ _Theory_, vol. 45, no. 5, pp. 1701–1703, Jul. 1999. [22] L. Zhang and I. Fuss, “Quantum Reed-Muller Codes,” _arXiv:quant-_ _ph/9703045_, Mar. 1997. [23] N. Rengaswamy, R. Calderbank, M. Newman, and H. D. Pfister, “On optimality of css codes for transversal T,” _IEEE_ _Journal_ _on_ _Selected_ _Areas_ _in_ _Information_ _Theory_, vol. 1, no. 2, pp. 499–514, 2020. [24] E. Knill, R. Laflamme, and W. Zurek, “Threshold Accuracy for Quantum Computation,” _arXiv:quant-ph/9610011_, Oct. 1996. [25] P. Sarvepalli and A. Klappenecker, “Nonbinary quantum Reed-Muller codes,” in _Proceedings. International Symposium on Information Theory,_ _2005._ _ISIT_ _2005._, Sep. 2005, pp. 1023–1027. [26] S. Bravyi and J. Haah, “Magic-state distillation with low overhead,” _Physical_ _Review_ _A_, vol. 86, no. 5, p. 052329, Nov. 2012. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.86.052329](https://link.aps.org/doi/10.1103/PhysRevA.86.052329) [27] E. T. Campbell, H. Anwar, and D. E. Browne, “Magic-State Distillation in All Prime Dimensions Using Quantum Reed-Muller Codes,” _Physical_ _Review_ _X_, vol. 2, no. 4, p. 041021, Dec. 2012. [28] A. J. Landahl and C. Cesare, “Complex instruction set computing architecture for performing accurate quantum $Z$ rotations with less magic,” _arXiv:1302.3240_ _[quant-ph]_, Oct. 2013. [29] J. T. Anderson, G. Duclos-Cianci, and D. Poulin, “Fault-Tolerant Con version between the Steane and Reed-Muller Quantum Codes,” _Physical_ _Review_ _Letters_, vol. 113, no. 8, p. 080501, Aug. 2014. [30] A. Kubica and M. E. Beverland, “Universal transversal gates with color codes: A simplified approach,” _Phys._ _Rev._ _A_, vol. 91, no. 3, p. 032330, Mar. 2015. [Online]. Available: [https://link.aps.org/doi/10.](https://link.aps.org/doi/10.1103/PhysRevA.91.032330) [1103/PhysRevA.91.032330](https://link.aps.org/doi/10.1103/PhysRevA.91.032330) [31] H. S. M. Coxeter, _Regular_ _polytopes_ . Courier Corporation, 1973. [32] ——, _Regular polytopes_, 3rd ed. New York: Dover Publications, 1973, open Library ID: OL5436086M. [33] M. W. Davis, _The_ _Geometry_ _and_ _Topology_ _of_ _Coxeter_ _Groups._ _(LMS-_ _32)_ _(London_ _Mathematical_ _Society_ _Monographs)_ . Princeton University Press, Oct. 2007, open Library ID: OL11182953M. [34] J. J. Rotman, _An introduction to homological algebra_ . Springer Science & Business Media, 2008. [35] P. McMullen and E. Schulte, _Abstract_ _Regular_ _Polytopes_, ser. Ency clopedia of Mathematics and its Applications. Cambridge University Press, 2002. [36] E. T. Campbell and M. Howard, “Unified framework for magic state distillation and multiqubit gate synthesis with reduced resource cost,” _Physical_ _Review_ _A_, vol. 95, no. 2, p. 022316, Feb. 2017. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.95.022316](https://link.aps.org/doi/10.1103/PhysRevA.95.022316) [37] J. Haah and M. B. Hastings, “Codes and Protocols for Distilling $T$, controlled-$S$, and Toffoli Gates,” _Quantum_, vol. 2, p. 71, Jun. 2018. [Online]. Available: [https://quantum-journal.org/papers/](https://quantum-journal.org/papers/q-2018-06-07-71/) [q-2018-06-07-71/](https://quantum-journal.org/papers/q-2018-06-07-71/) [38] S. X. Cui, D. Gottesman, and A. Krishna, “Diagonal gates in the Clifford hierarchy,” _Physical_ _Review_ _A_, vol. 95, no. 1, Jan. 2017. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.95.012329](https://link.aps.org/doi/10.1103/PhysRevA.95.012329) [39] C. Jones, “Multilevel distillation of magic states for quantum computing,” _Physical_ _Review_ _A_, vol. 87, no. 4, p. 042305, Apr. 2013. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.](https://link.aps.org/doi/10.1103/PhysRevA.87.042305) [87.042305](https://link.aps.org/doi/10.1103/PhysRevA.87.042305) [40] E. T. Campbell and M. Howard, “Unifying Gate Synthesis and Magic State Distillation,” _Physical_ _Review_ _Letters_, vol. 118, no. 6, p. 060501, Feb. 2017. [Online]. Available: [https://link.aps.org/doi/10.](https://link.aps.org/doi/10.1103/PhysRevLett.118.060501) [1103/PhysRevLett.118.060501](https://link.aps.org/doi/10.1103/PhysRevLett.118.060501) [41] M. B. Hastings and J. Haah, “Distillation with Sublogarithmic Overhead,” _Physical_ _Review_ _Letters_, vol. 120, no. 5, p. 050504, Jan. 2018. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevLett.](https://link.aps.org/doi/10.1103/PhysRevLett.120.050504) [120.050504](https://link.aps.org/doi/10.1103/PhysRevLett.120.050504) [42] J. Haah, M. B. Hastings, D. Poulin, and D. Wecker, “Magic state distillation with low space overhead and optimal asymptotic input 1 _≤m_ <sup>1</sup> 1 <sup>_<···<m_</sup> <sup>1</sup> _q_ 1 <sup>_≤p_</sup> <sup>1</sup> _···_ 1 _≤m_ <sup>_s_</sup> 1 <sup>_<···<ms_</sup> _qs_ <sup>_≤ps_</sup> ����� count,” _Quantum_, vol. 1, p. 31, Oct. 2017. [Online]. Available: [https://quantum-journal.org/papers/q-2017-10-03-31/](https://quantum-journal.org/papers/q-2017-10-03-31/) [43] R. Gallager, “Low-density parity-check codes,” _IRE_ _Transactions_ _on_ _information_ _theory_, vol. 8, no. 1, pp. 21–28, 1962. [44] A. Kubica, B. Yoshida, and F. Pastawski, “Unfolding the color code,” _New_ _Journal_ _of_ _Physics_, vol. 17, no. 8, p. 083026, [Aug. 2015. [Online]. Available: https://doi.org/10.1088%2F1367-2630%](https://doi.org/10.1088%2F1367-2630%2F17%2F8%2F083026) [2F17%2F8%2F083026](https://doi.org/10.1088%2F1367-2630%2F17%2F8%2F083026) [45] A. Bhagoji and P. Sarvepalli, “Equivalence of 2d color codes (without translational symmetry) to surface codes,” in _2015_ _IEEE_ _International_ _Symposium_ _on_ _Information_ _Theory_ _(ISIT)_, Jun. 2015, pp. 1109–1113. [46] A. Kubica and N. Delfosse, “Efficient color code decoders in _d_ _≥_ 2 dimensions from toric code decoders,” _arXiv:1905.07393_ _[quant-ph]_, May 2019, arXiv: 1905.07393. [Online]. Available: [http://arxiv.org/abs/1905.07393](http://arxiv.org/abs/1905.07393) [47] N. Delfosse, “Decoding color codes by projection onto surface codes,” _Physical_ _Review_ _A_, vol. 89, no. 1, p. 012317, Jan. 2014. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.89.012317](https://link.aps.org/doi/10.1103/PhysRevA.89.012317) [48] A. B. Aloshious and P. K. Sarvepalli, “Projecting three-dimensional color codes onto three-dimensional toric codes,” _Physical_ _Review_ _A_, vol. 98, no. 1, p. 012302, Jul. 2018. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevA.98.012302](https://link.aps.org/doi/10.1103/PhysRevA.98.012302) [49] A. Kubica, M. E. Beverland, F. Brand˜ao, J. Preskill, and K. M. Svore, “Three-Dimensional Color Code Thresholds via Statistical-Mechanical Mapping,” _Physical_ _Review_ _Letters_, vol. 120, no. 18, p. 180501, May 2018. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevLett.](https://link.aps.org/doi/10.1103/PhysRevLett.120.180501) [120.180501](https://link.aps.org/doi/10.1103/PhysRevLett.120.180501) [50] D. Poulin, “Stabilizer Formalism for Operator Quantum Error Correction,” _Physical_ _Review_ _Letters_, vol. 95, no. 23, p. 230504, Dec. 2005. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevLett.](https://link.aps.org/doi/10.1103/PhysRevLett.95.230504) [95.230504](https://link.aps.org/doi/10.1103/PhysRevLett.95.230504) [51] H. Bomb´ın, “Single-Shot Fault-Tolerant Quantum Error Correction,” _Physical_ _Review_ _X_, vol. 5, no. 3, p. 031043, Sep. 2015. [Online]. Available: [https://link.aps.org/doi/10.1103/PhysRevX.5.031043](https://link.aps.org/doi/10.1103/PhysRevX.5.031043) [52] N. Delfosse, “Tradeoffs for reliable quantum information storage in surface codes and color codes,” in _2013_ _IEEE_ _International_ _Symposium_ _on_ _Information_ _Theory_, Jul. 2013, pp. 917–921. [53] N. P. Breuckmann and B. M. Terhal, “Constructions and Noise Thresh old of Hyperbolic Surface Codes,” _IEEE_ _Transactions_ _on_ _Information_ _Theory_, vol. 62, no. 6, pp. 3731–3744, Jun. 2016. [54] N. P. Breuckmann, “Homological quantum codes beyond the toric code,” PhD Thesis, RWTH Aachen University, 2017. [Online]. Available: [https://arxiv.org/abs/1802.01520](https://arxiv.org/abs/1802.01520) [55] E. T. Campbell, “A theory of single-shot error correction for adversarial noise,” _Quantum_ _Science_ _and_ _Technology_, vol. 4, no. 2, p. 025006, Feb. 2019. [Online]. Available: [https://doi.org/10.1088%2F2058-9565%](https://doi.org/10.1088%2F2058-9565%2Faafc8f) [2Faafc8f](https://doi.org/10.1088%2F2058-9565%2Faafc8f) [56] W. Zeng and L. P. Pryadko, “Higher-Dimensional Quantum Hypergraph Product Codes with Finite Rates,” _Physical_ _Review_ _Letters_, vol. 122, no. 23, p. 230501, Jun. 2019. [57] M. Grassl, “Bounds on the minimum distance of linear codes and quantum codes,” Online available at [http://www.codetables.de,](http://www.codetables.de) 2007, accessed on 2021-04-26. [58] M. S. Kesselring, F. Pastawski, J. Eisert, and B. J. Brown, “The boundaries and twist defects of the color code and their applications to topological quantum computation,” _Quantum_, vol. 2, p. 101, Oct. 2018. [Online]. Available: [https://quantum-journal.org/papers/](https://quantum-journal.org/papers/q-2018-10-19-101/) [q-2018-10-19-101/](https://quantum-journal.org/papers/q-2018-10-19-101/) Christophe Vuillot received the Ph.D. degree in computer science from TU Delft, Netherlands, in 2020. Since 2021 he is Charg´e de Recherche (junior researcher) at Inria, in Nancy, France. His research focuses on fault-tolerant quantum computation. Nikolas P. Breuckmann obtained the Ph.D. degree at RWTH Aachen University working with Prof. Barbara Terhal on quantum fault-tolerance and quantum complexity theory. He has worked in industry at PsiQuantum, a Bay Area-based start-up building a silicon-photonics-based quantum computer. He holds a UCLQ Research Fellowship at University College London. He is interested in quantum information and related fields.

섹션 본문

섹션 본문이 없습니다.

참고문헌

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