<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Universal logical gates with constant overhead: instantaneous Dehn twists for hyperbolic quantum codes</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>08/26/2019</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10146601</idno>
					<idno type="doi">10.22331/q-2019-08-26-180</idno>
					<title level='j'>Quantum</title>
<idno>2521-327X</idno>
<biblScope unit="volume">3</biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Ali Lavasani</author><author>Guanyu Zhu</author><author>Maissam Barkeshli</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[A basic question in the theory of fault-tolerant quantum computation is to understand the fundamental resource costs for performing a universal logical set of gates on encoded qubits to arbitrary accuracy. Here we consider qubits encoded with constant space overhead (i.e. finite encoding rate) in the limit of arbitrarily large code distance                              d                            through the use of topological codes associated to triangulations of hyperbolic surfaces. We introduce explicit protocols to demonstrate how Dehn twists of the hyperbolic surface can be implemented on the code through constant depth unitary circuits, without increasing the space overhead. The circuit for a given Dehn twist consists of a permutation of physical qubits, followed by a constant depth local unitary circuit, where locality here is defined with respect to a hyperbolic metric that defines the code. Applying our results to the hyperbolic Fibonacci Turaev-Viro code implies the possibility of applying universal logical gate sets on encoded qubits through constant depth unitary circuits and with constant space overhead. Our circuits are inherently protected from errors as they map local operators to local operators while changing the size of their support by at most a constant factor; in the presence of noisy syndrome measurements, our results suggest the possibility of universal fault tolerant quantum computation with constant space overhead and time overhead of                                                O                                (                d                                  /                                log                                d                )                            . For quantum circuits that allow parallel gate operations, this yields the optimal scaling of space-time overhead known to date.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>The significant effects of decoherence on quantum systems require that a fault-tolerant quantum computer appropriately encode logical quantum information and Guanyu Zhu: Current affiliation is IBM T.J. Watson Research Center, Yorktown Heights, NY 10598.</p><p>furthermore apply logical gates directly on the encoded qubits <ref type="bibr">[47,</ref><ref type="bibr">51]</ref>. However it is currently an open question to understand the ultimate asymptotic resource costs required for performing quantum error correction and fault-tolerant quantum computation. In this work we improve upon the known optimal asymptotic space-time resource costs by proposing constant depth topologically protected unitary circuits that implement a universal set of logical gates for the Tuarev-Viro codes <ref type="bibr">[34]</ref> defined on hyperbolic surfaces. Our protocols demonstrate that protected universal gate sets can be applied in parallel and with constant space overhead using constant depth unitary circuits.</p><p>A quantum error correcting code (QECC) encodes k logical qubits using n physical qubits, such that a logical error occurs if and only if errors occur on at least d/2 distinct physical qubits, where d is referred to as the code distance. The ratio k/n is called the encoding rate. If a family of <ref type="bibr">[[n, k, d]</ref>] QECCs possess a finite error threshold p th and errors on physical qubits are independent and occur with probability p, then a logical error will occur with probability p L &#8733; (p/p th ) d/2 . Therefore as long as p &lt; p th , the logical error rate can be made exponentially small as d is increased. In order to achieve fault-tolerant quantum computation, it must further be possible to implement an accurate universal set of logical gates on the encoded qubits.</p><p>The fault-tolerant storage and processing of quantum information come at significant resource costs in both space overhead, n/k, and the time overhead for implementing logical gates. Families of QECCs that are known to possess a finite error threshold, code distance d growing with n, and constant space overhead, where n/k is a constant independent of code distance d, have been proposed through two basic constructions. The first is in terms of topological codes defined on the cellulation of hyperbolic space <ref type="bibr">[26,</ref><ref type="bibr">29]</ref>. The second is the hypergraph product code construction <ref type="bibr">[40,</ref><ref type="bibr">52]</ref> 1 .</p><p>1 Many other QECCs with constant space overhead are also known (see e.g. Ref. <ref type="bibr">[10,</ref><ref type="bibr">17]</ref>), however it is not clear whether they possess a finite error threshold, as they are not low density parity check (LDPC) codes. The LDPC property guarantees that While constant space overhead is known to be possible, it is unclear what the fundamental time overhead must be for performing a universal set of logical gates. Universal logical gate sets on encoded qubits can in general be implemented through three known methods:</p><p>(1) state distillation and gate implementation through measurements <ref type="bibr">[11,</ref><ref type="bibr">47]</ref>, (2) code switching <ref type="bibr">[48]</ref>, and (3) braiding or Dehn twist operations in appropriate classes of topological codes <ref type="bibr">[2,</ref><ref type="bibr">8,</ref><ref type="bibr">25,</ref><ref type="bibr">33,</ref><ref type="bibr">34,</ref><ref type="bibr">41,</ref><ref type="bibr">54]</ref>.</p><p>The methods (1) -( <ref type="formula">3</ref>) necessarily require either (a) measurements, which are non-trivial to take faulttolerantly, together with follow-up operations that depend on the results of those measurements, or (b) unitary circuits whose depth grows linearly with the code distance. An exception is the class of protocols recently introduced in Ref. <ref type="bibr">[57,</ref><ref type="bibr">58]</ref>, which demonstrate how universal gate sets can be applied through constant depth unitary circuits (with the depth independent of n and d).</p><p>To date, it has not been demonstrated how methods (2) or (3) can be combined with QECCs that have constant space overhead. Moreover, to our knowledge the optimal space-time overhead achieved using method ( <ref type="formula">1</ref>) is due to a proposal of Gottesman <ref type="bibr">[28]</ref>, who showed that constant space and time overhead are simultaneously achievable for sequential quantum circuits. This means that a generic quantum circuit of depth D, which can be implemented in O(D) time using parallel gate operations, could take up to time O(kD) if implemented sequentially. Note that for quantum codes with constant encoding rate, k is proportional to n and as such, the circuit depth of the sequential implementation could grow linearly with the system size.</p><p>In this paper we consider the most general class of topological codes, which we refer to as Turaev-Viro codes. These are based on Turaev-Viro-Barrett-Westbury topological quantum field theories (TQFTs) <ref type="bibr">[3,</ref><ref type="bibr">53]</ref> and are stabilized by the Levin-Wen string-net Hamiltonians <ref type="bibr">[41]</ref>. This class of TQFTs include, as special cases, the theories that describe the Kitaev surface code and quantum double models <ref type="bibr">[33]</ref>. The use of these TQFTs and the associated Levin-Wen Hamiltonians as quantum codes was discussed explicitly in Ref. <ref type="bibr">[34]</ref>.</p><p>Here we consider Turaev-Viro codes defined on triangulations of hyperbolic surfaces. As we review below, the constant negative curvature of the hyperbolic surface allows for a finite encoding rate and thus constant space overhead for the associated topological code <ref type="bibr">[26]</ref>. Such hyperbolic codes can be implemented in a flat two-dimensional layout of physical qubits by allowing long-range couplings between the physical qubitsa stabilizer code with d &#8764; n &#945; for &#945; &gt; 0 will have finite error threshold. <ref type="bibr">[36]</ref>. On the other hand, many quantum LDPC codes with bounded d in the limit of n &#8594; &#8734; are also known.</p><p>a possibility allowed by a variety of quantum computing architectures (e.g. ion traps <ref type="bibr">[39,</ref><ref type="bibr">42]</ref>, modular architectures of superconducting cavity networks <ref type="bibr">[1,</ref><ref type="bibr">18,</ref><ref type="bibr">19,</ref><ref type="bibr">37]</ref>, Rydberg atoms <ref type="bibr">[20,</ref><ref type="bibr">43,</ref><ref type="bibr">49,</ref><ref type="bibr">50]</ref> and silicon photonics <ref type="bibr">[30]</ref>), and a necessary requirement for any QECC with constant space overhead. In particular, a recent experimental realization of hyperbolic circuit QED lattices <ref type="bibr">[35]</ref> is achieved by utilizing the feature that the cavity quantum bus (used to connect superconducting qubits) can have a wide range of length scales.</p><p>The main result of our paper is an explicit protocol for implementing Dehn twist operations in hyperbolic Turaev-Viro codes through constant depth unitary circuits. Here constant depth refers to the fact that the depth of the circuit is independent of n and d. We note that throughout this paper, by constant depth unitary circuit, we assume implicitly that every gate in the circuit also acts on a constant number (independent of d and n) of physical qubits. In contrast to the proposal of Ref. <ref type="bibr">[28]</ref> which implements logical gates sequentially via gate teleportation, our approach allows parallel gate operations on encoded qubits via unitary circuits. Our circuit takes the form of a permutation on qubits, followed by a constant depth circuit which is local with respect to the hyperbolic metric that abstractly defines the code. The permutation can be implemented with a depth-two circuit by applying long-range SWAP operations in parallel throughout the code. These results generalize our earlier work <ref type="bibr">[56]</ref><ref type="bibr">[57]</ref><ref type="bibr">[58]</ref> demonstrating that braids and Dehn twists in general topological codes associated with triangulations of Euclidean space can be implemented by similar constant depth unitary circuits. The extension to hyperbolic space described here implies that these protocols are also compatible with having constant space overhead. Our results demonstrate explicitly an advantage in terms of space complexity for implementing the mapping class group of closed manifolds in topological codes, as compared with the more well-studied braid group of punctures <ref type="bibr">[4,</ref><ref type="bibr">33,</ref><ref type="bibr">45]</ref>.</p><p>Our protocols are inherently protected from errors in the sense that all error strings that are introduced to the system by faulty physical operations have O(1) length; moreover, all pre-existing error strings grow by at most an O(1) factor. Stated differently, our circuits map local operators to local operators: an operator with support in a local region R is mapped to an operator with support in a local region R , such that the area of R and R are related by a constant factor independent of d. However, since this constant factor is greater than unity, our circuits may grow error strings by a constant factor that is larger than unity. In the presence of syndrome measurement errors we thus require O(d) rounds of error correction for every O(log d) logical gates that are applied.</p><p>Our protocols demonstrate how to apply logical gate operations in hyperbolic codes without increasing the space overhead. For non-Abelian topological codes, this is the first example of such protocols. For Abelian topological codes, such as the Z 2 hyperbolic surface code (the extension of the Kitaev Z 2 toric code to hyperbolic space <ref type="bibr">[14,</ref><ref type="bibr">15]</ref>), a measurement-based approach using twist defect ancillas was described in Ref. <ref type="bibr">[38]</ref>. The constant depth logical gates developed here for the general hyperbolic Turaev-Viro code also be applied to the hyperbolic surface code as a specific case, where a subset of Clifford logical gates <ref type="bibr">[56]</ref> can be implemented through constant depth unitary circuits. We note that Ref. <ref type="bibr">[15]</ref> also discussed Dehn twists in hyperbolic stabilizer codes, however constant depth protocols that can preserve the constant space overhead were not presented.</p><p>As we discuss, our protocols have important implications for improving the asymptotic scaling of the space-time overhead required for fault-tolerant universal quantum computation. In particular, they suggest that universal fault-tolerant quantum computation with constant space overhead and a time cost of O(dD/ log d) is possible for a logical quantum circuit of depth D. For certain highly parallel logical quantum circuits, this yields the best asymptotic scaling known to date.</p><p>This paper is organized as follows. In Sec. 2, we review the construction of hyperbolic Turaev-Viro codes. In Sec. 3, we sketch the two key steps for how to implement logical operations corresponding to Dehn twists in hyperbolic Turaev-Viro codes. The first step requires explicit maps representing Dehn twists on hyperbolic surfaces, which we present in Sec. 4. The second step, explained in Sec. 5 demonstrates how Turaev-Viro codes associated with different triangulations of hyperbolic space can be related to each other through local constant depth circuits. In Sec. 6 we discuss the faulttolerance of these protocols and and their implications for asymptotic space-time resource costs for universal fault-tolerant quantum computation. We conclude with a discussion in Sec. 7.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Hyperbolic Turaev-Viro code</head><p>The Turaev Viro code <ref type="bibr">[34,</ref><ref type="bibr">41]</ref> is a quantum error correcting code which is defined based on a given unitary fusion category C and is constructed using qudits that reside on the edges of a triangulation &#923; of a surface &#931;. Below we briefly review the construction of such codes.</p><p>Consider a unitary fusion category <ref type="bibr">[54]</ref> C with N simple objects. We associate a vector space V c ab to any triplet of simple objects (a, b, c), whose dimension cor- responds to the fusion rules:</p><p>We may write fusion rules formally as:</p><p>Associativity of the fusion rules gives a constraint on the fusion coefficients N c ab . In particular, the vector spaces e V e ab &#8855; V d ec and f V f bc &#8855; V d af are isomorphic. The unitary map between these two vector spaces are the F -symbols of the theory,</p><p>Consider a surface &#931; together with a triangulation &#923; (see Fig. <ref type="figure">1</ref>) of &#931;. The triangulation is also equipped with a branching structure (i.e. a local ordering of vertices). To each edge of the triangulation we assign an N -state qudit with states labeled |a i , where a i are the simple objects in C. For simplicity of the construction we assume that the fusion rules N c ab are 0 or 1, although this can be easily generalized by including additional degrees of freedom at the vertices.</p><p>To define the code, it is simpler to work with the cellulation dual to &#923;, which we denote by &#923;. Note that since &#923; is a triangulation of the surface, &#923; is a trivalent graph. If a qudit is in state |a , we say a type a string is passing through the corresponding edge on &#923; and label the edge by a. The wave functions of the code space then can be seen as superpositions of string-net configurations that are consistent with certain string branching rules <ref type="bibr">[41]</ref>.</p><p>The code space H &#923; (&#931;) is a subspace of the full Hilbert space of the physical qudits. The topological nature of the code guarantees that different choices of triangulations &#923; and branching structures yield isomorphic code subspaces.</p><p>In particular H &#923; (&#931;) corresponds to the ground state subspace of a local Levin-Wen Hamiltonian <ref type="bibr">[41]</ref>:</p><p>where v and p sum over all vertices and plaquettes of &#923; respectively (see Fig. <ref type="figure">1</ref>). All Q v and B p operators commute with each other. One can think of this model as a generalization from the abelian surface code to arbitrary (abelian and non-abelian) non-chiral topological orders in 2D. We note that the Levin-Wen Hamiltonian as defined in Ref. <ref type="bibr">[41]</ref> requires a certain tetrahedral symmetry for the F -symbols, which makes the branching structure of the triangulation unnecessary, although the construction can be generalized to relax this condition.</p><p>The vertex operator Q v is a local projection operator which ensures that the ground state wave function is consistent with the branching rules of the theory. The action of Q v on a state |&#968; depends only on the states of qudits that reside on the edges which are incident to v and is defined as:</p><p>The action of the flux operator B p on a wave function depends only on the edges which are incident on the vertices of p and is defined using the F -symbols. It can be thought of as the generalization of the local plaquette operators in Z 2 surface codes. Its exact form is rather complicated and we refer the interested reader to References <ref type="bibr">[34,</ref><ref type="bibr">41]</ref> for a complete and through review of the Turaev-Viro codes. Just like the surface code, the eigenstates of the Hamiltonian (4) can be realized in an active error correction approach by repeated measurement of all Q v and B p operators, each of which can be performed by a local constant depth circuit together with an ancilla. The measurement results are then used to detect and correct possible errors. Designing explicit quantum circuits for syndrome measurements and finding fault tolerant error correction schemes for specific variants of Turaev-Viro codes are subjects of ongoing research <ref type="bibr">[9,</ref><ref type="bibr">16,</ref><ref type="bibr">24]</ref>.</p><p>A hyperbolic Turaev-Viro code is a Turaev-Viro code which is defined on a triangulation of a closed hyperbolic surface &#931;. A closed hyperbolic surface is a closed surface endowed with a Riemannian metric of constant curvature -1. Due to the Gauss-Bonnet theorem, the area of such a surface can be found from its genus g:</p><p>The number of logical qubits (i.e. log[dim H &#923; (&#931;)]) for a topological quantum code on a closed genus g surface is proportional to g. On the other hand, for a fine triangulation with bounded geometry, where by bounded geometry we mean that the edge lengths and angles are bounded from above and below, the number of physical qubits n is proportional to the surface area A &#931; and the code distance d scales as log(n) <ref type="bibr">[26]</ref>. Therefore, according to <ref type="bibr">(6)</ref>, by using hyperbolic surfaces of increasing genus we can construct a family of hyperbolic Turaev-Viro codes with constant encoding rate and increasing code distance. Note that the encoding rate for a quantum code defined on a Euclidean surface is O(1/d 2 ) and goes to 0 as one goes to large distances <ref type="bibr">[13]</ref>.</p><p>We further note that the existence of a lower bound on the angles in the fine triangulation also ensures that the associated error-correcting code is in essence a lowdensity parity check (LDPC) code, which has a lowweight (upper-bounded) plaquette syndrome B p on the dual trivalent graph &#923; (the vertex operator Q v is always weight-3 due to the definition of a triangulation or equivalently the trivalent structure of its dual graph). As is the case with stabilizer codes <ref type="bibr">[36]</ref>, the LDPC property is important for the possibility of an error threshold in the presence of noise during the syndrome measurements. A particular type of triangulation satisfying this property is the Delaunay triangulation, which is a unique triangulation for a given set of vertices that maximizes the smallest angle among all possible triangulations <ref type="bibr">[31]</ref>. The hyperbolic Delaunay triangulation can be constructed numerically starting from a randomly picked distribution of vertices with a given average density in hyperbolic space. Then standard classical computer algorithms generating a Delaunay triangulation, such as the radial-sweep algorithm, can be applied <ref type="bibr">[31]</ref>. Some detailed studies of hyperbolic Delaunay triangulations can also be found in Ref. <ref type="bibr">[5,</ref><ref type="bibr">6]</ref>.</p><p>We note that numerical evidence for a finite error threshold in hyperbolic surface (stabilizer) codes was established in Ref. <ref type="bibr">[14,</ref><ref type="bibr">15]</ref>.</p><p>3 Geometric gate sets for hyperbolic Turaev-Viro codes Consider a Turaev-Viro code defined using a unitary fusion category C on a triangulation &#923; of a closed surface &#931; with genus g. It is well-known that the code space H &#923; (&#931;) forms a non-trivial representation of the mapping class group (MCG) of the surface &#931;. In other words, elements of the MCG implement certain non-trivial operations on the code space. Recall that the MCG is the group of homeomorphisms of the surface modulo those homeomorphisms that are continuously connected to the identity<ref type="foot">foot_1</ref> . We call the set of such operations the geometric gate set. Gates corresponding to MCG operations are naturally topologically protected (and thus can be made fault-tolerant) and can be implemented through a variety of methods <ref type="bibr">[2,</ref><ref type="bibr">34,</ref><ref type="bibr">45,</ref><ref type="bibr">54,</ref><ref type="bibr">56,</ref><ref type="bibr">57]</ref>. For certain codes, such as the Fibonacci Turaev-Viro code, the geometric gate set forms a universal gate set <ref type="bibr">[25]</ref>.</p><p>Here we consider a way of implementing MCG elements in terms of constant depth unitary circuits that is closely related to the method proposed in <ref type="bibr">[57]</ref>, although our presentation below is somewhat different and more general. This method can then be applied to the case of hyperbolic codes which yield constant space overhead.</p><p>Let U be a mapping class group element of the surface &#931;. We denote its representation on the code space H &#923; (&#931;) by U . For a given U , one can implement U using the following procedure:</p><p>&#8226; (Step 1) Let f U : &#931; &#8594; &#931; be a specific homeomorphism representing U . We move the vertices of &#923; using f U , and connect them as they were connected originally to get a new triangulation of &#931; which we denote by &#923; . This operation corresponds to a permutation of the physical qubits. If the qubits are mobile, this transformation can be carried out by shuttling the qubits around. Otherwise, it can be implemented as a depth-two circuit by using longrange SWAPs in parallel throughout the system <ref type="bibr">[57]</ref>.</p><p>&#8226; (Step 2) Since the Turaev-Viro code was defined using the triangulation &#923;, after the first step the wave function of the system would no longer be in the original code space H &#923; (&#931;). Rather it would be associated to the code space H &#923; (&#931;) of a different triangulation &#923; . To remedy this, we apply a local quantum circuit that effectively implements a local geometry deformation and transforms the code defined on the &#923; triangulation back to the one defined on the original &#923; triangulation. We will show in subsequent sections that this retriangulation can be performed via a constant depth local quantum circuit. If we regard this transformation as a homeomorphism of the surface &#931;, it would be equivalent to the trivial element of MCG, which ensures that it will not result in another nontrivial transformation on top of the map U . Details of the geometry deformation circuit are explained in Section 5.</p><p>As an example, take &#931; to be the torus T 2 with a regular triangulation &#923; which is used to define the Turaev-Viro code. To construct the torus, we can take a square of side 1 and identify the opposite sides.</p><p>Alternatively, we can start with the complex plane C and identify points according to equivalence relations z &#8764; z + 1 and z &#8764; z + i. We can use these identification rules to define a universal covering map from C to T 2 . A triangulation of T 2 then translates to a triangulation of the complex plane (see Fig. <ref type="figure">2a</ref>).</p><p>Let U = D &#945; be the Dehn twist along &#945;, the meridional loop of the torus(for a brief review of Dehn twists, see Appendix A). Consider the shearing map</p><p>It is easy to verify that this map respects the equivalence relations and corresponds to a Dehn twist along the &#945; loop. If we move (permute) the qubits according to f D , we get the configuration shown in Fig. <ref type="figure">2b</ref>. Note that as a result of this map, the string along the &#946; loop now encircles both handles while the string along the &#945; loop remains unchanged, as one would expect form a Dehn twist along &#945;. As a result of the previous step, the triangulation of the torus has been changed, as one can see by comparing Fig. <ref type="figure">2(c</ref>) and Fig. <ref type="figure">2</ref>(a). To compensate for that, we will apply a local unitary circuit, which corresponds to the trivial element of the MCG, to restore the original triangulation without applying any further logical gate. The final result is shown in Fig. <ref type="figure">2(d)</ref>.</p><p>In Ref <ref type="bibr">[57,</ref><ref type="bibr">58]</ref>, the above procedure has been used extensively to implement MCG elements by finite depth quantum circuits in QECCs which are defined on Euclidean surfaces. The main result of this work is that the same basic idea can be used to implement logical gates in QECCs which are defined on a hyperbolic surface. In the following we are going to explain in detail how one can implement geometric gates in hyperbolic Turaev-Viro codes.</p><p>Let &#931; denote a hyperbolic surface that is used to define the hyperbolic Turaev-Viro code. Since the MCG can be generated by the Dehn twists around the handles of &#931;, to implement an arbitrary geometric gate it suffices to be able to implement Dehn twists around the handles of &#931; <ref type="bibr">[57]</ref>. In Section 4, we construct specific diffeomorphisms that correspond to the basic Dehn twists, which then can be used to carry out Step 1 of the above procedure. Next, in Section 5, we introduce the local finite depth quantum circuit that converts two given triangulations to one another. By combining the results of these two sections and following the above procedure, one can implement the representation of any basic Dehn twists on the code space H &#923; (&#931;), and hence implement any geometric gate by a constant depth unitary circuit.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Continuous Maps for Dehn Twists</head><p>First we concentrate on the g = 2 case. After developing the maps for the simplest case, we show how these maps can be generalized for a surface of arbitrary genus.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Dehn Twists on a Double torus</head><p>Let &#931;2 be an arbitrary genus 2 surface. As a surface with negative Euler characteristic, &#967;( &#931;2 ) = -2, it admits a hyperbolic metric, i.e. a complete finite area Riemannian metric of constant negative curvature -1.</p><p>One way to define a hyperbolic metric on &#931;2 is to start with the regular hyperbolic octagon on H 2 whose interior angles sum to 2&#960;, known as the Fricke canonical polygon <ref type="bibr">[27,</ref><ref type="bibr">32]</ref>. If we identify every other edge as shown in Fig. <ref type="figure">3a</ref> with the arrows specifying how the edges should be lined up, we obtain a genus g = 2 hyperbolic surface &#931; 2 shown in Fig. <ref type="figure">3b</ref>, which is homeomorphic to &#931;2 . According to Ref. <ref type="bibr">[44]</ref>, the homeomorphism can be upgraded to a diffeomorphism and thus induces a hyperbolic metric on &#931;2 . From now on, we concentrate on &#931; 2 , knowing that our statements about &#931; 2 can be generalized to the &#931;2 surface using the aforementioned diffeomorphism.</p><p>If we instead consider moving the vertices of the octagon to more general locations on the hyperbolic plane to obtain an irregular octagon, we move through Teichm&#252;ller space, which is the space of hyperbolic metrics of the closed hyperbolic surface.</p><p>As a result of the identification scheme, all vertices of the canonical polygon represent a single point on &#931; 2 and thus the sides of the polygon correspond to closed loops with a common base point on &#931; 2 (see Fig. <ref type="figure">3b</ref>). Conversely, if we start with the double torus in Fig. <ref type="figure">3b</ref> and cut the surface along these loops, we will obtain the octagon in Fig. <ref type="figure">3a</ref>. In fact, these loops can be taken as the generators of the fundamental group &#960; 1 (&#931; 2 ),</p><p>An element of the MCG will take these loops to some other loops on &#931; 2 , and thus naturally induces a map over &#960; 1 (&#931; 2 ). More precisely, it can be shown <ref type="bibr">[22,</ref><ref type="bibr">46]</ref> that the mapping class group is isomorphic to the group of outer automorphisms of the fundamental group,</p><p>where Aut(G) and Inn(G) denote the automorphism group and inner automorphism group of G respectively. The equivalence under Inn(&#960; 1 (&#931; 2 )) is related to the fact that in general, homeomorphisms of &#931; 2 will not keep the base point of the loops in &#960; 1 (&#931; 2 ) fixed.</p><p>Let U denote an arbitrary element of the mapping class group and hence an equivalence class of homeomorphisms on &#931; 2 . Due to Eq. ( <ref type="formula">8</ref>), U also corresponds to an equivalence class of automorphisms of &#960; 1 (&#931; 2 ). In the rest of this paper, in an abuse of notation we use the same symbol U to denote both the equivalence classes of homeomorphisms and Out(&#960; 1 (&#931; 2 )) and also representatives of these classes.</p><p>Consider the canonical octagon on the hyperbolic plane. By attaching a copy of the octagon on each edge according to the identification rules and continuing this procedure indefinitely for the edges of the newly added octagons, one will end up with the {8, 8} tiling of the hyperbolic plane (see Fig. <ref type="figure">3c</ref>). The result can be used to define a covering map p : H 2 -&#8594; &#931; 2 which along with H 2 makes up the universal cover of &#931; 2 .</p><p>In what follows we provide explicit expressions for the homeomorphisms of &#931; 2 to itself corresponding to the Dehn twists along the primary loops of &#931; 2 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.1">Dehn twists along the &#945; and &#946; loops</head><p>We start with the Dehn twist along &#945; 1 .</p><p>To find an element of Aut(&#960; 1 (&#931; 2 )) which represents D &#945;1 , it is enough to see how it acts on the canonical loops of the &#931; 2 surface. To this end we can use the Dehn surgery method described in Appendix A. However, for simplicity, first we push the &#945; 1 slightly to the left to detach it from the &#945; 2 and &#946; 2 loops and consider the twist map along this new loop. Note that the Dehn twist D &#945;1 depends only on the isotopy class of &#945; 1 . Then, as one can verify by looking at Fig. <ref type="figure">3b</ref> and using the Dehn surgery method, D &#945;1 maps &#946; 1 to &#946; 1 &#945; -1</p><p>and leaves all the other canonical loops invariant. Note that we use the left to right convention for loop multiplication; if f and g are two loops with a common base point, f g corresponds to a loop that traces f first and then g.</p><p>Instead of specifying D &#945;1 , we provide an explicit form for its lift to the covering space D * &#945;1 : H 2 -&#8594; H 2 such that the diagram below commutes:</p><p>To this end, we define how D * &#945;1 acts on the points of a fundamental domain. Its action on the other points of H 2 are defined accordingly to ensure commutativity of the diagram in Eq. <ref type="bibr">(10)</ref>.</p><p>We take the fundamental domain to be the canonical octagon (shaded region in Fig. <ref type="figure">4a</ref>). The action of D * &#945;1 on the fundamental domain gives the sheared octagon shown in Fig. <ref type="figure">4b</ref>. As one can easily verify, it transforms the &#946; 1 loop to &#946; 1 &#945; -1 1 as desired, while all the other loops remain unchanged. In particular note that the &#945; 1 loop is mapped to itself and thus has not changed.</p><p>We define the map D * &#945;1 more precisely as follows. We map &#8710;ABC in Fig. <ref type="figure">4b</ref> to &#8710;ACE and &#8710;ACD to &#8710;AED, where &#8710;ABC denotes the hyperbolic triangle made by connecting A,B and C via geodesics on H 2 . All the other regions in the octagon are left untouched. Mapping &#8710;ABC to &#8710;ACE is done as follows. Consider an arbitrary point, x, inside &#8710;ABC (see Fig. <ref type="figure">4c</ref>). To find its image x = D * &#945;1 (x), first draw the geodesic line that passes through A and x, and continue it to find its crossing point M with the line BC.   It is clear that this map is continuous for the points inside the fundamental domain. It is also straightforward to check that this map is consistent with edge identification rules and thus is continuous throughout the H 2 plane. Moreover, the diagram in Eq.( <ref type="formula">10</ref>) commutes by construction and hence D &#945;1 is continuous on &#931; 2 . Furthermore, as we explicitly verify in Appendix B, this map does not change the area of any region by more than a constant factor. This is an important property which allows the second step of our Dehn twist protocol, as we explain in subsequent sections.</p><p>Dehn twists along &#946; 1 , &#945; 2 and &#946; 2 are defined in a similar manner.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.2">Dehn twists along the &#947; loop</head><p>To generate all elements of the MCG we need the Dehn twist along the &#947; loop as well (see Fig. <ref type="figure">5a</ref>). The canonical octagon which we used to define D &#945;1 has two important features: first, D &#945;1 only changes the &#946; 1 sides while leaving other sides of the octagon invariant; second, &#945; 1 and &#946; 1 were neighboring sides of the octagon. However, since both &#946; 1 and &#946; 2 transform non-trivially under D &#947; and since the &#947; loop is not one of the polygon's sides, the action of D &#947; on the canonical octagon is not as simple as D &#945;1 and looks rather complicated. Therefore to construct D &#947; , it is easier to work with a different fundamental domain. To find the appropriate fundamental domain, we cut &#931; 2 along a new set of loops rather than the standard &#945;'s and &#946;'s.</p><p>Let &#945;i denote the &#945; i loop translated through</p><p>&#945;1 is illustrated in Fig. <ref type="figure">5a</ref>. Note that we can write &#947; as:</p><p>We also define &#948; as:</p><p>which represents a loop that encircles both holes of &#931; 2 .</p><p>As was the case for the &#945; 1 Dehn twist, to find an automorphism of &#960; 1 (&#931; 2 ) corresponding to D &#947; first we push the &#947; loop shown in Fig. <ref type="figure">5a</ref> slightly to the right and then use the Dehn surgery method to find its action on various loops. We remark that if we used another loop, e.g. if we pushed the &#947; loop slightly to the left instead, we would find the same automorphism up to an action of Inn(&#960; 1 ). Note that due to Eq. ( <ref type="formula">8</ref>), all such maps represent the same element of the mapping class group.</p><p>The representative automorphism induced by D &#947; on &#960; 1 (&#931; 2 ) can then be summarized in the following four equations:</p><p>Note that D &#947; leaves the &#948; loop invariant. To find the appropriate fundamental domain, we trade the {&#945; 1 , &#946; 1 , &#945; 2 , &#946; 2 } loops with {&#947;, &#946; 1 , &#945;2 , &#948;}. The group relation in Eq.( <ref type="formula">7</ref>) can be expressed in terms of these loops as well:</p><p>Note that {&#947; 1 , &#946; 1 } as well as {&#945; 2 , &#948;} have algebraic intersection 1 while the two sets are mutually detached, i.e. the algebraic intersection number of a loop from the first set and a loop from the second set is 0. So the {&#947;, &#946; 1 , &#945;2 , &#948;} loops could have been taken as the primary loops of &#931; 2 in the first place. This in turn suggests using an octagon with its sides following the &#948;,&#945; 2 ,&#946; 1 and &#947; loops. Such an irregular octagon is shown in Fig. <ref type="figure">5b</ref>. As one can easily verify, this can be taken as the fundamental domain of the mapping p. Moreover, it has the features we are looking for: under the action of D &#947; , only the &#946; 1 loop gets deformed and, furthermore, the &#947; and &#946; 1 loops are represented by neighboring sides of the polygon.</p><p>D * &#947; (the lift of D &#947; to H 2 ) shears the octagon shown in Fig. <ref type="figure">5b</ref> to the one shown in Fig. <ref type="figure">5c</ref>. More precisely, &#8710;F GA is mapped to &#8710;F AH and &#8710;F AB is deformed to &#8710;F HB. Mapping the triangles is done through the same procedure described in Section 4.1.1. The action of D * &#947; on the other points of H 2 is then defined according to the identification rules. It is straightforward to verify continuity of the map. Moreover, as we verify in Appendix B, these maps do not change the area of any region of the surface by more than a constant factor.</p><p>Any element of the MCG of the double torus can be generated using D &#945;i , D &#946;i and D &#947; . In the next section we discuss how these constructions generalize to higher genus surfaces.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Dehn Twists on Genus g surface</head><p>A hyperbolic genus g surface can be obtained by identifying every other edge of a 4g-gon, whose angles sum to 2&#960;, in hyperbolic space. The space of different hyperbolic metrics, Teichm&#252;ller space, corresponds to inequivalent choices of the locations of the vertices of the 4g-gon <ref type="bibr">[23]</ref>. Here we consider the canonical 4g-gon, i.e. a regular 4g-gon on H 2 . The sides of the polygon can be used to generate the fundamental group of the &#931; g surface:</p><p>The MCG of &#931; g can be generated by Dehn twists along &#945; i and</p><p>&#947; i can be written as,</p><p>where &#945;i is defined as in <ref type="bibr">(11)</ref>. Since our maps for the Dehn twists on the double torus modify only a specific corner of the polygon while leaving the other parts of it fixed, they generalize naturally to maps on the 4ggons. Also as in the previous g = 2 case, to construct D &#947;i , it is easier to work with an irregular g-gon. As an example, the g = 3 case is analyzed in more detail in the Appendix C.</p><p>Furthermore, in Appendix B we show that this map does not change the area of any region by more than a constant bounded factor, even in the limit g &#8594; &#8734;. As explained in the next section, this feature is important to ensure that the depth of the local geometry change circuit remains constant as one increases the code distance (see Sec 5).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Change of triangulation</head><p>As described in Sec. 3, step (1) of our protocol permutes the qubits by applying the continuous shear map of Sec. 4 to the triangulation &#923;. After the permutation, the original triangulation &#923; is changed to a sheared triangulation &#923; . In order to return to the original Hilbert space H &#923; and hence reach a non-trivial unitary map preserving the code space, we need to switch the triangulation back from &#923; to &#923;.</p><p>In this section, we devise a local unitary circuit to switch a Turaev-Viro code between two arbitrary triangulations &#923; and &#923; . We consider &#923; and &#923; to have the same number of vertices and edges for any given region, up to at most a constant factor, c [as illustrated in Fig. <ref type="figure">6(a)</ref>]. Since the switching circuit can be parallelized by acting throughout the whole space at once, the depth of the circuit only depends on c. To present our algorithm it is more convenient to show the switch between the two dual trivalent graphs instead, as indicated by the thick blue lines in Fig. <ref type="figure">6(a)</ref>.</p><p>For clarity, we drop the branching structure (previously indicated by arrows on the edges) of the graphs in this section. Many theories of interest, such as the Ising code and the Fibonacci code, do not require the branching structure.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Gadgets</head><p>The elementary re-triangulation gadgets we use are associated with the 2-2 and 1-3 Pachner moves, shown in Fig. <ref type="figure">6(b)</ref> and<ref type="figure">(c</ref>). They correspond to unitary transformations that take the wave function defined on a triangulation &#923; I to the wave function defined on a different triangulation &#923; II , which differs locally: where F abc def is the F-symbol that defines the Turaev-Viro code, <ref type="figure"/>and<ref type="figure">d c , d d ,</ref> and<ref type="figure">d</ref> f are the quantum dimensions of anyons labeled by c, d and f . For the 2-2 Pachner move [Eq. ( <ref type="formula">18</ref>)], the state labels on the four external legs (a,b,c and d) are fixed, while the internal edge is flipped (both in the triangulation and trivalent graph) with the state labels changing from e to f . The 2-2 Pachner move can be implemented by unitary gates acting on physical qubits as will be illustrated below. For the 1-3 Pachner move [Eq. ( <ref type="formula">19</ref>)], the state labels on the three external legs (a,b,c and d) are fixed, while a triangle with three new edges (e, d and f ) is added at the center of the trivalent graph (from &#923;I to &#923;II ). Correspondingly, in the original triangulation, a threelegged vertex is added in the center of a triangle (from &#923; I to &#923; II ) [see Fig. <ref type="figure">6(c)</ref>]. These new edges come from ancilla qubits initialized at |0 , which then get entangled into the code by the 1-3 Pachner move, which can be considered as a fine graining procedure. The reverse of this process is a coarse graining procedure. The 1-3 Pachner move can also be implemented by unitary gates, which can be decomposed into 2-2 Pachner moves and two other simple unitary gates (see Ref. <ref type="bibr">[57,</ref><ref type="bibr">58]</ref> for details).</p><p>In the case of the Fibonacci Turaev-Viro code, we have two simple objects in the unitary fusion category, labeled 0 and 1, with fusion rules 1 &#215; 1 = 0 + 1, and the only non-trivial F -matrix is:</p><p>where &#966; =</p><p>is the golden ratio. All other Fsymbols are either 1 or 0, depending on whether they are consistent with the fusion rules and Eq. <ref type="bibr">(18)</ref>. A specific quantum circuit implementing the 2-2 Pachner move (F -operations) in the Fibonacci code was presented in Ref. <ref type="bibr">[9]</ref> and is shown in Fig. <ref type="figure">6(d)</ref>. The circuit inside the dashed box is composed of a 5-qubit Toffoli gate sandwiched by two single-qubit rotations, which implements the F -matrix in <ref type="bibr">(20)</ref>. Here, R y (&#177;&#952;) = e &#177;i&#952;&#963;y/2 represents single-qubit rotations about the y-axis with angle &#952;=tan -1 (&#966; -1</p><p>2 ). All the other maps are taken care of by the rest of the quantum circuit in panel (d). For the other widely considered case, the Z 2 hyperbolic surface codes, the F-symbols and Pachner moves can be implemented via only CNOTs (see Ref. <ref type="bibr">[57]</ref> for details).</p><p>Based on these gadgets, we introduce the following two lemmas about the trivalent graphs, which serve as additional gadgets for the main algorithm. Lemma 0.1 Two edge-sharing plaquettes on a trivalent graph can be merged into a single plaquette using s -2 steps of Pachner moves, where s is the number of edges in the smaller plaquette (i.e., plaquette with fewer edges).</p><p>An "edge-sweeping" algorithm implements the above statement as shown in Fig. <ref type="figure">6</ref>(e) with s -3 steps of 2-2 Pachner moves and a 1 -3 Pahcner move in the end.</p><p>Using the above plaquette-merging gadget, we can also demonstrate the following lemma when considering merging many plaquettes in parallel, as illustrated in Fig. <ref type="figure">6</ref>(f). In particular, one merges all mergeable neighboring pairs in each step.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">The main algorithm</head><p>Here, we present the main algorithm to switch between the triangulations &#923; and &#923; (and equivalently the dual graphs &#923; and &#923; ). For the clarity of presentation, we choose a particular order by switching from &#923; to &#923; , although the algorithm and corresponding quantum circuit are reversible. The detailed algorithm is as follows:</p><p>1. We first introduce a trivalent graph &#923;C coarser than the two fine trivalent graphs &#923; (starting graph) and &#923; (target graph) we want to switch between. In particular, we consider a coarser graph &#923;C that encircles at most m plaquettes of the starting finer graph &#923;. We note that m needs to be bounded and independent of code distance d. We also require that any plaquette in the coarser graph &#923;C contains at least one plaquette of the finer graphs, as illustrated in Fig. <ref type="figure">7(a)</ref>. Now the coarser graph &#923;C also encircles at most m plaquettes of the target finer graph &#923; . As discussed in Sec. 4 and Appendix B, the area ratio for a given infinitesimal code patch before and after the application of the shear maps (belonging to &#923; and &#923; respectively) is a bounded constant independent of d (and thus also independent of the number of physical qubits n). This ensures that the ratio m/m is also bounded and independent of d. Since m is bounded and independent of d, m is also a bounded constant independent of d. This is a crucial property to ensure the O(1) depth of the switching circuit and the logical gates. to match with multiple edges (e) on the starting graph, as shown in Fig. <ref type="figure">7(c</ref>). In this way, each plaquette in the fine graph &#923; is strictly enclosed in only one plaquette in the coarser graph &#923;C . This step does not require any quantum operations and is done entirely in the classical software.</p><p>Note that the deformation of the coarser graph &#923;C leads to a slight change of the maximal number of enclosed fine plaquettes in any coarser plaquette, i.e., m and m , into O(m) and O(m ).</p><p>3. We coarse grain the finer graph &#923; into the coarser graph &#923;C by using the parallel plaquette merging algorithms introduced in Lemma 0.2, as shown in Fig. <ref type="figure">7(d</ref>). This procedure takes O(log 2 (m)) merging steps with O(l log 2 (m)) time steps of Pachner moves, where l is the largest number of edges among all plaquettes in the starting finer graph &#923;.</p><p>4. We match vertices (v C ) and the edges (e C ) of the coarser graph &#923;C with those (v and e ) in the finer graph &#923; using the same procedure as above, as shown in Fig. <ref type="figure">7</ref>(e).</p><p>5. We fine grain the coarser graph &#923;C into the target finer graph &#923; by reversing the parallel merging algorithms in Lemma 0.2, as shown in Fig. <ref type="figure">7</ref>(f). This procedures takes O(log 2 (m )) splitting steps with O(l log 2 (m )) time steps of Pachner moves, where l is the largest number of edges among all plaquettes in the target finer graph &#923; .</p><p>As we see the total time complexity of the switching algorithm is O[max(l log 2 (m), l log 2 (m ))], i.e., dominated by the larger complexity from the coarse graining and fine graining process. Since m, m , l, l can all be bounded values independent of the code distance d (or equivalently graph size), we reach the following theorem:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Theorem 1 If two triangulations &#923; and &#923; have bounded ratios in terms of their vertices, edges, and plaquettes per unit area, then there exists a bounded depth circuit to convert between them with Pachner moves.</head><p>The depth of the circuit is independent of the area of the surface, and therefore independent of the code distance d.</p><p>We emphasize again that the requirement of the bounded ratios of vertices, edges and plaquettes per unit area is ensured by the bounded ratio of the areas corresponding to the infinitesimal code patches before and after the shearing maps, as discussed in Sec. 4 and Appendix B. We also note that in the above discussions, we focused on proving the existence of a constant depth local unitary circuit, rather than giving the most efficient switching algorithm. To be more efficient, one does not need to follow the fine&#8594;coarse&#8594;fine pattern, but can rather directly find the shortest circuit to directly switch between the two fine graphs via Pachner moves.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Fault tolerance and space-time overhead</head><p>So far we have shown that a generating set of Dehn twists for the MCG of a genus g hyperbolic surface can be implemented by a constant depth unitary circuit, where the depth is independent of the code distance and therefore also the number of physical and logical qubits, n and k. In this section, we briefly discuss fault tolerance of these circuits.</p><p>Our circuit breaks up into two basic pieces: A permutation of the physical qubits and a local constant depth circuit that implements the retriangulation. Since local unitary circuits have a linear light cone, the latter, i.e. the local constant depth circuit, is intrinsically fault tolerant. So, to ensure the fault tolerance of our procedure, we concentrate on the first part which permutes the physical qubits.</p><p>The permutation in our maps requires qubits to be permuted over long distances. Due to its non-local nature, there are two main concerns in regard to the propagation of errors that we need to address: (1) What happens to the pre-existing local error strings? Is it possible for them to be enlarged to lengths of O(d)? (2) Is it possible to introduce new non-local (O(d) long) error strings by a noisy implementation of the permutation circuit, e.g. noisy SWAP gates?</p><p>For a generic non-local permutation, both issues mentioned above could possibly arise. Nevertheless the permutations that we utilize have a special structure. To address the first issue, note that the continuous maps introduced in Sec. 4, take two points which are O(1) apart to new points which are still O(1) apart. This can be seen from the analysis carried out in Appendix B as well. However, to enlarge a local error string to a large error string of length O(d) we have to separate its endpoints by a factor of O(d). Thus, we can conclude that after the permutation, all pre-existing local error strings would remain local; at worst their length will be increased by a constant factor independent of d. Stated differently, our constant depth circuits map any operator with support in a spatial region R to an operator with support in a spatial region R , where the area of R and R are related by a constant (independent of code distance) factor. Here the areas are with respect to the hyperbolic metric. In this sense, the whole circuit is also "locality-preserving," although strictly speaking the phrase "locality-preserving" is often reserved for the case where the constant factor is unity <ref type="bibr">[4,</ref><ref type="bibr">12]</ref>.. Now we consider the possibility of introducing new non-local error strings during a noisy implementation of the permutation. Let's say the permutation is implemented by a set of noisy long range SWAPs. The important point to note is that while the SWAP operations are long ranged, they are still low weight operators. In particular, each SWAP operation acts on 2 qubits. On the other hand, a logical error string is a high weight operator, consisting of O(d) single qubit errors. So, if we assume the errors occur independently on different SWAPs, the possibility of introducing a logical error by a set of noisy SWAPs is still exponentially small in d. Therefore the second question can be answered in the negative as well.</p><p>Therefore, our Dehn twists and the corresponding logical gates are inherently protected from errors, in the sense that they do not stretch error strings by more than a constant factor, nor can they introduce error strings that have length more than a constant, independent of code distance.</p><p>However, if we apply the same collection of Dehn twists (logical gates) repetitively in the same region of the manifold, in the worst case the length of error strings could grow exponentially with the number of logical gates being applied. In the absence of measurement noise, the error string can be decoded and corrected in O(1) time <ref type="bibr">[16]</ref> immediately after the application of a single logical gate (here we have ignored the classical computation time of the decoder which still typically scales with system size). Hence the computation scheme will have an O(1) (constant) time overhead. However, in the presence of measurement noise, the error string cannot be immediately decoded and corrected in O(1) time, so the growth of such a string would be inevitable. After performing O(log d) logical gates in the same region without any measurement or error correction in between, the error string may grow to a length of O(d), which will cause the decoder to fail. Therefore, one has to insert O(d) rounds of measurements, decoding, and error corrections for every O(log d) of logical gates in the same region. This suggests a sub-linear overhead O(d/ log d) in the computational time when repetitively applying logical gates in the same region, if the measurement error is taken into account. It may be possible to further reduce such overhead by some additional tricks, at least for certain types of logical circuits, but there may still be such a sub-linear overhead in the most generic situation. We note that the above O(d/ log d) time overhead is an estimate suggested by the considerations stated above; further work is required to develop efficient decoders to concretely demonstrate the validity of this estimate.</p><p>The above statements for the asymptotic space-time resource costs have assumed that the codes have a finite error threshold and that an efficient decoder exists and requires O(d) rounds of syndrome measurements to decode errors. For the Ising anyon code, this has been confirmed in the recent theoretical study in the presence of measurement error <ref type="bibr">[21]</ref>. For the Fibonacci anyon code, a decoding scheme showing a finite error threshold has only been developed for the case without measurement noise <ref type="bibr">[16]</ref>. We expect that the Fibonacci anyon code can also be used for fault-tolerant quantum computation using O(d) rounds of error correction in the presence of measurement errors. However the development of concrete decoding algorithms, explicit demonstrations of a finite error threshold, and efficient error recovery operations for the Fibonacci anyon code requires further work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">Discussion</head><p>We have shown that Dehn twists in hyperbolic Turaev-Viro codes, which are the most general types of topological codes, can be implemented by constant depth unitary circuits while preserving the constant space overhead of the codes. We have presented explicit representative maps for Dehn twists on hyperbolic surfaces, which we use to define the first step of our protocols, which correspond to the permutation of the qubits. As we explicitly verify, our maps do not increase or shrink any infinitesimal area by more than a constant factor even in the g &#8594; &#8734; limit. This fact implies that the sec-ond step of our protocol, the local unitary circuit that implements the retriangulation back to the original code space, is of constant depth. Since generic permutations can be implemented as a depth-2 circuit consisting of long-range SWAP operations applied in parallel, it follows that our entire protocols are constant depth unitary circuits.</p><p>Because our circuits for a given Dehn twist only act within a local region associated with a given handle or pair of handles, they can be applied in different regions simultaneously, in parallel (again while still keeping the constant space overhead), which makes our protocols amenable to parallel quantum computation.</p><p>The simplest example of the codes that we study is the Z 2 hyperbolic surface code. Our results demonstrate that Dehn twists, which generate a subgroup of the Clifford group acting on the logical qubits in this case, can be implemented by constant depth unitary circuits. In Appendix D we demonstrate explicitly how our retriangulation circuit in this case can be implemented using CNOT operations on the physical qubits.</p><p>When applying our results to the Fibonacci Turaev-Viro code, our results imply that a universal set of gates can be implemented through constant depth unitary circuits in a code with finite encoding rate (constant space overhead). Recent numerical study has shown the existence of a finite error threshold for a decoding scheme in the Fibonacci anyon code without considering measurement noise <ref type="bibr">[16]</ref>. We expect, though it has not yet been explicitly demonstrated, that the Fibonacci Turaev-Viro code possesses a finite error threshold, efficient decoding algorithms and error recovery procedures even in the presence of measurement noise (similar statements for other non-Abelian codes have been demonstrated <ref type="bibr">[21]</ref>). Assuming this, and inserting O(d) rounds of error correction for every O(log d) logical gates to ensure fault-tolerance in the presence of noisy syndrome measurements, our results suggest that universal fault-tolerant quantum computation with constant space overhead and time overhead of O(d/ log d) per logical gate is possible. This suggests that a generic logical quantum circuit of depth D with k logical qubits would require O(dD/ log d) time steps and O(k) physical qubits.</p><p>To our knowledge, the only proposed scheme with comparable space-time overhead for universal quantum computation is the one proposed by Gottesman in Ref. <ref type="bibr">[28]</ref> which also uses constant space overhead. In Gottesman's scheme, the time overhead per logical gate is constant for sequential quantum circuits, where one logical gate is applied at each time step. This means that a highly parallel circuit of depth D would take time O(kD) <ref type="foot">3</ref> .</p><p>In the regime of interest for large-scale universal faulttolerant quantum computation, k d, and therefore our scheme would have an order O(d/(k log d)) improvement over the proposal of Ref. <ref type="bibr">[28]</ref> for parallel quantum circuits. We note that k d is also the natural setting for the hyperbolic code, since d &#8764; log n &#8764; log k suggests an exponential growth of logical qubit number k as a function of the code distance d.</p><p>Our protocols allowing for implementation of mapping class group elements via constant depth circuits should be straightforwardly generalizable to higher dimensional topological codes. We note that a number of codes in three and four dimensions (such as the fourdimensional toric code) allow for single-shot error correction <ref type="bibr">[7]</ref>. This would potentially allow any number of our type of logical gates to be applied with constant time overhead, even in the presence of measurement errors.</p><p>In this paper we studied hyperbolic codes for twodimensional topological states, where d &#8764; log n. However better codes exist, such as the hypergraph product codes <ref type="bibr">[40,</ref><ref type="bibr">52]</ref> or homological codes associated with fourdimensional hyperbolic manifolds <ref type="bibr">[29]</ref>. These codes also have constant space overhead (and finite error thresholds because they are LDPC), but with the improved scaling of d &#8764; &#8730; n for the hypergraph product codes and d &#8764; n ( &lt; 0.3) for the four-dimensional hyperbolic codes. However, due to Mostow rigidity, the mapping class group of higher dimensional hyperbolic manifolds is necessarily finite. It is therefore a fundamental question whether there exist codes with constant space overhead and d &#8764; n &#945; (with &#945; &gt; 0), and which also admit a universal logical gate set through constant depth unitary circuits. </p><p>Note that T is an orientation preserving homeomorphism which reduces to the identity map on the boundaries of A. Fig. <ref type="figure">8b</ref> shows the image of a line in A under T . Now, let &#931; denote an arbitrary oriented surface and let &#945; be a simple closed curve on &#931;. To define the Dehn twist around &#945;, first we choose a regular neighborhood A of &#945; on &#931; which is homeomorphic to A. Let &#966; : A &#8594; A denote an orientation preserving homeomorphism from A to A. We define the twist map around &#945; by the following homeomorphism</p><p>T &#945; clearly depends on the choice of N , &#966; and &#945;. We define the Dehn Twist around &#945;, denoted by D &#945; to be the isotopy class of T &#945; , i.e. the class of homeomorphisms of &#931; to itself that can be deformed continuously to T &#945; . We remark that D &#945; depends only on the isotopy class of &#945;.</p><p>As an example, one can consider the Dehn twist around the &#945; loop on the simple torus shown in Fig. <ref type="figure">8c</ref>. A simple way to find the image of a given loop like &#946; under the action of the Dehn twist around another loop like &#945;, called the Dehn surgery, is as follows: We start by tracing out the &#946; loop until we hit an intersection with the &#945; loop. Then we turn left to trace out the &#945; loop until we return to the intersection point, where we turn right to continue tracing out the &#946; loop. We need to do the same at any intersection of &#945; and &#946; until we get back to the starting point. Note that with the above definition the Dehn twist around &#945; does not depend on any direction that the &#945; loop might have.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Area scaling calculation</head><p>In this appendix we analyze the shearing maps introduced in Section 4 to see by how much they scale the area locally. Because these maps do not have any singularity on a genus g surface, the local area scaling is bounded from below and above as one considers a fixed g. But more importantly, we will show that if we consider a family of maps on surfaces with increasing genus g, the local area scaling remains finite and bounded from below. Note that this result is crucial for the retriangulation circuit described in Sec. 5 to be constant depth.</p><p>As in the rest of the paper, we use the Poincare disk model for H 2 , namely the open unit disk in C with the Reimannian metric:</p><p>In this model, the geodesics connecting two points would be either circular arcs perpendicular to the unit disk or straight lines passing through the origin. It would be useful to note that a line reflection in H 2 looks like circle inversion in the unit disk model. A genus g hyperbolic surface can be obtained by compactifying a canonical N -gon for N = 4g. A canonical N -gon plotted in the Poincare disk model and centered at the origin would have its vertices at points:</p><p>The length of the sides, as measured using the hyperbolic metric, would be (see Fig. <ref type="figure">9a</ref>):</p><p>The {N, N }-tiling of H 2 can be obtained by reflecting the canonical N -gon with respect to its sides and repeating this procedure indefinitely.</p><p>We start by analyzing the &#945; 1 Dehn twist in detail. With minor modifications, the same calculation applies to the other maps as well, so we will only mention the end results for the other maps.</p><p>For the points in the shaded region but outside the ABCD hyperbolic 4-gon in Fig. <ref type="figure">4b</ref>, D &#945;1 acts as identity and hence it is preserves area locally. Next we consider the points inside &#8710;ABC which are mapped to points inside &#8710;ACE (See Fig. <ref type="figure">9</ref>).</p><p>We start by calculating some lengths and angles. As in the main text, | | denotes the hyperbolic length. |AC| can be obtained using the hyperbolic law of cosines (see Fig. <ref type="figure">9a</ref>): </p><p>To make calculations simpler, we place the origin of the Poincar&#232; disk on point A; by doing so, the geodesics that come out of the point A will look like straight lines on the disk. In Fig. <ref type="figure">9b</ref>, &#8710;ABC and &#8710;ACE are plotted in this new coordinate frame. Consider an infinitesimal area element ds at x = (r, &#952;) inside &#8710;ABC which is mapped to the area element ds at x = (r , &#952; ) inside &#8710;ACE; r and r are the Euclidean distance from origin in Fig. <ref type="figure">9b</ref> and the &#952; and &#952; angles are measured with respect the lines AB and AC respectively. we define &#955;(r, &#952;) as the scale factor of the area:</p><p>r dr rdr</p><p>where g(r) is the determinant of the hyperbolic metric:</p><p>We want to show that &#955; is bounded from above and below: for some real positive L and U . First, we need to find r and &#952; in terms of r and &#952;.</p><p>Using the law of cosines for the angles in &#8710;ABM (see </p><p>&#945;1 is defined such that:</p><p>Note that in this case |BC| = |CE| and hence:</p><p>We can find |AM | by using the law of cosines in &#8710;ACM :</p><p>It is then straight forward to find r and &#952; . According to the way the map D * &#945;1 is defined, we have:</p><p>Note that r = tanh(|Ax |/2) and |Ax| = 2 arctanh(r). So we have:</p><p>where &#961; is equal to |AM | |AM | and depends only on &#952;(not r). By taking the derivative of ( <ref type="formula">41</ref>) with respect to r we get:</p><p>&#952; can also be obtained by using the hyperbolic law of sines in &#8710;ACM :</p><p>By plugging <ref type="bibr">(41)</ref>, <ref type="bibr">(42)</ref> and ( <ref type="formula">31</ref>) into (30) we find:</p><p>First, we fix &#952; and see how &#955; changes as one varies r in the range [0, r max = tanh(|AM |/2)]. It is straight forward to show that tanh(&#961; arctanh(r))/r is bounded by 1 and &#961;. The second parentheses in <ref type="bibr">(44)</ref>, which is equal to (1+r)/(1+r ), also is bounded by 1/2 and 2. The third parenthesis in ( <ref type="formula">44</ref>) is a monotonic function of r, as one can verify by taking the derivative, and so is bounded by So far, all expressions were exact. But, since we are interested in the N &#8594; &#8734; limit, the calculation can be simplified greatly by computing the large N expansion of each expression. In particular, ( <ref type="formula">25</ref>),( <ref type="formula">26</ref>),( <ref type="formula">28</ref>), <ref type="bibr">(27)</ref> and <ref type="bibr">(29)</ref> have the following asymptotic forms:</p><p>To find the asymptotic form of functions that involve &#952;, first we trade &#952; for &#951; &#8801; &#952; &#934; . The reason is that &#952; varies in the range [0, &#934;] and so has an implicit 1/N dependence because of &#934;. By using &#951; instead of &#952;, the only small parameter of our expressions would be 1/N . Note that 0 &#8804; &#951; &#8804; 1. In terms of &#951;, we get the following asymptotic forms for the expressions in 34,38 and 43:</p><p>The first two expressions are only valid for 0 &lt; &#951; &lt; 1; for &#951; = 0, 1 we have to use the expressions listed in ( <ref type="formula">45</ref> </p><p>Let M be a point on the side CD and M its image which will be on ED. According to the definition of the map,</p><p>We define &#961;, &#952;, &#952; , and &#951; similar to the previous case: &#952; &#8801; &#8736;M AC, &#952; &#8801; &#8736;M AE, &#961;(&#952;) &#8801; |AM |/|AM | and &#951; &#8801; &#952;/&#934; . As in the previous section, we only need to compute the corresponding limits listed in <ref type="bibr">(49)</ref>. The calculation follows the same steps and at the end we will find that:</p><p>lim</p><p>Since all of them are bounded for 0 &#8804; &#951; &#8804; 1 it follows that the area elements in &#8710;ACD also expand or shrink by a finite factor under this transformation.</p><p>Putting everything together, we conclude that D * &#945;1 has finite local area scaling over the entire polygon and this ends the proof. The situation for &#946; Dehn twists are exactly the same up to some relabeling and needs no more analysis. One can also carry out similar calculations to check that the same remains true for the &#947; Dehn twists. Note that D * &#947; is essentially the same as D * &#945; ; the only difference is that the polygon is no longer regular.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C Dehn Twists on &#931; 3</head><p>Although we used a g = 2 hyperbolic surface to describe our procedure, as we mentioned in the main text the protocols can be easily generalized to higher genus surfaces. In this section, we briefly explain how the generalization applies in the g = 3 case. The genus 3 surface &#931; 3 , shown in Fig. <ref type="figure">10</ref>, can be constructed by identifying every other edge of a 12-gon (see Fig. <ref type="figure">11a</ref>). The space of possible hyperbolic metrics -Teichm&#252;ller space -corresponds to inequivalent choices for the locations of the vertices of the 12-gon. Here we consider a regular 12-gon for simplicity.  The sides of the 12-gon then correspond to the canonical closed loops of the closed surface which generate the fundamental group of &#931; 3 :</p><p>Similar to the genus 2 case, we can tile the hyperbolic plane by attaching copies of the standard 12-gon appropriately together, which then specifies a universal covering for &#931; 3 . We can choose one of the standard 12gons as the fundamental domain of the covering. Such a tiling is plotted in Fig. <ref type="figure">11a</ref>.</p><p>The mapping class group of &#931; 3 can be generated by the Dehn twists around the &#945; and &#946; loops plus the Dehn twists along &#947; 1 and &#947; 2 loops, where:</p><p>and where &#945;i is the &#945; i but transported along</p><p>To implement the Dehn twists, it suffices to find appropriate shearing maps to permute the qubits accordingly. The subsequent step, which is the retriangulation, has already been described in the general case in Section 5. The representative maps for the Dehn twists along &#945; and &#946; loops are essentially the same as the ones described in Section 4 for the g = 2 case. As an example, Fig. <ref type="figure">11b</ref> shows how the fundamental domain is transformed by D * &#945;1 in this case. The representative maps for Dehn twists along &#947; i s are also straightforward generalizations of the map described in Section 4; the trick is to choose a 12-gon as the fundamental domain such that it has the &#947; i loop as two of its sides and only the sides neighboring &#947; i transform non-trivially by the representative Dehn twist map. Here we consider the Dehn twist along &#947; 1 . The Dehn twist along &#947; 2 follows similarly. The action of D &#947;1 on &#945; 1 , &#945; 2 , &#946; 1 and &#946; 2 follows from the expressions in ( <ref type="formula">14</ref>) by replacing &#947; with &#947; 1 . Furthermore, it keeps &#945; 3 and &#946; 3 invariant. The loop &#948; 2 = &#946; 2 &#946; 1 also remains invariant under D &#947;1 . Just like <ref type="bibr">(15)</ref> for the g = 2 case, we can rewrite the group relation in <ref type="bibr">(56)</ref> as:</p><p>This form then suggests trading {&#945; 1 , &#946; 1 } with {&#947; 1 , &#946; 1 } and {&#945; 2 , &#946; 2 } with {&#945; 2 , &#948; 2 }. Fig. <ref type="figure">11c</ref> shows these new set of loops on the surface of &#931; 3 . If we cut &#931; 3 along these loops, we end up with the the shaded irregular 12-gon shown in Fig. <ref type="figure">11d</ref>, which can be taken as the fundamental domain of the covering map. Note that in this 12-gon all sides remain invariant by D &#947;1 except the two sides labeled by &#946; 1 . Moreover, the &#946; 1 sides are neighboring the &#947; 1 sides as was the case in g = 2.</p><p>Therefore a shearing map directly analogous to D * &#947; in Section 4 would work here as well.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Logical gates on the hyperbolic Z 2 surface code</head><p>In this appendix, we discuss the specific case of applying our logical gate sets to the hyperbolic Z 2 surface code, i.e. the code obtained by placing the Kitaev Z 2 toric code on a hyperbolic surface. This is the simplest abelian case of the general Turaev-Viro code. In this case, the continuous shear map is exactly the same as what discussed for the general Turaev-Viro code in Sec. 4 in the main text. The retriangulation part also implements the same sequence of 2-2 and 1-3 Pachner moves. The implementation of the Pachner moves in terms unitary gates on the physical qubits are even simpler than the Fibonacci code which we illustrated in the Fig. <ref type="figure">7</ref> in the main text. In the following, we show the concrete unitary circuits for the implementation of the 2-2 and 1-3 Pachner moves in the hyperbolic surface code.</p><p>We note that a number of previous discussions of the hyperbolic surface code considered the case of regular tilings of the hyperbolic surface <ref type="bibr">[14,</ref><ref type="bibr">15,</ref><ref type="bibr">55]</ref>. Our protocols require us to consider the code defined on more general triangulations.</p><p>As a specific situation of the general Levin-Wen Hamiltonian Eq. ( <ref type="formula">4</ref>), the Z 2 surface code is described by the following Hamiltonian defined on the trivalent graph &#923; following the usual convention:</p><p>as illustrated by Fig. <ref type="figure">12</ref>(a). Here, the 3-leg vertex operator Q &#957; =X &#957;,1 X &#957;,2 X &#957;,3 is a product of three Pauli-X operators due to the trivalent nature. The j-edge plaquette operator B p =Z &#957;,1 Z &#957;,2 &#8226; &#8226; &#8226; Z &#957;,j is a product of j Pauli-Z operators. Note that the number of edges j on a plaquette is in general arbitrary for an arbitrary trivalent graph, but remains valid for a well-behaved graph to ensure the low-weight condition in the LDPC code family. For example, on a honeycomb lattice, one has j = 6 as shown in Fig. <ref type="figure">12</ref>(a). If we instead consider the dual description of the hamiltonian on the original triangulation &#923;, Q &#957; =X &#957;,1 X &#957;,2 X &#957;,3 is located on the triangle plaquettes on &#923;, while B p =Z &#957;,1 Z &#957;,2 &#8226; &#8226; &#8226; Z &#957;,j is located on the j-leg vertices of &#923;.</p><p>In the following, we explicitly demonstrate the circuit implementation of the 2-2 and 1-3 Pachner moves, focusing on the description in the triangulation picture &#923; for clarity. For the convenience of our discussion, we will use the stabilizer formalism to discuss the operator transformation in the Heisenberg picture. In particular, we will use the following relations on the transformations of the Pauli operators when conjugated by CNOTs: CNOT (X &#8855; I) CNOT =X &#8855; X, CNOT (I &#8855; X) CNOT =I &#8855; X, CNOT (Z &#8855; I) CNOT =Z &#8855; I,</p><p>where control is the first qubit and target the second one. The inverse of the above transformation generated by conjugating with CNOTs again on both sides will also be used.</p><p>As shown in Fig. <ref type="figure">12</ref>(b), we want to implement a 2-2 Pachner move by flipping the edge e (pink) which redivides the diamond &#9830; abcd into two triangles &#8710; ead and &#8710; bce , starting from the original partition with triangles &#8710; ecd and &#8710; abe . To achieve this, we apply two CNOTs indicated by the blue arrow where the arrowhead points towards the target qubit and the tail points towards the control qubit. In particular, the two CNOTs both start from qubit e and point towards the qubit c and a respectively. We start with a stabilizer X e X c X d in the original triangulation &#923; I with eigenvalues +1. As shown by the quantum circuit at the bottom of Fig. <ref type="figure">12</ref>(b), the CNOT from e to c makes the following transformation of the stabilizer:</p><p>where the qubit c is disentangled according to the inverse of the first relation in Eq. (61). Next, the CNOT from e and a leads to CNOT ea : X e X d -&#8594; X e X a X d , (63) according to the first relation in Eq. (61). Therefore, we get the new stabilizer X e X a X d with eigenvalue +1 on the new triangle &#8710; ead . Note that the diamond stabilizer on &#9830; abcd is a product of the stabilizers on the two original triangles &#8710; abe and &#8710; ecd , i.e., X a X b X c X d = (X a X b X e )(X e X c X d ), having an eigenvalue +1 which is unchanged by the two CNOTs due to the second relations in Eq. (61). At the same time, this diamond stabilizer can be also written as a product of the stabilizers on the two new triangles &#8710; bce and &#8710; ead , i.e., X a X b X c X d = (X b X c X e )(X e X a X d ). Therefore, the other new triangle stabilizer X b X c X e should also have eigenvalue +1.</p><p>To check the consistency, one should also verify the corresponding transformation of the Z-stabilizers. As one can see from the quantum circuit in Fig. <ref type="figure">12</ref>(b), the 6-body Z-stabilizer on top of the diamond is transformed by the CNOT from e to c according to the fourth relation in Eq. (61) as: (66)</p><p>Similarly, the CNOTs acting from f towards c and d create the triangular X-stabilizer on &#8710; bed from a single Pauli-X on the ancilla e with eigenvalue +1:</p><p>In addition, the two CNOTs from e and f towards d makes sure the new Z-stabilizer is generated on the central vertex from the single Pauli-Z on qubit d with eigenvalue +1:</p><p>Finally, one can verify the other Z-stabilizers are also transformed accordingly by the CNOTs. Up to now, we have verified that the CNOTs in Fig. <ref type="figure">12</ref>(c) indeed implement the 1-3 Pachner move in the surface code. Last but not least, we also note that the representation of the MCG on the hyperbolic surface code correspond to logical gates in a subset of the Clifford group. In the context of our scheme, this subset of logical gates can therefore be implemented effectively instantaneously with long-range SWAP operations implementing the permutations and a constant depth local quantum circuit implementing the subsequent retriangulation.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Accepted in Quantum 2019-07-22, click title to verify. Published under CC-BY 4.0.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>The MCG can also be defined using diffeomorphisms; both definitions are equivalent<ref type="bibr">[23]</ref>.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>Ref.<ref type="bibr">[28]</ref> also proposed methods to reduce this time cost to O(k &#947; D) for &#947; &gt; 0 arbitrarily small, at the cost of increasing the scaling of the space overhead.Accepted in Quantum 2019-07-22, click title to verify. Published under CC-BY</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_3"><p>4.0.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_4"><p>Accepted in Quantum 2019-07-22, click title to verify. Published under CC-BY 4.0.</p></note>
		</body>
		</text>
</TEI>
