alphaFeedback

WorksPhysics and Astronomy

Injection is all you need: parallel universal logic in high-rate concatenated self-dual codes

AI contributions
Not recorded for this paper
View details

Abstract

We propose a quantum architecture that achieves addressable and parallel universal fault-tolerant logical in high-rate codes. The codes are obtained from the flexible concatenation of small-distance high-rate self-dual CSS codes. Addressable and parallel universal logic on the resulting KK logical qubits is injected by fault-tolerantly preparing and then consuming diverse logical KK-qubit CSS stabilizer states and logical ∣H⟩⊗K\lvert H \rangle^{\otimes K} global magic states. Flag-at-origin is used to prepare the stabilizer resource states while a concatenated cultivation protocol prepares the global magic states. These resource states are consumed by Steane-QEC or Knill-QEC teleportation gadgets, which simultaneously perform quantum error correction. Any quantum algorithm with TT-depth DTD_T can be executed by consuming 12DT12D_T or fewer resource states. We benchmark the fault-tolerant preparation of the resource states for several two-level concatenations of the [[k+4,k,2]][[k+4,k,2]] H codes and the Hamming [[15,7,3]][[15,7,3]] code. In particular, we find that the concatenated cultivation offers at least one order of magnitude spacetime reduction compared to cultivation in the surface code.

Introduction

High-rate quantum error-correcting (QEC) codes are enticing for their asymptotically low physical overheads as a quantum memory. However, it is often unclear how to use these codes for quantum computation. Strategies include generalized lattice surgery with suitably-constructed ancilla code patches [1, 2, 3, 4], logical gates based on code automorphisms [5, 6, 7, 8], and the direct circuit-level construction of logical gates that address a chosen subset of the logical qubits in a code block [9, 10, 11, 12]. A fundamental problem for high-rate codes is that they generally suffer from an addressability problem [13, 14, 15], which seemingly limits computational bandwidth (active circuit width) by limiting the number of logical qubits that can be processed simultaneously, forcing logically disjoint gates to be serialized.

In this work, we take a different route that avoids the addressability problem: rather than building addressable logical gates into the code, we inject all but a handful of logical gates via Steane-QEC and Knill-QEC teleportation gadgets that consume fault-tolerantly prepared resource states. A byproduct of these injections is that we simultaneously perform QEC and mitigate leakage noise by teleporting the logical information into fresh qubits. Our scheme is designed for a specific and practically-motivated family of codes: concatenated codes built from self-dual CSS seed codes, called self-dual with equivalent logicals (SWEL) [12, 16], that have transversal global logical Hadamard (HH) and phase (S=diag⁡(1,i)S=\operatorname{diag}(1,i)) operators. Specifically, an [n,k]\lbrack n,k\rbrack SWEL code is a self-dual CSS code for which Hˉ⊗k=H⊗n\bar{H}^{\otimes k}=H^{\otimes n} and Sˉ⊗k≅ZS⊗n\bar{S}^{\otimes k}\cong_Z S^{\otimes n}, where Hˉ\bar{H} and Sˉ\bar{S} denote logical HH and SS operators, and ≅Z\cong_Z denotes equality modulo single-qubit ZZ gates [17]. This restriction enables the fault-tolerant construction of resource states suitable for highly parallel universal quantum computation with high-rate concatenated codes [10]. We sketch out the general scheme in Figure 1.

Injection architecture and resource-state preparation circuits

Figure 1. The injection architecture employs the concatenation of small-distance self-dual SWEL codes [12, 16] that encode k>1k>1 logical qubits. These codes have a transversal physical implementation of S⊗kS^{\otimes k} and H⊗kH^{\otimes k} logical gates. (a) Compilation of any unitary with TT-depth DTD_T into DTD_T layers of Clifford gates CiC_i and products T⊗qiT^{\otimes q_i} of TT gates acting on subsets of the KK logical qubits of the final concatenated block. At most 12DT12D_T resource states are required to inject all logical gates and simultaneously perform quantum error correction (QEC): 9 for each Clifford layer and 3 for each TT layer. (b) Bruhat’s decomposition of any Clifford circuit into 9 Clifford gates of three types: CXGCX^G is a product of CNOT gates that act sequentially on an ordered list of qubit pairs GG, S⊗qS^{\otimes q} is a product of logical SS gates, and H⊗qH^{\otimes q} is a product logical HH gates. (c) Steane-QEC injection of S⊗qS^{\otimes q} by consuming a tensor product H⊗q∣0⟩⊗KH^{\otimes q}|0\rangle^{\otimes K} resource state prepared with flag-at-origin (F@O) on one concatenated code block. (d) Steane-QEC injection of H⊗qH^{\otimes q}. (e) Knill-QEC injection of CXGCX^G by consuming a two-block resource state prepared with F@O. (f) Steane-QEC injection of T⊗qT^{\otimes q} by consuming a one-block ∣H⟩⊗K|H\rangle^{\otimes K} resource state prepared with concatenated cultivation and a one-block H⊗q∣0⟩⊗KH^{\otimes q}|0\rangle^{\otimes K} resource state.

Our approach to executing Clifford circuits is inspired by Ref. [18], which showed that an arbitrary logical Clifford circuit can be injected by consuming a constant number of resource states, one per stage of a Bruhat decomposition [19]. In that work the requisite resource states are generically non-CSS and are produced by a costly distillation protocol. Our key observation is that the availability of global HH and SS gates allows every stage of the decomposition to be reduced to a CSS resource state; an arbitrary kk-qubit logical Clifford can then be injected using at most 9 CSS resource states. Fault-tolerant preparation circuits for these CSS states are found without distillation using the flag-at-origin method of Ref. [20]. We emphasize that the tools underlying our construction of Clifford gates depend only on the use of SWEL codes (or, more generally, fault-tolerant logical Hˉ⊗k\bar{H}^{\otimes k} and Sˉ⊗k\bar{S}^{\otimes k} gates). In particular, neither code concatenation (as the method for code construction) nor flag-at-origin (as the method for CSS resource state preparation) are required for our fault-tolerant Clifford gates. Nonetheless, code concatenation is essential for our construction of a high-

rate fault-tolerant magic resource state factory.

To complete a universal gate set we must inject a non-Clifford gate, for which we use consumable logical ∣H⟩⊗k|H\rangle^{\otimes k} magic states. Here the transversal Hˉ⊗k\bar{H}^{\otimes k} gate plays a second, distinct role: because Hˉ⊗k\bar{H}^{\otimes k} is transversal, it can be measured fault-tolerantly, providing a built-in flagging mechanism that detects errors in the magic-state preparation. On its own, a single such parity measurement suppresses magic-state infidelity to only O(p2)O(p^2), since the measurement of Hˉ⊗k\bar{H}^{\otimes k} can only resolve the parity of faulty logical qubits. Combining this flagging mechanism with code concatenation, however, lets us cross-verify independent parity measurements at successive levels and drive the probability of an undetectable logical error down to O(p2ℓ)O(p^{2^\ell}) at concatenation level ℓ\ell. We refer to this procedure as concatenated cultivation. It is closely related to the protocols explored in [21, 22, 23, 24].

Logical Clifford gates

Quantum teleportation is known to be a universal logical primitive [25]. Consider a kk-qubit unitary U=∑a,b∈{0,1}kUab∣a⟩⟨b∣U=\sum_{a,b\in\{0,1\}^k}U_{ab}|a\rangle\langle b| that we wish to apply to the kk logical qubits of a single code block, initially in the logi cal state ∣ψ⟩|\psi\rangle. This unitary can be injected by the circuit

∣Φ,U⟩⟶U∣ψ⟩(1)|\Phi,U\rangle\longrightarrow U|\psi\rangle \tag*{(1)}

where we identify a sub-circuit that prepares the state ∣Φ,U⟩=12k∑a,b∈{0,1}kUab∣ba⟩|\Phi,U\rangle= \frac{1}{2^k}\sum_{a,b\in\{0,1\}^k} U_{ab}|ba\rangle, the bitstrings x,z∈{0,1}kx,z\in\{0,1\}^k are logical measurement outcomes, and throughout this work we adopt the notation V⊗v=⨂j=1∣v∣VvjV^{\otimes v}=\bigotimes_{j=1}^{|v|}V^{v_j} for any single-qubit unitary VV and integer vector v=(v1,v2,⋯ )v=(v_1,v_2,\cdots). If UU is Clifford, then UX⊗zU†UX^{\otimes z}U^\dagger and UZ⊗xU†UZ^{\otimes x}U^\dagger are Pauli strings.

At face value, Eq. (1) merely converts the problem of applying UU to ∣ψ⟩|\psi\rangle into the problem of applying UU to the second register of kk Bell pairs. However, if we can prepare ∣Φ,U⟩|\Phi,U\rangle directly, then Eq. (1) tells us how to consume this state to inject UU to an arbitrary kk-qubit state ∣ψ⟩|\psi\rangle. We have thus reduced the problem of applying UU to that of preparing the resource state ∣Φ,U⟩|\Phi,U\rangle.

While fault-tolerantly preparing ∣Φ,U⟩|\Phi,U\rangle may be difficult in general, if UU is Clifford then we can simplify our task via the Bruhat decomposition [19] U=∏j=19UjU=\prod_{j=1}^{9}U_j into Cliffords (U1,U2,⋯ ,U9)(U_1,U_2,\cdots,U_9) with type signature (CX,S,CX,S,H,S,CX,S,CX)(\mathrm{CX},S,\mathrm{CX},S,H,S,\mathrm{CX},S,\mathrm{CX}) as in Figure 1(b). Here a Clifford of type CX, H, or S can be exclusively built, respectively, out of CNOT, HH, or SS gates. Ref. [18] thereby proposed to inject an arbitrary Clifford UjU_j by consuming the resource states ∣Φ,Uj⟩|\Phi,U_j\rangle, for which the authors designed suitable fault-tolerant distillation protocols. The idea is to use faulty state preparation and then concatenate with classical codes [nz,kz,dz][n_z,k_z,d_z] and [nx,kx,dx][n_x,k_x,d_x]. If dx,dz>dd_x,d_z>d, then nxnzn_xn_z noisy copies of the CSS state ∣ψ⟩|\psi\rangle can be distilled into kxkzk_xk_z copies of ∣Φ,Uj⟩|\Phi,U_j\rangle with fault distance dd. The strength of this approach is clear when many copies of the same state ∣Φ,Uj⟩|\Phi,U_j\rangle are required. However, the Bruhat decomposition does not generically require many copies of each resource state. To produce a single copy of ∣Φ,Uj⟩|\Phi,U_j\rangle via distillation, the optimal choice is to use the classical repetition code [d+1,1,d+1][d+1,1,d+1], which means that each distillation factory requires n(d+1)2n(d+1)^2 qubits.

Here, we keep the idea of consuming resource states to inject Cliffords, but replace distillation by the distillation-free flag-at-origin method of Ref. [20]. An immediate obstruction to this approach is that flag-at-origin can only fault-tolerantly prepare CSS states that are stabilized by Pauli-XX and Pauli-ZZ strings, whereas the resource states ∣Φ,Uj⟩|\Phi,U_j\rangle are generally non-CSS. However, we can overcome this obstruction if we restrict our attention to SWEL codes, which have fault-tolerant logical global S⊗kS^{\otimes k} and H⊗kH^{\otimes k} gates [16, 26] that act on all logical qubits.

Theorem 1. Given a quantum CSS code that encodes kk logical qubits, the following primitives suffice to implement any kk-qubit Clifford unitary on the logical qubits of one code block: (a) a logical S⊗kS^{\otimes k} gate within one code block, (b) a H⊗kH^{\otimes k} gate within one code block, (c) the preparation of arbitrary logical CSS states.

Here a CSS state ∣g⟩|g\rangle is a state that can be uniquely defined by a set of stabilizers, g∣g⟩=∣g⟩ ∀g∈Gg|g\rangle=|g\rangle\ \forall g\in\mathcal{G}, that consist of only Pauli-XX and Pauli-ZZ strings.

Proof. Decompose the kk-qubit Clifford unitary U=∏j=19UjU=\prod_{j=1}^{9}U_j into a sequence of nine circuits with type signature (CX,S,CX,S,H,S,CX,S,CX)(\mathrm{CX},S,\mathrm{CX},S,H,S,\mathrm{CX},S,\mathrm{CX}), using the Bruhat decomposition [19]. If each of the circuits UjU_j is fault-tolerant (and sufficient QEC is performed in between, to form suitable extended rectangles [27]), then the unitary UU is fault-tolerant. There are three types of circuits to consider in this decomposition.

(1) CNOT (CX) type: Each CX-type circuit VV consists of only CNOT gates, so the corresponding resource state ∣Φ,C⟩|\Phi,C\rangle can be obtained by applying logical CNOT gates to logical Bell states of a CSS code, which are altogether CSS states.

(2) Phase (S) type: Without loss of generality, each S-type circuit can be written in the form S⊗zZ⊗sS^{\otimes z}Z^{\otimes s} for some pair of bitstrings s,z∈{0,1}ks,z\in\{0,1\}^k. The logical Z⊗zZ^{\otimes z} gate can be implemented directly with physical single-qubit Pauli-ZZ gates, which is fault-tolerant. For the logical S⊗sS^{\otimes s} gate, by assumption we can fault-tolerantly prepare tensor products of logical ∣0⟩|0\rangle and ∣+⟩|+\rangle states, and in particular the state H⊗s∣0⟩⊗kH^{\otimes s}|0\rangle^{\otimes k}, which is ∣+⟩|+\rangle on the qubits where ss is 1, and ∣0⟩|0\rangle elsewhere. In turn, we can use global operations to convert H⊗s∣0⟩⊗kH^{\otimes s}|0\rangle^{\otimes k} into the state

S⊗s∣+⟩≃(HS†)⊗kH⊗s∣0⟩⊗k(2)S^{\otimes s}|+\rangle\simeq(HS^\dagger)^{\otimes k}H^{\otimes s}|0\rangle^{\otimes k} \tag*{(2)}

where ≃\simeq denotes equality up to global phase. This state is ∣i⟩=∣0⟩+i∣1⟩|i\rangle=|0\rangle+i|1\rangle on the qubits where ss is 1, and ∣+⟩|+\rangle elsewhere. Transversally injecting the rotation-gate teleportation gadget

P(θ)∣+⟩⟶P(θ)∣ψ⟩(3)P(\theta)|+\rangle\longrightarrow P(\theta)|\psi\rangle \tag*{(3)}

where P(θ)=exp⁡(−iθ2Z)P(\theta)=\exp(-i\frac{\theta}{2}Z) and in particular P(π2)=SP(\frac{\pi}{2})=S, fault-tolerantly applies the gate S⊗sS^{\otimes s} to one code block [28].

(3) Hadamard (H) type: Without loss of generality, every H-type circuit can be written in the form H⊗hH^{\otimes h} for some bitstring h∈{0,1}kh\in\{0,1\}^k. By decomposing H=XSYH=XS_Y, where SY=exp⁡(−iπ4Y)S_Y=\exp(-i\frac{\pi}{4}Y) is an SS gate in the YY basis, and in turn SY≃(SH)S(HS†)S_Y \simeq(SH)S(HS^\dagger), we can expand

H⊗h=X⊗hSY⊗h≃X⊗h(SH)⊗kS⊗h(HS†)⊗k.(4)H^{\otimes h}=X^{\otimes h}S_Y^{\otimes h}\simeq X^{\otimes h}(SH)^{\otimes k}S^{\otimes h}(HS^\dagger)^{\otimes k}. \tag*{(4)}

The addressable H⊗kH^{\otimes k} gate thus reduces to physical Pauli-XX gates, global S⊗kS^{\otimes k} and H⊗kH^{\otimes k} gates, and an addressable S⊗hS^{\otimes h} gate, all of which are fault-tolerant.

The takeaway from Theorem 1 is that by using Knill-QEC gadgets for CNOT layers (Eq. (1) and Figure 1(e)) and Steane-QEC gadgets for single qubit Cliffords (Eq. (3) and Figure 1(c,Figure 1d)), we can perform arbitrary kk-qubit Clifford gates by consuming at most 9 CSS resource states. Furthermore, the process of consuming resource states passively performs quantum error correction and leakage mitigation in tandem with the execution of the circuit.

As a final point, we comment on the implementation of Clifford gates between code blocks, which by the Bruhat decomposition reduces to the task of implementing a CNOT circuit on multiple code blocks. A CNOT circuit that addresses a pair of ⟦n,k,d⟧\llbracket n,k,d\rrbracket SWEL code blocks can be injected by treating them as a single ⟦2n,2k,d⟧\llbracket2n,2k,d\rrbracket code block and applying the Knill-QEC injection of Figure 1(e). An alternative route for identical ⟦n,k,d⟧\llbracket n,k,d\rrbracket SWEL blocks is to combine their transversal inter-block CNOT with (injected) intra-block CNOTs, as in Refs. [9 Figure 9(a)] and [29 Figure 7(a)]. Finally, inter-block CNOTs may be implemented via the construction of homomorphic CNOTs [30] or generalized lattice surgery [1, 2, 3, 4]. Unlike the CNOT circuits that are injected with a CSS resource state, however, inter-block CNOTs applied with techniques that rely on addressability typically need to be divided into layers of disjoint logical gates, and implemented one layer at a time, hindering the parallelism of the injection architecture. It is therefore important to minimize such inter-block CNOT gates, for example by developing a suitable compiler or using an architecture in which the primary purpose of these gates is to teleport information into and out of a large SWEL processing block.

Logical non-Clifford gates

To complete a computationally universal gate set, we need to show how to perform a logical non-Clifford gate. Recall that any single-qubit rotation UU can be approximated to arbitrary precision by a sequence of alternating TT and HH gates: U≈UL(T±HT±HT±⋯HT±)URU \approx U_L(T^{\pm}HT^{\pm}HT^{\pm}\cdots HT^{\pm})U_R, where ULU_L and URU_R are Clifford. Below, we will show how ∣H⟩⊗k|H\rangle^{\otimes k} can be used as a resource state for addressable TT gates within a code block, where ∣H⟩|H\rangle is a +1+1 eigenstate of HH. We will then discuss how to prepare high-fidelity ∣H⟩⊗k|H\rangle^{\otimes k} states in concatenated SWEL codes. In particular, we show that repeated use of logical Hadamard measurements gives a state preparation protocol for ∣H⟩⊗k|H\rangle^{\otimes k} where

the probability of an undetectable logical error is O(p2ℓ)O(p^{2^\ell}) in the physical error rate pp and concatenation level of ℓ\ell.

Universality using ∣H⟩⊗k|H\rangle^{\otimes k}

Theorem 2. The primitives in Theorem 1 together with ancillary code blocks in logical ∣H⟩⊗k|H\rangle^{\otimes k} states suffice to inject an arbitrary Clifford+TT circuit on the kk logical qubits of one code block.

Proof. For the purposes of this proof it is sufficient for us to show how to implement an addressable logical gate of the form T⊗tT^{\otimes t} with t=(tj:j∈Zk)∈{0,1}kt=(t_j:j\in\mathbb{Z}_k)\in\{0,1\}^k.

As a warm up, setting θ=π4\theta=\frac{\pi}{4} in Eq. (3) recovers a gadget that consumes a ∣T⟩=SHS∣H⟩|T\rangle=SHS|H\rangle state to inject a TT gate. A T⊗kT^{\otimes k} gate can therefore be applied to the kk qubits of a code block by consuming a ∣T⟩⊗k=S⊗kH⊗kS⊗k∣H⟩⊗k|T\rangle^{\otimes k}=S^{\otimes k}H^{\otimes k}S^{\otimes k}|H\rangle^{\otimes k} state in parallel using a transversal CNOT gate and an addressable logical SXSX correction.

A logical T⊗tT^{\otimes t} gate can similarly be applied by using the gadget in Eq. (3) with the resource state T⊗t∣+⟩⊗kT^{\otimes t}|+\rangle^{\otimes k}. To this end, we expand

T⊗t∣+⟩⊗k=(SHSH)⊗k∣H,t⟩,(5)T^{\otimes t}|+\rangle^{\otimes k}=(SHSH)^{\otimes k}|H,t\rangle, \tag*{(5)}

where

∣H,t⟩≡⨂j∣H,tj⟩,∣H,t⟩={∣H⟩t=1∣0⟩t=0.(6)|H,t\rangle\equiv\bigotimes_j|H,t_j\rangle,\qquad|H,t\rangle= \begin{cases} |H\rangle& t=1\\ |0\rangle& t=0 \end{cases}. \tag*{(6)}

In turn, we can prepare ∣H,t⟩|H,t\rangle from ∣H⟩⊗k|H\rangle^{\otimes k} by consuming one H⊗t∣0⟩⊗kH^{\otimes t}|0\rangle^{\otimes k} state:

∣H⟩⊗k → CNOT  H⊗t∣0⟩⊗k → X, measurement Z  ∣H,t⟩.(7)|H\rangle^{\otimes k}\ \xrightarrow{\ CNOT\ }\ H^{\otimes t}|0\rangle^{\otimes k}\ \xrightarrow{\ X,\ \mathrm{measurement}\ Z\ }\ |H,t\rangle. \tag*{(7)}

In total, T⊗t∣+⟩⊗kT^{\otimes t}|+\rangle^{\otimes k} state can be prepared from one ∣H⟩⊗k|H\rangle^{\otimes k} state and one H⊗t∣0⟩⊗kH^{\otimes t}|0\rangle^{\otimes k} state. Consuming the T⊗t∣+⟩⊗kT^{\otimes t}|+\rangle^{\otimes k} state using the gadget in Eq. (3), which requires a transversal CNOT gate and an addressable logical SXSX correction, then applies a logical T⊗tT^{\otimes t} gate as depicted in Figure 1(f).

We remark that the sign of individual TT gates in T⊗kT^{\otimes k} can be flipped by sandwiching a TT gate with transversal XX gates. Control over logical signs σ∈{+1,−1}k\sigma\in\{+1,-1\}^k in T⊗σT^{\otimes\sigma} also enables an injection of T⊗oT^{\otimes o} for any odd integers o∈(2Z+1)ko\in(2\mathbb{Z}+1)^k by decomposing T⊗o≃T⊗o′⋅Z⊗o′′T^{\otimes o}\simeq T^{\otimes o'}\cdot Z^{\otimes o''}, where ≃\simeq denotes equality up to global phase, and the exponents oT∈{+1,−1}ko^{T} \in\{+1,-1\}^{k} and oZ∈{0,1}o^{Z} \in\{0,1\} are defined by

ojT={+1oj=1(mod4)−1oj=3(mod4)(8)o_j^{T} = \begin{cases} +1 & o_j=1 \pmod{4}\\ -1 & o_j=3 \pmod{4} \end{cases} \tag*{(8)}
ojZ={0oj=±1(mod8)1oj=±3(mod8)(9)o_j^{Z} = \begin{cases} 0 & o_j=\pm1 \pmod{8}\\ 1 & o_j=\pm3 \pmod{8} \end{cases} \tag*{(9)}

High fidelity ∣H⟩⊗K|H\rangle^{\otimes K} states via concatenated cultivation

Being able to prepare ∣H⟩⊗K|H\rangle^{\otimes K} fault-tolerantly on the final [[N,K,D]][[N,K,D]] LL-level concatenated code is of paramount importance. Here, we present a method for producing these states in concatenated codes C=C1∘C2⋯∘CL\mathbf{C}=C_{1}\circ C_{2}\cdots\circ C_{L}, where each CjC_{j} is a SWEL code with parameters [[nj,kj,dj]][[n_{j},k_{j},d_{j}]]. The idea, which we refer to as concatenated cultivation is to iteratively use the zero-level distillation (ZLD) procedure described below to create kk magic states with an infidelity that is O(p2ℓ)O(p^{2^{\ell}}) in the physical error rate pp and concatenation level of ℓ\ell. Conveniently, these codes also satisfy the conditions of Theorem 1, making them suitable for universal fault-tolerant quantum computation.

Similar approaches to creating high fidelity magic states in concatenated codes were studied in [21, 22]. Without specifying these details, the O(p2ℓ)O(p^{2^{\ell}}) suppression quoted above is really a statement about the probability of an undetectable logical error occurring. We elaborate on this point in Section III B 3 and Section IV, where we study concatenated cultivation circuits for specific example codes.

Zero-level distillation (ZLD)

Suppose we prepare the state ∣H⟩⊗k|H\rangle^{\otimes k} in a SWEL code with parameters [[n,k,d]][[n,k,d]]. Since H⊗kH^{\otimes k} is transversal and a stabilizer of ∣H⟩⊗k|H\rangle^{\otimes k}, we can measure it fault-tolerantly and post-select on measurement outcomes of MH⊗k=+1M_{H^{\otimes k}}=+1, thereby boosting the fidelity of ∣H⟩⊗k|H\rangle^{\otimes k}. Schematically, after appending a round of code-stabilizer measurements the net state preparation circuit looks like

Encoding circuit⟶Measure H⊗k⟶Measure Pauli Stabilizers(10)\text{Encoding circuit}\quad\longrightarrow\quad\text{Measure }H^{\otimes k}\quad\longrightarrow\quad\text{Measure Pauli Stabilizers} \tag*{(10)}

where the measurement of H⊗kH^{\otimes k} can be performed by transversally applying the circuit

\Qcircuit@C=1em @R=.7em { \lstick{|+\rangle} & \ctrl{1} & \qw& \meter& \qw\\ \lstick{} & \gate{H} & \qw& \qw& \qw } \quad= \quad \Qcircuit@C=1em @R=.7em { \lstick{|+\rangle} & \ctrl{1} & \qw& \meter& \qw\\ \lstick{} & \gate{T_Y^\dagger} & \ctrl{-1} & \gate{T_Y} & \qw } \tag*{(11)}

This trick has been used previously in topological and concatenated codes [21, 22, 31, 32]. In the case of k=1k=1, Ref. [31] explains how O(d)O(d) Hadamard measurements can be used to obtain a logical infidelity of O(p⌊(d+1)/2⌋)O(p^{\lfloor(d+1)/2\rfloor}). The situation for k>1k>1 is different because a parity measurement of H⊗kH^{\otimes k} is insensitive to, for example, an even number of YY errors in ∣H⟩⊗k|H\rangle^{\otimes k}. Repeated measurements of H⊗kH^{\otimes k} can therefore at best suppress the infidelity of ∣H⟩⊗k|H\rangle^{\otimes k} to O(p2)O(p^{2}). For this reason, we only require that in the circuit to initially prepare ∣H⟩⊗k|H\rangle^{\otimes k}, all individual faults are detected by the H⊗kH^{\otimes k} or stabilizer measurements.

To this end, we identify the potentially “problematic” Pauli errors that would pass the checks in Eq. (10) after the initial preparation of ∣H⟩⊗k|H\rangle^{\otimes k}. Any Pauli error with destabilizer factors is caught by the code stabilizer measurements, so we need only consider pure logical errors. As an illustrative example, consider the pure logical error X1Z2Y3X_{1}Z_{2}Y_{3}, which acts on ∣H⟩⊗k|H\rangle^{\otimes k} as

(X1Z2Y3)∣H⟩⊗k=∣+H~⟩∣−H~⟩∣− ⁣H⟩∣H⟩⊗k−3(12)(X_{1}Z_{2}Y_{3})|H\rangle^{\otimes k}=|+\widetilde{H}\rangle|-\widetilde{H}\rangle|-\!H\rangle|H\rangle^{\otimes k-3} \tag*{(12)}

where ∣−H⟩|-H\rangle is the −1-1 eigenstate of HH, and ∣±H~⟩∝∣H⟩±∣−H⟩|\pm\widetilde{H}\rangle\propto|H\rangle\pm|-H\rangle is the ±1\pm1 eigenstate of H~=(X−Z)/2\widetilde{H}=(X-Z)/\sqrt{2}. A +1+1 measurement of H⊗kH^{\otimes k} fails to project onto ∣H⟩⊗k|H\rangle^{\otimes k} if any two of X1X_{1}, Z2Z_{2}, or Y3Y_{3} are present, leading to a general criterion for detectability in Eq. (10):

Condition 1 (Detectability Condition). In order for a mid-circuit Pauli error to be detectable by the stabilizer measurements in Eq. (10), it must be equivalent either to a single (pure logical) Pauli-XX, a single Pauli-ZZ, or a product of an odd number of Pauli-YY operators.

If a non-fault-tolerant ∣H⟩⊗k|H\rangle^{\otimes k} state preparation circuit possess error mechanisms that violate Condition 1, then flag gadgets can be added to catch these errors. We discuss the addition of flag gadgets in more detail in Appendix § 2.1.3. We provide an encoding circuit that satisfies Condition 1 for the [[15,7,3]][[15,7,3]] Hamming code in Figure 4 of Section IV B, and encoding circuits for an entire family of [[k+4,k,2]][[k+4,k,2]] H codes in Appendix § 2.1.2.

Flagged encoder circuit for $|H\rangle^{\otimes 7}$

Figure 4. Flagged encoder for ∣H⟩⊗7|H\rangle^{\otimes7} in the [[15,7,3]][[15,7,3]] code obeying Condition 1. Appending Hadamard and stabilizer measurement gadgets makes the circuit FT. Measured-out qubits are post-selected on. See Appendix § 2.1.3 for details about the construction of this circuit.

Concatenated cultivation

In concatenated codes we can overcome the O(p2)O(p^{2}) barrier by applying ZLD at each level of concatenation to verify parity for independent batches of logical states. Cross-referencing the measurement outcomes from the different levels of concatenation allows us to bound the logical error rate. In order for cross-referencing to work in a concatenated code C=C1∘C2⋯∘CL\mathbf{C}=C_{1}\circ C_{2}\cdots\circ C_{L}, each code CjC_{j} in the sequence must have transversal global H⊗kjH^{\otimes k_{j}} gate. This method generalizes that in Ref. [22] to the concatenation of any SWEL codes equipped with circuits that satisfy Condition 1.

It will be helpful to define some terminology and notation: we refer to the logical qubits at ℓ\ell levels of concatenation as level-ℓ\ell qubits. That is, level-0 qubits are physical qubits, level-1 qubits are the logical qubits of C1C_1, level-2 qubits are the logical qubits of C1∘C2C_1 \circ C_2, and so on. We will use integer subscripts on a quantum state, as in ∣ψ⟩ℓ|\psi\rangle_\ell, to denote that it is expressed as a state of level-ℓ\ell qubits. In fact, we will only need to consider ℓ≤2\ell\le2 below, as the code C1∘C2∘C3C_1 \circ C_2 \circ C_3 can be obtained by concatenating (C1∘C2)(C_1 \circ C_2) with C3C_3, so the generalization of our discussions below to the case of ℓ>2\ell> 2 follows by induction.

Consider the codes C1C_1 and C2C_2, with parameters [ ⁣[n1,k1,d1] ⁣][\![n_1,k_1,d_1]\!] and [ ⁣[n2,k2,d2] ⁣][\![n_2,k_2,d_2]\!], concatenated into the code C=C1∘C2C=C_1\circ C_2 with parameters [ ⁣[N,K,D] ⁣]=[ ⁣[n1n2,k1k2,d1d2] ⁣][\![N,K,D]\!]=[\![n_1n_2,k_1k_2,d_1d_2]\!]. Specifically, we consider a generalization of tree-style concatenation, visualized in Figure 2: each logical (level-1) qubit of a C1C_1 code block is assigned to a distinct C2C_2 code block, such that in total we concatenate n2n_2 copies of a C1C_1 code block with k1k_1 copies of a C2C_2 code block.

Generalized tree style concatenation yielding $k_1k_2$ level-2 qubits

Figure 2. Generalized tree style concatenation yielding k1k2k_1k_2 level-2 qubits: n2n_2 blocks of C1C_1 provide the level-1 qubits which are encoded into k1k_1 blocks of C2C_2. In a given C1C_1 block each of the k1k_1 level-1 qubits is allocated to a distinct C2C_2 block.

To prepare ∣H⟩2⊗K|H\rangle_2^{\otimes K}, we first prepare k2k_2 copies of ∣H⟩1⊗k1|H\rangle_1^{\otimes k_1} using ZLD with C1C_1, and prepare n2−k2n_2-k_2 copies of a C1C_1 code block initialized into ∣0⟩1⊗k1|0\rangle_1^{\otimes k_1}. We thereby prepare, in effect, k1k_1 copies of the state ∣H⟩1⊗k2∣0⟩1⊗(n2−k2)|H\rangle_1^{\otimes k_2}|0\rangle_1^{\otimes(n_2-k_2)}. We then consider an encoding circuit for C2C_2, which nominally maps the input state ∣H⟩1⊗k2∣0⟩1⊗(n2−k2)|H\rangle_1^{\otimes k_2}|0\rangle_1^{\otimes(n_2-k_2)} to the encoded state ∣H⟩2⊗k2|H\rangle_2^{\otimes k_2} using only level-ℓ\ell Hadamard gates, CNOT gates, and the readout or preparation of level-ℓ\ell ancilla qubits in the XX and ZZ bases. The k1k_1-fold tensor product of this encoding circuit similarly maps k1k_1 copies of ∣H⟩1⊗k2∣0⟩1⊗(n2−k2)|H\rangle_1^{\otimes k_2}|0\rangle_1^{\otimes(n_2-k_2)} onto k1k_1 copies of ∣H⟩2⊗k2|H\rangle_2^{\otimes k_2} using level-1 gates that are transversal in C1C_1. The encoding circuit for C2C_2 is required to satisfy Condition 1 for compatibility with ZLD.

with ZLD.

So far, we have encoded level-1 qubits into level-2 qubits, noisily preparing k1k_1 copies of ∣H⟩2⊗k2|H\rangle_2^{\otimes k_2}. We now need to measure Hadamard operators H⊗k2H^{\otimes k_2} for ZLD at the second level of concatenation. To this end, we nominally consider using one level-1 ancilla qubit to measure H⊗k2H^{\otimes k_2} on the logical (level-2) qubits of each C2C_2 code block, with the circuit

╱k2H⊗k2⋯╱k2H⊗k2⋯⋮⋱╱k2⋯H⊗k2∣+⟩1∙⋯measurement X∣+⟩1∙⋯measurement X⋮∣+⟩1⋯∙measurement X(13)\begin{array}{c} \begin{array}{cccccc} \diagup_{k_2} & H^{\otimes k_2} & & \cdots& & \\ \diagup_{k_2} & & H^{\otimes k_2} & \cdots& & \\ \vdots& & & \ddots& & \\ \diagup_{k_2} & & & \cdots& H^{\otimes k_2} & \end{array}\\ |+\rangle_1 \qquad\bullet\qquad\cdots\qquad\boxed{\text{measurement}}\,X\\ |+\rangle_1 \qquad\qquad\bullet\qquad\cdots\qquad\boxed{\text{measurement}}\,X\\ \vdots\\ |+\rangle_1 \qquad\qquad\qquad\cdots\qquad\bullet\qquad\boxed{\text{measurement}}\,X \tag*{(13)} \end{array}

This circuit should be thought of as a formal object, having a well-defined logical action despite using gates with level-1 control and level-2 target qubits.

Transversality of H⊗k2H^{\otimes k_2} in C2C_2 means that the level-2 H⊗k2H^{\otimes k_2} gate across a C2C_2 code block in Eq. (14) is equivalent to a H⊗n2H^{\otimes n_2} gate on level-1 qubits. This push-through makes the qq-th level-1 ancilla qubit in Eq. (14) address qq-th logical qubit of each C1C_1 code block (see Figure 2), which we can write in terms of transversal controlled-Hadamard gates between the logical (level-1) qubits of C1C_1 code blocks as

╱k1H⋯╱k1H⋯⋮⋱╱k1⋯H∣+⟩1⊗k1╱k1∙∙⋯∙measurement X(14)\begin{array}{c} \begin{array}{cccccc} \diagup_{k_1} & H & & \cdots& & \\ \diagup_{k_1} & & H & \cdots& & \\ \vdots& & & \ddots& & \\ \diagup_{k_1} & & & \cdots& H & \end{array}\\ |+\rangle_1^{\otimes k_1}\qquad\diagup_{k_1}\qquad\bullet\qquad\bullet\qquad\cdots\qquad\bullet\qquad\boxed{\text{measurement}}\,X \tag*{(14)} \end{array}

Each wire in Eq. (14) corresponds to one C1C_1 code block, allowing the transversal controlled-Hadamard gates to be implemented by decomposing H=TYZT†H=T Y Z T^\dagger, as in Eq. (11). Finally, to make this circuit have level-1-fault distance 2, we replace the ancilla C1C_1 code block with a pair of C1C_1 code blocks that store k1k_1 Bell pairs,

k1   H k1       H ⋮k1   H ∣+⟩1⊗k1  ∙  ∙  ∙  ∙    measure X∣0⟩1⊗k1  ⊕  ⊕  ⊕  ⊕    measure Z}n2(15)\begin{array}{c} \left. \begin{array}{c} k_1\ \ \rule{4em}{0.4pt}\ \boxed{H}\ \rule{8em}{0.4pt}\\ k_1\ \ \rule{4em}{0.4pt}\ \ \ \ \ \boxed{H}\ \rule{7em}{0.4pt}\\ \vdots\\ k_1\ \ \rule{12em}{0.4pt}\ \boxed{H}\ \rule{4em}{0.4pt}\\ \lvert+ \rangle_{1}^{\otimes k_1}\ \ \bullet\ \ \bullet\ \ \bullet\ \ \bullet\ \ \rule{2em}{0.4pt}\ \ \text{measure }X\\ \lvert0 \rangle_{1}^{\otimes k_1}\ \ \oplus\ \ \oplus\ \ \oplus\ \ \oplus\ \ \rule{2em}{0.4pt}\ \ \text{measure }Z \end{array} \right\} n_2 \tag*{(15)} \end{array}

Up to half of the transversal two-qubit gates in Eq. (15) can be applied from the second ancilla code block rather than the first, cutting the circuit depth of Eq. (15) by nearly half.

To recap, after the first round of ZLD we prepare k2k_2 copies of ∣H⟩1⊗k1\lvert H\rangle_1^{\otimes k_1}, with a logical error rate O(p2)O(p^2). We then run C2C_2 encoding circuits transversally across C1C_1 code blocks to prepare ∣H⟩2⊗K\lvert H\rangle_2^{\otimes K}. Finally, to perform ZLD at the second level of concatenation, which requires measuring a level-2 H⊗k2H^{\otimes k_2} operator in each C2C_2 code block (as in Eq. (14)), we use the level-1 circuit in Eq. (15) to measure H⊗n2H^{\otimes n_2} operators distributed across C1C_1 code blocks. Whereas the parity measurement of H⊗k1H^{\otimes k_1} can be blind to block-local physical errors of weight 2, these errors get caught by the cross-block measurements of H⊗n2H^{\otimes n_2}. Weight-3 errors are similarly caught by the parity measurements for ZLD, altogether giving the post-selected ∣H⟩2⊗K\lvert H\rangle_2^{\otimes K} state a logical error rate of O(p4)O(p^4). By induction, iterating this procedure for LL levels of concatenation yields magic states with a post-selected logical error rate of O(p2L)O(p^{2^L}). We remark that if the concatenated code is built from seed codes with distance dj≥2d_j \ge2, then the concatenated code distance D=∏j=1Ldj≥2LD = \prod_{j=1}^{L} d_j \ge2^L, so O(p2L)≥O(pD)O(p^{2^L}) \ge O(p^D).

Code distance versus cultivation distance

The O(p2L)O(p^{2^L}) probability of a logical error from concatenated cultivation is the probability of a pure logical error, with no destabilizer factors. However, concatenated cultivation still leaves errors of weight ww with probability O(pw)O(p^w). If the concatenated code distance DD is insufficiently large, the true probability of a logical error when consuming the cultivated state ∣H⟩L⊗K\lvert H\rangle_L^{\otimes K} in an error-corrected algorithm may instead be limited by the maximal error weight that can be reliably corrected in the code, namely t=⌊(D−1)/2⌋t = \lfloor(D-1)/2\rfloor. The effective logical error rate of ∣H⟩L⊗K\lvert H\rangle_L^{\otimes K} is therefore O(pmin⁡{2L,t+1})O(p^{\min\{2^L,t+1\}}). As an example, a weight-3 error in a ⟦90,14,6⟧=⟦6,2,2⟧∘⟦15,7,3⟧\llbracket90,14,6\rrbracket= \llbracket6,2,2\rrbracket\circ\llbracket15,7,3\rrbracket code is detectable by stabilizers, but may be decoded incorrectly, increasing the O(p4)O(p^4) logical error rate of the ∣H⟩2⊗14\lvert H\rangle_2^{\otimes14} state to O(p3)O(p^3).

The inability to accommodate the O(p2L)O(p^{2^L}) logical error rate is similar to what happens with magic state cultivation on the surface code [32], where the fidelity of the logical state produced in a distance-3 color code is too high to survive decoding in the original code, which must in turn be grown into a larger surface code that can accommodate the low error rate of the state. The examples benchmarked in this work fall into the same category of codes for which t+1<2Lt+1 < 2^L. We provide a detailed discussion of decoding in Section IV A, where we explain how to restore, at least partially, the level of error suppression provided by concatenated cultivation by incorporating post-selection into the decoding process.

If 2L<t+12^L < t+1, we make full use of concatenated cultivation, but in this case the cultivated state does not exploit the full error-correcting capability of the distance-DD code. The resulting excess distance provides some “slack” when designing the cultivation circuit. Concatenated cultivation iteratively uses a fault-tolerant encoding circuit for each seed code CiC_i with distance did_i, but the circuit fault distance need not equal the distance did_i of that seed code. Instead, only a fault distance of 2 is needed at each concatenation level, simplifying the task of designing the full concatenated cultivation circuit. This flexibility can also be used to reduce quantum resources. Suppose we are targeting a suppression, after decoding, of O(p4)O(p^4). The required code distance can be accomplished by a L=3L=3 code with distance-2 seed codes, or a L=2L=2 code with distance-3 seed codes. The latter code involves fewer concatenations, which generally translates to more favorable post-selection rates and spacetime volumes. This tradeoff has obvious implications for code choice and architecture design.

Concrete examples

In this section, we numerically benchmark the performance of the flag-at-origin and concatenated cultivation state preparation protocols on three example codes with concatenation level L=2L=2:

⟦36,4,4⟧=⟦6,2,2⟧∘⟦6,2,2⟧(16)\llbracket36,4,4\rrbracket= \llbracket6,2,2\rrbracket\circ\llbracket6,2,2\rrbracket \tag*{(16)}
⟦48,8,4⟧=⟦6,2,2⟧∘⟦8,4,2⟧(17)\llbracket48,8,4\rrbracket= \llbracket6,2,2\rrbracket\circ\llbracket8,4,2\rrbracket \tag*{(17)}
⟦96,14,6⟧=⟦6,2,2⟧∘⟦15,7,3⟧.(18)\llbracket96,14,6\rrbracket= \llbracket6,2,2\rrbracket\circ\llbracket15,7,3\rrbracket. \tag*{(18)}

The seed codes of ⟦36,4,4⟧\llbracket36,4,4\rrbracket, ⟦48,8,4⟧\llbracket48,8,4\rrbracket, and ⟦96,14,6⟧\llbracket96,14,6\rrbracket are all SWEL codes. See Appendix § 2.1.1 for explicit stabilizers and our choice of logical operators for the seed codes. The ⟦6,2,2⟧\llbracket6,2,2\rrbracket and ⟦8,4,2⟧\llbracket8,4,2\rrbracket are the smallest instances of the family of ⟦k+4,k,2⟧\llbracket k+4,k,2\rrbracket H codes (limited to even kk) [23, 33], all of which are also SWEL. We provide additional benchmarks of cultivated magic states in level-2 concatenated codes built from ⟦k+4,k,2⟧\llbracket k+4,k,2\rrbracket H codes in Appendix § 2.1.2.

Noise and decoding

Our numerical benchmarks use a depolarizing noise model with the following parameters:

FaultChannelAppliedRate
Initialisation/Reset1-qubit depolarisingafterpp
Two-qubit gate2-qubit depolarisingafterpp
Measurement1-qubit bit-flipbeforepp
Single-qubit gate1-qubit depolarisingafterp/100p/100
Idling (memory)1-qubit depolarisingduring idlep/100p/100

Table 1.

To compute the logical error rates of a noisy concatenated cultivation circuit, sketched in Figure 5, we append a noiseless round of syndrome measurements. We then decode with a lookup table decoder built using a code-capacity depolarizing noise model for the concatenated code. The lookup table stores all syndromes generated by errors up to weight tt. If the syndrome produced by a sample is not recognized by the decoder, then the decoder declares erasure and the state is rejected, which contributes O(pt+1)O(p^{t+1}) to the overall post-selection rate. The scaling is important for overall scalability because decoder-heralded post-selection occurs “online” in the sense that the stabilizer measurements that the decoder receives are a by-product of a state injection. Post-selection here then means aborting an entire circuit, rather than merely restarting a repeat-until-success protocol, so it is crucial that this event is suppressed in pp.

Structure of the concatenated cultivation circuit

Figure 5. Structure of the concatenated cultivation circuit for ∣H⟩⊗k1k2|H\rangle^{\otimes k_1k_2}. The input to the circuit is k2k_2 ∣H⟩⊗k1|H\rangle^{\otimes k_1} states, n2−k2n_2-k_2 ∣0⟩⊗k1|0\rangle^{\otimes k_1} states, and level-1 ancillas ∣anc⟩1|\mathrm{anc}\rangle_1 (as necessary).

When DD is even, as is the case for all of our example codes, online post-selection has the added benefit of suppressing logical errors from O(pt+1)O(p^{t+1}) to O(pt+2)O(p^{t+2}). In this case, if two errors EsmallE_{\mathrm{small}} and EbigE_{\mathrm{big}} with weights ∣Esmall∣≤t|E_{\mathrm{small}}| \le t and ∣Ebig∣>t|E_{\mathrm{big}}| > t have identical syndromes, they can only differ in their logical operator content if ∣Ebig∣≥D−t=t+2|E_{\mathrm{big}}| \ge D-t=t+2. The logical error rate of a state prepared by concatenated cultivation therefore becomes O(pmin⁡{2L,t+2})O(p^{\min\{2^{L},t+2\}}). This can be contrasted with a pure post-selection protocol, wherein no decoder is used and any syndrome violation leads to the state being rejected. This approach will saturate the O(p2L)O(p^{2^L}) suppression but at the expense of an O(p)O(p) “online” post-selection which limits the depth of executable logical circuits. As a concrete example, preparing ∣H⟩⊗4|H\rangle^{\otimes4} in the [ ⁣[6,2,2] ⁣]∘[ ⁣[6,2,2] ⁣][\![6,2,2]\!] \circ[\![6,2,2]\!] code via concatenated cultivation was previously studied in [22]. The benchmarking therein was done using pure post-selection on stabilizer measurements with the logical error rate and “online” post-selection scaling as O(p4)O(p^4) and O(p)O(p). For this case, the superior logical error rate cannot be fully taken advantage of because the O(p)O(p) post-selection will severely limit the number of magic state injections that can be performed. When employing a decoder (see Section IV B) these same quantities are more balanced, logical error rate and “online” post-selection scale as O(p3)O(p^3) and O(p2)O(p^2), allowing for deeper logical circuits.

Benchmarking magic states

In this section we describe the encoding circuit for ∣H⟩⊗k|H\rangle^{\otimes k} in more detail, and present numerical performance results for Clifford proxy circuits which mimic the structure of the aforementioned circuits.

∣H⟩⊗k|H\rangle^{\otimes k} encoding circuits

In order to prepare ∣H⟩2⊗K|H\rangle^{\otimes K}_2 in our concatenated codes, we first need to identify encoding circuits for ∣H⟩1⊗k|H\rangle^{\otimes k}_1 in each of the seed codes. A strategy for arbitrary seed codes is to start with a general unitary encoding circuit, and then add flag gadgets to catch all single faults that violate Condition 1. We found that the family of [ ⁣[k+4,k,2] ⁣][\![k+4,k,2]\!] H codes admit encoding circuits that satisfy Condition 1 without flag gadgets (see Appendix B). Figure 3 shows the corresponding encoding circuit (followed by a Hadamard measurement gadget) for the [ ⁣[6,2,2] ⁣][\![6,2,2]\!] H code.

FT $|H\rangle^{\otimes 2}$ state preparation circuit

Figure 3. FT ∣H⟩⊗2|H\rangle^{\otimes2} state prep circuit for [ ⁣[6,2,2] ⁣][\![6,2,2]\!]. The dashed line separates the encoding circuit from the Hadamard measurement gadget.

For the [ ⁣[15,7,3] ⁣][\![15,7,3]\!] Hamming code, we were unable to find an unflagged encoding circuit that satisfies Condition 1. We therefore start with a compact general encoding circuit, produced using the Munich Quantum Toolkit (MQT) [34], and use flag gadgets to catch “problematic” errors that violate Condition 1, such as that in Eq. (12). We thereby arrive at the encoding circuit in Figure 4. We discuss the procedure of adding flag gadgets in Appendix C, and remark that there may be ample room for optimizing this procedure to further reduce the logical error and discard rates of an encoding circuit, which we leave for future work.

Details of magic state proxy circuits

The concatenated cultivation circuits for preparing ∣H⟩2⊗K|H\rangle^{\otimes K}_2 with the example codes in Eqs. (16) to (18) are non-Clifford and too large for direct benchmarking (though recent developments in classically simulating Clifford+TT circuits bring the prospect of direct benchmarking closer [35]). We therefore benchmark concatenatenated cultivation by simulating the cultivation of a Clifford proxy state, ∣+⟩⊗K|+\rangle^{\otimes K}. These proxy simulations allows us to test the scaling predictions in Section IV A, and estimate logical error and discard rates. Error and post-selection rates are reported subject to the noise model and decoder described in Section IV A. The structure of the encoding circuit is shown Figure 5.

The first step is to run the fault-tolerant encoding circuit on all C1C_1 code blocks. In the examples we analyze, this corresponds to the encoding circuit for the [[6,2,2]][[6,2,2]] H code shown in Figure 3, but with the CHCH gates replaced by CXCX gates. We then implement the fault-tolerant encoding circuit of C2C_2 using the logical gates of C1C_1.

We then perform a logical operator measurement using a Clifford proxy for the circuit in Eq. (15), replacing CHCH gates by CXCX gates to measure a logical X⊗kX^{\otimes k} operator. Recall from Eq. (11) that performing CHCH requires two injections of TYT_Y gates. Our proxy for these TYT_Y gates is to sandwich the CXCX gate in a standard measurement gadget by two trivial (identity-gate) injections on either side, which are stand-ins for the two injections necessary for a TT gate (the “bare” TT-state injection and a feed-forward SS gate). In total, our Clifford proxy for each CHCH gate in Eq. (15) is the gadget

Clifford proxy gadget with data and ancilla qubits

Figure 14.

(19)(19)\text{(19)} \tag*{(19)}

A quick comment on the overheads of this gadget. The example codes [[36,4,4]][[36,4,4]], [[48,8,4]][[48,8,4]], and [[96,14,6]][[96,14,6]] all use the [[6,2,2]][[6,2,2]] H code for their level-1 code blocks, which only requires an SS injection half of the time because the feed-forward gates for T⊗2T^{\otimes2} are uniformly random on {I,S}\{I,S\} (and S⊗2S^{\otimes2} is transversal). On average then, executing the level-2 Hadamard measurement will require 3n23n_2 injections of level-1 states: 2n22n_2 for the TT-state injections and n2n_2 (on average) for the feed-forward SS gates. Our proxy simulations restrict to the worst case; every level-2 X⊗kX^{\otimes k} measurement includes 4n24n_2 injections of level-1 states. In the results reported below, we do not post-select on the syndrome outcomes of the level-1 ancilla code blocks used for the injections, though this is an extra filter that can be incorporated.

The final step of concatenated cultivation is to measure stabilizers of the concatenated code. We perform one round of level-1 stabilizer measurements on each level-1 code using level-0 (physical) Bell-state ancilla qubits (see Figure 11 in Appendix § 2.1.3.2). For code [[96,14,6]][[96,14,6]] with d2>2d_2>2, we then measure level-2 stabilizers using a level-1 Bell-state ancilla code blocks. In the case of d2=2d_2=2 (codes [[36,4,4]][[36,4,4]] and [[48,8,4]][[48,8,4]]) we do not measure level-2 stabilizers because doing so does not (asymptotically) reduce the O(p2)O(p^2) probability of an error that triggers erasure when consuming a cultivated state in a quantum algorithm.

Stabilizer measurements used in Fig. 5

Figure 11. Stabilizer measurements used in Figure 5.

Results of magic state proxy simulations

Our discussions in Section III B 3 and Section IV A predict that the logical error rates of our example concatenated cultivation circuits should scale as O(pmin⁡{4,t+2})O(p^{\min\{4,t+2\}}). We therefore expect our distance-4 examples ([[36,4,4]][[36,4,4]] and [[48,8,4]][[48,8,4]]) to scale as O(p3)O(p^3), and the distance-6 example ([[96,14,6]][[96,14,6]]) to achieve the full O(p4)O(p^4) suppression provided by the cultivation protocol. The results of our proxy simulations, shown in Figure 6, support this prediction.

Logical error rate and discard rate for cultivated magic states

Figure 6. Logical error rate pLp_L and discard rate for the cultivated ∣+⟩2⊗K\lvert+\rangle_2^{\otimes K} state in codes [[36,4,4]][[36,4,4]], [[48,8,4]][[48,8,4]] and [[96,14,6]][[96,14,6]]. Shaded regions reflect 95% confidence intervals.

In the first eight columns of Table I (PDF p. 11) we report metrics for the simulated circuits along with the logical error and discard rates at a physical error rate of p=5×10−4p=5\times10^{-4}. We emphasize that there are clear avenues to improve the spacetime overheads of these circuits. Firstly, the total qubit count is an overly conservative estimate here; from Figure 3 we see that 25% of the physical qubits in the level-1 [[6,2,2]][[6,2,2]] code blocks are ancillas. These ancillas can be reused later on in the encoding circuit but this is not done currently. As another example, the ℓ=1\ell=1 and ℓ=2\ell=2 stabilizer measurements are performed serially as shown in Figure 11. More careful optimization of the sub components of Figure 5 would no doubt increase performance.

CodeQubitsCNOTsDepthMeas.Discard rateError rate pLp_L (95% CI)spacetime cost CCpLSCp_L^{\mathrm{SC}}spacetime cost CSCC_{\mathrm{SC}}
[ ⁣[36,4,4] ⁣][\![36,4,4]\!]1128807327241.3%8.29−0.60+0.64×10−98.29^{+0.64}_{-0.60} \times10^{-9}1.39×1041.39 \times10^42.07−0.15+0.16×10−92.07^{+0.16}_{-0.15} \times10^{-9}1.61×1051.61 \times10^5
[ ⁣[48,8,4] ⁣][\![48,8,4]\!]14411727435650.7%2.21−0.14+0.15×10−82.21^{+0.15}_{-0.14} \times10^{-8}2.16×1042.16 \times10^42.76−0.18+0.19×10−92.76^{+0.19}_{-0.18} \times10^{-9}3.20×1053.20 \times10^5
[ ⁣[96,14,6] ⁣][\![96,14,6]\!]256314216485486.7%1.14−0.17+0.20×10−101.14^{+0.20}_{-0.17} \times10^{-10}3.16×1053.16 \times10^58.14−1.23+1.45×10−128.14^{+1.45}_{-1.23} \times10^{-12}>5.98×105> 5.98 \times10^5

Table I (PDF p. 11). Circuit metrics and performance at p=5×10−4p = 5 \times10^{-4}. pLp_L and C=qubits∘depth/(1−discard)C = \text{qubits} \circ\text{depth}/(1-\text{discard}) are the logical error rate and spacetime cost of concatenated cultivation. The final two columns provide comparison with cultivation on the surface code. pLSC=1−(1−pL)1/Kp_L^{\mathrm{SC}} = 1 - (1-p_L)^{1/K} is the error rate required of each cultivated surface code patch in order match the error rate of concatenated cultivation. CSCC_{\mathrm{SC}} is the spacetime cost for cultivating KK surface code magic states at pLSCp_L^{\mathrm{SC}}. The value of pLSCp_L^{\mathrm{SC}} obtained by code [ ⁣[96,14,6] ⁣][\![96,14,6]\!] is unachievable with the surface-code cultivation methods of Ref. [32], so the corresponding cost CSCC_{\mathrm{SC}} is bounded by that of cultivating at pLSC=3.6×10−11p_L^{\mathrm{SC}} = 3.6 \times10^{-11}.

One way to contextualize the performance of concatenated cultivation (Table I (PDF p. 11) and Figure 6) is to compare with magic state cultivation in the surface code [32]. Specifically, we focus on the spacetime cost for producing a magic state at given logical error rate. There is a subtlety in the comparison as our method is batched, while cultivation on the surface code allows individual magic states to be produced sequentially. A given instance of our protocol produces ∣H⟩⊗K\lvert H\rangle^{\otimes K} with logical error rate pLp_L and naive spacetime cost C=qubits∘depth1−discard rateC=\frac{\text{qubits}\mathbin{\circ}\text{depth}}{1-\text{discard rate}}. We compare CC with the spacetime cost CSCC_{\mathrm{SC}} of producing ∣H⟩⊗K\lvert H\rangle^{\otimes K} with logical error rate pLp_L via surface code cultivation. To estimate CSCC_{\mathrm{SC}}, we find the spacetime cost CSC(0)C_{\mathrm{SC}}^{(0)} of cultivating a state with logical error rate pLSC=1−(1−pL)1/Kp_L^{\mathrm{SC}}=1-(1-p_L)^{1/K} and set CSC=KCSC(0)C_{\mathrm{SC}}=K C_{\mathrm{SC}}^{(0)}.

Using the noise model described in Section IV A we simulate surface code cultivation at p=5×10−4p=5\times10^{-4} and toggle the complementary gap to achieve the target single-qubit error rate pLSCp_L^{\mathrm{SC}}, which gives a value for CSC(0)C_{\mathrm{SC}}^{(0)}. Our simulations consist of performing two rounds of cultivation at d=3d=3 and d=5d=5 and then embedding the d=5d=5 code into the d=11d=11 surface code. Ref. [32] reports spacetime cost in qubit ∘\circ rounds where each round roughly corresponds to a depth-10 circuit. We note that the estimate of this cost incorporates that not all qubits in the final d=11d=11 patch are used throughout the circuit, which is not done for the concatenated cultivation circuits. Thus the comparison of the spacetime cost should be understood to be generous to the surface code cultivation circuit.

In the final three columns of Table I (PDF p. 11) we report the spacetime cost CC, the corresponding surface-code-cultivated logical error rate pLSCp_L^{\mathrm{SC}} and the spacetime cost CSCC_{\mathrm{SC}}. In the case of code [[96,14,6]][[96,14,6]], a logical error rate of pLSC∼10−12p_L^{\mathrm{SC}}\sim10^{-12} is not achievable and likely requires an additional level of cultivation at d=7d=7. In place, of this we used the minimal value of pLSC=3.6×10−11p_L^{\mathrm{SC}}=3.6\times10^{-11} obtained by cultivation at d=5d=5 in Table I (PDF p. 11), and simply note that the reported value for CSCC_{\mathrm{SC}} is a significant underestimate. Nevertheless, in all cases the associated spacetime cost for cultivation CSCC_{\mathrm{SC}} is more than one order of magnitude larger than the cost CC of the corresponding concatenated protocol.

CSS resource states for Clifford gates

In this section, we report benchmarks for fault-tolerantly preparing the CSS states need to perform logical Clifford gates via injection. Recall from Theorem 1 that the resource states for S/HS/H-type gates are tensor products of logical ∣0⟩\lvert0\rangle and ∣+⟩\lvert+\rangle states on a single [[N,K,D]][[N,K,D]] block. The representative S/HS/H-type resource states that we compile for our benchmarks correspond to the logical gates

[ ⁣[36,4,4] ⁣]:S1S2[\![36,4,4]\!]: S_1S_2
[ ⁣[48,8,4] ⁣]:S1S2S5S7[\![48,8,4]\!]: S_1S_2S_5S_7
[ ⁣[96,14,6] ⁣]:S1S2S5S7S10S11S12S13.[\![96,14,6]\!]: S_1S_2S_5S_7S_{10}S_{11}S_{12}S_{13}.

CXCX-type resource states are injected via Knill-QEC teleportation and require two [ ⁣[N,K,D] ⁣][\![N,K,D]\!] blocks, as indicated in Figure 1(e). For the CXCX gate injection, we benchmark CXCX-type resource states for circuits with 9, 30, and 74 logical CXCX gates, respectively, for codes [ ⁣[36,4,4] ⁣][\![36,4,4]\!], [ ⁣[48,8,4] ⁣][\![48,8,4]\!] and [ ⁣[96,14,6] ⁣][\![96,14,6]\!]. The logical CXCX circuit for code [ ⁣[48,8,4] ⁣][\![48,8,4]\!] is shown in Figure 7, and the remaining circuits are provided in Figure 13.

Figure 7. Logical circuit implemented by the CXCX-type resource state benchmarked for code [ ⁣[48,8,4] ⁣][\![48,8,4]\!].

Figure 13. CX-type gate injected by the resource states benchmarked for codes [36, 4, 4] (a), [48, 8, 4] (b) and [96, 14, 6] (c).

All Clifford resource-state circuits are obtained using the flag-at-origin method in Ref. [20], which we also briefly describe in Appendix D 1. We additionally perform a search over 1000 randomly sampled bipartite graph states that are equivalent to the CSS state that we want to prepare. Flag-at-origin adds the flag gadgets to each of of these circuits and selects the one that presents the smallest total probability of a physical fault across the fault locations in the resulting circuit. For each resource state, we prepare two encoding circuits that respectively minimize either qubit count (space) and circuit depth (time). Below, we omit the data for the space-optimized circuit for code [ ⁣[96,14,6] ⁣][\![96,14,6]\!] because the discard rate was nearly 100% for values of p≥5×10−4p \ge5 \times10^{-4}.

Figure 8 shows that the circuits minimizing depth outperform those minimizing space both in logical error rate and discard rate. This is expected due to inclusion of idling error in our noise model. We find that the trade-offs between space and time contribute unequally to the overall spacetime volume, with the depth-optimized circuits having much smaller spacetime volume than the space-optimized circuits.

Logical error rates and post-selection discard rates for S/H state

(a) S/HS/H state.

Logical error rates and post-selection discard rates for CNOT state

(b) CNOT state.

Figure 8. Logical error rates pLp_L (top) and post-selection discard rates (bottom) for the flag-at-origin resource states. Dashed lines in logical error rate plots show power-law fits, the fitted exponent is included in the legend. Shaded regions reflect 95% confidence intervals.

As discussed in Section II, the alternative method for producing resource states for Clifford gates, distillation, has the drawback that the minimum factory size for producing a single copy of a resource state is large: n(d+1)2n(d+1)^2. This was one of our primary motivations for employing the flag-at-origin method, which achieves the same fault distance but has a significantly smaller minimum factory size. The qubit requirements for both methods are reported in Table II.

CircuitDistillation factory size (qubits) [18]QubitsDepthCNOTsMeasDiscard RateError Rate pLp_L (95% CI)
[36,4,4]CNOT_time[36,4,4]_{\mathrm{CNOT\_time}}36002644870019237.93%4.92−0.17+0.18×10−74.92^{+0.18}_{-0.17} \times10^{-7}
[36,4,4]CNOT_space[36,4,4]_{\mathrm{CNOT\_space}}360013056970019247.78%3.92−0.05+0.05×10−63.92^{+0.05}_{-0.05} \times10^{-6}
[48,8,4]CNOT_time[48,8,4]_{\mathrm{CNOT\_time}}480037864104628251.50%2.41−0.04+0.04×10−62.41^{+0.04}_{-0.04} \times10^{-6}
[48,8,4]CNOT_space[48,8,4]_{\mathrm{CNOT\_space}}4800180811102227465.27%1.83−0.01+0.01×10−51.83^{+0.01}_{-0.01} \times10^{-5}
[96,14,6]CNOT_time[96,14,6]_{\mathrm{CNOT\_time}}1764014151863985123596.19%9.01−0.53+0.57×10−79.01^{+0.57}_{-0.53} \times10^{-7}
[36,4,4]SH_time[36,4,4]_{\mathrm{SH\_time}}900120262828417.50%4.79−0.32+0.35×10−74.79^{+0.35}_{-0.32} \times10^{-7}
[36,4,4]SH_space[36,4,4]_{\mathrm{SH\_space}}900652442828420.23%9.83−0.47+0.50×10−79.83^{+0.50}_{-0.47} \times10^{-7}
[48,8,4]SH_time[48,8,4]_{\mathrm{SH\_time}}12001482834410020.69%2.48−0.23+0.26×10−72.48^{+0.26}_{-0.23} \times10^{-7}
[48,8,4]SH_space[48,8,4]_{\mathrm{SH\_space}}12007729234810224.66%2.23−0.07+0.07×10−62.23^{+0.07}_{-0.07} \times10^{-6}
[96,14,6]SH_time[96,14,6]_{\mathrm{SH\_time}}441049591126640562.05%6.90−0.72+0.81×10−86.90^{+0.81}_{-0.72} \times10^{-8}
[96,14,6]SH_space[96,14,6]_{\mathrm{SH\_space}}441016980299426462.07%1.31−0.08+0.08×10−61.31^{+0.08}_{-0.08} \times10^{-6}

Table II. Metrics for our CSS resource states found via flag-at-origin. The first column reports the minimum factory size for the distillation approach [18] which can be compared to the total number of qubits used in the flag-at-origin circuits in column two. The final two columns show discard and logical error rates at p=5×10−4p = 5 \times10^{-4}. Consuming the CX states implements the logical circuits shown in Figure 13.

We leave a more granular analysis of the overheads for specific codes and error models—factoring in spacetime cost and acceptance rates—for future work. While flag-at-origin circuits achieve the expected scaling of logical error rate, we note that the values of pLp_L are at least an order of magnitude worse than their counterparts for the proxy magic state distillation in Section IV B 2. This discrepancy suggests that there may be better methods for fault tolerant preparation of CSS states in these codes that leverage the iterative structure of concatenation. Indeed, flag-at-origin is an algorithmic method for producing fault tolerant circuits that prepare arbitrary CSS states but it makes no claims about optimality.

Discussion

We have presented a scheme for universal fault-tolerant quantum computation in which almost every logical gate is injected via teleportation, consuming fault-tolerantly prepared resource states. Arbitrary multi-qubit Clifford circuits require at most 9 CSS resource states, and a universal gate set is completed by consuming logical magic states. As a by-product, injecting these resource states yields full (Knill) or partial (Steane) syndrome measurements, reducing the need for additional gadgets used purely for syndrome extraction. Our scheme is restricted to the family of concatenated codes built from SWEL seed codes because it is precisely for this family that both classes of resource state can be prepared with high

fidelity and low overhead. The transversal global H⊗kH^{\otimes k} and S⊗kS^{\otimes k} gates allow us to reduce every Clifford to CSS resource states preparable by flag-at-origin, and enables the concatenated cultivation protocol.

The numerical results in this paper provide an initial benchmarking of the quality of the CSS and magic state resource states. This is a necessary first step, but it is deliberately local in scope: we have characterized the cost per resource state rather than the cost of a computation. Our results suggest that logical circuits in the megaquop and gigaquop regimes are executable on codes and at physical error rates that near term hardware can accommodate, but a study with a more global view is a natural next step. Concretely, one would like end-to-end estimates of the cost of executing a Bruhat-decomposed Clifford circuit—accounting for the O(1)O(1) injections per stage and the online rejection incurred at each injection—as well as the cost of synthesizing single-qubit rotations to a target precision ϵ\epsilon, where the TT-count and hence the number of ∣H⟩⊗k|H\rangle^{\otimes k} states scales as O(log⁡(1/ϵ))O(\log(1/\epsilon)). Combining our per-state benchmarks with a suitable compiler would yield spacetime-cost estimates for complete algorithms and allow a fair comparison against other high-rate computing architectures. We provide further discussion about compilation, including a scheme to minimize latency in TT-gate layers and a scheduler to minimize the TT-depth of a circuit, in Appendix E.

As mentioned in Section IV, there are clear pathways to improving the resource state preparation circuits. When scaling up these codes, both by increasing the size of the seed codes and the level LL of concatenation, the lookup tables used for decoding in this work will not be viable. In this case algorithmic decoders that incorporate concatenation structure can be used to achieve good performance [9]. On another note, in this work we have imposed homogeneity between the code blocks containing data qubits and code blocks storing resource states, but relaxing this distinction should decrease overheads and flexibility of compilation. For this to be possible, there needs to be compatible structure existing between the data block and the ancilla block, such as a homomorphic logical CNOT [36]. In this case, gate injections for certain resource states can in principle be performed. For concatenated codes, computationally tractable searches for these homomorphic logical CNOT can be carried out on seed codes and then chained together to yield fault tolerant inter-block logical CNOT gates for large distance codes.

Acknowledgments

We acknowledge helpful correspondence with Shival Dasu and Hayato Goto. We thank Ruslan Shaydulin and Rob Otter for executive support of this work.

References

but at least one logical Pauli-XX operator with support on an odd number of physical qubits [12].

SX=SZ=(000000011111111000111100001111011001100110011101010101010101),LX=LZ=(110100010000001110010000101000110001000010010110000101000100100101001100000100100100001010100000010100110)(20)S_X=S_Z=\begin{pmatrix}0&0&0&0&0&0&0&1&1&1&1&1&1&1&1\\0&0&0&1&1&1&1&0&0&0&0&1&1&1&1\\0&1&1&0&0&1&1&0&0&1&1&0&0&1&1\\1&0&1&0&1&0&1&0&1&0&1&0&1&0&1\end{pmatrix},\quad L_X=L_Z=\begin{pmatrix}1&1&0&1&0&0&0&1&0&0&0&0&0&0&1\\1&1&0&0&1&0&0&0&0&1&0&1&0&0&0\\1&1&0&0&0&1&0&0&0&0&1&0&0&1&0\\1&1&0&0&0&0&1&0&1&0&0&0&1&0&0\\1&0&0&1&0&1&0&0&1&1&0&0&0&0&0\\1&0&0&1&0&0&1&0&0&0&0&1&0&1&0\\1&0&0&0&0&0&0&1&0&1&0&0&1&1&0\end{pmatrix} \tag*{(20)}

Concatenated H codes

Here we present some further exploration of concatenated cultivation with [[k+4,k,2]][[k+4,k,2]] H codes [23, 33]. As discussed in the main text, the encoding circuit of the full concatenated code [[N,K,D]][[N,K,D]] relies on recursive use of FT encoders of the seed codes. Fortunately, encoding circuits for the H codes have a simple structure. At the input to the H code encoding circuits, we choose the physical qubits in [0,k−1][0,k-1] to contain the logical information, and the pairs [k,k+1][k,k+1] (initialized in ∣++⟩|++\rangle) & [k−2,k−3][k-2,k-3] (initialized in ∣00⟩|00\rangle) to evolve to XX & ZZ stabilizers. Using the format CX [c0,t0] [c1,t1]…CX\ [c_0,t_0]\ [c_1,t_1]\ldots to represent a sequence of CXCX gates between control (cjc_j) and target (tjt_j) qubits, the encoding circuit is

CX [k,k+3] [k+1,k+2]CX\ [k,k+3]\ [k+1,k+2]

CX [k+1,2q] [k+2,2q+1] [2q,k] [2q+1,k+3]CX\ [k+1,2q]\ [k+2,2q+1]\ [2q,k]\ [2q+1,k+3] (repeat over pairs [2q,2q+1][2q,2q+1] with q<k/2q<k/2).

CX [k,k+1] [k+3,k+2]CX\ [k,k+1]\ [k+3,k+2]

We provide example circuits in Figure 3 and Figure 9.

Figure 9. Examples of H code encoders. The encoders are general. A Hadamard measurement gadget is required for FT preparation of ∣H⟩⊗k|H\rangle^{\otimes k}.

A nice property of this encoding circuit is that it satisfies Condition 1 without needing additional flag gadgets (unlike the [[15,1,3]][[15,1,3]] Hamming example in Figure 4). We prepare the concatenated cultivation circuits for self-concatenated H codes at level-2, [[(k+4)2,k2,4]][[(k+4)^2,k^2,4]] for k∈[2,4,6,…,16]k\in[2,4,6,\ldots,16], by porting these encoding circuits into Figure 5. The benchmarking results are shown in Figure 10, where in addition to logical error rates and discard rates we plot the spacetime cost per ∣H⟩|H\rangle state at p=5×10−4p=5\times10^{-4}. This quantity is given by (qubit number of encoder)×\times(encoder depth)/(acceptance rate ×k\times k) and is a rough proxy for the quantum resources involved to produce one fault tolerant magic state. Note this quantity is normalized by the number of logical qubits per block, so Figure 10 points to the [[64,16,4]][[64,16,4]] code being most efficient for creating magic states at p=5×10−4p=5\times10^{-4}.

Logical error rate, discard rate and spacetime cost plots

Figure 10. Logical error rate, Discard Rate and Spacetime cost per H state of the self concatenated H codes ⟦(k+4)2,k2,4⟧\llbracket(k+4)^2, k^2, 4\rrbracket.

Fault tolerant circuits for magic states

Here we provide more details on some of the subcircuits and flag gadgets used the concatenated cultivation circuits. The protocol is shown schematically in Figure 5.

Flag gadgets for individual undetectable faults

Concatenated cultivation relies on encoding circuits that posses no individual Pauli faults violating Condition 1. Here we describe two types of gadgets that we use to modify generic encoding circuits to catch the problematic errors that violate Condition 1.

Our strategy for producing suitable encoding circuits is as follows. We first use the Munich Quantum Toolkit (MQT) [34] to produce a general encoding circuit. We then enumerate all individual faults that are equivalent to pure-logical errors and violate Condition 1, identify those faults that are caught by the “simple” X/ZX/Z flag gadgets described in Section C 1 a, and add the corresponding flag gadgets to the circuit accordingly. Finally, we identify a minimal set of logical Pauli operators that anti-commute with the remaining problematic errors, and sandwich the encoding circuit with corresponding spacetime flags described Section C 1 b.

Simple X/Z flag gadgets

The basic idea for the simple X/ZX/Z flag gadgets is to first identify “star”-type subcircuits of CXCX gates, which have a shared “central” qubit as either the control or the target of all CXCX gates. These subcircuits are compatible with gadgets to catch any multi-qubit Pauli error that, when propagated to the end of the subcircuit, addresses the central qubit by an XX or ZZ error (for the XX and ZZ gadgets, respectively). Specifically, the XX and ZZ flag gadgets are, respectively,

Circuit diagram with ancilla $|0\rangle_{\mathrm{anc}}$ and $|+\rangle_{\mathrm{anc}}$ measurements

Figure C1.

Spacetime gadgets

Suppose a single fault in an encoding circuit generates a pure logical error that anti-commutes with a logical Pauli PP on logical qubit qq, denoted Pˉq\bar{P}_q. We can catch this fault by entangling physical qubit qq with an ancilla before running the encoding circuit, and then disentangling logical qubit qq the ancilla after the running the decoding circuit [37]. In the case of q=0q = 0, this gadget looks like

Spacetime gadget with an encoding circuit, logical Pauli $\bar{P}_0$, and ancilla measurements

Figure C2.

Additional circuits

Here we include some additional circuits used in our protocol. We use the measurement circuit in Figure 11 for the ℓ=1\ell= 1 stabilizers. The ℓ=2\ell= 2 stabilizer measurements are also measured in this serial fashion. As mentioned in Section III, we make no effort to optimize these circuits or to identify smaller subsets of the stabilizers sufficient to catch logical errors. When encoding C1C_1 code blocks into the C2C_2 code, “ancilla” C1C_1 code blocks whose logical Pauli operators get mapped to stabilizers of C2C_2 are encoding using the circuit in Figure 12, rather than the general encoding circuit in Figure 3.

Figure 12. Encoding circuit for the ∣00⟩|00\rangle state of the [[6,2,2]][[6,2,2]] H code.

CSS states

This appendix is a supplement to Section II.

Flag at origin

Fault-tolerant preparation of logical states is a prerequisite for fault-tolerant quantum computation. In order to leverage the distance dd of a code, the preparation circuits of logical states of that code must have circuit fault distance of dd. This means ensuring that any combination of f≤t=⌊(D−1)/2⌋f \le t = \lfloor(D-1)/2\rfloor faults that propagates to an error of minimum weight w≤fw \le f up to stabilizers is detectable. Prior approaches are limited by poor scalability (flag-based methods) or high overhead from repeated verification rounds. In the case of CSS states, which is all that is required to perform Clifford gates in our protocol, the flag-at-origin protocol [20] provides a modular, single-shot construction.

The protocol exploits a structural property of CSS state-preparation circuits: any CSS state can be prepared using a bipartite CXCX circuit in which qubits are partitioned into sets AA and BB, with all CXCX directed from AA (controls) to BB (targets). For circuits with this bipartite structure XX and ZZ errors can be handled separately:

  • XX-type errors propagate forward: an XX fault on a control qubit spreads XX errors onto target qubits in subsequent layers.

  • ZZ-type errors propagate backward: a ZZ fault on a target qubit effectively infects earlier control qubits.

The key idea is to place flag gadgets at the origin of each propagation direction—catching errors before they spread out into high-weight, uncorrectable configurations.

CX gates

Here we show the exact logical circuits implemented by consuming the CXCX states prepared in codes [[36, 4, 4]], [[48,8,4]] and [[96,14,6]]. For each code we randomly generated a sequence of ∼K2/log⁡2K\sim K^2/\log^2 K CXCX gates on KK qubits. Specifically, these circuits consist of 9, 30 and 74 logical CXCX gates for codes [[36, 4, 4]], [[48,8,4]] and [[96,14,6]]; see Figure 13. The stabilizers of the corresponding resource state are obtained by preparing two code blocks into KK logical Bell pairs, and applying the CXCX circuit to one of the code blocks, as in the boxed subcircuit for ∣Φ,U⟩|\Phi,U\rangle in Eq. (1).

Loose ends

Feedforward gates

The main compilation bottleneck for our protocol is the Clifford correction required after a TT injection. This is common to all magic-state protocols but is exacerbated by the high rate of our code blocks: the measurement outcomes s∈Z2ks \in\mathbb{Z}_2^k in Eq. (7) call for an addressable correction S⊗sS^{\otimes s}, and because ss is known only at runtime the corresponding resource state cannot be prepared in advance, while the 2k2^k possible outcomes rule out precompiling them all. One option is simply to absorb this latency, consuming prepared Knill/Steane-QEC resource states—and running a dedicated factory of logical Bell states for Knill-QEC error correction—while the SS resource state is made.

To limit this latency one could attempt to precompile as much of the SS resource state ahead of time as possible. One way to attack this is to prepare an ss-independent reference state offline, say ∣0⟩⊗k\lvert0\rangle^{\otimes k}, and shape it at runtime. First, note that having a free global S⊗kS^{\otimes k} and free logical Pauli-ZZ strings means we only need to address at most ⌊k/2⌋\lfloor k/2\rfloor qubits: if s∈{0,1}ks \in\{0,1\}^{k} is a bitstring and sˉ\bar{s} is its bitwise complement, then we can freely convert an SS gate on the ∣s∣|s| qubits indicated by ss into an SS gate on the ∣sˉ∣=k−∣s∣|\bar{s}|=k-|s| qubits indicated by sˉ\bar{s}:

S⊗s=S⊗k(S†)⊗sˉ=S⊗kZ⊗sˉS⊗sˉ.(21)S^{\otimes s}=S^{\otimes k}(S^\dagger)^{\otimes\bar{s}}=S^{\otimes k}Z^{\otimes\bar{s}}S^{\otimes\bar{s}}. \tag*{(21)}

To produce the required state H⊗s∣0⟩H^{\otimes s}|0\rangle we start from the reference state ∣0⟩⊗k|0\rangle^{\otimes k} and convert ∣0⟩→∣+⟩|0\rangle\rightarrow|+\rangle on the addressed qubits by measuring the corresponding logical Xˉi\bar{X}_i operators, applying a Zˉi\bar{Z}_i correction on the −1-1 outcome. A Steane-style measurement would be single-shot but circular—it requires an ancilla in exactly the state H⊗s∣0⟩H^{\otimes s}|0\rangle we are trying to make—so we can instead perform a Shor-style measurement of each Xˉi\bar{X}_i with a cat-state ancilla, verified by post-selected ZZZZ-parity checks. For each addressed operator the first measurement is the (random) projective state preparation, and the remaining rounds merely confirm its outcome against readout faults; discarding on any disagreement, ⌈(d+1)/2⌉\lceil(d+1)/2\rceil rounds suffice for fault distance dd (one projection plus ⌊(d−1)/2⌋\lfloor(d-1)/2\rfloor confirmations). Each round of logical measurements needs to be followed by a QEC round for the XX-sector, which can be performed in O(1)O(1) depth using an ancillary ∣+⟩|+\rangle state that can be prepared in advance.

We can tally the space and online time cost of preparing the SS resource state via precompilation under the assumption that the ⌊k/2⌋⌈(d+1)/2⌉\lfloor k/2\rfloor\lceil(d+1)/2\rceil verified cat states, ⌈(d+1)/2⌉\lceil(d+1)/2\rceil ∣+⟩⊗k|+\rangle^{\otimes k} states and the ∣0⟩⊗k|0\rangle^{\otimes k} state are prepared in advanced and available on demand. The depth of each logical measurement round can be upper bounded by ⌊k/2⌋\lfloor k/2\rfloor. In this case the conversion from ∣0⟩⊗k→H⊗s∣0⟩⊗k|0\rangle^{\otimes k}\rightarrow H^{\otimes s}|0\rangle^{\otimes k} is depth ⌊k/2⌋⌈(d+1)/2⌉+⌈(d+1)/2⌉\lfloor k/2\rfloor\lceil(d+1)/2\rceil+\lceil(d+1)/2\rceil. To tally the space cost we first note that without additional optimization the cat states use ∣X∣=max⁡(∣Xi∣)i≤k+1|X|=\max(|X_i|)_{i\leq k}+1 qubits, where ∣Xi∣|X_i| is the Hamming weight of a representative of the ii-th XX logical operator. Let CC be the cat qubit cost for making ∣+⟩⊗k|+\rangle^{\otimes k} or ∣0⟩⊗k|0\rangle^{\otimes k}. Then creating the SS resource state via conversion costs ⌊k/2⌋⌈(d+1)/2⌉∣X∣+(⌈(d+1)/2⌉+1)C\lfloor k/2\rfloor\lceil(d+1)/2\rceil|X|+(\lceil(d+1)/2\rceil+1)C. If we use flag-at-origin for the no-precompilation strategy we can compare the S/HS/H depth results in Table II to an upper bound for the online depth with the precompilation strategy, ⌊k/2⌋⌈(d+1)/2⌉+⌈(d+1)/2⌉\lfloor k/2\rfloor\lceil(d+1)/2\rceil+\lceil(d+1)/2\rceil. Comparisons of qubit cost are murkier because both flag-at-origin and concatenated cultivation can be used to produce the ∣+⟩⊗k\lvert+\rangle^{\otimes k} and ∣0⟩⊗k\lvert0\rangle^{\otimes k} states. Tables I and II provide estimates for the qubit costs CC of these approaches, though in cultivation case of Table I, the qubit (along with depth and rejection rate) numbers are large over-estimates because the injection circuits contain a lot of machinery for measuring logical HH operators in Figure 5 (such as logical TYT_Y gate injections) that is not necessary to prepare ∣+⟩⊗k\lvert+\rangle^{\otimes k} and ∣0⟩⊗k\lvert0\rangle^{\otimes k} states. Table III shows the ratios of online depth and qubit cost for precompilation using concatenated cultivation (with the aforementioned overheads eliminated; replacing Table I) versus time-optimized flag-at-origin circuits (identical to Table II).

For the precompiled approach the reduction in online depth is roughly commensurate with the increase in qubit cost. Here qubit cost only accounts for the minimum number of qubits needed to prepare the SS resource state and idling of the data qubits during this preparation necessitates a number of QEC cycles – and therefore Knill/Steane resource states – extensive in the wait time. The upshot is that the precompilation strategy likely also has reduced qubit overhead when one looks at the total cost of implementing the TT gate fault-tolerantly. It should be emphasized that this comparison is somewhat simplistic in that it does not incorporate the rejection rates of the ancilla states, which need to be factored in to estimate the expected qubit cost of minimizing data qubit idling. At the level of the state preparation circuits themselves, methods from Ref. [9] point to there being less costly ways to prepare ∣0⟩⊗k\lvert0\rangle^{\otimes k} and ∣+⟩⊗k\lvert+\rangle^{\otimes k} states in concatenated codes. We leave optimizing the compilation of TT gate layers in these codes to future work.

Compilation and scheduling

Here we briefly discuss the compilation of circuits into the primitives defined in Section II and Section III. To this end, we first decompose any quantum circuit into a Clifford+TT gate set. We then repeatedly sift the circuit for TT gates using the sifting procedure of Ref. [38 Algorithm 1]. For a fixed Clifford+TT circuit CC, sifting for TT gates partitions CC into three sub-circuits, (Cbefore,CT,Cafter)(C_{\mathrm{before}}, C_T, C_{\mathrm{after}}) with the following guarantees:

  1. Applying the sub-circuits in sequence recovers the original circuit, C=CafterCTCbeforeC = C_{\mathrm{after}} C_T C_{\mathrm{before}}.

  2. CbeforeC_{\mathrm{before}} consists of only Clifford gates.

  3. CTC_T consists of only disjoint single-qubit TT gates.

  4. No gate from CafterC_{\mathrm{after}} can be moved into CTC_T or CbeforeC_{\mathrm{before}} without violating the guarantees above.

In a nutshell, sifting iterates over every gate in CC (in any valid time-ordering of the gates), and greedily adds each gate to the earliest of (Cbefore,CT,Cafter)(C_{\mathrm{before}}, C_T, C_{\mathrm{after}}) possible without violating the partial time-ordering of gates [39]. Recursively sifting the trailing circuits CafterC_{\mathrm{after}} for TT gates yields a TT-depth-optimal schedule for the gates in CC. Every TT-layer can then be applied with one TT-gate injection, while the Clifford layers in between can be resynthesized and injected according to the prescription in Section II.

TABLE III. Ratio metrics for precompilation versus no-precompilation. We use concatenated cultivation for precompilation circuits and remove the excess qubits associated with injections that are only needed for ∣H⟩\lvert H\rangle states. Logical operators in Appendix § 2.1.1 provide conservative estimates of ∣X∣=10\lvert X\rvert= 10, 10, and 16 qubits for the ⟦36,4,4⟧\llbracket36,4,4\rrbracket, ⟦48,8,4⟧\llbracket48,8,4\rrbracket, and ⟦96,14,6⟧\llbracket96,14,6\rrbracket cat states.

CodeOnline depth ratioQubit cost ratio
⟦36,4,4⟧\llbracket36,4,4\rrbracket0.3462.767
⟦48,8,4⟧\llbracket48,8,4\rrbracket0.5363.081
⟦96,14,6⟧\llbracket96,14,6\rrbracket0.3522.319

Table 3. Ratio metrics for precompilation versus no-precompilation.

Disclaimer

This paper was prepared for informational purposes with contributions from the Global Technology Applied Research center of JPMorgan Chase & Co. This paper is not a product of the Research Department of JPMorgan Chase & Co. or its affiliates. Neither JPMorgan Chase & Co. nor any of its affiliates makes any explicit or implied representation or warranty and none of them accept any liability in connection with this paper, including, without limitation, with respect to the completeness, accuracy, or reliability of the information contained herein and the potential legal, compliance, tax, or accounting effects thereof. This document is not intended as investment research or investment advice, or as a recommendation, offer, or solicitation for the purchase or sale of any security, financial instrument, financial product or service, or to be used in any way for evaluating the merits of participating in any transaction.

References

  1. [1]Q. Xu, J. P. Bonilla Ataides, C. A. Pattison, N. Raveendran, D. Bluvstein, J. Wurtz, B. Vasić, M. D. Lukin, L. Jiang, and H. Zhou, Constant-overhead fault-tolerant quantum computation with reconfigurable atom arrays, Nature Physics 20, 1084 (2024).arxiv.org/abs/2308.08648
  2. [2]Q. Xu, H. Zhou, G. Zheng, D. Bluvstein, J. P. B. Ataides, M. D. Lukin, and L. Jiang, Fast and Parallelizable Logical Computation with Homological Product Codes, Physical Review X 15, 021065 (2025).arxiv.org/abs/2407.18490
  3. [3]N. J. C. Papadopoulos and R. Ayanzadeh, Stabilizer Code-Generic Universal Fault-Tolerant Quantum Computation (2026), arXiv:2601.10964 [quant-ph].arXiv
  4. [4]B. Gu, A. Z. Liu, A. O. Quintavalle, Q. Xu, J. Eisert, and J. Roffe, QGPU: Parallel logic in quantum ldpc codes (2026), 2603.05398 [quant-ph].arXiv
  5. [5]Sayginel, H., Kotsioumpas, M., Webster, M., Rajput, A., & Browne, D. E. (2025). Fault-tolerant logical clifford gates from code automorphisms. PRX Quantum, 6, 030343.
  6. [6]Koh, J. M., Gong, A., Diaconu, A. C., Tan, D. B., Geim, A. A., Gollans, M. J., Yao, N. Y., Lukin, M. D., Kunjin, S., & Majidy, M. J. (2026). Entangling logical qubits without physical operations. arXiv:2601.09271 [quant-ph]
  7. [7]Malcolm, A. J., Glaudell, A. N., Fuentes, P., Chandra, D., Schotte, A., DeLisle, C., Haenel, R., Ebrahimi, A., Roffe, J., Quintavalle, A. O., & al., . et . (2026). Computing efficiently in qldpc codes. Nature Communications.
  8. [8]Yang, W., Chadwick, J., Teo, M. H., Viszlai, J., & Chong, F. (2026). Spacetime-efficient and hardware-compatible complex quantum logic units in qldpc codes. 2602.14273 [quant-ph]
  9. [9]H. Goto, High-performance fault-tolerant quantum computing with many-hypercube codes, Science Advances 10, eadp6388 (2024).DOI
  10. [10]S. Yoshida, S. Tamiya, and H. Yamasaki, Concatenate codes, save qubits, npj Quantum Information 11, 88 (2025).DOI
  11. [11]Malcolm, A. J., Glaudell, A. N., Fuentes, P., Chandra, D., Schotte, A., DeLisle, C., Haenel, R., Ebrahimi, A., Roffe, J., Quintavalle, A. O., Neel, R., Lee-Hone, N., & Simmons, S. (2025). Computing Efficiently in QLDPC Codes. arXiv:2502.07150 [quant-ph]
  12. [12]Tunnell, T. G., Chan, T., & Takagi, R. (2026). Construction of the full logical Clifford group for high-rate quantum Reed-Muller codes using only transversal and fold-transversal gates. arXiv:2602.09788 [quant-ph]
  13. [13]J. Guyot and S. Jaques, On the Addressability Problem on CSS Codes (2025), arXiv:2502.13889 [quant-ph].DOI
  14. [14]A. Krishna and G. Zémor, Tradeoffs on the volume of fault-tolerant circuits (2025), arXiv:2510.03057 [cs].arXiv
  15. [15]A. Chakraborty and D. Gottesman, No-Go Theorem on Fault Tolerant Gadgets for Multiple Logical Qubits (2026), arXiv:2602.13395 [quant-ph].DOI
  16. [16]M. A. Perlin, M. Steinberg, and B. Criger, Quantum codes from classical annealing (2026), 2607.19574 [quant-ph].arXiv
  17. [17]All self-dual CSS codes with odd block length $n$ are SWEL, as are self-dual CSS codes with even block length,. (n.d.). All self-dual CSS codes with odd block length $n$ are SWEL, as are self-dual CSS codes with even block length,.
  18. [18]Y.-C. Zheng, C.-Y. Lai, T. A. Brun, and L.-C. Kwek, Constant depth fault-tolerant Clifford circuits for multi-qubit large block codes, Quantum Science and Technology 5, 045007 (2020).DOI
  19. [19]D. Maslov and M. Roetteler, Shorter Stabilizer Circuits via Bruhat Decomposition and Quantum Circuit Transformations, IEEE Transactions on Information Theory 64, 4729 (2018).DOI
  20. [20]D. Forlivesi and D. Amaro, Flag at origin: A modular fault-tolerant preparation for CSS codes (2025), arXiv:2508.14200 [quant-ph].arXiv
  21. [21]H. Goto, Step-by-step magic state encoding for efficient fault-tolerant quantum computation, Scientific Reports 4, 7501 (2014).DOI
  22. [22]Dasu, S., Burton, S., Mayer, K., Amaro, D., Gerber, J. A., Gilmore, K., Gresh, D., DelVento, D., Potter, A. C., & Hayes, D. (2025). Breaking even with magic: Demonstration of a high-fidelity logical non-Clifford gate. arXiv:2506.14688
  23. [23]C. Jones, Multilevel distillation of magic states for quantum computing, Physical Review A 87, 10.1103/physreva.87.042305 (2013).DOI
  24. [24]E. Knill, Quantum computing with realistically noisy devices, Nature 434, 39–44 (2005).pubmed.ncbi.nlm.nih.gov/15744292
  25. [25]D. Gottesman and I. L. Chuang, Demonstrating the viability of universal quantum computation using teleportation and single-qubit operations, Nature 402, 390 (1999).DOI
  26. [26]T. Tansuwannont, Y. Takada, and K. Fujii, Clifford gates with logical transversality for self-dual CSS codes (2025), arXiv:2503.19790 [quant-ph].arXiv
  27. [27]D. Gottesman, An introduction to quantum error correction and fault-tolerant quantum computation, in Quantum information science and its contributions to mathematics, Proceedings of Symposia in Applied Mathematics, Vol. 68 (2010) pp. 13–58.arxiv.org/abs/0904.2557
  28. [28]Note that Ref. [18] provides a method to implement S-type circuits using (addressable) logical CNOT gates (i.e., CX-type circuits) and a global S gate, which altogether requires only CSS resource states to implement. However, the gate teleportation method provided here requires fewer ancilla code blocks.
  29. [29]P. Liu, M. Xu, H. Zhou, H. Wang, U. A. Acar, and Y. Shi, Coniq: Enabling concatenated quantum error correction on neutral atom arrays, in 2025 IEEE International Conference on Quantum Computing and Engineering (QCE), Vol. 1 (IEEE, 2025) pp. 615–626.arxiv.org/abs/2508.05779
  30. [30]S. Huang, T. Jochym-O’Connor, and T. J. Yoder, Homomorphic logical measurements, PRX Quantum 4, 030301 (2023).DOI
  31. [31]C. Chamberland and K. Noh, Very low overhead fault-tolerant magic state preparation using redundant ancilla encoding and flag qubits, npj Quantum Information 6, 10.1038/s41534-020-00319-5 (2020).DOI
  32. [32]C. Gidney, N. Shutty, and C. Jones, Magic state cultivation: growing t states as cheap as cnot gates (2024), arXiv:2409.17595 [quant-ph].arXiv
  33. [33]$\llbracket k+4,k,2\rrbracket$ h code. (2026). $\llbracket k+4,k,2\rrbracket$ h code. The Error Correction Zoo, 2606.11484.
  34. [34]Wille, R., Berent, L., Forster, T., Kunasaikaran, J., Mato, K., Peham, T., Quetschlich, N., Rovara, D., Sander, A., Schmid, L., Schoenberger, D., Stade, Y., & Burgholzer, L. (2024). The MQT handbook: A summary of design automation tools and software for quantum computing. IEEE International Conference on Quantum Software (QCS).
  35. [35]Y. Takada, S. D. Bartlett, and D. J. Williamson, Exact efficient simulation of noisy logical magic states using Clifford stabilizers (2026), 2609.16929 [quant-ph].arXiv
  36. [36]A. Benhemou and N. Berthusen, Automated logical Clifford gadgets for heterogeneous architectures via chain maps (2026), arXiv:2607.02482 [quant-ph].arXiv
  37. [37]R. Chao and B. W. Reichardt, Fault-tolerant quantum computation with few qubits, npj Quantum Information 4, 10.1038/s41534-018-0085-z (2018).DOI
  38. [38]N. Nottingham, M. A. Perlin, D. Shah, R. White, H. Bernien, F. T. Chong, and J. M. Baker, Circuit Decompositions and Scheduling for Neutral Atom Devices with Limited Local Addressability, in 2024 IEEE International Conference on Quantum Computing and Engineering (QCE), Vol. 01 (2024) pp. 854–865.arxiv.org/abs/2307.14996
  39. [39]As a minor improvement, we can allow the sifting algorithm to commute Clifford gates that are diagonal on a qubit with a $T$ gate on that qubit. ## Seed code definitions {#sec:A} Here we define the seed codes for the level-2 concatenated codes in the main text. All of the seed codes are SWEL, with identical support for their $X$ and $Z$-type stabilizes and logical Pauli operators. The matrices whose rows define the support of $X$-type stabilizers ($S_X$), $Z$-type stabilizers ($S_Z$), $X$-type logical single-qubit Pauli operators ($L_X$), and $Z$-type logical single-qubit Pauli operators ($L_Z$) are as follows. $\llbracket 6,2,2\rrbracket$: $$ S_X=S_Z=\begin{pmatrix}1&1&1&1&0&0\\0&0&1&1&1&1\end{pmatrix},\qquad L_X=L_Z=\begin{pmatrix}1&0&1&0&1&0\\0&1&0&1&0&1\end{pmatrix}. $$ {#eq:A1} $\llbracket 8,4,2\rrbracket$: $$ S_X=S_Z=\begin{pmatrix}1&1&1&1&0&0&0&0\\1&1&0&0&1&1&1&1\end{pmatrix},\qquad L_X=L_Z=\begin{pmatrix}0&1&0&1&1&0&0&0\\0&1&0&1&0&1&0&0\\0&1&0&1&0&0&1&0\\0&1&0&1&0&0&0&1\end{pmatrix}. $$ {#eq:A2}

Paper details

vlnc:W_ayenf65g
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Physics and Astronomy

Not recorded for this paper · View statement →

Looking for related papers…
Contents