Introduction
Nearly 30 years ago, Kitaev introduced the 2D surface code for finite groups G G G based on the quantum double D ( G ) D(G) D ( G ) [1 ] . This is a framework that incorporates both abelian and non-abelian topological codes. However, as surface codes (as opposed to using braiding to do quantum computing) the main focus in the literature has thus far been on abelian groups. Unfortunately, for 2D Pauli stabilizer codes, including the standard G = Z 2 G = \mathbb{Z}_2 G = Z 2 surface code, constant-depth geometrically local logicals are restricted to be Clifford by the Bravyi-König theorem [2 ] . This means that in order to achieve universal computation one requires additional resources, such as code switching to higher dimensional topological codes that admit transversal non-Clifford gates [3 ] , or non-topological protocols such as magic state distillation or cultivation [4 , 5 ] .
Recently, topological codes that host non-Abelian anyons have become more prominent. Efficient state preparation protocols for such non-Abelian states using sequential circuits or adaptive circuits have been developed [6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 ] , as well as state-of-the-art quantum processors have become mature enough to experimentally realize such non-Abelian states [14 , 15 , 16 , 17 ] . This has motivated the use of non-abelian states as magic states [18 , 19 , 20 ] , and as means to realize non-Clifford gates via generalized lattice surgery for more general groups [21 , 22 ] . Perhaps more surprisingly, such non-Abelian topological codes can also admit non-Clifford (weakly) transversal gates [23 , 24 , 25 ] . As was shown in [24 ] with specific choices of group and boundary conditions, they can encode a logical qubit and realize non-Clifford gates at an arbitrary level of the Clifford hierarchy via constant-depth circuits.
However, QEC for non-abelian codes is challenging, for various reasons. Firstly, there is no abelian stabilizer group, since the standard A v g A_v^g A v g and B p f B_p^f B p f checks do not commute and do not form a group (in particular the B p g B_p^g B p g operators are non-invertible). A generalization of a stabilizer group that closes and has inverses can be constructed for certain groups such as the dihedral groups [24 ] , but is nevertheless non-abelian. Furthermore, the anyon strings of these codes compose based on a non-invertible fusion and thus, unlike standard Pauli strings, do not have inverses – in particular the associated ribbon operators that create a definite anyon type are in general not unitary. This poses a significant challenge for sound and efficient quantum error correction (QEC).
For specific non-abelian codes, such as the twisted quantum double D ( Z 3 , ω I I I ) D(\mathbb{Z}_3,\omega_{\mathrm{III}}) D ( Z 3 , ω III ) of an abelian group with type III cocycle, which is equivalent as a phase of matter to the non-abelian quantum double D ( D 4 ) D(D_4) D ( D 4 ) for the dihedral group of order 8, so-called just-in-time decoders have been developed [19 , 26 ] . However these rely on the spespecific structure of this code that uses a formulation with Z 2 \mathbb{Z}_2 Z 2 as the underlying group. For more general codes such as those in [24 ] or other finite non-abelian groups, this is insufficient.
In this paper, we consider a general finite group G G G and develop a complete error basis for the surface code D ( G ) D(G) D ( G ) , and the exact correction unitary. An important input – which we do not determine and leave for future work – is a syndrome extraction circuit and decoder that can provide us with neutral, correctable error clusters. Then, within each cluster, we provide a circuit that moves the errors onto ancillas that can then be decoupled. The main result of this paper is generally applicable for any finite group G G G . As this point is rather important to understand the relevance of the present work, we will summarize the current situation in the literature:
Previous results on Non-Abelian Quantum Error Correction. Here, we summarize existing results on correctability and syndrome extraction for non-Abelian codes. The topological property of the D ( G ) D(G) D ( G ) , implies correctability of local errors for every finite G G G [27 ] and recovery thresholds under sufficiently weak local channels have also been established [28 ] . Although these previous works prove that a recovery exists, they do not construct it.1 Syndrome extraction circuits for coarse charge and flux measurements are available for general groups [22 , 30 ] , with detailed treatments of D ( S 3 ) D(S_3) D ( S 3 ) in [18 , 31 , 32 ] . Such charge and flux outcomes, however, do not resolve the full error. Charge measurement is also possible using constant-depth adaptive circuits for solvable groups [9 , 12 , 13 ] . This is distinct from the complete syndrome measurements on supplied supports that we consider in the present work. Beyond groups, codes hosting Fibonacci anyons have also been considered [33 , 34 ] , but they however either are done abstractly without a lattice model or a assume only a single local error per time step.
QEC strategies for non-abelian codes often require repeated rounds, even under ideal measurement assumption. It is useful to recall these approaches: anyon-level decoders fuse and remeasure iteratively [35 , 36 , 37 ] and for the D ( D 4 ) = D ( Z 2 2 , ω I I I ) D(D_4)=D(\mathbb{Z}_2^2,\omega_{\mathrm{III}}) D ( D 4 ) = D ( Z 2 2 , ω III ) , errors can be corrected by Pauli strings with just-in-time decoding [19 , 23 , 24 , 26 ] . Optimal and integer-programming decoders trace out the internal degrees of freedom of the anyon, however, full recovery generally needs repeated rounds of error correction [38 , 39 ] . Explicit recovery channels for general surface codes are posed as future work in [28 ] . Neutral clusters of D ( S 3 ) D(S_3) D ( S 3 ) can be corrected by locally ungauging to D ( Z 3 ) D(\mathbb{Z}_3) D ( Z 3 ) [40 ] , a method expected to extend to quantum double of solvable groups, which can be prepared with constant-depth adaptive circuits [9 , 11 ] .
Present work. With this overview of the existing literature in mind, it is clear now that it would be important to derive an exact, deterministic, constant-round recovery for D ( G ) D(G) D ( G ) for a general finite group G G G . A particular complication with non-abelian groups is that anyons fuse non-invertibly. Syndromes that measure only anyon occupation will miss their internal degrees of freedom [38 ] . It is precisely this important gap that we will fill in the literature. As we have stressed before, we assume a decoder that provides us with neutral correctable error clusters, and we assume perfect syndrome measurements. Recovery then proceeds by moving errors onto plaquette and vertex ancillas while moving along paths of the dual or direct lattice respectively. Concretely, for every finite group G G G , we determine the following error basis and recovery protocols for Kitaev quantum doubles D ( G ) D(G) D ( G ) :
Complete Error Basis. In § 1.1 we define an orthogonal error basis and determine an explicit “gauge-fixing” procedure to remove stabilizer redundancies. The resulting error family obeys the Knill-Laflamme Quantum Error Conditions of Thm. 7 and is an orthogonal basis on the code space.
Error Transfer Protocols. In § 2 we introduce so-called flux and charge transfer circuits. These move errors onto ancillas that are then projected out. E.g. any multiplication error on an edge that is the only errored edge of a plaquette can be moved to a plaquette ancilla qudit. Similarly any irrep error on a vertex whose star does not include other irrep errors can be moved to a vertex ancilla. We repeat these steps for multi-error configurations, by moving along paths on the dual or direct lattice respectively, returning the errored state to the code-space. We also discuss ribbon errors in App. B. This results in an exact, deterministic recovery protocol.
We should stress that our protocol assumes as input neutral error clusters, and that we leave the problem of constructing an optimal syndrome extraction/decoder to identify these for separate work. In that sense, this work serves as an exact quantum recovery step in a decoder, which is applicable to any finite group, including non-solvable ones, such as A 5 A_5 A 5 . We leave an investigation of compatibility of our correction protocol with particular decoders and noise models, e.g. with the thresholds obtained from statistical-mechanics mappings [38 , 41 , 42 , 43 ] , to future work.
The Error Basis
Non-Abelian Surface Code Setup
We review the 2D surface code based on the Kitaev quantum double D ( G ) D(G) D ( G ) [1 ] . Its local Hilbert space on each lattice edge is the group algebra
C [ G ] = Span { ∣ g ⟩ : g ∈ G } , (1) \mathbb{C}[G] = \operatorname{Span}\{|g\rangle: g \in G\}, \tag*{(1)} C [ G ] = Span { ∣ g ⟩ : g ∈ G } , (1)
with left and right multiplication operators acting as
L h ∣ g ⟩ = ∣ h g ⟩ , R h ∣ g ⟩ = ∣ g h − 1 ⟩ , (2) L^h |g\rangle= |hg\rangle,\qquad R^h |g\rangle= |gh^{-1}\rangle, \tag*{(2)} L h ∣ g ⟩ = ∣ h g ⟩ , R h ∣ g ⟩ = ∣ g h − 1 ⟩ , (2)
for all g , h ∈ G g,h \in G g , h ∈ G . We also define the irreducible representation (irrep) operators
Z a b Γ ∣ g ⟩ = Γ ( g ) a b ∣ g ⟩ , (3) Z^\Gamma_{ab}|g\rangle= \Gamma(g)_{ab}|g\rangle, \tag*{(3)} Z ab Γ ∣ g ⟩ = Γ ( g ) ab ∣ g ⟩ , (3)
where Γ ∈ Irr ( G ) \Gamma\in\operatorname{Irr}(G) Γ ∈ Irr ( G ) , the set of irreducible representations of G G G , d Γ : = dim Γ d_\Gamma:= \dim\Gamma d Γ := dim Γ , and 1 ≤ a , b ≤ d Γ 1 \leq a,b \leq d_\Gamma 1 ≤ a , b ≤ d Γ . We will take all representation matrices Γ ( g ) \Gamma(g) Γ ( g ) to be unitary.
The Hamiltonian for the model [1 ] is built from vertex and plaquette operators, which, on a square lattice, are:
A v g = [vertex operator diagram] , B p g = ∑ g 1 , g 2 , g 3 , g 4 δ g , g 1 g 2 g 3 − 1 g 4 − 1 × [plaquette operator diagram] . (4) \begin{aligned}
A_v^g &= \begin{array}{c}\text{[vertex operator diagram]}\end{array},\\
B_p^g &= \sum_{g_1,g_2,g_3,g_4}\delta_{g,g_1g_2g_3^{-1}g_4^{-1}}\times\begin{array}{c}\text{[plaquette operator diagram]}\end{array}. \tag*{(4)}
\end{aligned} A v g B p g = [vertex operator diagram] , = g 1 , g 2 , g 3 , g 4 ∑ δ g , g 1 g 2 g 3 − 1 g 4 − 1 × [plaquette operator diagram] . (4)
Our setup is a surface code for D ( G ) D(G) D ( G ) on a finite size patch, with boundaries. Each boundary condition is labeled by a subgroup K ≤ G K \leq G K ≤ G (here, we will restrict to trivial 2-cocycles). The Hamiltonian for the bulk and boundary terms is then given by [1 , 21 , 24 , 27 , 44 , 45 ]
H = − ∑ v A v − ∑ p B p − ∑ s ( A s K s + B s K s ) , (5) H=-\sum_v A_v-\sum_p B_p-\sum_s\left(A_s^{K_s}+B_s^{K_s}\right), \tag*{(5)} H = − v ∑ A v − p ∑ B p − s ∑ ( A s K s + B s K s ) , (5)
where the bulk operators are
A v : = 1 ∣ G ∣ ∑ g A v g , B p : = B p i d , (6) A_v:=\frac{1}{|G|}\sum_g A_v^g,\qquad B_p:=B_p^{\mathrm{id}}, \tag*{(6)} A v := ∣ G ∣ 1 g ∑ A v g , B p := B p id , (6)
and the boundary ones are [44 ]
A s K : = 1 ∣ K ∣ ∑ k ∈ K A s k , B s K : = ∑ k ∈ K B s k . (7) A_s^K:=\frac{1}{|K|}\sum_{k\in K}A_s^k,\qquad B_s^K:=\sum_{k\in K}B_s^k. \tag*{(7)} A s K := ∣ K ∣ 1 k ∈ K ∑ A s k , B s K := k ∈ K ∑ B s k . (7)
The first two sums run over bulk vertices v v v and plaquettes p p p while s = ( v , p ) s=(v,p) s = ( v , p ) runs over the sites on the various boundaries. The truncated A s K s A_s^{K_s} A s K s acts on the three edges at v v v , two along the boundary and one into the bulk, while B s K B_s^K B s K acts on the single boundary edge s s s , with B s k ∣ g ⟩ = δ k , g ∣ g ⟩ B_s^k|g\rangle=\delta_{k,g}|g\rangle B s k ∣ g ⟩ = δ k , g ∣ g ⟩ .
Code space. The code space is defined as the + 1 +1 + 1 eigenspace of the operators of the Hamiltonian (5) : the logical states are its inequivalent ground states. Since the Hamiltonian terms are commuting projectors, each logical state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ has to satisfy:
A v ∣ ψ ⟩ = B p ∣ ψ ⟩ = A s K s ∣ ψ ⟩ = B s K s ∣ ψ ⟩ = ∣ ψ ⟩ , (8) A_v|\psi\rangle=B_p|\psi\rangle=A_s^{K_s}|\psi\rangle=B_s^{K_s}|\psi\rangle=|\psi\rangle, \tag*{(8)} A v ∣ ψ ⟩ = B p ∣ ψ ⟩ = A s K s ∣ ψ ⟩ = B s K s ∣ ψ ⟩ = ∣ ψ ⟩ , (8)
i.e. ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ is stabilized by the Hamiltonian terms. The code space projector is then:
P = ( ∏ v A v ) ( ∏ p B p ) ( ∏ s A s K s ) ( ∏ s B s K s ) . (9) P=\left(\prod_v A_v\right)\left(\prod_p B_p\right)\left(\prod_s A_s^{K_s}\right)\left(\prod_s B_s^{K_s}\right). \tag*{(9)} P = ( v ∏ A v ) ( p ∏ B p ) ( s ∏ A s K s ) ( s ∏ B s K s ) . (9)
and satisfies P 2 = P = P † P^2=P=P^\dagger P 2 = P = P † .
The logical operators are realized in terms of anyon ribbon operators that stretch between the top and bottom boundaries and a logical basis is generated by acting with them on the (unnormalized) reference state
∣ i d ‾ ⟩ = ( ∏ v A v ) ( ∏ s A s K s ) ⨂ i ∣ i d ⟩ i . (10) |\overline{\mathrm{id}}\rangle=\left(\prod_v A_v\right)\left(\prod_s A_s^{K_s}\right)\bigotimes_i|\mathrm{id}\rangle_i. \tag*{(10)} ∣ id ⟩ = ( v ∏ A v ) ( s ∏ A s K s ) i ⨂ ∣ id ⟩ i . (10)
where i i i ranges over all lattice edges. Setups on a square patch with opposite boundary conditions labeled by K = { i d } K=\{\mathrm{id}\} K = { id } (“rough”) and K = G K=G K = G (“smooth”) were considered in [21 , 22 ] and encode a logical group algebra C [ G ] \mathbb{C}[G] C [ G ] , while three different boundary conditions were used to encode a logical qubit for dihedral groups in [23 , 24 ] .
Construction of the Error Basis
For an error basis, we can generalize the Pauli error basis for Z 2 \mathbb{Z}_2 Z 2 to the general finite group G G G case. We will use the unitary left-multiplication operators L h L^h L h for h ∈ G h\in G h ∈ G as generalizations of Pauli X X X and non-unitary rescaled irrep operators as generalizations of Pauli Z Z Z . Their products form an orthogonal basis of the operators on each single-site Hilbert space C [ G ] \mathbb{C}[G] C [ G ] and their tensor-products span the operators on the physical Hilbert space ⨂ i C [ G ] i \bigotimes_i\mathbb{C}[G]_i ⨂ i C [ G ] i .
Proposition 1. An orthogonal{2} basis of errors acting on each edge i i i is
E i h , μ : = L i h E i μ , E i μ : = d Γ Z a b , i Γ . (11) E_i^{h,\mu}:=L_i^hE_i^\mu,\qquad E_i^\mu:=\sqrt{d_\Gamma}Z_{ab,i}^\Gamma. \tag*{(11)} E i h , μ := L i h E i μ , E i μ := d Γ Z ab , i Γ . (11) Here h ∈ G h\in G h ∈ G is a group element with L h L^h L h defined in (2) while μ = ( Γ , a , b ) \mu=(\Gamma,a,b) μ = ( Γ , a , b ) , with Γ ∈ Irr ( G ) \Gamma\in\operatorname{Irr}(G) Γ ∈ Irr ( G ) and 1 ≤ a , b ≤ d Γ 1\leq a,b\leq d_\Gamma 1 ≤ a , b ≤ d Γ , labels the irrep operators defined in (2.3. They satisfy
Tr i [ ( E i h , μ ) † E i k , ν ] = ∣ G ∣ δ h , k δ μ , ν . (12) \operatorname{Tr}_i\left[(E_i^{h,\mu})^\dagger E_i^{k,\nu}\right]=|G|\delta_{h,k}\delta_{\mu,\nu}. \tag*{(12)} Tr i [ ( E i h , μ ) † E i k , ν ] = ∣ G ∣ δ h , k δ μ , ν . (12)
Proof. Since L g L^g L g has diagonal entries which are all zero for g ≠ i d g\ne\mathrm{id} g = id , Schur orthogonality of the irreps [46 ] then gives
Tr i [ ( L i h Z a b , i Γ ) † L i k Z c d , i Λ ] = δ h , k ∑ g Γ ( g ) a b ∗ Λ ( g ) c d = δ h , k ∣ G ∣ d Γ δ Γ , Λ δ a , c δ b , d . (13) \operatorname{Tr}_i\left[(L_i^hZ_{ab,i}^\Gamma)^\dagger L_i^kZ_{cd,i}^\Lambda\right]
=\delta_{h,k}\sum_g\Gamma(g)_{ab}^{*}\Lambda(g)_{cd}
=\delta_{h,k}\frac{|G|}{d_\Gamma}\delta_{\Gamma,\Lambda}\delta_{a,c}\delta_{b,d}. \tag*{(13)} Tr i [ ( L i h Z ab , i Γ ) † L i k Z c d , i Λ ] = δ h , k g ∑ Γ ( g ) ab ∗ Λ ( g ) c d = δ h , k d Γ ∣ G ∣ δ Γ , Λ δ a , c δ b , d . (13)
which, using the normalization of (11) , is (12) . Therefore, these ∣ G ∣ ∑ Γ d Γ 2 = ∣ G ∣ 2 |G|\sum_{\Gamma}d_{\Gamma}^{2}=|G|^{2} ∣ G ∣ ∑ Γ d Γ 2 = ∣ G ∣ 2 orthogonal operators form a basis of the operators on each edge of the lattice.
Multi-Qudit Errors. It is useful to introduce notation for the tensor product of errors on an ordered list of distinct edges i ⃗ = ( i 1 , … , i N ) \vec{i}=(i_{1},\ldots,i_{N}) i = ( i 1 , … , i N )
E i ⃗ h ⃗ , μ ⃗ = L i ⃗ h ⃗ E i ⃗ μ ⃗ = ∏ n = 1 N E i n h n , μ n , E_{\vec{i}}^{\vec{h},\vec{\mu}}=L_{\vec{i}}^{\vec{h}}E_{\vec{i}}^{\vec{\mu}}=\prod_{n=1}^{N}E_{i_{n}}^{h_{n},\mu_{n}}, E i h , μ = L i h E i μ = n = 1 ∏ N E i n h n , μ n ,
L i ⃗ h ⃗ = ∏ n = 1 N L i n h n , E i ⃗ μ ⃗ = ∏ n = 1 N E i n μ n , (14) L_{\vec{i}}^{\vec{h}}=\prod_{n=1}^{N}L_{i_{n}}^{h_{n}},\qquad E_{\vec{i}}^{\vec{\mu}}=\prod_{n=1}^{N}E_{i_{n}}^{\mu_{n}}, \tag*{(14)} L i h = n = 1 ∏ N L i n h n , E i μ = n = 1 ∏ N E i n μ n , (14)
which, due to (12) , obey the orthogonality condition
Tr i ⃗ [ ( E i ⃗ h ⃗ , μ ⃗ ) † E i ⃗ k ⃗ , ν ⃗ ] = ∣ G ∣ N δ h ⃗ , k ⃗ δ μ ⃗ , ν ⃗ . (15) \operatorname{Tr}_{\vec{i}}\left[(E_{\vec{i}}^{\vec{h},\vec{\mu}})^{\dagger}E_{\vec{i}}^{\vec{k},\vec{\nu}}\right]=|G|^{N}\delta_{\vec{h},\vec{k}}\delta_{\vec{\mu},\vec{\nu}}. \tag*{(15)} Tr i [ ( E i h , μ ) † E i k , ν ] = ∣ G ∣ N δ h , k δ μ , ν . (15)
Single-Qudit Irrep Basis. Acting with the irrep errors on the uniform superposition of a single G G G -qudit gives the irrep basis states
∣ 1 ⟩ : = 1 ∣ G ∣ ∑ g ∈ G ∣ g ⟩ , |1\rangle:=\frac{1}{\sqrt{|G|}}\sum_{g\in G}|g\rangle, ∣1 ⟩ := ∣ G ∣ 1 g ∈ G ∑ ∣ g ⟩ ,
∣ Γ a b ⟩ : = E μ ∣ 1 ⟩ = d Γ ∣ G ∣ ∑ g ∈ G Γ ( g ) a b ∣ g ⟩ , (16) |\Gamma_{ab}\rangle:=E^{\mu}|1\rangle=\sqrt{\frac{d_{\Gamma}}{|G|}}\sum_{g\in G}\Gamma(g)_{ab}|g\rangle, \tag*{(16)} ∣ Γ ab ⟩ := E μ ∣1 ⟩ = ∣ G ∣ d Γ g ∈ G ∑ Γ ( g ) ab ∣ g ⟩ , (16)
with μ = ( Γ , a , b ) \mu=(\Gamma,a,b) μ = ( Γ , a , b ) . Since E μ E^{\mu} E μ is diagonal in the group basis, ⟨ Γ a b ∣ Λ c d ⟩ = 1 ∣ G ∣ Tr [ ( E μ ) † E ν ] \langle\Gamma_{ab}|\Lambda_{cd}\rangle=\frac{1}{|G|}\operatorname{Tr}[(E^{\mu})^{\dagger}E^{\nu}] ⟨ Γ ab ∣ Λ c d ⟩ = ∣ G ∣ 1 Tr [( E μ ) † E ν ] , so these ∣ G ∣ |G| ∣ G ∣ states are orthonormal by (12) . The irrep basis states are therefore linear combinations of the group basis states, and the change of basis is the non-Abelian Fourier transform. Since there are ∑ Γ d Γ 2 = ∣ G ∣ \sum_{\Gamma}d_{\Gamma}^{2}=|G| ∑ Γ d Γ 2 = ∣ G ∣ irrep labels, we order them as μ 1 = ( 1 , 1 , 1 ) , … , μ ∣ G ∣ \mu_{1}=(1,1,1),\ldots,\mu_{|G|} μ 1 = ( 1 , 1 , 1 ) , … , μ ∣ G ∣ and the group elements as g 1 = i d , … , g ∣ G ∣ g_{1}=\mathrm{id},\ldots,g_{|G|} g 1 = id , … , g ∣ G ∣ , and denote by ∣ Γ , a , b ⟩ : = ∣ g k ⟩ |\Gamma,a,b\rangle:=|g_{k}\rangle ∣Γ , a , b ⟩ := ∣ g k ⟩ the group basis state in the same position as the irrep label μ k = ( Γ , a , b ) \mu_{k}=(\Gamma,a,b) μ k = ( Γ , a , b ) . The Fourier transform of a G G G -qudit is then the unitary which in the group basis F F F is the ∣ G ∣ × ∣ G ∣ |G|\times|G| ∣ G ∣ × ∣ G ∣ matrix
F = 1 ∣ G ∣ ( 1 ⋯ 1 ⋮ ⋮ d Γ Γ ( g 1 ) a b ∗ ⋯ d Γ Γ ( g ∣ G ∣ ) a b ∗ ⋮ ⋮ ) . (17) F=\frac{1}{\sqrt{|G|}}
\begin{pmatrix}
1 & \cdots& 1\\
\vdots& & \vdots\\
\sqrt{d_{\Gamma}}\Gamma(g_{1})_{ab}^{*} & \cdots& \sqrt{d_{\Gamma}}\Gamma(g_{|G|})_{ab}^{*}\\
\vdots& & \vdots
\end{pmatrix}. \tag*{(17)} F = ∣ G ∣ 1 1 ⋮ d Γ Γ ( g 1 ) ab ∗ ⋮ ⋯ ⋯ 1 ⋮ d Γ Γ ( g ∣ G ∣ ) ab ∗ ⋮ . (17)
whose rows, labeled by μ = ( Γ , a , b ) \mu=(\Gamma,a,b) μ = ( Γ , a , b ) starting with the trivial irrep, are the complex conjugated coefficients of the irrep states in the group basis, and whose columns are labeled by g 1 , … , g ∣ G ∣ g_{1},\ldots,g_{|G|} g 1 , … , g ∣ G ∣ . By Schur orthogonality and the Peter-Weyl theorem, F F F is unitary, F F † = F † F = I FF^{\dagger}=F^{\dagger}F=I F F † = F † F = I , and it maps the irrep basis to the group basis.
Flux and Charge Checks
Isolated errors can be detected from the violations of the stabilizers. Indeed, when an isolated error carries a non-trivial multiplication label it produces non-trivial flux, i.e. a violation of the B p B_{p} B p stabilizer, on its boundary plaquettes (and can produce charge at one vertex), while for non-trivial irrep labels it produces charge, detected by a violation of the A v A_{v} A v stabilizer.
Violated Plaquettes and Vertices. Consider an error as in (11) ,
E i h , μ = L i h E i μ = d Γ L i h Z a b Γ , h ∈ G , μ = ( Γ , a , b ) . (18) E_{i}^{h,\mu}=L_{i}^{h}E_{i}^{\mu}=\sqrt{d_{\Gamma}}L_{i}^{h}Z_{ab}^{\Gamma},
\qquad h\in G,\qquad\mu=(\Gamma,a,b). \tag*{(18)} E i h , μ = L i h E i μ = d Γ L i h Z ab Γ , h ∈ G , μ = ( Γ , a , b ) . (18)
For an edge i i i , let p ( i ) p(i) p ( i ) and v ( i ) v(i) v ( i ) be the plaquettes containing i i i and the vertices incident on i i i that carry a nontrivial constraint,
p ( i ) : = { p : B p ≠ I , i ∈ ∂ p } , p(i):=\{p:B_{p}\ne I,\ i\in\partial p\}, p ( i ) := { p : B p = I , i ∈ ∂ p } ,
v ( i ) : = { v : A v ≠ I , i ∈ ⋆ v } , (19) v(i):=\{v:A_{v}\ne I,\ i\in\star v\}, \tag*{(19)} v ( i ) := { v : A v = I , i ∈ ⋆ v } , (19)
where ∂ p : = supp B p \partial p:=\operatorname{supp}B_{p} ∂ p := supp B p and ⋆ v : = supp A v \star v:=\operatorname{supp}A_{v} ⋆ v := supp A v . We call the vertices of v ( i ) v(i) v ( i ) the constrained endpoints of i i i . In the bulk A v A_{v} A v and B p B_{p} B p are never I I I , but at the boundaries they can be, see (7) : B s K = I B_{s}^{K}=I B s K = I for K = G K=G K = G (smooth) and A s K = I A_{s}^{K}=I A s K = I for K = { i d } K=\{\mathrm{id}\} K = { id } (rough).
Lemma 2 (Plaquette violations). Let p ∈ p ( i ) p\in p(i) p ∈ p ( i ) , and suppose that only the edge i ∈ ∂ p i\in\partial p i ∈ ∂ p carries a non-trivial multiplication error L i h L_{i}^{h} L i h . Then, for every h ≠ i d h\ne\mathrm{id} h = id ,
B p L i h B p = 0 , B p E i h , μ B p = 0. (20) B_{p}L_{i}^{h}B_{p}=0,\qquad B_{p}E_{i}^{h,\mu}B_{p}=0. \tag*{(20)} B p L i h B p = 0 , B p E i h , μ B p = 0. (20) Proof. For a bulk plaquette with edges labeled as in (4) , B p B_{p} B p imposes the trivial flux q 1 q 2 q 3 − 1 q 4 − 1 q_{1}q_{2}q_{3}^{-1}q_{4}^{-1} q 1 q 2 q 3 − 1 q 4 − 1 . The error L i h L_{i}^{h} L i h changes the flux depending on the site index i i i as follows:
L 1 h : i d ↦ ( h g 1 ) g 2 g 3 − 1 g 4 − 1 = h , L 2 h : i d ↦ g 1 ( h g 2 ) g 3 − 1 g 4 − 1 = g 1 h g 1 − 1 , L 3 h : i d ↦ g 1 g 2 ( h g 3 ) − 1 g 4 − 1 = g 4 h − 1 g 4 − 1 , L 4 h : i d ↦ g 1 g 2 g 3 − 1 ( h g 4 ) − 1 = h − 1 . (21) \begin{aligned}
L_{1}^{h}:&\ \mathrm{id}\mapsto(hg_{1})g_{2}g_{3}^{-1}g_{4}^{-1}=h,\\
L_{2}^{h}:&\ \mathrm{id}\mapsto g_{1}(hg_{2})g_{3}^{-1}g_{4}^{-1}=g_{1}hg_{1}^{-1},\\
L_{3}^{h}:&\ \mathrm{id}\mapsto g_{1}g_{2}(hg_{3})^{-1}g_{4}^{-1}=g_{4}h^{-1}g_{4}^{-1},\\
L_{4}^{h}:&\ \mathrm{id}\mapsto g_{1}g_{2}g_{3}^{-1}(hg_{4})^{-1}=h^{-1}. \tag*{(21)}
\end{aligned} L 1 h : L 2 h : L 3 h : L 4 h : id ↦ ( h g 1 ) g 2 g 3 − 1 g 4 − 1 = h , id ↦ g 1 ( h g 2 ) g 3 − 1 g 4 − 1 = g 1 h g 1 − 1 , id ↦ g 1 g 2 ( h g 3 ) − 1 g 4 − 1 = g 4 h − 1 g 4 − 1 , id ↦ g 1 g 2 g 3 − 1 ( h g 4 ) − 1 = h − 1 . (21) The flux of the plaquette p ∈ p ( i ) p\in p(i) p ∈ p ( i ) thus lies in the conjugacy classes [ h ] [h] [ h ] or [ h − 1 ] [h^{-1}] [ h − 1 ] , which are both distinct from [ i d ] [\mathrm{id}] [ id ] for h ≠ i d h\ne\mathrm{id} h = id , so B p L i h B p = 0 B_{p}L_{i}^{h}B_{p}=0 B p L i h B p = 0 . Finally Z a b Γ Z_{ab}^{\Gamma} Z ab Γ is diagonal in the group basis and preserves each flux sector, so B p E i h , μ B p = 0 B_{p}E_{i}^{h,\mu}B_{p}=0 B p E i h , μ B p = 0 .
The generalized plaquette operators [47 , 48 ]
B p [ f ] : = ∑ g ∈ [ f ] B p g , (22) B_{p}^{[f]}:=\sum_{g\in[f]}B_{p}^{g}, \tag*{(22)} B p [ f ] := g ∈ [ f ] ∑ B p g , (22)
project onto the flux conjugacy class [ f ] [f] [ f ] of p p p . The error L i h L_{i}^{h} L i h moves the flux of a plaquette of p ( i ) p(i) p ( i ) with no other multiplication errors from [ i d ] [id] [ i d ] to [ h ] [h] [ h ] or [ h − 1 ] [h^{-1}] [ h − 1 ] , which is detected by B p [ h ] B_p^{[h]} B p [ h ] or B p [ h − 1 ] B_p^{[h^{-1}]} B p [ h − 1 ] .
Vertex Violations. The diagonal error E i μ E_i^\mu E i μ commutes with every plaquette projector but is detected by the nontrivial vertex constraints on v ( i ) v(i) v ( i ) . We use the generalized vertex operators [47 , 48 ] with irrep labels ( Γ , a , b ) (\Gamma, a, b) ( Γ , a , b ) for Γ ∈ Irr ( G ) \Gamma\in\operatorname{Irr}(G) Γ ∈ Irr ( G ) and a , b ∈ { 1 , … , d Γ } a,b \in\{1,\ldots,d_\Gamma\} a , b ∈ { 1 , … , d Γ } .
Proposition 3. The generalized vertex operators
A v ( Γ , a , b ) : = d Γ ∣ G ∣ ∑ g ∈ G Γ ( g ) a b A v g (23) A_v^{(\Gamma,a,b)} := \frac{d_\Gamma}{|G|} \sum_{g \in G} \Gamma(g)_{ab} A_v^g \tag*{(23)} A v ( Γ , a , b ) := ∣ G ∣ d Γ g ∈ G ∑ Γ ( g ) ab A v g (23) satisfy the matrix-unit algebra
A v ( Γ , a , b ) A v ( Λ , c , d ) = δ Γ , Λ δ b , c A v ( Γ , a , d ) , (24) A_v^{(\Gamma,a,b)} A_v^{(\Lambda,c,d)} = \delta_{\Gamma,\Lambda}\delta_{b,c} A_v^{(\Gamma,a,d)}, \tag*{(24)} A v ( Γ , a , b ) A v ( Λ , c , d ) = δ Γ , Λ δ b , c A v ( Γ , a , d ) , (24) and
( A v ( Γ , a , b ) ) † = A v ( Γ , b , a ) . (25) \left(A_v^{(\Gamma,a,b)}\right)^\dagger= A_v^{(\Gamma,b,a)}. \tag*{(25)} ( A v ( Γ , a , b ) ) † = A v ( Γ , b , a ) . (25)
This is proven in App. A.2.
In this notation, the standard vertex projector A v A_v A v (6) is labeled by the trivial irrep ( Γ , a , b ) = ( 1 , 1 , 1 ) (\Gamma,a,b)=(1,1,1) ( Γ , a , b ) = ( 1 , 1 , 1 ) :
A v ( 1 , 1 , 1 ) = A v . (26) A_v^{(1,1,1)} = A_v. \tag*{(26)} A v ( 1 , 1 , 1 ) = A v . (26)
Lemma 4 (Vertex violations). Let v ∈ v ( i ) v \in v(i) v ∈ v ( i ) , and suppose that i i i is the only edge of ⋆ v \star v ⋆ v carrying an error. Then, for every μ = ( Γ , a , b ) \mu=(\Gamma,a,b) μ = ( Γ , a , b ) with Γ ≠ 1 \Gamma\ne1 Γ = 1 ,
A v E i μ A v = 0 , (27) A_v E_i^\mu A_v = 0, \tag*{(27)} A v E i μ A v = 0 , (27) so every nontrivial vertex constraint in v ( i ) v(i) v ( i ) is violated.
Proof. If i i i is oriented away from v v v , then A v g A_v^g A v g acts by L i g L_i^g L i g , and (A.11) gives
E i ( Γ , a , b ) A v = 1 d Γ ∑ c = 1 d Γ A v ( Γ , a , c ) E i ( Γ , c , b ) . (28) E_i^{(\Gamma,a,b)} A_v = \frac{1}{d_\Gamma} \sum_{c=1}^{d_\Gamma} A_v^{(\Gamma,a,c)} E_i^{(\Gamma,c,b)}. \tag*{(28)} E i ( Γ , a , b ) A v = d Γ 1 c = 1 ∑ d Γ A v ( Γ , a , c ) E i ( Γ , c , b ) . (28)
while if i i i is oriented towards v v v , A v g A_v^g A v g acts on i i i by R i g R_i^g R i g , and (A.12) gives
E i ( Γ , a , b ) A v = 1 d Γ ∑ c = 1 d Γ A v ( Γ ∗ , b , c ) E i ( Γ , a , c ) , (29) E_i^{(\Gamma,a,b)} A_v = \frac{1}{d_\Gamma} \sum_{c=1}^{d_\Gamma} A_v^{(\Gamma^*,b,c)} E_i^{(\Gamma,a,c)}, \tag*{(29)} E i ( Γ , a , b ) A v = d Γ 1 c = 1 ∑ d Γ A v ( Γ ∗ , b , c ) E i ( Γ , a , c ) , (29)
In either case, left multiplication by A v = A v ( 1 , 1 , 1 ) A_v=A_v^{(1,1,1)} A v = A v ( 1 , 1 , 1 ) annihilates the right-hand side for Γ ≠ 1 \Gamma\ne1 Γ = 1 by the matrix-unit algebra (24) . □
Induced Charge Errors. A multiplication error L i h L_i^h L i h can also create charge, but only at its source endpoint when that endpoint has a non-trivial vertex check A v A_v A v .
Figure 2.30.
We will denote by v − , v + v_-,v_+ v − , v + the vertices at the endpoints of i i i , with i i i oriented from v − v_- v − to v + v_+ v + :
A v − g A_{v_-}^g A v − g acts on i i i by left multiplication and the error L i h L_i^h L i h acting on a code state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ obeys
A v − g L i h ∣ ψ ⟩ = L i g h g − 1 A v − g ∣ ψ ⟩ = L i g h g − 1 ∣ ψ ⟩ . (30) A_{v_-}^g L_i^h |\psi\rangle= L_i^{ghg^{-1}} A_{v_-}^g |\psi\rangle= L_i^{ghg^{-1}} |\psi\rangle. \tag*{(30)} A v − g L i h ∣ ψ ⟩ = L i g h g − 1 A v − g ∣ ψ ⟩ = L i g h g − 1 ∣ ψ ⟩ . (30)
The centralizer C G ( h ) : = { g ∈ G : g h = h g } C_G(h):=\{g\in G:gh=hg\} C G ( h ) := { g ∈ G : g h = h g } therefore acts trivially at v − v_- v − , consistently with the anyon label ( [ h ] , 1 ) ([h],1) ([ h ] , 1 ) , in which 1 1 1 is the trivial irrep of C G ( h ) C_G(h) C G ( h ) . As a representation of G G G , the charge at v − v_- v − is the induced representation [47 ]
Γ [ f ] : = Ind C G ( f ) G 1 ≅ ⨁ Γ ∈ Irr ( G ) n Γ [ f ] Γ , (31) \Gamma_{[f]} := \operatorname{Ind}_{C_G(f)}^G 1 \cong\bigoplus_{\Gamma\in\operatorname{Irr}(G)} n_\Gamma^{[f]} \Gamma, \tag*{(31)} Γ [ f ] := Ind C G ( f ) G 1 ≅ Γ ∈ Irr ( G ) ⨁ n Γ [ f ] Γ , (31)
n Γ [ f ] = ⟨ Res C G ( f ) G Γ , 1 ⟩ C G ( f ) = 1 ∣ C G ( f ) ∣ ∑ g ∈ C G ( f ) χ Γ ( g ) ∗ , n_\Gamma^{[f]} = \left\langle\operatorname{Res}_{C_G(f)}^G \Gamma,1\right\rangle_{C_G(f)}
= \frac{1}{|C_G(f)|}\sum_{g\in C_G(f)} \chi_\Gamma(g)^*, n Γ [ f ] = ⟨ Res C G ( f ) G Γ , 1 ⟩ C G ( f ) = ∣ C G ( f ) ∣ 1 g ∈ C G ( f ) ∑ χ Γ ( g ) ∗ ,
with multiplicities from Frobenius reciprocity and χ Γ ( g ) = Tr [ Γ ( g ) ] \chi_\Gamma(g)=\operatorname{Tr}[\Gamma(g)] χ Γ ( g ) = Tr [ Γ ( g )] .3 For non-central h h h it contains nontrivial irreps. At the other endpoint v + v_+ v + , A v + g A_{v_+}^g A v + g acts by R i g R_i^g R i g , which commutes with L i h L_i^h L i h , so no induced charge is created at v + v_+ v + .
Boundary Checks and Errors
We now consider errors near a boundary labeled by a subgroup K ≤ G K \le G K ≤ G , as in (7) . Since A v K A v k = A v K A_v^K A_v^k=A_v^K A v K A v k = A v K for k ∈ K k\in K k ∈ K , the code-space conditions A v K P = P A_v^K P=P A v K P = P and B s K P = P B_s^K P=P B s K P = P at a boundary vertex v v v and a boundary edge s s s are equivalent to
A v k P = P ( k ∈ K ) , B s h P = 0 ( h ∉ K ) , (32) A_v^k P=P \quad(k\in K), \qquad B_s^h P=0 \quad(h\notin K), \tag*{(32)} A v k P = P ( k ∈ K ) , B s h P = 0 ( h ∈ / K ) , (32)
i.e. only the elements of K K K act as stabilizers at the boundary. The boundary checks therefore detect errors only up to elements of K K K , and Lemmas 2 and 4 are modified as follows. The two limiting cases are K = G K=G K = G (smooth), for which B s G = I B_s^G=\mathbb{I} B s G = I and A v g A_v^g A v g is three-edge version of A v A_v A v , and K = { i d } K=\{\mathrm{id}\} K = { id } (rough), for which A v { i d } = I A_v^{\{\mathrm{id}\}}=\mathbb{I} A v { id } = I and B s i d B_s^{\mathrm{id}} B s id pins s s s to ∣ i d ⟩ |\mathrm{id}\rangle ∣ id ⟩ .
Multiplication Errors. For g ∈ K g \in K g ∈ K one has h g ∈ K hg \in K h g ∈ K if and only if h ∈ K h \in K h ∈ K , so for a boundary edge s s s
B s K L s h B s K = L s h B s K ( h ∈ K ) , (33) B_s^K L_s^h B_s^K = L_s^h B_s^K \qquad(h \in K), \tag*{(33)} B s K L s h B s K = L s h B s K ( h ∈ K ) , (33)
B s K L s h B s K = 0 ( h ∉ K ) . B_s^K L_s^h B_s^K = 0 \qquad(h \notin K). B s K L s h B s K = 0 ( h ∈ / K ) .
This is due to the fact that the fluxes [ k ] [k] [ k ] , k ∈ K k \in K k ∈ K , condense on the boundary [44 ] . The boundary site s s s also lies on a bulk four-edge plaquette p p p , which detects L s k L_s^k L s k for every k ≠ i d k \ne\mathrm{id} k = id by Lemma 2 if it is the only multiplication error acting on ∂ p \partial p ∂ p . A single L s k L_s^k L s k on the boundary labeled by subgroup K K K is therefore still a detectable error. Instead, if L k L^k L k is the termination of an anyon ribbon, the bulk plaquette will have another multiplication error and trivial total flux, as follows from the anyon ribbon properties and will be detected in its bulk endpoint as we discuss later in § 2.2.1 .
Irrep Operators on Boundary Edges. On the code space, the variable of a boundary edge s s s lies in K K K . By Frobenius reciprocity, we define
η Γ K : = ⟨ Res K G Γ , 1 ⟩ K = ⟨ Γ , Ind K G 1 ⟩ G , (34) \eta_\Gamma^K := \langle\operatorname{Res}_K^G \Gamma,1\rangle_K = \langle\Gamma,\operatorname{Ind}_K^G 1\rangle_G, \tag*{(34)} η Γ K := ⟨ Res K G Γ , 1 ⟩ K = ⟨ Γ , Ind K G 1 ⟩ G , (34)
and we choose the basis of Γ \Gamma Γ such that its first η Γ K \eta_\Gamma^K η Γ K vectors span the K K K -invariant subspace. For k ∈ K k \in K k ∈ K the matrix elements Γ ( k ) a b \Gamma(k)_{ab} Γ ( k ) ab with a ≤ η Γ K a \le\eta_\Gamma^K a ≤ η Γ K or b ≤ η Γ K b \le\eta_\Gamma^K b ≤ η Γ K equal δ a , b \delta_{a,b} δ a , b , since Γ ( k ) \Gamma(k) Γ ( k ) is unitary and fixes the first η Γ K \eta_\Gamma^K η Γ K basis vectors. The corresponding operators therefore act as scalars on the code space,
E s ( Γ , a , b ) P = d Γ δ a , b P ( a ≤ η Γ K or b ≤ η Γ K ) , (35) E_s^{(\Gamma,a,b)}P = \sqrt{d_\Gamma}\,\delta_{a,b}P \qquad(a \le\eta_\Gamma^K \text{ or } b \le\eta_\Gamma^K), \tag*{(35)} E s ( Γ , a , b ) P = d Γ δ a , b P ( a ≤ η Γ K or b ≤ η Γ K ) , (35)
A special instance is the rough boundary, in which K = { i d } K=\{\mathrm{id}\} K = { id } , η Γ { i d } = d Γ \eta_\Gamma^{\{\mathrm{id}\}}=d_\Gamma η Γ { id } = d Γ and every irrep label acts trivially. More generally, E s μ P E_s^\mu P E s μ P only depends on Res K G Γ \operatorname{Res}_K^G\Gamma Res K G Γ . In a basis of Γ \Gamma Γ adapted to the decomposition of Res K G Γ \operatorname{Res}_K^G\Gamma Res K G Γ into irreps of K K K , each E s ( Γ , a , b ) P E_s^{(\Gamma,a,b)}P E s ( Γ , a , b ) P is either zero or proportional to one of the ∑ Γ K ∈ Irr ( K ) d Γ K 2 = ∣ K ∣ \sum_{\Gamma_K\in\operatorname{Irr}(K)}d_{\Gamma_K}^2=|K| ∑ Γ K ∈ Irr ( K ) d Γ K 2 = ∣ K ∣ operators
E s ( Γ K , a , b ) P : = d Γ K Z a b Γ K P , (36) E_s^{(\Gamma_K,a,b)}P := \sqrt{d_{\Gamma_K}}Z_{ab}^{\Gamma_K}P, \tag*{(36)} E s ( Γ K , a , b ) P := d Γ K Z ab Γ K P , (36)
Z a b Γ K ∣ g ⟩ = Γ K ( g ) a b ∣ g ⟩ ( g ∈ K ) , Z_{ab}^{\Gamma_K}|g\rangle= \Gamma_K(g)_{ab}|g\rangle\qquad(g \in K), Z ab Γ K ∣ g ⟩ = Γ K ( g ) ab ∣ g ⟩ ( g ∈ K ) ,
with Γ K ∈ Irr ( K ) \Gamma_K \in\operatorname{Irr}(K) Γ K ∈ Irr ( K ) . The ∣ G ∣ |G| ∣ G ∣ irrep labels on an edge on a boundary labeled by the subgroup K K K therefore collapse to ∣ K ∣ |K| ∣ K ∣ labels on the code space. By Lemma 4 with G G G replaced by K K K and Γ \Gamma Γ replaced by Γ K \Gamma_K Γ K , the nontrivial K K K -irreps are detected by the boundary checks A v K A_v^K A v K .
Orthogonality on the Code Space
Check Region. For each edge i i i , we define the check region as the support of the vertex and plaquette checks acting on i i i :
c ( i ) : = ⋃ v ∈ v ( i ) ⋆ v ∪ ⋃ p ∈ p ( i ) ∂ p , (37) c(i):=\bigcup_{v\in v(i)}\star v\cup\bigcup_{p\in p(i)}\partial p, \tag*{(37)} c ( i ) := v ∈ v ( i ) ⋃ ⋆ v ∪ p ∈ p ( i ) ⋃ ∂ p , (37)
which is shown in (2.39) for a bulk horizontal edge, with the edge i i i in red, the two plaquettes of p ( i ) p(i) p ( i ) shaded in blue and the other edges of the check region, the stars of v ( i ) v(i) v ( i ) and the boundaries of p ( i ) p(i) p ( i ) , in thick blue (the check region also includes the red edge i i i ):
Figure 2.39.
It supports the local checks that act on the edge i i i and the local code-space projector P c ( i ) P_{c(i)} P c ( i ) :
A v ( i ) : = ∏ v ∈ v ( i ) A v , B p ( i ) : = ∏ p ∈ p ( i ) B p , (38) A_{v(i)}:=\prod_{v\in v(i)}A_v,\qquad B_{p(i)}:=\prod_{p\in p(i)}B_p, \tag*{(38)} A v ( i ) := v ∈ v ( i ) ∏ A v , B p ( i ) := p ∈ p ( i ) ∏ B p , (38)
P c ( i ) : = A v ( i ) B p ( i ) . P_{c(i)}:=A_{v(i)}B_{p(i)}. P c ( i ) := A v ( i ) B p ( i ) .
For multiple edges i ⃗ = ( i 1 , … , i N ) \vec{i}=(i_1,\ldots,i_N) i = ( i 1 , … , i N ) with, the local checks (2.40) for each error cluster are their products
v ( i ⃗ ) : = ⋃ n = 1 N v ( i n ) , p ( i ⃗ ) : = ⋃ n = 1 N p ( i n ) , v(\vec{i}):=\bigcup_{n=1}^{N}v(i_n),\qquad p(\vec{i}):=\bigcup_{n=1}^{N}p(i_n), v ( i ) := n = 1 ⋃ N v ( i n ) , p ( i ) := n = 1 ⋃ N p ( i n ) ,
A v ( i ⃗ ) : = ∏ v ∈ v ( i ⃗ ) A v , B p ( i ⃗ ) : = ∏ p ∈ p ( i ⃗ ) B p , A_{v(\vec{i})}:=\prod_{v\in v(\vec{i})}A_v,\qquad B_{p(\vec{i})}:=\prod_{p\in p(\vec{i})}B_p, A v ( i ) := v ∈ v ( i ) ∏ A v , B p ( i ) := p ∈ p ( i ) ∏ B p ,
P c ( i ⃗ ) : = A v ( i ⃗ ) B p ( i ⃗ ) , c ( i ⃗ ) : = ⋃ v ∈ v ( i ⃗ ) ⋆ v ∪ ⋃ p ∈ p ( i ⃗ ) ∂ p , (39) P_{c(\vec{i})}:=A_{v(\vec{i})}B_{p(\vec{i})},\qquad c(\vec{i}):=\bigcup_{v\in v(\vec{i})}\star v\cup\bigcup_{p\in p(\vec{i})}\partial p, \tag*{(39)} P c ( i ) := A v ( i ) B p ( i ) , c ( i ) := v ∈ v ( i ) ⋃ ⋆ v ∪ p ∈ p ( i ) ⋃ ∂ p , (39)
with c ( i ⃗ ) c(\vec{i}) c ( i ) defined from v ( i ⃗ ) v(\vec{i}) v ( i ) and p ( i ⃗ ) p(\vec{i}) p ( i ) as in (37) .
Stabilizers and Redundancy. Each edge carries ∣ G ∣ |G| ∣ G ∣ multiplication labels and ∑ Γ d Γ 2 = ∣ G ∣ \sum_\Gamma d_\Gamma^2=|G| ∑ Γ d Γ 2 = ∣ G ∣ irrep labels. Thus a star or plaquette supports ∣ G ∣ 2 × 4 = ∣ G ∣ 8 |G|^{2\times4}=|G|^8 ∣ G ∣ 2 × 4 = ∣ G ∣ 8 linearly independent operators. However, on the code space this count is reduced by a factor ∣ G ∣ |G| ∣ G ∣ , owing to the vertex or plaquette stabilizers, which form loops on the dual or direct lattice. The stabilizers are the ∣ G ∣ |G| ∣ G ∣ operators A v g A_v^g A v g for g ∈ G g\in G g ∈ G and the linear combinations D p D_p D p of the ∣ G ∣ |G| ∣ G ∣ operators B p g B_p^g B p g such that D p P = P D_pP=P D p P = P . We will now discuss gauge-fixing for both vertex and plaquette stabilizers to obtain an orthogonal error family on the code-space. This is depicted in Figure 1 .
Figure 1. Errors are shown in red, gauge-fixed edges are shown in green and the single-error checks are shown in blue. We gauge-fix the right edge of each vertex star to have h 3 = i d h_3 = \mathrm{id} h 3 = id and the right edge of each plaquette to have μ 3 = 1 \mu_3 = 1 μ 3 = 1 .
Vertex Gauge Fixing. On each ⋆ v \star v ⋆ v , the stabilizers are
A v g = R i 1 g L i 2 g L i 3 g R i 4 g , A v g P = P , (40) A_v^g=R_{i_1}^gL_{i_2}^gL_{i_3}^gR_{i_4}^g,\qquad A_v^gP=P, \tag*{(40)} A v g = R i 1 g L i 2 g L i 3 g R i 4 g , A v g P = P , (40)
and a gauge-fixed error family is given by
E ⋆ v : = { E h ⃗ , μ ⃗ h ⃗ v : h n = i d } , ∣ E ⋆ v ∣ = ∣ G ∣ 7 , (41) \mathcal{E}_{\star v}:=\{E_{\vec{h},\vec{\mu}}^{\vec{h}_v}:h_n=\mathrm{id}\},\qquad|\mathcal{E}_{\star v}|=|G|^7, \tag*{(41)} E ⋆ v := { E h , μ h v : h n = id } , ∣ E ⋆ v ∣ = ∣ G ∣ 7 , (41)
where we fix an edge i n i_n i n that leaves vertex v v v . Fixing the multiplication error label h n = i d h_n=\mathrm{id} h n = id makes every retained error diagonal on i n i_n i n . Since L i n g L_{i_n}^g L i n g has no diagonal entries unless g = i d g=\mathrm{id} g = id , the gauge-fixed family (2.43) cannot contain any non-trivial vertex stabilizers (2.42). Conversely, if the multiplication error on edge i n i_n i n carries the label h n h_n h n , then multiplying the error on the right by the stabilizer A v h n − 1 A_v^{h_n^{-1}} A v h n − 1 sets this label to id, since L i h n E i h ⃗ , μ ⃗ L i h n − 1 L_i^{h_n} E_i^{\vec{h},\vec{\mu}} L_i^{h_n^{-1}} L i h n E i h , μ L i h n − 1 is diagonal by (A.11). On the other edges of ⋆ v \star v ⋆ v , A v h n − 1 A_v^{h_n^{-1}} A v h n − 1 acts by L h n L^{h_n} L h n or R h n − 1 R^{h_n^{-1}} R h n − 1 , and since R g = ∑ k ∈ G L k Π k Γ R^g = \sum_{k \in G} L^k \Pi_k^\Gamma R g = ∑ k ∈ G L k Π k Γ with the diagonal projectors Π k g \Pi_k^g Π k g onto { x ∈ G : x g − 1 = k x } \{x \in G : xg^{-1} = kx\} { x ∈ G : x g − 1 = k x } , the result is again a linear combination of the basis errors (2.14), now with h n = i d h_n = \mathrm{id} h n = id . This shows that the original error differs by the gauge-fixed one by a stabilizer and is therefore equivalent to it when acting on the code-space. For neighboring vertices, we can gauge-fix e.g. from right to left, see Figure 1 (b).
Plaquette Gauge Fixing For each plaquette, we fix the irrep label on an edge i n i_n i n and define the error family:
E ∂ p : = { E ∂ p h ⃗ , μ ⃗ : μ n = 1 } , ∣ E ∂ p ∣ = ∣ G ∣ 7 . (42) \mathcal{E}_{\partial p} := \{E_{\partial p}^{\vec{h},\vec{\mu}} : \mu_n = 1\}, \qquad|\mathcal{E}_{\partial p}| = |G|^7 . \tag*{(42)} E ∂ p := { E ∂ p h , μ : μ n = 1 } , ∣ E ∂ p ∣ = ∣ G ∣ 7 . (42)
The stabilizer condition D p P = P D_pP = P D p P = P imposes the flatness condition g 1 g 2 g 3 − 1 g 4 − 1 = i d g_1g_2g_3^{-1}g_4^{-1} = \mathrm{id} g 1 g 2 g 3 − 1 g 4 − 1 = id , so, using the property of representations, any irrep error on one edge can be expressed as linear combinations of errors on the other three edges, e.g. for μ = ( Γ , a , b ) \mu= (\Gamma,a,b) μ = ( Γ , a , b ) , and i n = i 3 i_n = i_3 i n = i 3
E i 3 μ P = d Γ ∑ c , d = 1 d Γ Z c a , i 3 Γ ∗ Z c d , i 1 Γ Z d b , i 2 Γ P . (43) E_{i_3}^{\mu}P = \sqrt{d_\Gamma}\sum_{c,d=1}^{d_\Gamma} Z_{ca,i_3}^{\Gamma*} Z_{cd,i_1}^{\Gamma} Z_{db,i_2}^{\Gamma}P . \tag*{(43)} E i 3 μ P = d Γ c , d = 1 ∑ d Γ Z c a , i 3 Γ ∗ Z c d , i 1 Γ Z d b , i 2 Γ P . (43)
For each pair of neighboring plaquettes, we will use their two flatness constraints to gauge-fix two edges e.g. we gauge fix the right edge of each plaquette, moving from right to left as in Figure 1 (d).
Completed Supports. An error-free edge carries the trivial labels h = i d h = \mathrm{id} h = id and μ = 1 \mu= 1 μ = 1 , so we include it in the support as an effectively gauge-fixed edge. E.g. for errors on the six edges of ⋆ v − ∪ ⋆ v + \star v_- \cup\star v_+ ⋆ v − ∪ ⋆ v + other than the shared edge i v − v + i_{v_-v_+} i v − v + , see Figure 2 (a), these six edges form a dual loop without a complete star, and A v − h A v + h A_{v_-}^h A_{v_+}^h A v − h A v + h would make the errors non-orthogonal on the code space. Including i v − v + i_{v_-v_+} i v − v + as the fixed edge of ⋆ v − \star v_- ⋆ v − gives the two-star support of Figure 1 (b), and similarly for an error-free edge shared by two plaquettes, see Figure 1 (d). We always take i ⃗ \vec{i} i to be completed in this way, so that gauge fixing removes every direct and dual loop in i ⃗ \vec{i} i .
Figure 2. The gauge-fixing protocol, with the conventions of Figure 1 . Errors are shown in red, gauge-fixed edges are green and the numbers give the order in which their gauge-fixed labels are set, proceeding along each row from right to left. Top row: (a) errors on the seven edges of ⋆ v − ∪ ⋆ v + \star v_{-} \cup\star v_{+} ⋆ v − ∪ ⋆ v + . (b) The stabilizer A v + h − 1 A_{v_{+}}^{h^{-1}} A v + h − 1 sets the multiplication label of the right edge of v + v_{+} v + to i d \mathrm{id} id , and moves an error onto i v − v + i_{v_{-}v_{+}} i v − v + . (c) A v − h − 1 A_{v_{-}}^{h^{-1}} A v − h − 1 then sets the multiplication label of i v − v + i_{v_{-}v_{+}} i v − v + to i d \mathrm{id} id , moving the error onto edges of ⋆ v − \star v_{-} ⋆ v − that already carry errors, which gives the gauge-fixed two-star support of Figure 1 (b). Bottom row: (d) errors on the seven edges of ∂ p ∪ ∂ p ′ \partial p \cup\partial p' ∂ p ∪ ∂ p ′ . (e) The flatness of p ′ p' p ′ , (43) , sets the irrep label of the right edge of p ′ p' p ′ to 1 1 1 , and moves an irrep error onto the shared edge. (f) The flatness of p p p then sets the irrep label of the shared edge to 1 1 1 , moving the error onto edges of ∂ p \partial p ∂ p , which gives the gauge-fixed two-plaquette support of Figure 1 (d).
Gauge-fixed Error Family. On a given support of edges i ⃗ = ( i 1 , ⋯ , i N ) \vec{i} = (i_1,\cdots,i_N) i = ( i 1 , ⋯ , i N ) , we will implement the vertex gauge-fixing (41) and denote the fixed edges by i ⃗ A \vec{i}_A i A and the plaquette gauge-fixing (42) denoting the fixed edges by i ⃗ B \vec{i}_B i B . The resulting gauge-fixed error basis is then:
E i ⃗ : = { E i ⃗ h ⃗ , μ ⃗ : h n = i d ( i n ∈ i ⃗ A ) , μ n = 1 ( i n ∈ i ⃗ B ) } (44) \mathcal{E}_{\vec{i}} := \left\{E_{\vec{i}}^{\vec{h},\vec{\mu}} : h_n = \mathrm{id}\quad(i_n \in\vec{i}_A),\quad\mu_n = 1\quad(i_n \in\vec{i}_B)\right\} \tag*{(44)} E i := { E i h , μ : h n = id ( i n ∈ i A ) , μ n = 1 ( i n ∈ i B ) } (44)
with
∣ E i ⃗ ∣ = ∣ G ∣ 2 N − ∣ i ⃗ A ∣ − ∣ i ⃗ B ∣ . (45) |\mathcal{E}_{\vec{i}}| = |G|^{2N-|\vec{i}_A|-|\vec{i}_B|}. \tag*{(45)} ∣ E i ∣ = ∣ G ∣ 2 N − ∣ i A ∣ − ∣ i B ∣ . (45)
Indeed, each complete star (a dual lattice cycle) removes one factor ∣ G ∣ |G| ∣ G ∣ of multiplication labels, and each complete plaquette (a direct cycle) one factor ∣ G ∣ |G| ∣ G ∣ of irrep labels. This provides a complete error basis, since any multiplication error on an edge in i ⃗ A \vec{i}_A i A or irrep label on i ⃗ B \vec{i}_B i B can be written using the stabilizer properties, as we showed above.
Lemma 5 (Completeness of the Gauge-Fixed Error family). Any error can be brought into gauge-fixed form, i.e. it is equivalent up to stabilizers to a linear combination of errors in (2.46).
Proof. We will re-define a general error by multiplying it with stabilizers that act trivially on the code-space and bring it to gauge-fixed form proceeding along each row of the lattice from right to left, see Figure 2 .
Vertex step. At the right-most complete star ⋆ v + \star v_+ ⋆ v + of a row (which received the edge i n i_n i n with group element h n h_n h n ), we multiply the error by A v + h n − 1 A_{v_+}^{h_n^{-1}} A v + h n − 1 , which sets h n = i d h_n = \mathrm{id} h n = id as shown below (41) . This operator also acts on the edge i v − v + i_{v_-v_+} i v − v + , entering v + v_+ v + , which can now carry an error, see Figure 2 (b). Since i v − v + i_{v_-v_+} i v − v + is the fixed edge of ⋆ v − \star v_- ⋆ v − , we repeat the gauge-fixing at v − v_- v − , see Figure 2 (c) and proceed along the row.
Plaquette step. At the right-most complete plaquette p ′ p' p ′ of a row, (43) moves the irrep error of its right edge onto the other three edges of ∂ p ′ \partial p' ∂ p ′ , where we expand again in the irrep basis (2.11). This sets μ n = 1 \mu_n = 1 μ n = 1 , leaves all multiplication labels unchanged, and can put an irrep error on the shared edge with the next plaquette p p p to the left, see Figure 2 (e). We then repeat this at p p p , see Figure 2 (f), which does not change the label fixed at p ′ p' p ′ .
Conclusion. The resulting error operator now has h n = i d h_n = \mathrm{id} h n = id on i ⃗ A \vec{i}_A i A and μ n = 1 \mu_n = 1 μ n = 1 on i ⃗ B \vec{i}_B i B , so E i ⃗ h ⃗ , μ ⃗ P E_{\vec{i}}^{\vec{h},\vec{\mu}}P E i h , μ P is a linear combination of the E P EP E P with E ∈ E i ⃗ E \in\mathcal{E}_{\vec{i}} E ∈ E i . Since it was constructed from the original error by acting with code stabilizers, it is equivalent to it when acting on the code-space. On a rough boundary edge, (35) already gives distinct G G G -irrep labels with identical or zero action. For a proper subgroup K K K , the independent diagonal operators are indexed by ( Γ K , a , b ) (\Gamma_K,a,b) ( Γ K , a , b ) , giving ∣ K ∣ |K| ∣ K ∣ labels, as in (36) .
We now proceed to prove that the gauge-fixed family (44) obeys the Knill–Laflamme QEC conditions.
Theorem 6 (Gauge-fixed Knill–Laflamme). For any completed support i ⃗ \vec{i} i that does not host any logical operators, any pair E i ⃗ h ⃗ , μ ⃗ , E i ⃗ k ⃗ , ν ⃗ ∈ E i ⃗ E_{\vec{i}}^{\vec{h},\vec{\mu}}, E_{\vec{i}}^{\vec{k},\vec{\nu}} \in\mathcal{E}_{\vec{i}} E i h , μ , E i k , ν ∈ E i satisfies
P c ( i ⃗ ) ( E i ⃗ h ⃗ , μ ⃗ ) † E i ⃗ k ⃗ , ν ⃗ P c ( i ⃗ ) = δ h ⃗ , k ⃗ δ μ ⃗ , ν ⃗ P c ( i ⃗ ) , (46) P_{c(\vec{i})}\left(E_{\vec{i}}^{\vec{h},\vec{\mu}}\right)^{\dagger} E_{\vec{i}}^{\vec{k},\vec{\nu}}P_{c(\vec{i})}=\delta_{\vec{h},\vec{k}}\delta_{\vec{\mu},\vec{\nu}}P_{c(\vec{i})}, \tag*{(46)} P c ( i ) ( E i h , μ ) † E i k , ν P c ( i ) = δ h , k δ μ , ν P c ( i ) , (46) where P c ( i ⃗ ) P_{c(\vec{i})} P c ( i ) is the local code-space projector (39) (and the same holds for the global projector P P P ). Hence the gauge-fixed errors are orthogonal on the code-space, and their Knill–Laflamme matrix is the identity.
Proof. On each edge, the product ( E i n h n , μ n ) † E i n k n , ν n \left(E_{i_n}^{h_n,\mu_n}\right)^{\dagger}E_{i_n}^{k_n,\nu_n} ( E i n h n , μ n ) † E i n k n , ν n can be expanded in the single-edge basis (11) and denote the labels by g ⃗ , λ ⃗ \vec{g},\vec{\lambda} g , λ . First, we consider a term with nontrivial multiplication labels, which are all supported on i ⃗ ∖ i ⃗ A \vec{i}\setminus\vec{i}_A i ∖ i A . Every dual loop in i ⃗ \vec{i} i is a union of complete stars of i ⃗ \vec{i} i , each of which has its fixed edge in i ⃗ A \vec{i}_A i A , so i ⃗ ∖ i ⃗ A \vec{i}\setminus\vec{i}_A i ∖ i A contains no dual loop. Since i ⃗ \vec{i} i hosts no logical operator, i ⃗ ∖ i ⃗ A \vec{i}\setminus\vec{i}_A i ∖ i A also contains no dual path between two smooth boundary plaquettes, whose end checks would be trivial. Hence there is a plaquette p ∈ p ( i ⃗ ) p\in p(\vec{i}) p ∈ p ( i ) that contains exactly one of these errored edges. For the full support these are the plaquettes marked by blue crosses in Figure 1 (a),(Figure 1 b), which contain the last gauge-fixed edge. Lemma 2 then gives B p g ⃗ , λ ⃗ B p = 0 B_p^{\vec{g},\vec{\lambda}}B_p=0 B p g , λ B p = 0 , so the term vanishes between the projectors P c ( i ⃗ ) P_{c(\vec{i})} P c ( i ) . The remaining errors are diagonal: those with a nontrivial irrep label are supported on i ⃗ ∖ i ⃗ B \vec{i}\setminus\vec{i}_B i ∖ i B . Every direct loop in i ⃗ \vec{i} i is a union of complete plaquettes, each with its fixed edge in i ⃗ B \vec{i}_B i B , and i ⃗ \vec{i} i contains no logical and no direct path between rough boundary vertices. Hence there is a vertex v ∈ v ( i ⃗ ) v\in v(\vec{i}) v ∈ v ( i ) whose star contains exactly one of the errored edges, with all other edges of ⋆ v \star v ⋆ v without error: these are the vertices marked by blue crosses in Figure 1 (c),(Figure 1 d). Lemma 4 then gives A v g ⃗ , λ ⃗ A v = 0 A_v^{\vec{g},\vec{\lambda}}A_v=0 A v g , λ A v = 0 . Only the identity term remains, with coefficient δ h ⃗ , k ⃗ δ μ ⃗ , ν ⃗ \delta_{\vec{h},\vec{k}}\delta_{\vec{\mu},\vec{\nu}} δ h , k δ μ , ν by (15) . Since P c ( i ⃗ ) P = P P_{c(\vec{i})}P=P P c ( i ) P = P , the global Knill–Laflamme relation also follows.
Projector onto Orthogonal Error Sectors.
We can now define the projectors onto the error sectors of the gauge-fixed errors E i ⃗ h ⃗ , μ ⃗ ∈ E i ⃗ E_{\vec{i}}^{\vec{h},\vec{\mu}}\in\mathcal{E}_{\vec{i}} E i h , μ ∈ E i of (44) ,
P c ( i ⃗ ) h ⃗ , μ ⃗ : = E i ⃗ h ⃗ , μ ⃗ P c ( i ⃗ ) ( E i ⃗ h ⃗ , μ ⃗ ) † . (47) P_{c(\vec{i})}^{\vec{h},\vec{\mu}}:=E_{\vec{i}}^{\vec{h},\vec{\mu}}P_{c(\vec{i})}\left(E_{\vec{i}}^{\vec{h},\vec{\mu}}\right)^{\dagger}. \tag*{(47)} P c ( i ) h , μ := E i h , μ P c ( i ) ( E i h , μ ) † . (47)
These operators are Hermitian and, by Thm. 6, they obey
P c ( i ⃗ ) h ⃗ , μ ⃗ P c ( i ⃗ ) k ⃗ , ν ⃗ = δ h ⃗ , k ⃗ δ μ ⃗ , ν ⃗ P c ( i ⃗ ) h ⃗ , μ ⃗ , (48) P_{c(\vec{i})}^{\vec{h},\vec{\mu}}P_{c(\vec{i})}^{\vec{k},\vec{\nu}}=\delta_{\vec{h},\vec{k}}\delta_{\vec{\mu},\vec{\nu}}P_{c(\vec{i})}^{\vec{h},\vec{\mu}}, \tag*{(48)} P c ( i ) h , μ P c ( i ) k , ν = δ h , k δ μ , ν P c ( i ) h , μ , (48)
so they are mutually orthogonal projectors. The range of P c ⃗ ( i ⃗ ) h ⃗ , μ ⃗ P_{\vec{c}(\vec{i})}^{\vec{h},\vec{\mu}} P c ( i ) h , μ is the image of the local code space under the error E i ⃗ h ⃗ , μ ⃗ E_{\vec{i}}^{\vec{h},\vec{\mu}} E i h , μ . We define the neutral-cluster projector as the sum over all the labels of E i ⃗ \mathcal{E}_{\vec{i}} E i :
P c ⃗ ( i ⃗ ) n e u : = ∑ h ⃗ , μ ⃗ P c ⃗ ( i ⃗ ) h ⃗ , μ ⃗ . (49) P_{\vec{c}(\vec{i})}^{\mathrm{neu}}:=\sum_{\vec{h},\vec{\mu}}P_{\vec{c}(\vec{i})}^{\vec{h},\vec{\mu}}. \tag*{(49)} P c ( i ) neu := h , μ ∑ P c ( i ) h , μ . (49)
If P c ⃗ ( i ⃗ ) n e u ∣ ψ ⟩ = ∣ ψ ⟩ P_{\vec{c}(\vec{i})}^{\mathrm{neu}}|\psi\rangle=|\psi\rangle P c ( i ) neu ∣ ψ ⟩ = ∣ ψ ⟩ , then ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ is a code state acted on by gauge-fixed errors supported on i ⃗ \vec{i} i , which lie in orthogonal error sectors by Thm. 6 and c ⃗ ( i ⃗ ) \vec{c}(\vec{i}) c ( i ) is a neutral cluster with correctable errors.
For the following step, we assume a predetermined, neutral-error cluster, such that the support projector (49) has + 1 +1 + 1 eigenvalue: this identifies the support of each neutral, correctable error cluster.
Error Correction
In this section we propose to use a mechanism similar to the deferred measurement, and move the error onto an ancilla, which can then be measured out or discarded. We will first transfer the charge errors onto a vertex ancilla.
Charge Error Correction Protocol
Setup. Let ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ be a state invariant under all vertex operators at v v v ,
A v g ∣ ψ ⟩ = ∣ ψ ⟩ for all g ∈ G . (50) A_v^g|\psi\rangle=|\psi\rangle\quad\text{for all }g\in G. \tag*{(50)} A v g ∣ ψ ⟩ = ∣ ψ ⟩ for all g ∈ G . (50)
Let the edge i ∈ ⋆ v i\in\star v i ∈ ⋆ v be acted on by the irrep error E i μ E_i^\mu E i μ of (11) , with μ = ( Γ , a , b ) \mu=(\Gamma,a,b) μ = ( Γ , a , b ) , and let i i i be the only edge of ⋆ v \star v ⋆ v carrying an error. We introduce a G G G -qudit vertex ancilla (va) at v v v , prepared in the state ∣ 1 ⟩ v a |1\rangle_{\mathrm{va}} ∣1 ⟩ va of (16) ,
∣ 1 ⟩ v a = 1 ∣ G ∣ ∑ g ∈ G ∣ g ⟩ v a , (51) |1\rangle_{\mathrm{va}}=\frac{1}{\sqrt{|G|}}\sum_{g\in G}|g\rangle_{\mathrm{va}}, \tag*{(51)} ∣1 ⟩ va = ∣ G ∣ 1 g ∈ G ∑ ∣ g ⟩ va , (51)
and apply the vertex operator controlled by the ancilla,
U v : = ∑ g ∈ G ∣ g ⟩ ⟨ g ∣ v a ⊗ A v g = ∏ e → v C R v a , e ∏ e ← v C L v a , e , (52) U_v:=\sum_{g\in G}|g\rangle\langle g|_{\mathrm{va}}\otimes A_v^g=\prod_{e\to v}CR_{\mathrm{va},e}\prod_{e\leftarrow v}CL_{\mathrm{va},e}, \tag*{(52)} U v := g ∈ G ∑ ∣ g ⟩ ⟨ g ∣ va ⊗ A v g = e → v ∏ C R va , e e ← v ∏ C L va , e , (52)
where the equality denotes the circuit decomposition in terms of controlled operators, defined as
C L c , t : = ∑ x ∈ G ∣ x ⟩ ⟨ x ∣ c ⊗ L t x , C R c , t : = ∑ x ∈ G ∣ x ⟩ ⟨ x ∣ c ⊗ R t x . (53) CL_{c,t}:=\sum_{x\in G}|x\rangle\langle x|_c\otimes L_t^x,\qquad CR_{c,t}:=\sum_{x\in G}|x\rangle\langle x|_c\otimes R_t^x. \tag*{(53)} C L c , t := x ∈ G ∑ ∣ x ⟩ ⟨ x ∣ c ⊗ L t x , C R c , t := x ∈ G ∑ ∣ x ⟩ ⟨ x ∣ c ⊗ R t x . (53)
Commutation of A v g A_v^g A v g with the Irrep Error. The commutation depends on whether i i i enters or leaves the vertex v v v , in which A v g A_v^g A v g acts on i i i by R i g R_i^g R i g or L i g L_i^g L i g respectively. As a shorthand, we will denote these cases i → v i\to v i → v and i ← v i\leftarrow v i ← v , respectively. Using the commutation relations (A.13) and (A.14), we obtain
R i g E i ( Γ , a , b ) = ∑ c = 1 d Γ Γ ( g ) c b E i ( Γ , a , c ) R i g R_i^g E_i^{(\Gamma,a,b)}=\sum_{c=1}^{d_\Gamma}\Gamma(g)_{cb}E_i^{(\Gamma,a,c)}R_i^g R i g E i ( Γ , a , b ) = c = 1 ∑ d Γ Γ ( g ) c b E i ( Γ , a , c ) R i g
L i g E i ( Γ , a , b ) = ∑ c = 1 d Γ Γ ( g − 1 ) a c E i ( Γ , c , b ) L i g . (54) L_i^g E_i^{(\Gamma,a,b)}=\sum_{c=1}^{d_\Gamma}\Gamma(g^{-1})_{ac}E_i^{(\Gamma,c,b)}L_i^g. \tag*{(54)} L i g E i ( Γ , a , b ) = c = 1 ∑ d Γ Γ ( g − 1 ) a c E i ( Γ , c , b ) L i g . (54)
On the other edges of ⋆ v \star v ⋆ v the error acts as the identity, Therefore
A v g E i ( Γ , a , b ) = { ∑ c = 1 d Γ Γ ( g ) c b E i ( Γ , a , c ) A v g i → v , ∑ c = 1 d Γ Γ ( g − 1 ) a c E i ( Γ , c , b ) A v g i ← v . (55) A_v^g E_i^{(\Gamma,a,b)}=
\begin{cases}
\sum_{c=1}^{d_\Gamma}\Gamma(g)_{cb}E_i^{(\Gamma,a,c)}A_v^g & i\to v,\\
\sum_{c=1}^{d_\Gamma}\Gamma(g^{-1})_{ac}E_i^{(\Gamma,c,b)}A_v^g & i\leftarrow v.
\end{cases} \tag*{(55)} A v g E i ( Γ , a , b ) = { ∑ c = 1 d Γ Γ ( g ) c b E i ( Γ , a , c ) A v g ∑ c = 1 d Γ Γ ( g − 1 ) a c E i ( Γ , c , b ) A v g i → v , i ← v . (55)
Action of the Controlled Vertex Operator. Using (55) and then (50) , we have
U v ∣ 1 ⟩ v a ⊗ E i μ ∣ ψ ⟩ = 1 ∣ G ∣ ∑ g ∈ G ∣ g ⟩ v a ⊗ A v g E i ( Γ , a , b ) ∣ ψ ⟩ = { d Γ ∣ G ∣ ∑ g ∈ G ∑ c = 1 d Γ Γ ( g ) c b ∣ g ⟩ v a ⊗ Z a c , i Γ ∣ ψ ⟩ i → v , d Γ ∣ G ∣ ∑ g ∈ G ∑ c = 1 d Γ Γ ( g − 1 ) a c ∣ g ⟩ v a ⊗ Z c b , i Γ ∣ ψ ⟩ i ← v . (56) \begin{aligned}
U_v|1\rangle_{\mathrm{va}}\otimes E_i^{\mu}|\psi\rangle
=\frac{1}{\sqrt{|G|}}\sum_{g\in G}|g\rangle_{\mathrm{va}}\otimes A_v^gE_i^{(\Gamma,a,b)}|\psi\rangle\\
&=\begin{cases}
\sqrt{\frac{d_\Gamma}{|G|}}\sum_{g\in G}\sum_{c=1}^{d_\Gamma}\Gamma(g)_{cb}|g\rangle_{\mathrm{va}}\otimes Z_{ac,i}^{\Gamma}|\psi\rangle& i\to v,\\
\sqrt{\frac{d_\Gamma}{|G|}}\sum_{g\in G}\sum_{c=1}^{d_\Gamma}\Gamma(g^{-1})_{ac}|g\rangle_{\mathrm{va}}\otimes Z_{cb,i}^{\Gamma}|\psi\rangle& i\leftarrow v.
\end{cases} \tag*{(56)}
\end{aligned} U v ∣1 ⟩ va ⊗ E i μ ∣ ψ ⟩ = ∣ G ∣ 1 g ∈ G ∑ ∣ g ⟩ va ⊗ A v g E i ( Γ , a , b ) ∣ ψ ⟩ = ⎩ ⎨ ⎧ ∣ G ∣ d Γ ∑ g ∈ G ∑ c = 1 d Γ Γ ( g ) c b ∣ g ⟩ va ⊗ Z a c , i Γ ∣ ψ ⟩ ∣ G ∣ d Γ ∑ g ∈ G ∑ c = 1 d Γ Γ ( g − 1 ) a c ∣ g ⟩ va ⊗ Z c b , i Γ ∣ ψ ⟩ i → v , i ← v . (56)
Since ∑ g Γ ( g ) c b ∣ g ⟩ = Z c b Γ ∑ g ∣ g ⟩ = ∣ G ∣ Z c b Γ ∣ 1 ⟩ \sum_g\Gamma(g)_{cb}|g\rangle=Z_{cb}^{\Gamma}\sum_g|g\rangle=\sqrt{|G|}Z_{cb}^{\Gamma}|1\rangle ∑ g Γ ( g ) c b ∣ g ⟩ = Z c b Γ ∑ g ∣ g ⟩ = ∣ G ∣ Z c b Γ ∣1 ⟩ and ∑ g Γ ( g − 1 ) a c ∣ g ⟩ = ∣ G ∣ Z c a Γ ∗ ∣ 1 ⟩ \sum_g\Gamma(g^{-1})_{ac}|g\rangle=\sqrt{|G|}Z_{ca}^{\Gamma*}|1\rangle ∑ g Γ ( g − 1 ) a c ∣ g ⟩ = ∣ G ∣ Z c a Γ ∗ ∣1 ⟩ , this is
U v ∣ 1 ⟩ v a ⊗ E i μ ∣ ψ ⟩ = { d Γ ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ ( ∣ 1 ⟩ v a ⊗ ∣ ψ ⟩ ) i → v , d Γ ∑ c = 1 d Γ Z c b , i Γ Z c a , v a Γ ∗ ( ∣ 1 ⟩ v a ⊗ ∣ ψ ⟩ ) i ← v . (57) U_v|1\rangle_{\mathrm{va}}\otimes E_i^\mu|\psi\rangle
=
\begin{cases}
\sqrt{d_\Gamma}\sum_{c=1}^{d_\Gamma}Z_{ac,i}^{\Gamma}Z_{cb,\mathrm{va}}^{\Gamma}(|1\rangle_{\mathrm{va}}\otimes|\psi\rangle) & i\to v,\\
\sqrt{d_\Gamma}\sum_{c=1}^{d_\Gamma}Z_{cb,i}^{\Gamma}Z_{ca,\mathrm{va}}^{\Gamma*}(|1\rangle_{\mathrm{va}}\otimes|\psi\rangle) & i\leftarrow v.
\end{cases} \tag*{(57)} U v ∣1 ⟩ va ⊗ E i μ ∣ ψ ⟩ = { d Γ ∑ c = 1 d Γ Z a c , i Γ Z c b , va Γ ( ∣1 ⟩ va ⊗ ∣ ψ ⟩) d Γ ∑ c = 1 d Γ Z c b , i Γ Z c a , va Γ ∗ ( ∣1 ⟩ va ⊗ ∣ ψ ⟩) i → v , i ← v . (57)
Controlled Multiplication. We now apply the controlled left multiplication operator with control i i i and target va
C L i , v a = ∑ x ∈ G ∣ x ⟩ ⟨ x ∣ i ⊗ L v a x . (58) CL_{i,\mathrm{va}}=\sum_{x\in G}|x\rangle\langle x|_i\otimes L_{\mathrm{va}}^x. \tag*{(58)} C L i , va = x ∈ G ∑ ∣ x ⟩ ⟨ x ∣ i ⊗ L va x . (58)
We use the identities
C L i , v a ( ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ ) C L i , v a † = Z a b , v a Γ , CL_{i,\mathrm{va}}\left(\sum_{c=1}^{d_\Gamma}Z_{ac,i}^{\Gamma}Z_{cb,\mathrm{va}}^{\Gamma}\right)CL_{i,\mathrm{va}}^\dagger=Z_{ab,\mathrm{va}}^{\Gamma}, C L i , va ( c = 1 ∑ d Γ Z a c , i Γ Z c b , va Γ ) C L i , va † = Z ab , va Γ ,
C L i , v a † ( ∑ c = 1 d Γ Z c b , i Γ Z c a , v a Γ ∗ ) C L i , v a = Z b a , v a Γ ∗ . (59) CL_{i,\mathrm{va}}^\dagger\left(\sum_{c=1}^{d_\Gamma}Z_{cb,i}^{\Gamma}Z_{ca,\mathrm{va}}^{\Gamma*}\right)CL_{i,\mathrm{va}}=Z_{ba,\mathrm{va}}^{\Gamma*}. \tag*{(59)} C L i , va † ( c = 1 ∑ d Γ Z c b , i Γ Z c a , va Γ ∗ ) C L i , va = Z ba , va Γ ∗ . (59)
which is proven in Appendix A.3. Note that ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ ≠ Z a b , v a Γ \sum_{c=1}^{d_\Gamma}Z_{ac,i}^{\Gamma}Z_{cb,\mathrm{va}}^{\Gamma}\ne Z_{ab,\mathrm{va}}^{\Gamma} ∑ c = 1 d Γ Z a c , i Γ Z c b , va Γ = Z ab , va Γ for Γ ≠ 1 \Gamma\ne1 Γ = 1 , so (59) holds only with the conjugation. Moreover, L x ∣ 1 ⟩ = ∣ 1 ⟩ L^x|1\rangle=|1\rangle L x ∣1 ⟩ = ∣1 ⟩ for all x ∈ G x\in G x ∈ G , so for every state ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩
C L i , v a ( ∣ 1 ⟩ v a ⊗ ∣ ϕ ⟩ ) = ∣ 1 ⟩ v a ⊗ ∣ ϕ ⟩ . (60) CL_{i,\mathrm{va}}(|1\rangle_{\mathrm{va}}\otimes|\phi\rangle)=|1\rangle_{\mathrm{va}}\otimes|\phi\rangle. \tag*{(60)} C L i , va ( ∣1 ⟩ va ⊗ ∣ ϕ ⟩) = ∣1 ⟩ va ⊗ ∣ ϕ ⟩ . (60)
Combining (57) , (59) and (60) , we obtain
C L i , v a U v ∣ 1 ⟩ v a ⊗ E i μ ∣ ψ ⟩ = d Γ Z a b , v a Γ ∣ 1 ⟩ v a ⊗ ∣ ψ ⟩ = ∣ Γ a b ⟩ v a ⊗ ∣ ψ ⟩ , (61) \begin{aligned}
CL_{i,va}U_v |1\rangle_{va}\otimes E_i^\mu|\psi\rangle
&=\sqrt{d_\Gamma}Z^\Gamma_{ab,va}|1\rangle_{va}\otimes|\psi\rangle\\
&=|\Gamma_{ab}\rangle_{va}\otimes|\psi\rangle, \tag*{(61)}
\end{aligned} C L i , v a U v ∣1 ⟩ v a ⊗ E i μ ∣ ψ ⟩ = d Γ Z ab , v a Γ ∣1 ⟩ v a ⊗ ∣ ψ ⟩ = ∣ Γ ab ⟩ v a ⊗ ∣ ψ ⟩ , (61)
with ∣ Γ a b ⟩ |\Gamma_{ab}\rangle ∣ Γ ab ⟩ the single-qudit state of (16) for the case i → v i\to v i → v and
C L i , v a † U v ∣ 1 ⟩ v a ⊗ E i μ ∣ ψ ⟩ = d Γ Z b a , v a Γ ∗ ∣ 1 ⟩ v a ⊗ ∣ ψ ⟩ = ∣ Γ b a ∗ ⟩ v a ⊗ ∣ ψ ⟩ , (62) \begin{aligned}
CL^\dagger_{i,va}U_v |1\rangle_{va}\otimes E_i^\mu|\psi\rangle
&=\sqrt{d_\Gamma}Z^{\Gamma*}_{ba,va}|1\rangle_{va}\otimes|\psi\rangle\\
&=|\Gamma^*_{ba}\rangle_{va}\otimes|\psi\rangle, \tag*{(62)}
\end{aligned} C L i , v a † U v ∣1 ⟩ v a ⊗ E i μ ∣ ψ ⟩ = d Γ Z ba , v a Γ ∗ ∣1 ⟩ v a ⊗ ∣ ψ ⟩ = ∣ Γ ba ∗ ⟩ v a ⊗ ∣ ψ ⟩ , (62)
for the case i ← v i\leftarrow v i ← v . Thus, define the charge transfer circuit
T = { F v a C L i , v a U v i → v , F v a S v a C L i , v a † U v i ← v , (63) T=
\begin{cases}
F_{va}CL_{i,va}U_v & i\to v,\\
F_{va}S_{va}CL^\dagger_{i,va}U_v & i\leftarrow v,
\end{cases} \tag*{(63)} T = { F v a C L i , v a U v F v a S v a C L i , v a † U v i → v , i ← v , (63)
where F F F is the Fourier transform (17) and S S S is the antipode map which sends ∣ g ⟩ → ∣ g − 1 ⟩ |g\rangle\to|g^{-1}\rangle ∣ g ⟩ → ∣ g − 1 ⟩ . Then
T ( ∣ 1 ⟩ v a ⊗ E i μ ∣ ψ ⟩ ) = ∣ Γ a b ⟩ v a ⊗ ∣ ψ ⟩ , (64) T(|1\rangle_{va}\otimes E_i^\mu|\psi\rangle)=|\Gamma_{ab}\rangle_{va}\otimes|\psi\rangle, \tag*{(64)} T ( ∣1 ⟩ v a ⊗ E i μ ∣ ψ ⟩) = ∣ Γ ab ⟩ v a ⊗ ∣ ψ ⟩ , (64)
where for i ← v i\leftarrow v i ← v we used S ∣ Γ b a ∗ ⟩ = ∣ Γ a b ⟩ S|\Gamma^*_{ba}\rangle=|\Gamma_{ab}\rangle S ∣ Γ ba ∗ ⟩ = ∣ Γ ab ⟩ , since Γ ∗ ( g − 1 ) b a = Γ ( g ) a b \Gamma^*(g^{-1})_{ba}=\Gamma(g)_{ab} Γ ∗ ( g − 1 ) ba = Γ ( g ) ab .
The error is thus moved entirely onto the ancilla, and the data qudits return to ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ . Note that since the the ancilla is completely decoupled, and we can in fact discard the ancilla altogether. However, for reusing the ancilla, we can perform a measurement in the group basis, which identifies μ \mu μ , which can then use to reset the ancilla. This is shown in Figure 3 for a vertex of the square lattice.
Figure 3. The circuit (63) for the charge transfer at a vertex v v v of the square lattice, with the irrep error E i h E_i^h E i h for an edge i i i entering v v v (left) and for an edge i i i exiting v v v (right). A dot on a control qudit in the group basis state ∣ x ⟩ |x\rangle ∣ x ⟩ , connected to boxes L L L or R R R , applies L x L^x L x or R x R^x R x to the target qudits, as in (53) . The first gate is the controlled vertex operator U v U_v U v of (52) , with the ancilla as control, and the second is C L i , v a CL_{i,v_a} C L i , v a or C L i , v a † CL^\dagger_{i,v_a} C L i , v a † (depending on the orientation of i i i ), with i i i as control. Afterwards the data qudits are in ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ and the ancilla is in ∣ Γ a b ⟩ |\Gamma_{ab}\rangle ∣ Γ ab ⟩ , which the Fourier transform F F F maps to the group basis state ∣ Γ , a , b ⟩ |\Gamma,a,b\rangle ∣Γ , a , b ⟩ before the measurement in the group basis.
Example: G = Z 2 G=\mathbb{Z}_2 G = Z 2 . Let Z 2 = { 0 , 1 } \mathbb{Z}_2=\{0,1\} Z 2 = { 0 , 1 } , with group basis ∣ 0 ⟩ |0\rangle ∣0 ⟩ , ∣ 1 ⟩ |1\rangle ∣1 ⟩ and ∣ ± ⟩ : = ( ∣ 0 ⟩ ± ∣ 1 ⟩ ) / 2 |\pm\rangle:=(|0\rangle\pm|1\rangle)/\sqrt{2} ∣ ± ⟩ := ( ∣0 ⟩ ± ∣1 ⟩) / 2 . In this example ∣ + ⟩ |+\rangle ∣ + ⟩ is the state ∣ 1 ⟩ |1\rangle ∣1 ⟩ of (16) , and for the sign irrep ∣ Γ 11 ⟩ = ∣ − ⟩ |\Gamma_{11}\rangle=|-\rangle ∣ Γ 11 ⟩ = ∣ − ⟩ . Moreover L 1 = R 1 = X L^1=R^1=X L 1 = R 1 = X , E i μ = Z i E_i^\mu=Z_i E i μ = Z i , and A v 1 = ∏ e ∈ ⋆ v X e A^1_v=\prod_{e\in\star v}X_e A v 1 = ∏ e ∈ ⋆ v X e , so we do not have to distinguish the two cases. The controlled vertex operator (52) is
U v = ∣ 0 ⟩ ⟨ 0 ∣ v a ⊗ I + ∣ 1 ⟩ ⟨ 1 ∣ v a ⊗ A v 1 . (65) U_v=|0\rangle\langle0|_{va}\otimes I+|1\rangle\langle1|_{va}\otimes A^1_v. \tag*{(65)} U v = ∣0 ⟩ ⟨ 0 ∣ v a ⊗ I + ∣1 ⟩ ⟨ 1 ∣ v a ⊗ A v 1 . (65)
Since i ∈ ⋆ v i\in\star v i ∈ ⋆ v , the operators A v 1 A^1_v A v 1 and Z i Z_i Z i anticommute. Together with A v 1 ∣ ψ ⟩ = ∣ ψ ⟩ A^1_v|\psi\rangle=|\psi\rangle A v 1 ∣ ψ ⟩ = ∣ ψ ⟩ this gives
U v ∣ + ⟩ v a ⊗ Z i ∣ ψ ⟩ = 1 2 ( ∣ 0 ⟩ v a ⊗ Z i ∣ ψ ⟩ + ∣ 1 ⟩ v a ⊗ A v 1 Z i ∣ ψ ⟩ ) = 1 2 ( ∣ 0 ⟩ v a − ∣ 1 ⟩ v a ) ⊗ Z i ∣ ψ ⟩ = ∣ − ⟩ v a ⊗ Z i ∣ ψ ⟩ = Z v a Z i ∣ + ⟩ v a ⊗ ∣ ψ ⟩ . (66) \begin{aligned}
U_v|+\rangle_{va}\otimes Z_i|\psi\rangle
&=\frac{1}{\sqrt{2}}\left(|0\rangle_{va}\otimes Z_i|\psi\rangle+|1\rangle_{va}\otimes A^1_vZ_i|\psi\rangle\right)\\
&=\frac{1}{\sqrt{2}}\left(|0\rangle_{va}-|1\rangle_{va}\right)\otimes Z_i|\psi\rangle\\
&=|-\rangle_{va}\otimes Z_i|\psi\rangle\\
&=Z_{va}Z_i|+\rangle_{va}\otimes|\psi\rangle. \tag*{(66)}
\end{aligned} U v ∣ + ⟩ v a ⊗ Z i ∣ ψ ⟩ = 2 1 ( ∣0 ⟩ v a ⊗ Z i ∣ ψ ⟩ + ∣1 ⟩ v a ⊗ A v 1 Z i ∣ ψ ⟩ ) = 2 1 ( ∣0 ⟩ v a − ∣1 ⟩ v a ) ⊗ Z i ∣ ψ ⟩ = ∣ − ⟩ v a ⊗ Z i ∣ ψ ⟩ = Z v a Z i ∣ + ⟩ v a ⊗ ∣ ψ ⟩ . (66)
The controlled multiplication (58) is C L i , v a = CNOT i , v a CL_{i,va}=\operatorname{CNOT}_{i,va} C L i , v a = CNOT i , v a , with control i i i and target v a va v a . It satisfies
CNOT i , v a Z v a Z i CNOT i , v a † = Z v a , (67) \operatorname{CNOT}_{i,va}Z_{va}Z_i\operatorname{CNOT}^{\dagger}_{i,va}=Z_{va}, \tag*{(67)} CNOT i , v a Z v a Z i CNOT i , v a † = Z v a , (67)
CNOT i , v a ( ∣ + ⟩ v a ⊗ ∣ ϕ ⟩ ) = ∣ + ⟩ v a ⊗ ∣ ϕ ⟩ , \operatorname{CNOT}_{i,va}(|+\rangle_{va}\otimes|\phi\rangle)=|+\rangle_{va}\otimes|\phi\rangle, CNOT i , v a ( ∣ + ⟩ v a ⊗ ∣ ϕ ⟩) = ∣ + ⟩ v a ⊗ ∣ ϕ ⟩ ,
which are (59) and (60) for Z 2 \mathbb{Z}_2 Z 2 . Therefore
CNOT i , v a U v ∣ + ⟩ v a ⊗ Z i ∣ ψ ⟩ = Z v a ∣ + ⟩ v a ⊗ ∣ ψ ⟩ = ∣ − ⟩ v a ⊗ ∣ ψ ⟩ , (68) \operatorname{CNOT}_{i,va}U_v|+\rangle_{va}\otimes Z_i|\psi\rangle
=Z_{va}|+\rangle_{va}\otimes|\psi\rangle=|-\rangle_{va}\otimes|\psi\rangle, \tag*{(68)} CNOT i , v a U v ∣ + ⟩ v a ⊗ Z i ∣ ψ ⟩ = Z v a ∣ + ⟩ v a ⊗ ∣ ψ ⟩ = ∣ − ⟩ v a ⊗ ∣ ψ ⟩ , (68)
in agreement with (61) .
Example: G = S 3 G=S_3 G = S 3 . Let S 3 = ⟨ r , s ∣ r 3 = s 2 = i d , s r s = r − 1 ⟩ S_3=\langle r,s\mid r^3=s^2=\mathrm{id},\ srs=r^{-1}\rangle S 3 = ⟨ r , s ∣ r 3 = s 2 = id , sr s = r − 1 ⟩ , with elements r k r^k r k and s r k sr^k s r k for k = 0 , 1 , 2 k=0,1,2 k = 0 , 1 , 2 . Its irreps are the trivial and the sign irrep, both one-dimensional, and the two-dimensional irrep Γ \Gamma Γ with
Γ ( r k ) = ( ω k 0 0 ω − k ) , Γ ( s r k ) = ( 0 ω − k ω k 0 ) , (69) \Gamma(r^k)=
\begin{pmatrix}
\omega^k&0\\
0&\omega^{-k}
\end{pmatrix},
\qquad
\Gamma(sr^k)=
\begin{pmatrix}
0&\omega^{-k}\\
\omega^k&0
\end{pmatrix}, \tag*{(69)} Γ ( r k ) = ( ω k 0 0 ω − k ) , Γ ( s r k ) = ( 0 ω k ω − k 0 ) , (69)
where ω : = e 2 π i / 3 \omega:=e^{2\pi i/3} ω := e 2 π i /3 . Here, we consider the case i → v i\to v i → v without loss of generality. For the one-dimensional irreps the sum over c c c in (57) has a single term, and the computation is as for Z 2 \mathbb{Z}_2 Z 2 . The new feature appears for Γ \Gamma Γ , and we consider μ = ( Γ , 1 , 2 ) \mu=(\Gamma,1,2) μ = ( Γ , 1 , 2 ) . The single-qudit states (16) that enter are
∣ Γ 12 ⟩ = 1 3 ( ∣ s ⟩ + ω 2 ∣ s r ⟩ + ω ∣ s r 2 ⟩ ) , |\Gamma_{12}\rangle=\frac{1}{\sqrt{3}}\left(|s\rangle+\omega^2|sr\rangle+\omega|sr^2\rangle\right), ∣ Γ 12 ⟩ = 3 1 ( ∣ s ⟩ + ω 2 ∣ sr ⟩ + ω ∣ s r 2 ⟩ ) ,
∣ Γ 22 ⟩ = 1 3 ( ∣ i d ⟩ + ω 2 ∣ r ⟩ + ω ∣ r 2 ⟩ ) . (70) |\Gamma_{22}\rangle=\frac{1}{\sqrt{3}}\left(|\mathrm{id}\rangle+\omega^2|r\rangle+\omega|r^2\rangle\right). \tag*{(70)} ∣ Γ 22 ⟩ = 3 1 ( ∣ id ⟩ + ω 2 ∣ r ⟩ + ω ∣ r 2 ⟩ ) . (70)
Since 2 Z c b Γ ∣ 1 ⟩ = ∣ Γ c b ⟩ \sqrt{2}Z^\Gamma_{cb}|1\rangle=|\Gamma_{cb}\rangle 2 Z c b Γ ∣1 ⟩ = ∣ Γ c b ⟩ , (57) gives
U v ∣ 1 ⟩ v a ⊗ E i ( Γ , 1 , 2 ) ∣ ψ ⟩ = ∣ Γ 12 ⟩ v a ⊗ Z 11 , i Γ ∣ ψ ⟩ + ∣ Γ 22 ⟩ v a ⊗ Z 12 , i Γ ∣ ψ ⟩ . (71) U_v|1\rangle_{va}\otimes E_i^{(\Gamma,1,2)}|\psi\rangle
=|\Gamma_{12}\rangle_{va}\otimes Z^\Gamma_{11,i}|\psi\rangle
+|\Gamma_{22}\rangle_{va}\otimes Z^\Gamma_{12,i}|\psi\rangle. \tag*{(71)} U v ∣1 ⟩ v a ⊗ E i ( Γ , 1 , 2 ) ∣ ψ ⟩ = ∣ Γ 12 ⟩ v a ⊗ Z 11 , i Γ ∣ ψ ⟩ + ∣ Γ 22 ⟩ v a ⊗ Z 12 , i Γ ∣ ψ ⟩ . (71)
Unlike for Z 2 \mathbb{Z}_2 Z 2 , the ancilla is entangled with the data qudits, and the row index a = 1 a=1 a = 1 of the error is still on the data qudits. A Fourier measurement of the ancilla at this stage would return ( Γ , 1 , 2 ) (\Gamma,1,2) ( Γ , 1 , 2 ) or ( Γ , 2 , 2 ) (\Gamma,2,2) ( Γ , 2 , 2 ) , each with probability 1 / 2 1/2 1/2 since the label a a a is uniformly distributed, and leave the data qudits in Z 11 , i Γ ∣ ψ ⟩ Z^\Gamma_{11,i}|\psi\rangle Z 11 , i Γ ∣ ψ ⟩ or Z 12 , i Γ ∣ ψ ⟩ Z^\Gamma_{12,i}|\psi\rangle Z 12 , i Γ ∣ ψ ⟩ , up to normalization. The controlled multiplication removes this entanglement. From Γ ( x − 1 g ) = Γ ( x − 1 ) Γ ( g ) \Gamma(x^{-1}g)=\Gamma(x^{-1})\Gamma(g) Γ ( x − 1 g ) = Γ ( x − 1 ) Γ ( g ) ,
L x ∣ Γ c b ⟩ = ∑ c ′ = 1 d Γ Γ ( x − 1 ) c c ′ ∣ Γ c ′ b ⟩ . (72) L^x|\Gamma_{cb}\rangle=\sum_{c'=1}^{d_\Gamma}\Gamma(x^{-1})_{cc'}|\Gamma_{c'b}\rangle. \tag*{(72)} L x ∣ Γ c b ⟩ = c ′ = 1 ∑ d Γ Γ ( x − 1 ) c c ′ ∣ Γ c ′ b ⟩ . (72)
If i i i carries the label x = r k x=r^k x = r k , only the first term of (71) contributes, with Γ ( r k ) 11 = ω k \Gamma(r^k)_{11}=\omega^k Γ ( r k ) 11 = ω k , and L r k ∣ Γ 12 ⟩ = ω − k ∣ Γ 12 ⟩ L^{r^k}|\Gamma_{12}\rangle=\omega^{-k}|\Gamma_{12}\rangle L r k ∣ Γ 12 ⟩ = ω − k ∣ Γ 12 ⟩ . If i i i carries x = s r k x=sr^k x = s r k , only the second term contributes, with Γ ( s r k ) 12 = ω − k \Gamma(sr^k)_{12}=\omega^{-k} Γ ( s r k ) 12 = ω − k , and L s r k ∣ Γ 22 ⟩ = ω k ∣ Γ 12 ⟩ L^{sr^k}|\Gamma_{22}\rangle=\omega^k|\Gamma_{12}\rangle L s r k ∣ Γ 22 ⟩ = ω k ∣ Γ 12 ⟩ , since ( s r k ) − 1 = s r k (sr^k)^{-1}=sr^k ( s r k ) − 1 = s r k . In both cases the phases cancel,
C L i , v a ( ∣ Γ 12 ⟩ v a ⊗ Z 11 , i Γ + ∣ Γ 22 ⟩ v a ⊗ Z 12 , i Γ ) ∣ x ⟩ i = ∣ Γ 12 ⟩ v a ⊗ ∣ x ⟩ i (73) CL_{i,va}\left(|\Gamma_{12}\rangle_{va}\otimes Z^\Gamma_{11,i}+|\Gamma_{22}\rangle_{va}\otimes Z^\Gamma_{12,i}\right)|x\rangle_i
=|\Gamma_{12}\rangle_{va}\otimes|x\rangle_i \tag*{(73)} C L i , v a ( ∣ Γ 12 ⟩ v a ⊗ Z 11 , i Γ + ∣ Γ 22 ⟩ v a ⊗ Z 12 , i Γ ) ∣ x ⟩ i = ∣ Γ 12 ⟩ v a ⊗ ∣ x ⟩ i (73)
for all x ∈ S 3 x\in S_3 x ∈ S 3 , so that C L i , v a U v ∣ 1 ⟩ v a ⊗ E i ( Γ , 1 , 2 ) ∣ ψ ⟩ = ∣ Γ 12 ⟩ v a ⊗ ∣ ψ ⟩ CL_{i,va}U_v|1\rangle_{va}\otimes E_i^{(\Gamma,1,2)}|\psi\rangle=|\Gamma_{12}\rangle_{va}\otimes|\psi\rangle C L i , v a U v ∣1 ⟩ v a ⊗ E i ( Γ , 1 , 2 ) ∣ ψ ⟩ = ∣ Γ 12 ⟩ v a ⊗ ∣ ψ ⟩ , in agreement with (61) .
Flux Error Correction Protocol
We now develop the analogous protocol for the plaquette terms, which moves a multiplication error onto an ancilla.
Setup. Let ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ be a state with trivial flux through a plaquette p p p ,
B p ∣ ψ ⟩ = ∣ ψ ⟩ , (74) B_p|\psi\rangle=|\psi\rangle, \tag*{(74)} B p ∣ ψ ⟩ = ∣ ψ ⟩ , (74)
with B p = B p i d B_p=B_p^{\mathrm{id}} B p = B p id of (6) . We consider a multiplication error L i h L_i^h L i h of (11) acting on the edge i ∈ ∂ p i\in\partial p i ∈ ∂ p and we take i i i to be the only edge of ∂ p \partial p ∂ p carrying a multiplication error: as explained in the proof of Thm. 6, in each error cluster there exists an edge with this property after suitable gauge-fixing. In the flux correction protocol we now describe, we will always take the basepoint of the plaquette holonomy to be the source vertex v − v_- v − of the edge i i i , and follow the path around p p p starting along i i i in the direction of the edge orientation e.g. in (4) the basepoint v − v_- v − is the bottom-left vertex and we follow the edges in the order e 1 , … , e 4 e_1,\ldots,e_4 e 1 , … , e 4 , which carry the group labels g 1 , … , g 4 g_1,\ldots,g_4 g 1 , … , g 4 . Then B p g B_p^g B p g projects onto the states with holonomy g 1 g 2 g 3 − 1 g 4 − 1 = g g_1g_2g_3^{-1}g_4^{-1}=g g 1 g 2 g 3 − 1 g 4 − 1 = g based at v − v_- v − . For an error on any other edge of p p p , the holonomy based at its source vertex follows by cyclically relabeling the edges, and reversing the direction of the loop if needed. Changing the basepoint can conjugate the holonomy, but the action of B p = B p i d B_p=B_p^{\mathrm{id}} B p = B p id does not depend on the basepoint choice. In the following, we will use B p g B_p^g B p g to compute the holonomy with the basepoint and orientation that depends on the edge i i i we are correcting: the basepoint is v − ( i ) v_-(i) v − ( i ) and the orientation is the one along edge i i i . For each plaquette p p p and choice of basepoint and orientation, the B p g B_p^g B p g operators are orthogonal projectors with ∑ g B p g = I \sum_g B_p^g=\mathbb{I} ∑ g B p g = I , so (74) is equivalent to
B p g ∣ ψ ⟩ = δ g , i d ∣ ψ ⟩ . (75) B_p^g|\psi\rangle=\delta_{g,\mathrm{id}}|\psi\rangle. \tag*{(75)} B p g ∣ ψ ⟩ = δ g , id ∣ ψ ⟩ . (75)
We introduce a G G G -qudit plaquette ancilla (pa) at p p p , prepared in the group basis state ∣ i d ⟩ p a |\mathrm{id}\rangle_{\mathrm{pa}} ∣ id ⟩ pa , and apply the right multiplication controlled by the holonomy of p p p via B p g B_p^g B p g and acting on the plaquette ancilla (which we write in the first tensor-product)
V p : = ∑ g ∈ G R p a g − 1 ⊗ B p g . (76) V_p:=\sum_{g\in G}R_{\mathrm{pa}}^{g^{-1}}\otimes B_p^g . \tag*{(76)} V p := g ∈ G ∑ R pa g − 1 ⊗ B p g . (76)
It is unitary, since the B p g B_p^g B p g are orthogonal projectors summing to I \mathbb{I} I , and on a state with holonomy g g g it maps the ancilla state ∣ y ⟩ p a |y\rangle_{\mathrm{pa}} ∣ y ⟩ pa to ∣ y g ⟩ p a |yg\rangle_{\mathrm{pa}} ∣ y g ⟩ pa .
We can commute the B p g B_p^g B p g through the multiplication error as follows: since L i h L_i^h L i h maps g i g_i g i to h g i hg_i h g i , it maps a state with holonomy k k k to a state with holonomy h k hk hk . Therefore
B p g L i h = L i h B p h − 1 g . (77) B_p^gL_i^h=L_i^hB_p^{h^{-1}g}. \tag*{(77)} B p g L i h = L i h B p h − 1 g . (77)
Action of the Controlled Holonomy. Using R g − 1 ∣ i d ⟩ = ∣ g ⟩ R^{g^{-1}}|\mathrm{id}\rangle=|g\rangle R g − 1 ∣ id ⟩ = ∣ g ⟩ , (77) and (75) , we compute
V p ∣ i d ⟩ p a ⊗ L i h ∣ ψ ⟩ = ∑ g ∈ G ∣ g ⟩ p a ⊗ B p g L i h ∣ ψ ⟩ = ∑ g ∈ G ∣ g ⟩ p a ⊗ L i h B p h − 1 g ∣ ψ ⟩ = ∣ h ⟩ p a ⊗ L i h ∣ ψ ⟩ . (78) \begin{aligned}
V_p|\mathrm{id}\rangle_{\mathrm{pa}}\otimes L_i^h|\psi\rangle
&=\sum_{g\in G}|g\rangle_{\mathrm{pa}}\otimes B_p^gL_i^h|\psi\rangle\\
&=\sum_{g\in G}|g\rangle_{\mathrm{pa}}\otimes L_i^hB_p^{h^{-1}g}|\psi\rangle\\
&=|h\rangle_{\mathrm{pa}}\otimes L_i^h|\psi\rangle. \tag*{(78)}
\end{aligned} V p ∣ id ⟩ pa ⊗ L i h ∣ ψ ⟩ = g ∈ G ∑ ∣ g ⟩ pa ⊗ B p g L i h ∣ ψ ⟩ = g ∈ G ∑ ∣ g ⟩ pa ⊗ L i h B p h − 1 g ∣ ψ ⟩ = ∣ h ⟩ pa ⊗ L i h ∣ ψ ⟩ . (78)
Unlike (57) , the ancilla and the data qudits are now already in a product state.
Error Transfer to the Ancilla. To remove the error from the state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ , we apply the inverse of the controlled left multiplication (53) with control pa and target i i i ,
C L p a , i † = ∑ h ∈ G ∣ h ⟩ ⟨ h ∣ p a ⊗ L i h − 1 . (79) CL^\dagger_{\mathrm{pa},i}=\sum_{h\in G}|h\rangle\langle h|_{\mathrm{pa}}\otimes L_i^{h^{-1}} . \tag*{(79)} C L pa , i † = h ∈ G ∑ ∣ h ⟩ ⟨ h ∣ pa ⊗ L i h − 1 . (79)
which acts as follows:
C L p a , i † V p ( ∣ i d ⟩ p a ⊗ L i h ∣ ψ ⟩ ) = ∣ h ⟩ p a ⊗ ∣ ψ ⟩ . (80) CL^\dagger_{\mathrm{pa},i}V_p(|\mathrm{id}\rangle_{\mathrm{pa}}\otimes L_i^h|\psi\rangle)=|h\rangle_{\mathrm{pa}}\otimes|\psi\rangle. \tag*{(80)} C L pa , i † V p ( ∣ id ⟩ pa ⊗ L i h ∣ ψ ⟩) = ∣ h ⟩ pa ⊗ ∣ ψ ⟩ . (80)
The error is therefore moved entirely onto the ancilla, and a measurement of the ancilla in the group basis identifies
h. Since E i μ E_i^\mu E i μ is diagonal in the group basis, it commutes with every B p g B_p^g B p g , and the same steps for the error E i h , μ = L i h E i μ E_i^{h,\mu}=L_i^h E_i^\mu E i h , μ = L i h E i μ of (11) give
C L p a , i † V p ∣ i d ⟩ p a ⊗ E i h , μ ∣ ψ ⟩ = ∣ h ⟩ p a ⊗ E i μ ∣ ψ ⟩ . (81) CL^\dagger_{\mathrm{pa},i} V_p |{\rm id}\rangle_{\mathrm{pa}} \otimes E_i^{h,\mu}|\psi\rangle= |h\rangle_{\mathrm{pa}} \otimes E_i^\mu|\psi\rangle. \tag*{(81)} C L pa , i † V p ∣ id ⟩ pa ⊗ E i h , μ ∣ ψ ⟩ = ∣ h ⟩ pa ⊗ E i μ ∣ ψ ⟩ . (81)
If ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ also satisfies (50) , the remaining irrep error E i μ E_i^\mu E i μ is moved onto a second ancilla by the charge transfer of Sec. 3.1.
Circuit. The controlled holonomy is a product of controlled right multiplications of the ancilla, controlled by the edges of p p p . The operator C R e 1 , p a † CR^\dagger_{e_1,\mathrm{pa}} C R e 1 , pa † acting on ∣ y ⟩ p a |y\rangle_{\mathrm{pa}} ∣ y ⟩ pa maps y y y to y g 1 yg_1 y g 1 , then C R e 2 , p a † CR^\dagger_{e_2,\mathrm{pa}} C R e 2 , pa † to y g 1 g 2 yg_1g_2 y g 1 g 2 , then C R e 3 , p a CR_{e_3,\mathrm{pa}} C R e 3 , pa and C R e 4 , p a CR_{e_4,\mathrm{pa}} C R e 4 , pa multiply from the right by g 3 − 1 g_3^{-1} g 3 − 1 and g 4 − 1 g_4^{-1} g 4 − 1 . Hence
V p = C R e 4 , p a C R e 3 , p a C R e 2 , p a † C R e 1 , p a † , (82) V_p=CR_{e_4,\mathrm{pa}}CR_{e_3,\mathrm{pa}}CR^\dagger_{e_2,\mathrm{pa}}CR^\dagger_{e_1,\mathrm{pa}}, \tag*{(82)} V p = C R e 4 , pa C R e 3 , pa C R e 2 , pa † C R e 1 , pa † , (82)
where, compared to (52) , the roles of control and target are exchanged. For an edge i i i in another position on ∂ p \partial p ∂ p , V p V_p V p is the product of C R e , p a † CR^\dagger_{e,\mathrm{pa}} C R e , pa † for the edges e e e traversed along their orientation and C R e , p a CR_{e,\mathrm{pa}} C R e , pa for the edges traversed against it, applied in the order of the holonomy based at the source vertex v − v_- v − of i i i . The flux error correction is therefore the circuit
C L p a , i † C R e 4 , p a C R e 3 , p a C R e 2 , p a † C R e 1 , p a † , (83) CL^\dagger_{\mathrm{pa},i}CR_{e_4,\mathrm{pa}}CR_{e_3,\mathrm{pa}}CR^\dagger_{e_2,\mathrm{pa}}CR^\dagger_{e_1,\mathrm{pa}}, \tag*{(83)} C L pa , i † C R e 4 , pa C R e 3 , pa C R e 2 , pa † C R e 1 , pa † , (83)
acting on ∣ i d ⟩ p a ⊗ L i h ∣ ψ ⟩ |{\rm id}\rangle_{\mathrm{pa}}\otimes L_i^h|\psi\rangle ∣ id ⟩ pa ⊗ L i h ∣ ψ ⟩ and followed by a measurement of the ancilla in the group basis, shown in Figure 4 .
Figure 4. The circuit (83) for the flux transfer at a plaquette p p p of the square lattice, with the edges labeled as in (4) and the multiplication error L i h L_i^h L i h on i = e 1 i=e_1 i = e 1 . A dot on a control qudit in the group basis state ∣ x ⟩ |x\rangle ∣ x ⟩ , connected to a box R R R , R † R^\dagger R † or L † L^\dagger L † , applies R x R^x R x , R x − 1 R^{x^{-1}} R x − 1 or L x − 1 L^{x^{-1}} L x − 1 to the target qudit, as in (53) . The first four gates are the controlled holonomy V p V_p V p of (82) , after which the ancilla is in the state ∣ h ⟩ |h\rangle ∣ h ⟩ , and the last gate C L p a , i † CL^\dagger_{\mathrm{pa},i} C L pa , i † removes the error from i i i . The ancilla is then measured in the group basis.
Example: G = Z 2 G=\mathbb{Z}_2 G = Z 2 . For Z 2 = { 0 , 1 } \mathbb{Z}_2=\{0,1\} Z 2 = { 0 , 1 } , L 1 = R 1 = X L^1=R^1=X L 1 = R 1 = X , the multiplication error is X i X_i X i , the plaquette ancilla starts in ∣ i d ⟩ = ∣ 0 ⟩ |{\rm id}\rangle=|0\rangle ∣ id ⟩ = ∣0 ⟩ , and every controlled multiplication (53) is a CNOT. The controlled holonomy operator (82) is
V p = ∏ k = 1 4 CNOT e k , p a , (84) V_p=\prod_{k=1}^{4}\operatorname{CNOT}_{e_k,\mathrm{pa}}, \tag*{(84)} V p = k = 1 ∏ 4 CNOT e k , pa , (84)
which writes the parity of the labels of p p p onto the ancilla. Since a code-state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ has even parity and X i X_i X i flips it,
CNOT p a , i ∏ k = 1 4 CNOT e k , p a ( ∣ 0 ⟩ p a ⊗ X i ∣ ψ ⟩ ) = CNOT p a , i ( ∣ 1 ⟩ p a ⊗ X i ∣ ψ ⟩ ) = ∣ 1 ⟩ p a ⊗ ∣ ψ ⟩ , (85) \begin{aligned}
\operatorname{CNOT}_{\mathrm{pa},i}\prod_{k=1}^{4}\operatorname{CNOT}_{e_k,\mathrm{pa}}\left(|0\rangle_{\mathrm{pa}}\otimes X_i|\psi\rangle\right) \\
&=\operatorname{CNOT}_{\mathrm{pa},i}\left(|1\rangle_{\mathrm{pa}}\otimes X_i|\psi\rangle\right)=|1\rangle_{\mathrm{pa}}\otimes|\psi\rangle, \tag*{(85)}
\end{aligned} CNOT pa , i k = 1 ∏ 4 CNOT e k , pa ( ∣0 ⟩ pa ⊗ X i ∣ ψ ⟩ ) = CNOT pa , i ( ∣1 ⟩ pa ⊗ X i ∣ ψ ⟩ ) = ∣1 ⟩ pa ⊗ ∣ ψ ⟩ , (85)
in agreement with (80) and the standard Z 2 \mathbb{Z}_2 Z 2 syndrome extraction circuits.
Example: G = S 3 G=S_3 G = S 3 . We use the presentation of S 3 S_3 S 3 of Sec. 3.1 and consider the error L e k s L_{e_k}^s L e k s on each of the edges e 1 , … , e 4 e_1,\ldots,e_4 e 1 , … , e 4 of p p p in turn, with the edges oriented as in (4) . For the error L e k s L_{e_k}^s L e k s the basepoint of the plaquette is the source vertex of e k e_k e k , which is the bottom-left, top-left, bottom-right and bottom-left corner of p p p for k = 1 , 2 , 3 , 4 k=1,2,3,4 k = 1 , 2 , 3 , 4 , so the holonomy starting along e k e_k e k is:
e 1 : g 1 g 2 g 3 − 1 g 4 − 1 , e 2 : g 2 g 3 − 1 g 4 − 1 g 1 , e 3 : g 3 g 2 − 1 g 1 − 1 g 4 , e 4 : g 4 g 3 g 2 − 1 g 1 − 1 . (86) \begin{aligned}
e_1 &: \ g_1g_2g_3^{-1}g_4^{-1}, \qquad&e_2 &: \ g_2g_3^{-1}g_4^{-1}g_1,\\
e_3 &: \ g_3g_2^{-1}g_1^{-1}g_4, \qquad&e_4 &: \ g_4g_3g_2^{-1}g_1^{-1}. \tag*{(86)}
\end{aligned} e 1 e 3 : g 1 g 2 g 3 − 1 g 4 − 1 , : g 3 g 2 − 1 g 1 − 1 g 4 , e 2 e 4 : g 2 g 3 − 1 g 4 − 1 g 1 , : g 4 g 3 g 2 − 1 g 1 − 1 . (86)
For e 1 e_1 e 1 and e 2 e_2 e 2 the loop runs clockwise, while for e 3 e_3 e 3 and e 4 e_4 e 4 it runs anticlockwise, so that e k e_k e k is always traversed along its orientation. Each of these holonomies is a cyclic permutation of g 1 g 2 g 3 − 1 g 4 − 1 g_1g_2g_3^{-1}g_4^{-1} g 1 g 2 g 3 − 1 g 4 − 1 or of its inverse, so it is trivial on any state with trivial flux g 1 g 2 g 3 − 1 g 4 − 1 = i d g_1g_2g_3^{-1}g_4^{-1}={\rm id} g 1 g 2 g 3 − 1 g 4 − 1 = id . The error replaces g k g_k g k by s g k sg_k s g k , which, with the basepoint and orientation conventions described above, multiplies the holonomy by s s s from the left. For example, for an error on e 1 e_1 e 1 the four gates of (82) act on the ancilla as
∣ i d ⟩ ↦ ∣ s g 1 ⟩ ↦ ∣ s g 1 g 2 ⟩ ↦ ∣ s g 1 g 2 g 3 − 1 ⟩ ↦ ∣ s g 1 g 2 g 3 − 1 g 4 − 1 ⟩ = ∣ s ⟩ , (87) |{\rm id}\rangle\mapsto|sg_1\rangle\mapsto|sg_1g_2\rangle
\mapsto|sg_1g_2g_3^{-1}\rangle\mapsto|sg_1g_2g_3^{-1}g_4^{-1}\rangle=|s\rangle, \tag*{(87)} ∣ id ⟩ ↦ ∣ s g 1 ⟩ ↦ ∣ s g 1 g 2 ⟩ ↦ ∣ s g 1 g 2 g 3 − 1 ⟩ ↦ ∣ s g 1 g 2 g 3 − 1 g 4 − 1 ⟩ = ∣ s ⟩ , (87)
while for e 3 e_3 e 3 the gates C R e 3 , p a † CR^\dagger_{e_3,\mathrm{pa}} C R e 3 , pa † , C R e 2 , p a CR_{e_2,\mathrm{pa}} C R e 2 , pa , C R e 1 , p a CR_{e_1,\mathrm{pa}} C R e 1 , pa and C R e 4 , p a † CR^\dagger_{e_4,\mathrm{pa}} C R e 4 , pa † , applied in this order, give
∣ i d ⟩ ↦ ∣ s g 3 ⟩ ↦ ∣ s g 3 g 2 − 1 ⟩ ↦ ∣ s g 3 g 2 − 1 g 1 − 1 ⟩ ↦ ∣ s g 3 g 2 − 1 g 1 − 1 g 4 ⟩ = ∣ s ⟩ , (88) |{\rm id}\rangle\mapsto|sg_3\rangle\mapsto|sg_3g_2^{-1}\rangle
\mapsto|sg_3g_2^{-1}g_1^{-1}\rangle\mapsto|sg_3g_2^{-1}g_1^{-1}g_4\rangle=|s\rangle, \tag*{(88)} ∣ id ⟩ ↦ ∣ s g 3 ⟩ ↦ ∣ s g 3 g 2 − 1 ⟩ ↦ ∣ s g 3 g 2 − 1 g 1 − 1 ⟩ ↦ ∣ s g 3 g 2 − 1 g 1 − 1 g 4 ⟩ = ∣ s ⟩ , (88)
and similarly for e 2 e_2 e 2 and e 4 e_4 e 4 . In all four cases the ancilla ends in ∣ s ⟩ |s\rangle ∣ s ⟩ independently of the labels, in agreement with (78) , and the gate C L p a , e k † CL^\dagger_{\mathrm{pa},e_k} C L pa , e k † applies L s − 1 = L s L^{s^{-1}}=L^s L s − 1 = L s to e k e_k e k , which removes the error. The ancilla then records the group element s s s .
Correction of Gauge-Fixed Supports
We now combine the charge and flux error transfer circuits we just computed, in order to correct the gauge-fixed errors (44) on the supports of Figure 1 . Each error transfer circuit moves a single label of the error onto its own ancilla. We use the right gauge-fixing as in Figure 1 and start at the blue crosses, which show the checks whose support contains a single edge error. We then follow the support from right to left. Let us first summarize the flux and charge corrections and then the protocol to correct a general error:
Flux Correction. The flux correction circuit of § 2.1.1 at a plaquette p p p removes the multiplication error on an edge i ∈ ∂ p i \in\partial p i ∈ ∂ p , under the assumption that i i i is the only edge of ∂ p \partial p ∂ p carrying an uncorrected multiplication error: this holds for the plaquettes shown with blue crosses in Figure 1 (a) and (b). The irrep errors on ∂ p \partial p ∂ p are diagonal in the group basis and commute with every B p g B^g_p B p g and the errors on edges outside ∂ p \partial p ∂ p commute with V p V_p V p and C L p a , i † CL^\dagger_{\mathrm{pa},i} C L pa , i † , so (81) applies.
Charge Correction. The charge correction circuit of § 2.1 at a vertex v v v removes the irrep error on an edge i ∈ ⋆ v i \in\star v i ∈ ⋆ v , provided that i i i is the only edge of ⋆ v \star v ⋆ v carrying an uncorrected irrep error and that no edge of ⋆ v \star v ⋆ v carries a multiplication error: this holds for the vertices marked by blue crosses in Figure 1 (c)-(d). The remaining errors then commute with A v g A^g_v A v g , and (61) applies.
General Protocol. The correction protocol proceeds as follows: we first remove all multiplication errors using the flux transfer correction, moving along the path of the dual lattice between the marked plaquettes of Figure 1 . The flux correction for each edge i i i refers to the basepoint v − v_- v − of i i i , as in § 2.1.1 . After this, all multiplication errors have been corrected and the data qudits are in the state E h ⃗ ∣ ψ ⟩ E^{\vec{h}}|\psi\rangle E h ∣ ψ ⟩ . Subsequently, we remove all irrep errors in a charge correction step by following § 2.1 . For the flux error correction, the edges with uncorrected multiplication errors never contain a dual loop. Therefore, as in the proof of Theorem 6 , there is always a plaquette of p ( i ⃗ ) p(\vec{i}) p ( i ) whose boundary contains exactly one of them. In the charge correction, the edges with uncorrected irrep errors never contain a direct loop, so there is always a vertex of v ( i ⃗ ) v(\vec{i}) v ( i ) whose star contains exactly one of them.
Notation. We write v ± ( i ) v_{\pm}(i) v ± ( i ) for the endpoints of i i i , with i i i oriented from v − ( i ) v_-(i) v − ( i ) to v + ( i ) v_+(i) v + ( i ) , and p ↗ ( v ) p_{\nearrow}(v) p ↗ ( v ) , p ↘ ( v ) p_{\searrow}(v) p ↘ ( v ) , p ↙ ( v ) p_{\swarrow}(v) p ↙ ( v ) and p ↖ ( v ) p_{\nwarrow}(v) p ↖ ( v ) for the four plaquettes with corner v v v .
One Star, Fig. 1(a). We consider the one-star error configuration, where we provide a few more details compared with Figure 1 :
Figure 3.40. (a) ⋆ v \star v ⋆ v
The edges i 1 i_1 i 1 , i 4 i_4 i 4 are oriented towards v v v , while i 2 i_2 i 2 , i 3 i_3 i 3 are oriented away from v v v . The gauge-fixed edge i 3 i_3 i 3 carries h 3 = i d h_3 = \mathrm{id} h 3 = id . The flux correction stage is:
At the blue crosses p ↗ ( v ) p_{\nearrow}(v) p ↗ ( v ) and p ↘ ( v ) p_{\searrow}(v) p ↘ ( v ) , the only multiplication errors are on i 2 i_2 i 2 and i 4 i_4 i 4 , since h 3 = i d h_3 = \mathrm{id} h 3 = id . They are corrected using the flux correction protocol of § 2.1.1 with the plaquette basepoints v − ( i 2 ) v_-(i_2) v − ( i 2 ) and v − ( i 4 ) v_-(i_4) v − ( i 4 ) respectively.
Moving left, i 1 i_1 i 1 is now the only edge of the cluster carrying a multiplication error. It is corrected taking the plaquette p ↖ ( v ) p_{\nwarrow}(v) p ↖ ( v ) with the basepoint v − ( i 1 ) v_-(i_1) v − ( i 1 ) and counter-clockwise orientation.
For the charge correction, we use the protocol of § 2.1 in parallel for the four edges with vertex ancillas on the non-shared endpoints.
Two Stars, Figure 1 (b). The two-star configuration is
Figure 3.41. (b) ⋆ v ∪ ⋆ v ′ \star v \cup\star v' ⋆ v ∪ ⋆ v ′
The gauge-fixed edges i v v ′ i_{vv'} i v v ′ and i + ′ i'_+ i + ′ carry trivial multiplication labels. The flux correction stage follows the path on the dual lattice between the marked plaquettes is the following:
At the marked plaquettes p ↗ ( v ′ ) p_{\nearrow}(v') p ↗ ( v ′ ) and p ↘ ( v ′ ) p_{\searrow}(v') p ↘ ( v ′ ) , transfer the multiplication errors of i ↑ ′ i'_{\uparrow} i ↑ ′ and i ↓ ′ i'_{\downarrow} i ↓ ′ to ancillas and remove them.
Moving left, i ↑ i_{\uparrow} i ↑ and i ↓ i_{\downarrow} i ↓ are now the only edges carrying multiplication errors on ∂ p ↗ ( v ) \partial p_{\nearrow}(v) ∂ p ↗ ( v ) and ∂ p ↘ ( v ) \partial p_{\searrow}(v) ∂ p ↘ ( v ) so we again transfer to ancillas and remove them.
Moving left again, we transfer the multiplication error of i − i_- i − at p ↙ ( v ) p_{\swarrow}(v) p ↙ ( v ) , with the basepoint v − ( i − ) v_-(i_-) v − ( i − ) .
The charge correction requires two rounds:
We proceed in parallel for all edges other than i v v ′ i_{vv'} i v v ′ , since each of them has an endpoint other than v , v ′ v,v' v , v ′ whose star contains no other errors.
Next, we correct transfer the charge on i v v ′ i_{vv'} i v v ′ , transferring it to an ancilla at v ′ v' v ′ , since i v v ′ i_{vv'} i v v ′ is now the only edge of ⋆ v ′ \star v' ⋆ v ′ carrying an error.
One Plaquette, Figure 1 (c). The single plaquette configuration is
Figure 3.42. (c) ∂ p \partial p ∂ p
For each basis state, the edges e 1 , … , e 4 e_1,\ldots,e_4 e 1 , … , e 4 of p p p carry the group elements g 1 , … , g 4 g_1,\ldots,g_4 g 1 , … , g 4 and are oriented as in (4) . The gauge-fixed edge e 3 e_3 e 3 carries trivial irrep label μ 3 = 1 \mu_3=1 μ 3 = 1 .
All four edges of ∂ p \partial p ∂ p can carry multiplication errors, and we can correct them in parallel with ancillas for the plaquettes on the outside, whose support doesn’t include any other (multiplication) errors.
The charge correction instead proceeds in two steps:
At the marked vertices v + ( e 2 ) v_+(e_2) v + ( e 2 ) and v + ( e 4 ) v_+(e_4) v + ( e 4 ) , the only edges carrying irrep errors are e 2 e_2 e 2 and e 4 e_4 e 4 , since μ 3 = 1 \mu_3=1 μ 3 = 1 , so we can transfer their charges to ancillas and correct them.
Moving left, e 1 e_1 e 1 is now the only edge of ⋆ v + ( e 1 ) \star v_+(e_1) ⋆ v + ( e 1 ) carrying an irrep error, and its charge is transferred at the top-left corner v + ( e 1 ) v_+(e_1) v + ( e 1 ) of p p p .
Two Plaquettes, Figure 1 (d). Finally, the two plaquette configuration is
Figure 3.43. (d) ∂ p ∪ ∂ p ′ \partial p\cup\partial p' ∂ p ∪ ∂ p ′
For the flux correction, we proceed as follows:
As in the previous example, we we can correct all multiplication errors other than that of e p p ′ e_{pp'} e p p ′ in parallel with ancillas for the plaquettes other than p , p ′ p,p' p , p ′ , whose support doesn’t include any other (multiplication) errors.
Now, e 2 ′ e'_2 e 2 ′ , e 3 ′ e'_3 e 3 ′ and e 4 ′ e'_4 e 4 ′ carry no multiplication errors, so we correct the shared edge e p p ′ e_{pp'} e p p ′ with an ancilla for p ′ p' p ′ with the basepoint v − ( e p p ′ ) v_-(e_{pp'}) v − ( e p p ′ ) .
The gauge-fixed edges e p p ′ e_{pp'} e p p ′ and e 3 ′ e'_3 e 3 ′ carry trivial irrep labels. The charge correction can therefore proceed moving along the direct path between the marked vertices (to the right of p ′ p' p ′ as follows:
At the marked vertices v + ( e 2 ′ ) v_+(e'_2) v + ( e 2 ′ ) and v + ( e 4 ′ ) v_+(e'_4) v + ( e 4 ′ ) , transfer the charges of e 2 ′ e'_2 e 2 ′ and e 4 ′ e'_4 e 4 ′ to ancillas and remove them.
Moving left, e 2 e_2 e 2 and e 4 e_4 e 4 are now the only edges with irrep errors in the stars of v + ( e 2 ) v_+(e_2) v + ( e 2 ) and v + ( e 4 ) v_+(e_4) v + ( e 4 ) . We can therefore transfer the charges of e 2 e_2 e 2 and e 4 e_4 e 4 to ancillas and remove them.
Finally, we transfer the charge of e 1 e_1 e 1 at v + ( e 1 ) v_+(e_1) v + ( e 1 ) , the top-left corner of p p p .
Separated Star and Plaquette
Error configurations can contain both star and plaquettes. The simplest configuration of this type is when these are separated as e.g. here:
Figure 3.44. (e) ⋆ v ∪ ∂ p ′ \star v\cup\partial p' ⋆ v ∪ ∂ p ′
The gauge-fixed edges are i 3 i_3 i 3 , with h 3 = i d h_3=\mathrm{id} h 3 = id , and e 3 ′ e'_3 e 3 ′ , with μ 3 ′ = 1 \mu'_3=1 μ 3 ′ = 1 , and the dashed line is the dual path between the marked plaquettes p ↙ ( v ) p_{\swarrow}(v) p ↙ ( v ) and p ↘ ( v ) p_{\searrow}(v) p ↘ ( v ) , which crosses i 2 i_2 i 2 , i 1 i_1 i 1 and i 4 i_4 i 4 . The check region of ⋆ v \star v ⋆ v consists of the four plaquettes with corner v v v , shaded in blue, and of the vertices of its edges, while the check region of ∂ p ′ \partial p' ∂ p ′ consists of p ′ p' p ′ , its four neighboring plaquettes, shaded in green, and the four corners of p ′ p' p ′ .
Although the check region (2.39) of i 3 i_3 i 3 overlaps with that of e 1 ′ e'_1 e 1 ′ , we call the configuration (3.44) “separated” star and plaquette since the errored edges i 3 i_3 i 3 and e 1 ′ e'_1 e 1 ′ are separated by a clean edge and we will show that the errors on ⋆ v \star v ⋆ v and ∂ p ′ \partial p' ∂ p ′ can be corrected independently and in parallel.
The flux correction stage is analogous to the ones for the previous configurations:
At the marked plaquettes p ↙ ( v ) p_{\swarrow}(v) p ↙ ( v ) and p ↘ ( v ) p_{\searrow}(v) p ↘ ( v ) , transfer the multiplication errors of i 2 i_2 i 2 and i 4 i_4 i 4 to ancillas and remove them, as for the single star. In parallel, transfer the multiplication errors of e 1 ′ , … , e 4 ′ e'_1,\ldots,e'_4 e 1 ′ , … , e 4 ′ at the four plaquettes neighboring p ′ p' p ′ , each of which contains a single edge of ∂ p ′ \partial p' ∂ p ′ , like for the single plaquette.
Moving from right to left along the dual path, i 1 i_1 i 1 is now the only edge of ∂ p ↙ ( v ) \partial p_{\swarrow}(v) ∂ p ↙ ( v ) carrying a multiplication error, and it is corrected at p ↙ ( v ) p_{\swarrow}(v) p ↙ ( v ) with the basepoint v − ( i 1 ) v_-(i_1) v − ( i 1 ) .
The charge correction stage consists of:
Transfer the charges of i 1 , … , i 4 i_1,\ldots,i_4 i 1 , … , i 4 to ancillas at their endpoints v − ( i 1 ) v_-(i_1) v − ( i 1 ) , v + ( i 2 ) v_+(i_2) v + ( i 2 ) , v + ( i 3 ) v_+(i_3) v + ( i 3 ) and v − ( i 4 ) v_-(i_4) v − ( i 4 ) other than v v v , whose stars contain no other error, as for the single star. In parallel, transfer the charges of e 2 ′ e'_2 e 2 ′ and e 4 ′ e'_4 e 4 ′ , to ancillas at the marked vertices v + ( e 2 ′ ) v_+(e'_2) v + ( e 2 ′ ) and v + ( e 4 ′ ) v_+(e'_4) v + ( e 4 ′ ) , which are the only irrep errors on these stars since μ 3 ′ = 1 \mu'_3=1 μ 3 ′ = 1 .
Moving left, e 1 ′ e'_1 e 1 ′ is now the only edge of ⋆ v + ( e 1 ′ ) \star v_+(e'_1) ⋆ v + ( e 1 ′ ) carrying an irrep error, and its charge is transferred at the top-left corner v + ( e 1 ′ ) v_+(e'_1) v + ( e 1 ′ ) of p ′ p' p ′ .
Both stages thus take two transfer rounds, and the protocol uses 7 + 7 = 14 7+7=14 7 + 7 = 14 ancillas, in agreement with (45) for N = 8 N=8 N = 8 and ∣ i ⃗ A ∣ = ∣ i ⃗ B ∣ = 1 |\vec{i}_A|=|\vec{i}_B|=1 ∣ i A ∣ = ∣ i B ∣ = 1 .
Combined Star and Plaquette. Finally, consider when there are both star and plaquette errors that overlap. E.g. from the configuration (3.44), we now remove the clean edge between i 3 i_3 i 3 and e 1 ′ e'_1 e 1 ′ , so that the bottom-left corner of p ′ p' p ′ is the endpoint v + ( i 3 ) v_+(i_3) v + ( i 3 ) of the gauge-fixed edge i 3 i_3 i 3 :
Figure 3.45. (f) ⋆ v ∪ ∂ p ′ \star v \cup\partial p' ⋆ v ∪ ∂ p ′
The edge supports ⋆ v \star v ⋆ v and ∂ p ′ \partial p' ∂ p ′ are still disjoint, so the gauge fixing is unchanged, with h 3 = i d h_3=\mathrm{id} h 3 = id and μ 3 ′ = 1 \mu'_3=1 μ 3 ′ = 1 , and so is the count (45) . Their check regions, however, now overlap: the plaquette p ↗ ( v ) p_{\nearrow}(v) p ↗ ( v ) , shaded in teal, contains both i 2 i_2 i 2 and e 1 ′ e'_1 e 1 ′ , and the star of the shared vertex v + ( i 3 ) = v − ( e 1 ′ ) = v − ( e 4 ′ ) v_+(i_3)=v_-(e'_1)=v_-(e'_4) v + ( i 3 ) = v − ( e 1 ′ ) = v − ( e 4 ′ ) contains i 3 i_3 i 3 , e 1 ′ e'_1 e 1 ′ and e 4 ′ e'_4 e 4 ′ . Theorem 6 still applies, since the edges that can carry multiplication errors contain no complete star and the edges that can carry irrep errors contain no complete plaquette. However, p ↗ ( v ) p_{\nearrow}(v) p ↗ ( v ) is no longer a single-error check so it no longer marked, and the two (vertex and plaquette) supports can no longer be corrected independently. The dashed dual path now runs from p ′ p' p ′ to p ↙ ( v ) p_{\swarrow}(v) p ↙ ( v ) and crosses e 1 ′ e'_1 e 1 ′ , i 2 i_2 i 2 , i 1 i_1 i 1 and i 4 i_4 i 4 . The flux correction stage is:
At the marked plaquette p ↙ ( v ) p_{\swarrow}(v) p ↙ ( v ) , transfer the multiplication error of i 4 i_4 i 4 to an ancilla and remove it. In parallel, transfer the multiplication errors of e 2 ′ e'_2 e 2 ′ , e 3 ′ e'_3 e 3 ′ and e 4 ′ e'_4 e 4 ′ at the plaquettes above, to the right of and below p ′ p' p ′ , each of which contains a single edge carrying a multiplication error.
Now e 1 ′ e'_1 e 1 ′ is the only edge of ∂ p ′ \partial p' ∂ p ′ carrying a multiplication error, and i 1 i_1 i 1 is the only one of ∂ p ↙ ( v ) \partial p_{\swarrow}(v) ∂ p ↙ ( v ) . They are corrected in parallel, at p ′ p' p ′ with the basepoint v − ( e 1 ′ ) = v + ( i 3 ) v_-(e'_1)=v_+(i_3) v − ( e 1 ′ ) = v + ( i 3 ) and at p ↙ ( v ) p_{\swarrow}(v) p ↙ ( v ) with the basepoint v − ( i 1 ) v_-(i_1) v − ( i 1 ) .
Finally, i 2 i_2 i 2 is the only remaining edge carrying a multiplication error, and it is corrected at p ↗ ( v ) p_{\nearrow}(v) p ↗ ( v ) with the basepoint v − ( i 2 ) = v v_-(i_2)=v v − ( i 2 ) = v .
Along the dual path, the multiplication errors are thus removed from both ends towards i 2 i_2 i 2 , whose correction has to wait for that of e 1 ′ e'_1 e 1 ′ . The charge correction stage is:
Transfer the charges of i 1 i_1 i 1 , i 2 i_2 i 2 and i 4 i_4 i 4 at v − ( i 1 ) v_-(i_1) v − ( i 1 ) , v + ( i 2 ) v_+(i_2) v + ( i 2 ) and v − ( i 4 ) v_-(i_4) v − ( i 4 ) , whose stars contain no other error. In parallel, at the marked vertices v + ( e 2 ′ ) v_+(e'_2) v + ( e 2 ′ ) and v + ( e 4 ′ ) v_+(e'_4) v + ( e 4 ′ ) , transfer the charges of e 2 ′ e'_2 e 2 ′ and e 4 ′ e'_4 e 4 ′ , since μ 3 ′ = 1 \mu'_3=1 μ 3 ′ = 1 .
Moving left, e 1 ′ e'_1 e 1 ′ is now the only edge of ⋆ v + ( e 1 ′ ) \star v_+(e'_1) ⋆ v + ( e 1 ′ ) carrying an irrep error, and its charge is transferred at the top-left corner v + ( e 1 ′ ) v_+(e'_1) v + ( e 1 ′ ) of p ′ p' p ′ .
Finally, the star of the shared vertex v + ( i 3 ) v_+(i_3) v + ( i 3 ) now contains only the irrep error on i 3 i_3 i 3 , since e 1 ′ e'_1 e 1 ′ and e 4 ′ e'_4 e 4 ′ have been corrected, and the charge of i 3 i_3 i 3 is transferred there.
Compared with the separated configuration, the overlap of the check regions costs one additional step in each stage, since i 2 i_2 i 2 has to wait for e 1 ′ e'_1 e 1 ′ and i 3 i_3 i 3 has to wait for e 1 ′ e'_1 e 1 ′ and e 4 ′ e'_4 e 4 ′ , while the number of ancillas, 14, is unchanged.
Result. In each case every free label of (44) is moved onto its own ancilla, so the protocol uses 2 N − ∣ i ⃗ A ∣ − ∣ i ⃗ B ∣ 2N-|\vec{i}_A|-|\vec{i}_B| 2 N − ∣ i A ∣ − ∣ i B ∣ ancillas, in agreement with the gauge-fixed error space dimension (45) . By (81) and (61) the data qudits are returned to ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ and the measurements of the ancillas give the error labels ( h ⃗ , μ ⃗ ) (\vec{h},\vec{\mu}) ( h , μ ) .
Ribbon Errors and Correction
An important type of error arises from ribbon operators. The details are tedious and not containing any new insights compared to what we have discussed already. Nevertheless these are important types of errors so we discuss them in App. B. A ribbon error carries a single pair of labels ( h , μ ) (h,\mu) ( h , μ ) on an extended 1d support on the lattice or dual lattice, and is detected only by the check violations at its two end-points. It is essentially an extended single-edge error. A ribbon error basis is determined in App. B.1 and we show the orthogonality on the code space. In App. B.2 the ancilla-based recovery is given, following the single-edge constructions above.
Conclusion
Non-abelian surface codes have recently seen resurged interest due to their favorably universal quantum computing properties. Unlike the surface codes for abelian groups, the QEC for non-abelian groups is still poorly understood. In this paper we address two questions that bring us closer to a universally applicable QEC protocol for such codes: we determine an orthogonal error basis, and we devise an exact recovery protocol that moves error configurations in charge neutral clusters, onto ancillas and projects them out.
One might worry that because the error transfer must initially be performed only on the boundary of a cluster, the correction scales linearly with the size of the cluster. Nevertheless, one might hope that because large clusters are very rare, it might still be possible to obtain a threshold if we only shrink the cluster by a constant amount in each error correction round rather than performing the full sequential unitary to completely shrink the cluster. We leave this numerical verification as well as finding protocols that also deal with measurement errors, to future work.
An alternative approach, which we will explore in future work, is to evade even the initial identification of the charge neutral error clusters, and to apply the error transfer protocol to the entire code, iteratively. Such a parallel QEC protocol may be even more favorable and gets around the assumption that neutral error clusters have been identified.
Acknowledgments
We thank Noa Feldman, Julio Magdalena de la Fuente, Rajath Radhakrishnan, Steve Simon and Dominic Williamson for discussions of related matters. Anthropic’s Claude Fable 5.1 and Opus 5.5 and ChatGPT Astra were used in parts of this work to improve formulations, do numerical and theorem checks. The work of SSN and AW is supported by the UKRI Frontier Research Grant, underwriting the ERC Advanced Grant “Generalized Symmetries in Quantum Field Theory and Quantum Gravity”.
Proofs
Quantum Error Correction Conditions
Here we review the Knill-Laflamme quantum error correction (QEC) conditions [49 , 50 ] , see also [51 Theorem 10.1] .
Theorem 7 (QEC conditions). Let C C C be a quantum code with code-space projector P P P , and let E \mathcal{E} E be a quantum operation with Kraus operators { E ~ μ } \{\widetilde{E}_{\mu}\} { E μ } . A necessary and sufficient condition for the existence of a recovery operation R \mathcal{R} R correcting E \mathcal{E} E on C C C is
P E ~ μ † E ~ ν P = α μ ν P . (89) P\widetilde{E}_{\mu}^{\dagger}\widetilde{E}_{\nu}P=\alpha_{\mu\nu}P . \tag*{(89)} P E μ † E ν P = α μν P . (89) Here α = ( α μ ν ) \alpha=(\alpha_{\mu\nu}) α = ( α μν ) is positive semidefinite and Hermitian.
Proof. Since α \alpha α is Hermitian, it is diagonalizable by a unitary u u u , such that
u † α u = d , (90) u^{\dagger}\alpha u=d , \tag*{(90)} u † α u = d , (90)
with d d d diagonal. The conditions (A.1) for the rotated Kraus operators
E κ = ∑ μ u μ κ E ~ μ , (91) E_{\kappa}=\sum_{\mu}u_{\mu\kappa}\widetilde{E}_{\mu}, \tag*{(91)} E κ = μ ∑ u μ κ E μ , (91)
then become
P E κ † E λ P = d κ κ δ κ λ P . (92) PE_{\kappa}^{\dagger}E_{\lambda}P=d_{\kappa\kappa}\delta_{\kappa\lambda}P . \tag*{(92)} P E κ † E λ P = d κκ δ κλ P . (92)
Restricting κ \kappa κ to the indices such that d κ κ > 0 d_{\kappa\kappa}>0 d κκ > 0 , and for each such κ \kappa κ the error syndrome projector are defined as
P κ = E κ P E κ † d κ κ . (93) P_{\kappa}=\frac{E_{\kappa}PE_{\kappa}^{\dagger}}{d_{\kappa\kappa}}. \tag*{(93)} P κ = d κκ E κ P E κ † . (93)
By (A.4) the P κ P_{\kappa} P κ are mutually orthogonal projectors onto the error subspaces and E κ / d κ κ E_{\kappa}/\sqrt{d_{\kappa\kappa}} E κ / d κκ is an isometry on the code space, which extends to a unitary U κ U_{\kappa} U κ on the full Hilbert space4 such that:
E κ P = d κ κ U κ P . (94) E_{\kappa}P=\sqrt{d_{\kappa\kappa}}U_{\kappa}P . \tag*{(94)} E κ P = d κκ U κ P . (94)
The recovery channel measures the syndromes { P κ } \{P_{\kappa}\} { P κ } and applies the corresponding U κ † U_{\kappa}^{\dagger} U κ † ,
R ( σ ) = ∑ κ U κ † P κ σ P κ U κ + P ⊥ σ P ⊥ , \mathcal{R}(\sigma)=\sum_{\kappa}U_{\kappa}^{\dagger}P_{\kappa}\sigma P_{\kappa}U_{\kappa}+P_{\perp}\sigma P_{\perp}, R ( σ ) = κ ∑ U κ † P κ σ P κ U κ + P ⊥ σ P ⊥ ,
P ⊥ = I − ∑ κ P κ . (95) P_{\perp}=\mathbb{I}-\sum_{\kappa}P_{\kappa}. \tag*{(95)} P ⊥ = I − κ ∑ P κ . (95)
The complementary projector P ⊥ P_{\perp} P ⊥ vanishes on the corrupted code space and completes R \mathcal{R} R to a trace-preserving channel. In the following, when we refer to projective measurement, we imply that such a complementary term can always be added. Then for every code state ρ = P ρ P , \rho=P\rho P, ρ = P ρP , 5 the recovery channel is
R ( E ( ρ ) ) = ∑ κ , λ U κ † P κ E λ ρ E λ † P κ U κ = ( ∑ κ d κ κ ) ρ . (96) \mathcal{R}(\mathcal{E}(\rho))=\sum_{\kappa,\lambda}U_{\kappa}^{\dagger}P_{\kappa}E_{\lambda}\rho E_{\lambda}^{\dagger}P_{\kappa}U_{\kappa}=\left(\sum_{\kappa}d_{\kappa\kappa}\right)\rho. \tag*{(96)} R ( E ( ρ )) = κ , λ ∑ U κ † P κ E λ ρ E λ † P κ U κ = ( κ ∑ d κκ ) ρ . (96)
The factor ∑ κ d κ κ = Tr [ E ( ρ ) ] \sum_{\kappa}d_{\kappa\kappa}=\operatorname{Tr}[\mathcal{E}(\rho)] ∑ κ d κκ = Tr [ E ( ρ )] is independent of ρ \rho ρ and any trace-preserving error channel E \mathcal{E} E is corrected exactly. Necessity is proven in e.g. [51 Theorem 10.1] . □ \square □
U κ † P κ E λ P = d κ κ δ κ λ P . (97) U_{\kappa}^{\dagger}P_{\kappa}E_{\lambda}P=\sqrt{d_{\kappa\kappa}}\delta_{\kappa\lambda}P . \tag*{(97)} U κ † P κ E λ P = d κκ δ κλ P . (97)
Code Distance. The code distance is the smallest support carrying an operator that is not correctable on the code space by Thm. 7 :
d = min { ∣ i ⃗ ∣ : ∃ E i ⃗ , P E i ⃗ P ∉ C P } . (98) d = \min\left\{|\vec{i}| : \exists E_{\vec{i}},\; PE_{\vec{i}}P \notin\mathcal{C}P\right\}. \tag*{(98)} d = min { ∣ i ∣ : ∃ E i , P E i P ∈ / C P } . (98)
E.g. on a square patch of linear size L L L with opposite smooth and rough boundaries, as in [21 , 22 ] , d = L d=L d = L , while for other boundary conditions d d d depends on the boundary subgroups but is still O ( L ) O(L) O ( L ) due to the topological property of the code [27 ] . Conversely, all operators on a fixed support with ∣ i ⃗ ∣ < d |\vec{i}|<d ∣ i ∣ < d obey (A.1) and are therefore correctable.
Proofs for Section 2
Lemma 8 (Single-site algebra). The operators (2) –(3) satisfy [52 ]
Z a b Γ L g = ∑ c = 1 d Γ Γ ( g ) a c L g Z c b Γ , (99) Z^{\Gamma}_{ab}L^{g}=\sum_{c=1}^{d_{\Gamma}}\Gamma(g)_{ac}L^{g}Z^{\Gamma}_{cb}, \tag*{(99)} Z ab Γ L g = c = 1 ∑ d Γ Γ ( g ) a c L g Z c b Γ , (99)
and
Z a b Γ R g = ∑ c = 1 d Γ R g Z a c Γ Γ ( g − 1 ) c b . (100) Z^{\Gamma}_{ab}R^{g}=\sum_{c=1}^{d_{\Gamma}}R^{g}Z^{\Gamma}_{ac}\Gamma(g^{-1})_{cb}. \tag*{(100)} Z ab Γ R g = c = 1 ∑ d Γ R g Z a c Γ Γ ( g − 1 ) c b . (100)
Equivalently,
L g Z a b Γ = ∑ c = 1 d Γ Γ ( g − 1 ) a c Z c b Γ L g (101) L^{g}Z^{\Gamma}_{ab}=\sum_{c=1}^{d_{\Gamma}}\Gamma(g^{-1})_{ac}Z^{\Gamma}_{cb}L^{g} \tag*{(101)} L g Z ab Γ = c = 1 ∑ d Γ Γ ( g − 1 ) a c Z c b Γ L g (101)
and
R g Z a b Γ = ∑ c = 1 d Γ Γ ( g ) c b Z a c Γ R g . (102) R^{g}Z^{\Gamma}_{ab}=\sum_{c=1}^{d_{\Gamma}}\Gamma(g)_{cb}Z^{\Gamma}_{ac}R^{g}. \tag*{(102)} R g Z ab Γ = c = 1 ∑ d Γ Γ ( g ) c b Z a c Γ R g . (102)
Proof. For any h ∈ G h\in G h ∈ G , Γ ( g h ) = Γ ( g ) Γ ( h ) \Gamma(gh)=\Gamma(g)\Gamma(h) Γ ( g h ) = Γ ( g ) Γ ( h ) gives
Z a b Γ L g ∣ h ⟩ = Γ ( g h ) a b ∣ g h ⟩ = ∑ c = 1 d Γ Γ ( g ) a c Γ ( h ) c b ∣ g h ⟩ = ∑ c = 1 d Γ Γ ( g ) a c L g Z c b Γ ∣ h ⟩ , (103) \begin{aligned}
Z^{\Gamma}_{ab}L^{g}|h\rangle=\Gamma(gh)_{ab}|gh\rangle=\sum_{c=1}^{d_{\Gamma}}\Gamma(g)_{ac}\Gamma(h)_{cb}|gh\rangle\\
&=\sum_{c=1}^{d_{\Gamma}}\Gamma(g)_{ac}L^{g}Z^{\Gamma}_{cb}|h\rangle, \tag*{(103)}
\end{aligned} Z ab Γ L g ∣ h ⟩ = Γ ( g h ) ab ∣ g h ⟩ = c = 1 ∑ d Γ Γ ( g ) a c Γ ( h ) c b ∣ g h ⟩ = c = 1 ∑ d Γ Γ ( g ) a c L g Z c b Γ ∣ h ⟩ , (103)
and likewise
Z a b Γ R g ∣ h ⟩ = Γ ( h g − 1 ) a b ∣ h g − 1 ⟩ = ∑ c = 1 d Γ Γ ( h ) a c Γ ( g − 1 ) c b ∣ h g − 1 ⟩ = ∑ c = 1 d Γ R g Z a c Γ Γ ( g − 1 ) c b ∣ h ⟩ . (104) \begin{aligned}
Z^{\Gamma}_{ab}R^{g}|h\rangle=\Gamma(hg^{-1})_{ab}|hg^{-1}\rangle
=\sum_{c=1}^{d_{\Gamma}}\Gamma(h)_{ac}\Gamma(g^{-1})_{cb}|hg^{-1}\rangle\\
&=\sum_{c=1}^{d_{\Gamma}}R^{g}Z^{\Gamma}_{ac}\Gamma(g^{-1})_{cb}|h\rangle. \tag*{(104)}
\end{aligned} Z ab Γ R g ∣ h ⟩ = Γ ( h g − 1 ) ab ∣ h g − 1 ⟩ = c = 1 ∑ d Γ Γ ( h ) a c Γ ( g − 1 ) c b ∣ h g − 1 ⟩ = c = 1 ∑ d Γ R g Z a c Γ Γ ( g − 1 ) c b ∣ h ⟩ . (104)
Proof of Proposition 3. By (23) and A v g A v h = A v g h A^{g}_{v}A^{h}_{v}=A^{gh}_{v} A v g A v h = A v g h ,
A v ( Γ , a , b ) A v ( Λ , c , d ) = d Γ d Λ ∣ G ∣ 2 ∑ g , h ∈ G Γ ( g ) a b Λ ( h ) c d A v g h . (105) A^{(\Gamma,a,b)}_{v}A^{(\Lambda,c,d)}_{v}
=\frac{d_{\Gamma}d_{\Lambda}}{|G|^{2}}\sum_{g,h\in G}\Gamma(g)_{ab}\Lambda(h)_{cd}A^{gh}_{v}. \tag*{(105)} A v ( Γ , a , b ) A v ( Λ , c , d ) = ∣ G ∣ 2 d Γ d Λ g , h ∈ G ∑ Γ ( g ) ab Λ ( h ) c d A v g h . (105)
Setting k = g h k=gh k = g h gives
A v ( Γ , a , b ) A v ( Λ , c , d ) = d Γ d Λ ∣ G ∣ 2 ∑ k , g ∈ G Γ ( g ) a b Λ ( g − 1 k ) c d A v k . (106) A^{(\Gamma,a,b)}_{v}A^{(\Lambda,c,d)}_{v}
=\frac{d_{\Gamma}d_{\Lambda}}{|G|^{2}}\sum_{k,g\in G}\Gamma(g)_{ab}\Lambda(g^{-1}k)_{cd}A^{k}_{v}. \tag*{(106)} A v ( Γ , a , b ) A v ( Λ , c , d ) = ∣ G ∣ 2 d Γ d Λ k , g ∈ G ∑ Γ ( g ) ab Λ ( g − 1 k ) c d A v k . (106)
Inserting the expansion
Λ ( g − 1 k ) c d = ∑ t = 1 d Λ Λ ( g − 1 ) c t Λ ( k ) t d , (107) \Lambda(g^{-1}k)_{cd}=\sum_{t=1}^{d_{\Lambda}}\Lambda(g^{-1})_{ct}\Lambda(k)_{td}, \tag*{(107)} Λ ( g − 1 k ) c d = t = 1 ∑ d Λ Λ ( g − 1 ) c t Λ ( k ) t d , (107)
into Schur orthogonality,
∑ g ∈ G Γ ( g ) a b Λ ( g − 1 ) c t = ∣ G ∣ d Γ δ Γ , Λ δ b , c δ a , t , (108) \sum_{g\in G}\Gamma(g)_{ab}\Lambda(g^{-1})_{ct}
=\frac{|G|}{d_{\Gamma}}\delta_{\Gamma,\Lambda}\delta_{b,c}\delta_{a,t}, \tag*{(108)} g ∈ G ∑ Γ ( g ) ab Λ ( g − 1 ) c t = d Γ ∣ G ∣ δ Γ , Λ δ b , c δ a , t , (108)
gives
∑ g ∈ G Γ ( g ) a b Λ ( g − 1 k ) c d = ∣ G ∣ d Γ δ Γ , Λ δ b , c Γ ( k ) a d , (109) \sum_{g\in G}\Gamma(g)_{ab}\Lambda(g^{-1}k)_{cd}
=\frac{|G|}{d_{\Gamma}}\delta_{\Gamma,\Lambda}\delta_{b,c}\Gamma(k)_{ad}, \tag*{(109)} g ∈ G ∑ Γ ( g ) ab Λ ( g − 1 k ) c d = d Γ ∣ G ∣ δ Γ , Λ δ b , c Γ ( k ) a d , (109)
and hence (24) . Finally, ( A v g ) † = A v g − 1 (A^{g}_{v})^{\dagger}=A^{g^{-1}}_{v} ( A v g ) † = A v g − 1 unitarity, Γ ( g ) a b ∗ = Γ ( g − 1 ) b a \Gamma(g)^{*}_{ab}=\Gamma(g^{-1})_{ba} Γ ( g ) ab ∗ = Γ ( g − 1 ) ba and the substitution g → g − 1 g\to g^{-1} g → g − 1 give (25) .
Proofs for Section 3
In this appendix, we prove various useful identifies that were stated in the main text.
Lemma 9.
C L i , v a ( ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ ) C L i , v a † = Z a b , v a Γ . (110) CL_{i,v_a}\left(\sum_{c=1}^{d_{\Gamma}}Z^{\Gamma}_{ac,i}Z^{\Gamma}_{cb,v_a}\right)CL_{i,v_a}^{\dagger}=Z^{\Gamma}_{ab,v_a}. \tag*{(110)} C L i , v a ( c = 1 ∑ d Γ Z a c , i Γ Z c b , v a Γ ) C L i , v a † = Z ab , v a Γ . (110)
and
C L i , v a † ( ∑ c = 1 d Γ Z c b , i Γ ∗ Z c a , v a Γ ∗ ) C L i , v a = Z b a , v a Γ ∗ . (111) CL_{i,v_a}^{\dagger}\left(\sum_{c=1}^{d_{\Gamma}}Z^{\Gamma^{*}}_{cb,i}Z^{\Gamma^{*}}_{ca,v_a}\right)CL_{i,v_a}=Z^{\Gamma^{*}}_{ba,v_a}. \tag*{(111)} C L i , v a † ( c = 1 ∑ d Γ Z c b , i Γ ∗ Z c a , v a Γ ∗ ) C L i , v a = Z ba , v a Γ ∗ . (111)
Proof. The operator ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ \sum_{c=1}^{d_{\Gamma}}Z^{\Gamma}_{ac,i}Z^{\Gamma}_{cb,v_a} ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ is diagonal in the group basis, with eigenvalue
( ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ ) ∣ x ⟩ i ∣ y ⟩ v a = ∑ c = 1 d Γ Γ ( x ) a c Γ ( y ) c b ∣ x ⟩ i ∣ y ⟩ v a = Γ ( x y ) a b ∣ x ⟩ i ∣ y ⟩ v a . (112) \begin{aligned}
\left(\sum_{c=1}^{d_{\Gamma}}Z^{\Gamma}_{ac,i}Z^{\Gamma}_{cb,v_a}\right)|x\rangle_i|y\rangle_{v_a}
=\sum_{c=1}^{d_{\Gamma}}\Gamma(x)_{ac}\Gamma(y)_{cb}|x\rangle_i|y\rangle_{v_a} \\
&=\Gamma(xy)_{ab}|x\rangle_i|y\rangle_{v_a}. \tag*{(112)}
\end{aligned} ( c = 1 ∑ d Γ Z a c , i Γ Z c b , v a Γ ) ∣ x ⟩ i ∣ y ⟩ v a = c = 1 ∑ d Γ Γ ( x ) a c Γ ( y ) c b ∣ x ⟩ i ∣ y ⟩ v a = Γ ( x y ) ab ∣ x ⟩ i ∣ y ⟩ v a . (112)
Conjugation by C L i , v a CL_{i,va} C L i , v a therefore removes the dependence on x x x ,
C L i , v a ( ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ ∗ ) C L i , v a † ∣ x ⟩ i ∣ y ⟩ v a = C L i , v a ( ∑ c = 1 d Γ Z a c , i Γ Z c b , v a Γ ) ∣ x ⟩ i ∣ x − 1 y ⟩ v a = Γ ( y ) a b ∣ x ⟩ i ∣ y ⟩ v a . (113) \begin{aligned}
CL_{i,va}\left(\sum_{c=1}^{d_\Gamma}Z^{\Gamma}_{ac,i}Z^{\Gamma^\ast}_{cb,va}\right)CL^\dagger_{i,va}|x\rangle_i|y\rangle_{va} \\
&=CL_{i,va}\left(\sum_{c=1}^{d_\Gamma}Z^{\Gamma}_{ac,i}Z^{\Gamma}_{cb,va}\right)|x\rangle_i|x^{-1}y\rangle_{va} \\
&=\Gamma(y)_{ab}|x\rangle_i|y\rangle_{va}. \tag*{(113)}
\end{aligned} C L i , v a ( c = 1 ∑ d Γ Z a c , i Γ Z c b , v a Γ ∗ ) C L i , v a † ∣ x ⟩ i ∣ y ⟩ v a = C L i , v a ( c = 1 ∑ d Γ Z a c , i Γ Z c b , v a Γ ) ∣ x ⟩ i ∣ x − 1 y ⟩ v a = Γ ( y ) ab ∣ x ⟩ i ∣ y ⟩ v a . (113)
For the second identity, the operator ∑ c = 1 d Γ Z c b , i Γ Z c a , v a Γ ∗ \sum_{c=1}^{d_\Gamma}Z^{\Gamma}_{cb,i}Z^{\Gamma^\ast}_{ca,va} ∑ c = 1 d Γ Z c b , i Γ Z c a , v a Γ ∗ is diagonal in the group basis, which acts on the state ∣ x ⟩ i ∣ y ⟩ v a |x\rangle_i|y\rangle_{va} ∣ x ⟩ i ∣ y ⟩ v a with eigenvalue
∑ c = 1 d Γ Γ ( y ) c a ∗ Γ ( x ) c b = ∑ c = 1 d Γ Γ ( y − 1 ) a c Γ ( x ) c b = Γ ( y − 1 x ) a b , (114) \sum_{c=1}^{d_\Gamma}\Gamma(y)_{ca}^{\ast}\Gamma(x)_{cb}
=\sum_{c=1}^{d_\Gamma}\Gamma(y^{-1})_{ac}\Gamma(x)_{cb}
=\Gamma(y^{-1}x)_{ab}, \tag*{(114)} c = 1 ∑ d Γ Γ ( y ) c a ∗ Γ ( x ) c b = c = 1 ∑ d Γ Γ ( y − 1 ) a c Γ ( x ) c b = Γ ( y − 1 x ) ab , (114)
where we used that Γ ( y ) \Gamma(y) Γ ( y ) is unitary. Since C L i , v a ∣ x ⟩ i ∣ y ⟩ v a = ∣ x ⟩ i ∣ x y ⟩ v a CL_{i,va}|x\rangle_i|y\rangle_{va}=|x\rangle_i|xy\rangle_{va} C L i , v a ∣ x ⟩ i ∣ y ⟩ v a = ∣ x ⟩ i ∣ x y ⟩ v a , conjugation by C L i , v a † CL^\dagger_{i,va} C L i , v a † gives
C L i , v a † ( ∑ c = 1 d Γ Z c b , i Γ Z c a , v a Γ ∗ ) C L i , v a ∣ x ⟩ i ∣ y ⟩ v a = Γ ( ( x y ) − 1 x ) a b ∣ x ⟩ i ∣ y ⟩ v a = Γ ( y − 1 ) a b ∣ x ⟩ i ∣ y ⟩ v a . (115) \begin{aligned}
CL^\dagger_{i,va}\left(\sum_{c=1}^{d_\Gamma}Z^{\Gamma}_{cb,i}Z^{\Gamma^\ast}_{ca,va}\right)CL_{i,va}|x\rangle_i|y\rangle_{va} \\
&=\Gamma((xy)^{-1}x)_{ab}|x\rangle_i|y\rangle_{va}
=\Gamma(y^{-1})_{ab}|x\rangle_i|y\rangle_{va}. \tag*{(115)}
\end{aligned} C L i , v a † ( c = 1 ∑ d Γ Z c b , i Γ Z c a , v a Γ ∗ ) C L i , v a ∣ x ⟩ i ∣ y ⟩ v a = Γ (( x y ) − 1 x ) ab ∣ x ⟩ i ∣ y ⟩ v a = Γ ( y − 1 ) ab ∣ x ⟩ i ∣ y ⟩ v a . (115)
Thus, Γ ( y − 1 ) a b = Γ ( y ) b a ∗ = Γ ∗ ( y ) b a \Gamma(y^{-1})_{ab}=\Gamma(y)^\ast_{ba}=\Gamma^\ast(y)_{ba} Γ ( y − 1 ) ab = Γ ( y ) ba ∗ = Γ ∗ ( y ) ba is the eigenvalue of Z b a , v a Γ ∗ Z^{\Gamma^\ast}_{ba,va} Z ba , v a Γ ∗ , which proves the second identity.
Ribbon Errors
Ribbon errors are essentially extended single-edge errors: a ribbon error carries one pair of labels ( h , μ ) (h,\mu) ( h , μ ) as in (11) on the support of a ribbon ξ \xi ξ , and it violates the checks only at the two end sites of ξ \xi ξ . The constructions of § 1.1.3 , § 1.1.5 , § 2.1 and § 2.1.1 therefore carry over step by step, with the edge i i i replaced by ξ \xi ξ , the multiplication L i h L_i^h L i h by the ribbon operator F ξ h F_\xi^h F ξ h and the irrep operator Z a b , i Γ Z^\Gamma_{ab,i} Z ab , i Γ by a Wilson line, and we only indicate the modifications.
Ribbon Error Basis
We use the ribbon conventions and properties derived in [1 , 21 , 44 , 53 , 54 ] , specialized to the square lattice with every edge oriented right or up.
Ribbon Error Basis
Let us first summarize our conventions, see also Figure 5 : ξ \xi ξ is a ribbon from the site s 0 = ( v 0 , p 0 ) s_0=(v_0,p_0) s 0 = ( v 0 , p 0 ) to the site s 1 = ( v 1 , p 1 ) s_1=(v_1,p_1) s 1 = ( v 1 , p 1 ) . It is along a path γ \gamma γ consisting of n n n consecutive edges y 1 , … , y n y_1,\ldots,y_n y 1 , … , y n from v 0 v_0 v 0 to v 1 v_1 v 1 . Its dual path crosses the n n n upward edges x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n .
Figure 5. Ribbon operators: the figure shows an open ribbon ξ \xi ξ with n = 3 n=3 n = 3 stretching from s 0 = ( v 0 , p 0 ) s_0=(v_0,p_0) s 0 = ( v 0 , p 0 ) to s 1 = ( v 1 , p 1 ) s_1=(v_1,p_1) s 1 = ( v 1 , p 1 ) . Its dual path crosses the upward edges x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n and its direct path γ \gamma γ follows the rightward edges y 1 , … , y n y_1,\ldots,y_n y 1 , … , y n . These 2 n 2n 2 n edges form supp ξ \operatorname{supp}\xi supp ξ . The end vertices are v 0 v_0 v 0 and v 1 v_1 v 1 and every check away from them commutes with the ribbon algebra.
The plaquettes at the ends of the ribbons are p 0 p_0 p 0 (above y 1 y_1 y 1 whose bottom-left corner is v 0 v_0 v 0 ) and p 1 p_1 p 1 (above the edge to the right of v 1 v_1 v 1 , whose bottom-left corner is v 1 v_1 v 1 ) such that x 1 x_1 x 1 is the right edge of p 0 p_0 p 0 and x n x_n x n is the left edge of p 1 p_1 p 1 . The 2 n 2n 2 n edges x m , y m x_m,y_m x m , y m form the support of ξ \xi ξ , and every check away from s 0 s_0 s 0 and s 1 s_1 s 1 commutes with the ribbon operators reviewed below.
Ribbon Operators. We use x m x_m x m and y m y_m y m both for an edge and for the group label of its basis state. We set y ^ 0 : = id \hat y_0:=\operatorname{id} y ^ 0 := id and y ^ m : = y 1 ⋯ y m \hat y_m:=y_1\cdots y_m y ^ m := y 1 ⋯ y m . The ribbon operators project the ordered product along γ \gamma γ onto y ^ n = g \hat y_n=g y ^ n = g and multiply each crossed edge by a transported conjugate of h h h ,
F ξ h , g : = ∑ y 1 , … , y n δ g , y ^ n ∣ y 1 , … , y n ⟩ ⟨ y 1 , … , y n ∣ ⊗ ∏ m = 1 n L x m y ^ m − 1 − 1 h y ^ m − 1 , F ξ h : = ∑ g ∈ G F ξ h , g . (116) F_\xi^{h,g}:=\sum_{y_1,\ldots,y_n}\delta_{g,\hat y_n}|y_1,\ldots,y_n\rangle\langle y_1,\ldots,y_n|
\otimes\prod_{m=1}^{n}L_{x_m}^{\hat y_{m-1}^{-1}h\hat y_{m-1}},
\qquad
F_\xi^h:=\sum_{g\in G}F_\xi^{h,g}. \tag*{(116)} F ξ h , g := y 1 , … , y n ∑ δ g , y ^ n ∣ y 1 , … , y n ⟩ ⟨ y 1 , … , y n ∣ ⊗ m = 1 ∏ n L x m y ^ m − 1 − 1 h y ^ m − 1 , F ξ h := g ∈ G ∑ F ξ h , g . (116)
They obey F ξ h , g F ξ k , l = δ g , l F ξ h k , g F_\xi^{h,g}F_\xi^{k,l}=\delta_{g,l}F_\xi^{hk,g} F ξ h , g F ξ k , l = δ g , l F ξ hk , g and ( F ξ h , g ) † = F ξ h − 1 , g (F_\xi^{h,g})^\dagger=F_\xi^{h^{-1},g} ( F ξ h , g ) † = F ξ h − 1 , g , so the ∣ G ∣ 2 |G|^2 ∣ G ∣ 2 operators F ξ h , g F_\xi^{h,g} F ξ h , g span an algebra F ξ \mathcal{F}_\xi F ξ closed under products and adjoints, and F ξ h F_\xi^h F ξ h is unitary with F ξ h F ξ k = F ξ h k F_\xi^hF_\xi^k=F_\xi^{hk} F ξ h F ξ k = F ξ hk .
Every A v A_v A v and B p B_p B p not at s 0 s_0 s 0 or s 1 s_1 s 1 commutes with F ξ \mathcal{F}_\xi F ξ , since F ξ h , g F_\xi^{h,g} F ξ h , g preserves the flux of every plaquette between consecutive crossed edges and the vertex operators at the interior vertices of γ \gamma γ leave y ^ n \hat y_n y ^ n and the transported conjugates invariant. At the end sites, with the conventions of (2) and (4) and the clockwise holonomy of p j p_j p j based at v j v_j v j they satisfy [44 , 54 ]
A v 0 k F ξ h , g = F ξ k h k − 1 , k g A v 0 k , A_{v_0}^kF_\xi^{h,g}=F_\xi^{khk^{-1},kg}A_{v_0}^k, A v 0 k F ξ h , g = F ξ k h k − 1 , k g A v 0 k ,
A v 1 k F ξ h , g = F ξ h , g k − 1 A v 1 k , A_{v_1}^kF_\xi^{h,g}=F_\xi^{h,gk^{-1}}A_{v_1}^k, A v 1 k F ξ h , g = F ξ h , g k − 1 A v 1 k ,
B p 0 f F ξ h , g = F ξ h , g B p 0 f , B_{p_0}^fF_\xi^{h,g}=F_\xi^{h,g}B_{p_0}^f, B p 0 f F ξ h , g = F ξ h , g B p 0 f ,
B p 1 f F ξ h , g = F ξ h , g B p 1 g − 1 h − 1 g f . (117) B_{p_1}^fF_\xi^{h,g}=F_\xi^{h,g}B_{p_1}^{g^{-1}h^{-1}gf}. \tag*{(117)} B p 1 f F ξ h , g = F ξ h , g B p 1 g − 1 h − 1 g f . (117)
Ribbon Error Basis. The Wilson line along γ \gamma γ replaces the single-edge irrep operator (3) ,
Z a b Γ ( γ ) : = Γ ( y ^ n ) a b = ∑ c 1 , … , c n − 1 Z a c 1 , y 1 Γ Z c 1 c 2 , y 2 Γ ⋯ Z c n − 1 b , y n Γ . (118) Z^\Gamma_{ab}(\gamma):=\Gamma(\hat y_n)_{ab}
=\sum_{c_1,\ldots,c_{n-1}}Z^\Gamma_{ac_1,y_1}Z^\Gamma_{c_1c_2,y_2}\cdots Z^\Gamma_{c_{n-1}b,y_n}. \tag*{(118)} Z ab Γ ( γ ) := Γ ( y ^ n ) ab = c 1 , … , c n − 1 ∑ Z a c 1 , y 1 Γ Z c 1 c 2 , y 2 Γ ⋯ Z c n − 1 b , y n Γ . (118)
and, for μ = ( Γ , a , b ) \mu=(\Gamma,a,b) μ = ( Γ , a , b ) , the ribbon errors are
E ξ μ : = d Γ Z a b Γ ( γ ) , E_{\xi}^{\mu}:=\sqrt{d_{\Gamma}}Z_{ab}^{\Gamma}(\gamma), E ξ μ := d Γ Z ab Γ ( γ ) ,
E ξ h , μ : = F ξ h E ξ μ = d Γ ∑ g ∈ G Γ ( g ) a b F ξ h , g . (119) E_{\xi}^{h,\mu}:=F_{\xi}^{h}E_{\xi}^{\mu}=\sqrt{d_{\Gamma}}\sum_{g\in G}\Gamma(g)_{ab}F_{\xi}^{h,g}. \tag*{(119)} E ξ h , μ := F ξ h E ξ μ = d Γ g ∈ G ∑ Γ ( g ) ab F ξ h , g . (119)
with E ξ i d , 1 = I E_{\xi}^{\mathrm{id},1}=I E ξ id , 1 = I . This is (11) with L i h L_i^h L i h replaced by F ξ h F_{\xi}^h F ξ h and Z a b , i Γ Z_{ab,i}^{\Gamma} Z ab , i Γ by Z a b Γ ( γ ) Z_{ab}^{\Gamma}(\gamma) Z ab Γ ( γ ) , with a single pair of labels ( h , μ ) (h,\mu) ( h , μ ) for the whole support.
Proposition 10 (Ribbon error basis). For fixed ξ \xi ξ the ∣ G ∣ 2 |G|^2 ∣ G ∣ 2 operators E ξ h , μ E_{\xi}^{h,\mu} E ξ h , μ form an orthogonal basis of F ξ \mathcal{F}_{\xi} F ξ ,
Tr [ ( E ξ h , μ ) † E ξ k , ν ] = ∣ G ∣ 2 n δ h , k δ μ , ν . (120) \operatorname{Tr}\left[(E_{\xi}^{h,\mu})^\dagger E_{\xi}^{k,\nu}\right]=|G|^{2n}\delta_{h,k}\delta_{\mu,\nu}. \tag*{(120)} Tr [ ( E ξ h , μ ) † E ξ k , ν ] = ∣ G ∣ 2 n δ h , k δ μ , ν . (120)
Proof. Since
Tr L a = ∣ G ∣ δ a , i d , ∣ { y : y ^ n = g } ∣ = ∣ G ∣ n − 1 , (121) \operatorname{Tr}L^a=|G|\delta_{a,\mathrm{id}},\qquad|\{y:\widehat{y}_n=g\}|=|G|^{n-1}, \tag*{(121)} Tr L a = ∣ G ∣ δ a , id , ∣ { y : y n = g } ∣ = ∣ G ∣ n − 1 , (121)
equation (B.1) gives Tr F ξ u , g = ∣ G ∣ 2 n − 1 δ u , i d \operatorname{Tr}F_{\xi}^{u,g}=|G|^{2n-1}\delta_{u,\mathrm{id}} Tr F ξ u , g = ∣ G ∣ 2 n − 1 δ u , id , so
Tr [ ( F ξ h , g ) † F ξ k , l ] = ∣ G ∣ 2 n − 1 δ h , k δ g , l (122) \operatorname{Tr}\left[(F_{\xi}^{h,g})^\dagger F_{\xi}^{k,l}\right]=|G|^{2n-1}\delta_{h,k}\delta_{g,l} \tag*{(122)} Tr [ ( F ξ h , g ) † F ξ k , l ] = ∣ G ∣ 2 n − 1 δ h , k δ g , l (122)
by the algebra relations. Inserting (B.4) and using Schur orthogonality as in (13) gives (B.5), and ∣ G ∣ 2 ∑ Γ d Γ 2 = ∣ G ∣ 2 = dim F ξ |G|^2\sum_{\Gamma}d_{\Gamma}^2=|G|^2=\dim\mathcal{F}_{\xi} ∣ G ∣ 2 ∑ Γ d Γ 2 = ∣ G ∣ 2 = dim F ξ gives completeness.
The factor ∣ G ∣ 2 n |G|^{2n} ∣ G ∣ 2 n replaces the ∣ G ∣ |G| ∣ G ∣ of (12) because F ξ \mathcal{F}_{\xi} F ξ is a ∣ G ∣ 2 |G|^2 ∣ G ∣ 2 -dimensional subalgebra of the operators on the 2 n 2n 2 n edges of supp ξ \operatorname{supp}\xi supp ξ .
Flux and Charge Checks at the Ends
As in (38) we collect the checks at the two end sites,
v ( ξ ) : = { v 0 , v 1 } , p ( ξ ) : = { p 0 , p 1 } , v(\xi):=\{v_0,v_1\},\qquad p(\xi):=\{p_0,p_1\}, v ( ξ ) := { v 0 , v 1 } , p ( ξ ) := { p 0 , p 1 } ,
P ξ : = A v 0 A v 1 B p 0 B p 1 . (123) P_{\xi}:=A_{v_0}A_{v_1}B_{p_0}B_{p_1}. \tag*{(123)} P ξ := A v 0 A v 1 B p 0 B p 1 . (123)
Substituting (B.2) into (B.4) gives the ribbon analogue of (55) ,
A v 1 k E ξ h , ( Γ , a , b ) = ∑ c = 1 d Γ Γ ( k ) c b E ξ h , ( Γ , a , c ) A v 1 k , A_{v_1}^{k}E_{\xi}^{h,(\Gamma,a,b)}
=\sum_{c=1}^{d_{\Gamma}}\Gamma(k)_{cb}E_{\xi}^{h,(\Gamma,a,c)}A_{v_1}^{k}, A v 1 k E ξ h , ( Γ , a , b ) = c = 1 ∑ d Γ Γ ( k ) c b E ξ h , ( Γ , a , c ) A v 1 k ,
A v 0 k E ξ h , ( Γ , a , b ) = ∑ c = 1 d Γ Γ ( k − 1 ) a c E ξ k h k − 1 , ( Γ , c , b ) A v 0 k . (124) A_{v_0}^{k}E_{\xi}^{h,(\Gamma,a,b)}
=\sum_{c=1}^{d_{\Gamma}}\Gamma(k^{-1})_{ac}E_{\xi}^{khk^{-1},(\Gamma,c,b)}A_{v_0}^{k}. \tag*{(124)} A v 0 k E ξ h , ( Γ , a , b ) = c = 1 ∑ d Γ Γ ( k − 1 ) a c E ξ k h k − 1 , ( Γ , c , b ) A v 0 k . (124)
so γ \gamma γ behaves at v 1 v_1 v 1 as an edge entering v 1 v_1 v 1 and at v 0 v_0 v 0 as an edge leaving v 0 v_0 v 0 , with b b b the charge index at v 1 v_1 v 1 and a a a that at v 0 v_0 v 0 .
Lemma 11 (Ribbon detectability). Let v 0 ≠ v 1 v_0\ne v_1 v 0 = v 1 and p 0 ≠ p 1 p_0\ne p_1 p 0 = p 1 , with all four checks untruncated. Then for h ≠ i d h\ne\mathrm{id} h = id
B p 0 F ξ h , g B p 0 = 0 , B p 0 E ξ h , μ B p 0 = 0 , (125) B_{p_0}F_{\xi}^{h,g}B_{p_0}=0,\qquad B_{p_0}E_{\xi}^{h,\mu}B_{p_0}=0, \tag*{(125)} B p 0 F ξ h , g B p 0 = 0 , B p 0 E ξ h , μ B p 0 = 0 , (125) for μ = ( Γ , a , b ) \mu=(\Gamma,a,b) μ = ( Γ , a , b ) with Γ ≠ 1 \Gamma\ne1 Γ = 1
A v 1 E ξ μ A v 1 = 0 , (126) A_{v_1}E_{\xi}^{\mu}A_{v_1}=0, \tag*{(126)} A v 1 E ξ μ A v 1 = 0 , (126) and hence P ξ E ξ h , μ P ξ = 0 P_{\xi}E_{\xi}^{h,\mu}P_{\xi}=0 P ξ E ξ h , μ P ξ = 0 for every ( h , μ ) ≠ ( i d , 1 ) (h,\mu)\ne(\mathrm{id},1) ( h , μ ) = ( id , 1 ) .
Proof. This is Lemmas 2 and 4 for a ribbon. The third relation of (B.2) with f = i d f=\mathrm{id} f = id gives B p 0 F ξ h , g B p 0 = F ξ h , g B p 0 h B p 0 i d = 0 B_{p_0}F_{\xi}^{h,g}B_{p_0}=F_{\xi}^{h,g}B_{p_0}^{h}B_{p_0}^{\mathrm{id}}=0 B p 0 F ξ h , g B p 0 = F ξ h , g B p 0 h B p 0 id = 0 for h ≠ i d h\ne\mathrm{id} h = id , and E ξ μ E_{\xi}^{\mu} E ξ μ is diagonal in the group basis, which gives (B.10). Averaging the first line of (B.9) over k k k , Schur orthogonality ∑ k Γ ( k ) c b = ∣ G ∣ δ Γ , 1 \sum_k\Gamma(k)_{cb}=|G|\delta_{\Gamma,1} ∑ k Γ ( k ) c b = ∣ G ∣ δ Γ , 1 gives (B.11). Finally, each of the four projectors in P ξ P_{\xi} P ξ commutes with the other three, so P ξ E ξ h , μ P ξ P_{\xi}E_{\xi}^{h,\mu}P_{\xi} P ξ E ξ h , μ P ξ contains the factor B p 0 E ξ h , μ B p 0 B_{p_0}E_{\xi}^{h,\mu}B_{p_0} B p 0 E ξ h , μ B p 0 for h ≠ i d h\ne\mathrm{id} h = id and the factor A v 1 E ξ μ A v 1 A_{v_1}E_{\xi}^{\mu}A_{v_1} A v 1 E ξ μ A v 1 for h = i d h=\mathrm{id} h = id . Note that the diagonal E ξ μ E_{\xi}^{\mu} E ξ μ does not commute with A v 0 A_{v_0} A v 0 , see the second line of (B.9), but this is not needed.
We can now prove a ribbon version of the Knill-Laflamme theorem:
Theorem 12 (Ribbon Knill-Laflamme). Let ξ \xi ξ satisfy the hypotheses of Lemma 11 and not host a logical operator. Then
P ξ ( E ξ h , μ ) † E ξ k , ν P ξ = δ h , k δ μ , ν P ξ , (127) P_{\xi}(E_{\xi}^{h,\mu})^\dagger E_{\xi}^{k,\nu}P_{\xi}
=\delta_{h,k}\delta_{\mu,\nu}P_{\xi}, \tag*{(127)} P ξ ( E ξ h , μ ) † E ξ k , ν P ξ = δ h , k δ μ , ν P ξ , (127) and the same holds with P ξ P_{\xi} P ξ replaced by the global projector P P P , so the Knill-Laflamme matrix of the ∣ G ∣ 2 |G|^2 ∣ G ∣ 2 ribbon errors is the identity.
Proof. Since F ξ \mathcal{F}_{\xi} F ξ is closed under products and adjoints, ( E ξ h , μ ) † E ξ k , ν ∈ F ξ (E_{\xi}^{h,\mu})^\dagger E_{\xi}^{k,\nu}\in\mathcal{F}_{\xi} ( E ξ h , μ ) † E ξ k , ν ∈ F ξ can be expanded in the basis of Proposition 10, with the coefficient δ h , k δ μ , ν \delta_{h,k}\delta_{\mu,\nu} δ h , k δ μ , ν of E ξ i d , 1 = I E_{\xi}^{\mathrm{id},1}=I E ξ id , 1 = I fixed by (B.5). Conjugation by P ξ P_{\xi} P ξ annihilates every other term by Lemma 11. No bound on the length n n n is needed, since every term is again a ribbon error on ξ \xi ξ . Since P ξ P = P ξ P_{\xi}P=P_{\xi} P ξ P = P ξ , the global identity follows.
Ribbon Correction Circuits
Ribbons with the same end sites that are related by a deformation through a region without excitations and without boundaries act identically on the code space [1 , 44 , 53 ] and belong to the same error sector. Ribbons in different relative homotopy classes can differ by a logical operator and are excluded by the hypothesis of the theorem.
Flux Transfer. We correct a ribbon error E ξ h , μ ∣ ψ ⟩ E_{\xi}^{h,\mu}|\psi\rangle E ξ h , μ ∣ ψ ⟩ with ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ a code state, by the two-stage protocol of § 2.1.2 , first removing h h h and then μ \mu μ . As in § 2.1.1 we base the holonomy of p 0 p_0 p 0 at v 0 v_0 v 0 and traverse ∂ p 0 \partial p_0 ∂ p 0 along the orientation of the first edges of the ribbon, first along y 1 y_1 y 1 and then along x 1 x_1 x 1 . With g 1 g_1 g 1 and g 2 g_2 g 2 the labels of the left and top edges of p 0 p_0 p 0 as in (4) , this holonomy is y 1 x 1 g 2 − 1 g 1 − 1 y_1x_1g_2^{-1}g_1^{-1} y 1 x 1 g 2 − 1 g 1 − 1 , and since F ξ h F_{\xi}^{h} F ξ h maps x 1 x_1 x 1 to y 1 − 1 h y 1 x 1 y_1^{-1}hy_1x_1 y 1 − 1 h y 1 x 1 it multiplies the holonomy by h h h from the left, exactly as L i h L_i^h L i h in (77) . Denoting by B p 0 g B_{p_0}^{g} B p 0 g the projector onto this holonomy, the controlled holonomy V p 0 V_{p_0} V p 0 of (76) and (78) gives
V p 0 ∣ i d ⟩ p a ⊗ E ξ h , μ ∣ ψ ⟩ = ∣ h ⟩ p a ⊗ E ξ h , μ ∣ ψ ⟩ , (128) V_{p_0}| \mathrm{id}\rangle_{\mathrm{pa}}\otimes E_{\xi}^{h,\mu}|\psi\rangle
=|h\rangle_{\mathrm{pa}}\otimes E_{\xi}^{h,\mu}|\psi\rangle, \tag*{(128)} V p 0 ∣ id ⟩ pa ⊗ E ξ h , μ ∣ ψ ⟩ = ∣ h ⟩ pa ⊗ E ξ h , μ ∣ ψ ⟩ , (128)
where we used that E ξ μ E^{\mu}_{\xi} E ξ μ is diagonal in the group basis. The ribbon analogue of C L p a , i † CL^{\dagger}_{pa,i} C L p a , i † in (79) is the controlled inverse ribbon operator
C F p a , ξ † : = ∑ f ∈ G ∣ f ⟩ ⟨ f ∣ p a ⊗ F ξ f − 1 , CF^{\dagger}_{pa,\xi}:=\sum_{f\in G}|f\rangle\langle f|_{pa}\otimes F^{f^{-1}}_{\xi}, C F p a , ξ † := f ∈ G ∑ ∣ f ⟩ ⟨ f ∣ p a ⊗ F ξ f − 1 ,
C F p a , ξ † V p 0 ∣ i d ⟩ p a ⊗ E ξ h , μ ∣ ψ ⟩ = ∣ h ⟩ p a ⊗ E ξ μ ∣ ψ ⟩ . (129) CF^{\dagger}_{pa,\xi}V_{p_{0}}|id\rangle_{pa}\otimes E^{h,\mu}_{\xi}|\psi\rangle=|h\rangle_{pa}\otimes E^{\mu}_{\xi}|\psi\rangle. \tag*{(129)} C F p a , ξ † V p 0 ∣ i d ⟩ p a ⊗ E ξ h , μ ∣ ψ ⟩ = ∣ h ⟩ p a ⊗ E ξ μ ∣ ψ ⟩ . (129)
which is unitary since F ξ h F^{h}_{\xi} F ξ h is a unitary representation of G G G , and a measurement of the ancilla in the group basis identifies h h h . In terms of controlled multiplications (53) , first write the partial products y ^ m \hat{y}_{m} y ^ m onto the edges y m y_{m} y m with Y γ : = C L y n − 1 , y n ⋯ C L y 2 , y 3 C L y 1 , y 2 Y_{\gamma}:=CL_{y_{n-1},y_{n}}\cdots CL_{y_{2},y_{3}}CL_{y_{1},y_{2}} Y γ := C L y n − 1 , y n ⋯ C L y 2 , y 3 C L y 1 , y 2 , with the rightmost gate applied first. Then L x m y ^ m − 1 − 1 y ^ m = C L y m , x m † L x m y ^ m − 1 − 1 C L y m , x m L^{\hat{y}_{m-1}^{-1}\hat{y}_{m}}_{x_{m}}=CL^{\dagger}_{y_{m},x_{m}}L^{\hat{y}_{m-1}^{-1}}_{x_{m}}CL_{y_{m},x_{m}} L x m y ^ m − 1 − 1 y ^ m = C L y m , x m † L x m y ^ m − 1 − 1 C L y m , x m , so
C F p a , ξ † = Y γ † [ ∏ m = 1 n C L y m , x m † C L p a , x m † C L y m , x m ] Y γ , (130) CF^{\dagger}_{pa,\xi}=Y_{\gamma}^{\dagger}\left[\prod_{m=1}^{n}CL^{\dagger}_{y_{m},x_{m}}CL^{\dagger}_{pa,x_{m}}CL_{y_{m},x_{m}}\right]Y_{\gamma}, \tag*{(130)} C F p a , ξ † = Y γ † [ m = 1 ∏ n C L y m , x m † C L p a , x m † C L y m , x m ] Y γ , (130)
where the factors for different m m m commute. For n = 1 n=1 n = 1 this reduces to the single-edge gate C L p a , x 1 † CL^{\dagger}_{pa,x_{1}} C L p a , x 1 † conjugated by C L y 1 , x 1 CL_{y_{1},x_{1}} C L y 1 , x 1 , which transports the error to the basepoint v 0 v_{0} v 0 .
Charge Transfer. After the flux stage the data qudits are in E ξ μ ∣ ψ ⟩ E^{\mu}_{\xi}|\psi\rangle E ξ μ ∣ ψ ⟩ , with A v 1 k ∣ ψ ⟩ = ∣ ψ ⟩ A^{k}_{v_{1}}|\psi\rangle=|\psi\rangle A v 1 k ∣ ψ ⟩ = ∣ ψ ⟩ . By the first line of (B.9), the ribbon behaves at v 1 v_{1} v 1 as an edge entering v 1 v_{1} v 1 , so the controlled vertex operator U v 1 U_{v_{1}} U v 1 of (52) acts as in (57) ,
U v 1 ∣ 1 ⟩ v a ⊗ E ξ μ ∣ ψ ⟩ = d Γ ∑ c = 1 d Γ Z a c Γ ( γ ) Z c b , v a Γ ( ∣ 1 ⟩ v a ⊗ ∣ ψ ⟩ ) . (131) U_{v_{1}}|1\rangle_{va}\otimes E^{\mu}_{\xi}|\psi\rangle=\sqrt{d_{\Gamma}}\sum_{c=1}^{d_{\Gamma}}Z^{\Gamma}_{ac}(\gamma)Z^{\Gamma}_{cb,va}(|1\rangle_{va}\otimes|\psi\rangle). \tag*{(131)} U v 1 ∣1 ⟩ v a ⊗ E ξ μ ∣ ψ ⟩ = d Γ c = 1 ∑ d Γ Z a c Γ ( γ ) Z c b , v a Γ ( ∣1 ⟩ v a ⊗ ∣ ψ ⟩) . (131)
The operator in the sum has eigenvalue Γ ( y ^ n w ) a b \Gamma(\hat{y}_{n}w)_{ab} Γ ( y ^ n w ) ab on ∣ y 1 , … , y n ⟩ ⊗ ∣ w ⟩ v a |y_{1},\ldots,y_{n}\rangle\otimes|w\rangle_{va} ∣ y 1 , … , y n ⟩ ⊗ ∣ w ⟩ v a , so the single-edge gate C L i , v a CL_{i,va} C L i , v a of (58) is replaced by the controlled multiplication by the ordered product along γ \gamma γ ,
C L γ , v a : = C L y 1 , v a C L y 2 , v a ⋯ C L y n , v a , CL_{\gamma,va}:=CL_{y_{1},va}CL_{y_{2},va}\cdots CL_{y_{n},va}, C L γ , v a := C L y 1 , v a C L y 2 , v a ⋯ C L y n , v a ,
C L γ , v a ∣ y ⃗ ⟩ ⊗ ∣ w ⟩ v a = ∣ y ⃗ ⟩ ⊗ ∣ y ^ n w ⟩ v a , (132) CL_{\gamma,va}|\vec{y}\rangle\otimes|w\rangle_{va}=|\vec{y}\rangle\otimes|\hat{y}_{n}w\rangle_{va}, \tag*{(132)} C L γ , v a ∣ y ⟩ ⊗ ∣ w ⟩ v a = ∣ y ⟩ ⊗ ∣ y ^ n w ⟩ v a , (132)
with y ⃗ : = ( y 1 , … , y n ) \vec{y}:=(y_{1},\ldots,y_{n}) y := ( y 1 , … , y n ) and the rightmost gate applied first. As in (59) and (60) , conjugation by C L γ , v a CL_{\gamma,va} C L γ , v a maps the operator in (B.16) to Z a b , v a Γ Z^{\Gamma}_{ab,va} Z ab , v a Γ and C L γ , v a CL_{\gamma,va} C L γ , v a fixes ∣ 1 ⟩ v a |1\rangle_{va} ∣1 ⟩ v a , so
C L γ , v a U v 1 ∣ 1 ⟩ v a ⊗ E ξ μ ∣ ψ ⟩ = ∣ Γ a b ⟩ v a ⊗ ∣ ψ ⟩ . (133) CL_{\gamma,va}U_{v_{1}}|1\rangle_{va}\otimes E^{\mu}_{\xi}|\psi\rangle=|\Gamma_{ab}\rangle_{va}\otimes|\psi\rangle. \tag*{(133)} C L γ , v a U v 1 ∣1 ⟩ v a ⊗ E ξ μ ∣ ψ ⟩ = ∣ Γ ab ⟩ v a ⊗ ∣ ψ ⟩ . (133)
The data qudits return to ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ and the Fourier transform (17) followed by a measurement in the group basis returns μ = ( Γ , a , b ) \mu=(\Gamma,a,b) μ = ( Γ , a , b ) . The complete recovery of a ribbon error therefore uses two ancillas, one per label, and consists of controlled group multiplications and one Fourier transform, exactly as for a single edge. For n = 1 n=1 n = 1 with γ \gamma γ a single edge the ribbon transfers reduce to the single-edge transfers of Secs. 3.1 and 3.2, up to the transport by y 1 y_{1} y 1 in (B.15).
Junctions and Boundary Ends. Several ribbons with pairwise disjoint supports that share one end site and whose other end sites carry distinct, untruncated checks form a multi-ribbon support, with one pair of labels per ribbon. Each nontrivial label pair is detected at the private far end by Lemma 11 if the shared site is s 1 s_{1} s 1 . If the shared site is s 0 s_{0} s 0 , the flux is detected at p 1 p_{1} p 1 by the last line of (B.2), B p 1 F ξ h , g B p 1 = F ξ h , g B p 1 g − 1 h − 1 B p 1 = 0 B_{p_{1}}F^{h,g}_{\xi}B_{p_{1}}=F^{h,g}_{\xi}B_{p_{1}}^{g^{-1}h^{-1}}B_{p_{1}}=0 B p 1 F ξ h , g B p 1 = F ξ h , g B p 1 g − 1 h − 1 B p 1 = 0 for h ≠ i d h\ne id h = i d , and the charge is detected at v 0 v_{0} v 0 by averaging the second line of (B.9) over k k k , so Lemma 11 holds with ( p 0 , v 1 ) (p_{0},v_{1}) ( p 0 , v 1 ) replaced by ( p 1 , v 0 ) (p_{1},v_{0}) ( p 1 , v 0 ) , so the proof of Theorem 12 applies with (B.5) tensored over the ribbons, and the transfers above are applied ribbon by ribbon, starting from the far ends as in § 2.1.2 . A ribbon may also end on a boundary without leaving a boundary excitation when the anyon it deposits there condenses [44 ] . At a smooth end v 1 v_{1} v 1 , B p 1 = I B_{p_{1}}=\mathbb{I} B p 1 = I while the flux is still read at p 0 p_{0} p 0 , so Lemma 11 and the flux transfer are unchanged. At a rough end v 1 v_{1} v 1 , A v 1 = I A_{v_{1}}=\mathbb{I} A v 1 = I and the charge is read at v 0 v_{0} v 0 instead, where by the second line of (B.9) the ribbon behaves as an edge leaving v 0 v_{0} v 0 , so the charge transfer is the second line of (63) , with C L i , v a † CL^{\dagger}_{i,va} C L i , v a † in place of C L i , v a † CL^{\dagger}_{i,va} C L i , v a † .