Motivation and overview
The presence of noise is the main obstacle to realizing scalable quantum computers and the speed-ups they promise over classical computers. Uncontrolled interactions with the environment can destroy quantum coherence, while imperfect gates and measurement devices introduce errors during the computation itself [1 , 2 ] . Protecting quantum information requires preserving amplitudes, relative phases, and entanglement correlations. At the logical level, errors in classical computers are only bit-flips from 0 to 1 (and vice versa), while quantum noise can also change a state continuously, through a small rotation or a gradual loss of coherence [3 ] .
Measurements introduce a further difficulty. Classical error correction can compare redundant bit values, which can ideally be read without changing them. Directly measuring an unknown quantum state, however, can disturb the very information we wish to protect. How can we then obtain enough information to correct an error without learning about the protected quantum state?
Quantum error correction resolves part of these difficulties by encoding logical information using redundant physical qubits [4 , 5 , 6 ] . Entangling operations transfer error-syndrome [3 , 7 , 8 , 9 ] information to additional ancillary qubits, which are then measured. For a correctable set of errors, these measurements reveal information about the error without revealing or disturbing the protected logical information, thereby enabling recovery [10 ] .
The remaining difficulty is that the devices performing these operations are themselves imperfect. How do we encode information reliably when the act of encoding itself can introduce errors? How do we perform logical computation on encoded states, extract error syndromes, and read out the answer when the operations used to do them can fail? Faults can accumulate over time, and even a single fault can propagate through subsequent gates into correlated errors on several qubits, while an incorrect syndrome measurement can lead to an incorrect recovery. As a result, protecting an encoded state requires more than choosing a quantum error correcting code. Since near-term physical devices are susceptible to noise, the goal is to design fault-tolerant quantum circuits that suppress errors while keeping the resource overhead low, even when the size of the computation increases [1 , 11 , 12 , 13 , 14 ] . However, this is a daunting task that requires careful choices about where and when to introduce redundancy across circuit components and in what sequence we should perform circuit operations to achieve error suppression within a reasonable resource budget in additional qubits, operations, and execution time.
The central theoretical task is to quantify how fault-tolerant a quantum circuit is under a specified noise model and to use that information to guide its design. This raises several related but distinct questions. Given some noise model, does there exist a recovery operation that restores the circuit’s intended operation, including its classical measurement record? What is the smallest number of spacetime faults that are undetected by any decoder while changing the logical action of the circuit? For a specified noise model and decoder, what is the probability that recovery fails? And, for a finite circuit, how large can the error correction rate be before the encoded circuit implementation ceases to outperform an uncoded reference? These questions are captured by different metrics. Circuit distance is a worst-case measure which quantifies the smallest harmful fault that is not detectable by any decoder, whereas logical failure probability depends on the noise, the decoder, and the number of fault patterns that cause failure. The finite-circuit pseudo-threshold , on the other hand, compares logical failure probability with a specified uncoded benchmark [10 , 15 , 16 , 17 , 18 ] .
This opens up the need for one unifying framework within which all these metrics can be studied. To achieve this goal, we take a direct approach by analyzing the linear operators that define a quantum circuit and its noise model. As illustrated in Figure 1, the ideal circuit consists of quantum instruments [20 ] whose branch operators may depend on earlier outcomes, such as C o 2 ∣ o 1 C_{o_2|o_1} C o 2 ∣ o 1 (which depends on observed outcome o 1 o_1 o 1 ). Similarly, the noise model is a causal process with Kraus branches E e r E_{\mathrm{er}} E er and memory systems N r N_{\mathrm{r}} N r that carry correlations across time. The final recovery R R R acts on the noisy measurement record and quantum output. We use the quantum-comb formalism to represent circuit components and noise processes as causally ordered modules that can be composed while retaining their spatio-temporal structure [20 ] . Our framework supports analysis at different levels of abstraction, namely, Figure 1 depicts a coarse-grained circuit-noise model, with noise acting on the exposed ports of complete circuit stages, whereas Figure 2 depicts a fine-grained model, with noise assigned to individual state preparations, idle qubits, gates, and measurements.
For a fixed circuit and noise model, we prove necessary and sufficient conditions (see Theorem IV.3) for the existence of a recovery that restores the intended quantum operation together with its measurement record. The conditions are expressed directly in terms of the circuit and noise Kraus operators, while the proof is constructive and yields an explicit construction of a recovery linear map. An intended quantum operation is a linear map which in general does not have a unique circuit representation. Circuits that realize the same linear map can have different fault-tolerance properties [21 ] . For a family of circuits implementing the same linear map, the circuit and its corresponding recovery operation vary together. We formulate an SDP relaxation of this joint circuit-recovery search problem (see Theorem IV.9). Every circuit–recovery pair gives a feasible point, so infeasibility rules out all target-implementing circuits in the prescribed family. Feasibility alone does not establish that such a pair exists. The test is most useful for large or continuously parameterized families with informative shared constraints and manageable SDP size, while it need not be more efficient than testing each circuit separately for a small finite family.
Figure 1. An adaptive circuit interacting with temporally correlated noise, shown for two rounds. The circuit implements the quantum instruments { C o 1 } o 1 \{C_{o_1}\}_{o_1} { C o 1 } o 1 and { C o 2 ∣ o 1 } o 2 \{C_{o_2\mid o_1}\}_{o_2} { C o 2 ∣ o 1 } o 2 where the instrument at round 2 depends on the observed outcome o 1 o_1 o 1 . Double blue lines carry classical information. A copy of o 1 o_1 o 1 selects the second instrument before noise acts on its retained record. The orange maps E e r E_{e_r} E e r act on the displayed data, record, and memory ports; N 1 , N 2 N_1,N_2 N 1 , N 2 carry information between noise interactions. Summing over the circuit outcomes and noise Kraus operator indices gives the physical channel. This representation is a generalization of the strategic code scenario [19 ] , where the goal is only to protect an encoded initial state. The recovery is assumed to be noiseless.
We next specialize to non-adaptive stabilizer circuits. Let the index ζ ∈ { 0 , 1 } \zeta\in\{0,1\} ζ ∈ { 0 , 1 } denote the level of abstraction in the circuit-noise model, namely ζ = 0 \zeta=0 ζ = 0 (resp. ζ = 1 \zeta=1 ζ = 1 ) denotes fine-grained (resp. coarse-grained) circuit-noise model. We use symplectic geometry to analyze the stabilizer symmetries of the circuit components and derive closed-form expressions for the detection matrix H ζ H_\zeta H ζ and the logical-effect matrix L ζ L_\zeta L ζ [16 ] . Any spacetime Pauli fault can be represented as binary symplectic vectors [16 , 22 , 23 ] . For a given spacetime fault label e ∈ E ( ζ ) e\in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) , H ζ e T H_\zeta e^{\mathsf T} H ζ e T is its detection syndrome, and L ζ e T L_\zeta e^{\mathsf T} L ζ e T characterizes its effect on the logical information processed by the circuit. The circuit distance d c i r c , ζ d_{\mathrm{circ},\zeta} d circ , ζ is therefore the minimum weight (see Theorem V.13) of a fault vector e ∈ E ( ζ ) e\in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) having trivial syndrome (H ζ e T = 0 H_\zeta e^{\mathsf T}=0 H ζ e T = 0 ) and non-trivial logical effect (L ζ e T ≠ 0 L_\zeta e^{\mathsf T}\ne0 L ζ e T = 0 ). Furthermore, we show (see Theorem V.12 ) that under stochastic Pauli noise, exact recovery is possible if and only if faults of positive probability with the same detection syndrome have the same logical effect. The matrices thus characterize circuit distance and correctability algebraically, although computing distance can still remain difficult [16 , 17 , 24 , 25 ] . As an illustration (see Appendix B), we analyze a seven-round, 18-qubit instance of the Hastings–Haah honeycomb Floquet code [26 ] . Our analysis certifies that the schedule dynamically encodes two logical qubits and has circuit distance four under the specified internal data-and record-Pauli fault model, with no noise on the data input-output boundaries.
We then shift our attention from the detection and logical-effect signatures of an individual fault pattern to how fault signatures arise based on the distribution of faults over circuit spacetime locations. Fix an abstraction level ζ \zeta ζ , and choose a partition Π = { I b } b = 1 B \Pi=\{I_b\}_{b=1}^{B} Π = { I b } b = 1 B of the permitted spacetime circuit fault locations Λ ( ζ ) = ⋃ b = 1 B I b \Lambda^{(\zeta)}=\bigcup_{b=1}^{B} I_b Λ ( ζ ) = ⋃ b = 1 B I b into blocks I b I_b I b , where each block contains N b N_b N b circuit locations (see Theorem V.1 and Theorem V.16). For example, the blocks could group locations by circuit round (time) or by circuit region (space). For a given fault vector e ∈ E ζ e\in\mathcal{E}^{\zeta} e ∈ E ζ , its weight profile (see Theorem V.17) w = ( w 1 , … , w B ) \mathbf{w}=(w_1,\ldots,w_B) w = ( w 1 , … , w B ) is a tuple where w b w_b w b counts the total number of non-identity Pauli faults in block I b I_b I b , where the total weight of the fault is recovered by ∣ w ∣ = ∑ b w b |\mathbf{w}|=\sum_b w_b ∣ w ∣ = ∑ b w b . For each profile and signature, define
A w ( ζ ) ( σ , λ ) ≡ ∣ { e ∈ E ( ζ ) : wt Π ( e ) = w , H ζ e T = σ , L ζ e T = λ } ∣ . A_{\mathbf{w}}^{(\zeta)}(\sigma,\lambda)\equiv\left|\left\{e\in\mathcal{E}^{(\zeta)}:\operatorname{wt}_{\Pi}(e)=\mathbf{w},\ H_\zeta e^{\mathsf T}=\sigma,\ L_\zeta e^{\mathsf T}=\lambda\right\}\right|. A w ( ζ ) ( σ , λ ) ≡ { e ∈ E ( ζ ) : wt Π ( e ) = w , H ζ e T = σ , L ζ e T = λ } .
This is the number of fault patterns with syndrome σ \sigma σ , logical effect λ \lambda λ and weight profile w \mathbf{w} w . All these counts can be packaged into one generating function
W σ , λ ( ζ ) , Π ( u , v ) = ∑ w A w ( ζ ) ( σ , λ ) ∏ b = 1 B u b N b − w b v b w b , (1) W_{\sigma,\lambda}^{(\zeta),\Pi}(\mathbf{u},\mathbf{v})=\sum_{\mathbf{w}}A_{\mathbf{w}}^{(\zeta)}(\sigma,\lambda)\prod_{b=1}^{B}u_b^{N_b-w_b}v_b^{w_b}, \tag*{(1)} W σ , λ ( ζ ) , Π ( u , v ) = w ∑ A w ( ζ ) ( σ , λ ) b = 1 ∏ B u b N b − w b v b w b , (1)
where u ≡ ( u b ) b ∈ Z + B \mathbf{u}\equiv(u_b)_{b\in\mathbb{Z}_{+}^{B}} u ≡ ( u b ) b ∈ Z + B and v ≡ ( v b ) b ∈ Z + B \mathbf{v}\equiv(v_b)_{b\in\mathbb{Z}_{+}^{B}} v ≡ ( v b ) b ∈ Z + B are formal variables. From this function, we construct non-negative integer-valued variables U , T , U ~ , T ~ U,T,\widetilde{U},\widetilde{T} U , T , U , T called weight enumerators (see Theorem V.19) and derive MacWilliams identities and additional constraints that every circuit in a prescribed family must satisfy. Relaxing these variables to real numbers, we obtain linear-programming (LP) distance bounds for families of non-adaptive stabilizer circuits. Similar to our SDP, infeasibility rules out every circuit in a prescribed family from achieving target distance D D D , while feasibility doesn’t necessarily give a construction. Explicit knowledge about the circuit family can lead to construction of additional non-negative integer valued variables satisfying some constraints which can give stronger bounds. To illustrate this, we consider families of t t t -flag [17 , 27 , 28 ] CSS code syndrome extraction circuits prescribed by their CNOT orderings (see Appendix § 1.2.3 ). We then incorporate the t t t -flag criteria as constraints on an additional variable C C C (see Equation (218) ) and obtain LP distance bounds. We benchmark the resulting bound analytically on CSS Hamming codes and show infeasibility at distance D ≥ 4 D \ge4 D ≥ 4 . Furthermore, we verify that the 1-flag construction of Chao and Reichardt [29 ] provides a feasible point at distance D = 3 D = 3 D = 3 .
The weight enumerators retain information about fault-tolerance that circuit distance alone cannot capture. To see this, consider independent and identically distributed single-qubit depolarizing noise. Let p p p be the probability of a non-identity Pauli fault at each circuit location, with X X X , Y Y Y , and Z Z Z each occurring with probability p / 3 p/3 p /3 . If d c i r c , ζ d_{\mathrm{circ},\zeta} d circ , ζ is the circuit distance, the total number of weight-d c i r c , ζ d_{\mathrm{circ},\zeta} d circ , ζ faults with zero syndrome and nonzero logical effect is
a d c i r c , ζ ≜ ∑ ∣ w ∣ = d c i r c , ζ ∑ λ ≠ 0 A w ( ζ ) ( 0 , λ ) . a_{d_{\mathrm{circ},\zeta}} \triangleq\sum_{\lvert w\rvert=d_{\mathrm{circ},\zeta}} \sum_{\lambda\ne0} A_w^{(\zeta)}(0,\lambda). a d circ , ζ ≜ ∣ w ∣ = d circ , ζ ∑ λ = 0 ∑ A w ( ζ ) ( 0 , λ ) .
For small p p p , we then get the probability of undetectable logical failure up to leading order in p p p as
P u d ( p ) ≜ a d c i r c , ζ ( p 3 ) d c i r c , ζ + O ( p d c i r c , ζ + 1 ) . P_{\mathrm{ud}}(p) \triangleq a_{d_{\mathrm{circ},\zeta}}\left(\frac{p}{3}\right)^{d_{\mathrm{circ},\zeta}} + O\left(p^{d_{\mathrm{circ},\zeta}+1}\right). P ud ( p ) ≜ a d circ , ζ ( 3 p ) d circ , ζ + O ( p d circ , ζ + 1 ) .
Hence, two circuits C , C ′ C,C' C , C ′ with the same distance can have different low-noise undetected-failure probabilities if their values of a d c i r c , ζ , a d c i r c , ζ ′ a_{d_{\mathrm{circ},\zeta}},a'_{d_{\mathrm{circ},\zeta}} a d circ , ζ , a d circ , ζ ′ differ. Given a deterministic decoder δ \delta δ (see Theorem V.30), the generating function in Equation (1) also enable us to calculate the exact failure probability P f a i l , δ ( p ) P_{\mathrm{fail},\delta}(p) P fail , δ ( p ) of it failing to correct an error. To assess practically motivated error suppression for quantum circuits, we use the single-qubit physical error rate p p p as a reference benchmark and require, for a prescribed integer j ≥ 0 j \ge0 j ≥ 0 , that
P f a i l , δ ( p ) ≤ 10 − j p . (2) P_{\mathrm{fail},\delta}(p) \le10^{-j}p. \tag*{(2)} P fail , δ ( p ) ≤ 1 0 − j p . (2)
For a given circuit and decoder δ \delta δ , and fixed j ≥ 0 j \ge0 j ≥ 0 and 0 < p max ≤ 1 0 < p_{\max} \le1 0 < p m a x ≤ 1 , the pseudo-threshold [17 ] relative to the target 10 − j p 10^{-j}p 1 0 − j p is the supremum of all x ∈ [ 0 , p max ] x \in[0,p_{\max}] x ∈ [ 0 , p m a x ] such that Equation (2) holds for every 0 < p < x 0 < p < x 0 < p < x (see Theorem V.33). Finally, incorporating an additional constraint to the distance linear program we obtain bounds on pseudo-threshold for any given family of non-adaptive stabilizer circuits (see Theorem V.35 ).
Paper organization and technical overview
After introducing notation and preliminaries in Section II, we define the operator-algebraic circuit and noise representations and develop the composition of their stabilizer relations in Section III. The main results and applications are organized as follows:
Fault tolerance of general quantum circuits. In Section IV, we establish conditions for recovering the complete ideal circuit operation, including its quantum output and measurement record. Let N 0 \mathcal{N}_0 N 0 denote the channel implemented by the noiseless circuit and N \mathcal{N} N its noisy version. Theorem IV.3 gives necessary and sufficient Kraus-operator conditions for the existence of a completely positive, trace-preserving recovery R \mathcal{R} R satisfying
R ∘ N = N 0 . (3) \mathcal{R}\circ\mathcal{N}=\mathcal{N}_0. \tag*{(3)} R ∘ N = N 0 . (3)
Our result extends the exact recoverability condition for circuits implementing quantum memories [19 ] to arbitrary quantum circuits.
Application. Different circuits implementing the same quantum channel may have different fault-tolerance properties under a given noise model [21 ] . For a prescribed family implementing the same target channel, we therefore ask whether some circuit admits a recovery that restores its ideal operation under the specified noise model. We formulate an SDP relaxation of this joint circuit–recovery search problem (Theorem IV.9). Every valid circuit–recovery pair yields a feasible point, so infeasibility rules out every such pair within the family. Feasibility alone does not establish that such a pair exists.
Fault tolerance of non-adaptive stabilizer circuits. In Section V, we specialize to non-adaptive stabilizer circuits. Each nonzero circuit Kraus operator maps an input stabilizer code space to an output stabilizer code space; while the circuit may also measure logical Pauli operators of the input code (Theorems III.20 and III.26). We compose the Pauli symmetries of individual circuit components to obtain symmetries of the entire circuit valid for every possible measurement-outcome sequence (Theorems III.23 and III.27). These symmetries are described by a binary linear space, which we call the common relation space W C \mathcal{W}_{\mathcal{C}} W C (Theorem III.25).
These relations serve four operational roles. Two provide ways to detect faults. First, certain parities of the circuit’s measurement outcomes have fixed values in the noiseless setting. These are called detectors [22 ] . Second, noiseless measurements of output-code stabilizers, combined with the circuit’s outcomes, give further parities whose values are fixed in the noiseless setting. A violation of either kind of parity detects a fault (Theorem III.26 and Table I ). These violations are captured by the detection matrix H ζ H_{\zeta} H ζ [16 , 30 ] , defined in Theorem V.9. Here ζ = 0 \zeta= 0 ζ = 0 and ζ = 1 \zeta= 1 ζ = 1 specify the fine-grained and coarse-grained circuit noise models, respectively. For a spacetime Pauli fault vector e e e (Theorem V.1), the vector σ ≜ H ζ e T \sigma\triangleq H_{\zeta}e^{T} σ ≜ H ζ e T is its detection syndrome. A zero entry means that the corresponding detection relation is preserved; a nonzero entry records its violation. Thus H ζ e T = 0 H_{\zeta}e^{\mathsf{T}}=0 H ζ e T = 0 precisely when the fault is undetected by these checks. We derive closed-form expressions for these signatures at both levels in Theorems V.5 and V.6.
Table I. Classification of signature violations. An asterisk denotes that any value of that indicator does not change the operational meaning depicted in that row.
The other two roles describe the circuit’s intended logical operation. Some relations identify outcome parities that report the outcomes of logical Pauli measurements on the input code. Others connect input and output logical Pauli operators, specifying how the remaining encoded quantum information is carried through the circuit (Theorems III.26 and III.27). Violations of the chosen logical relations are captured by the logical-effect matrix L ζ L_{\zeta} L ζ [16 , 30 ] . The vector λ ≜ L ζ e T \lambda\triangleq L_{\zeta}e^{\mathsf{T}} λ ≜ L ζ e T is the fault’s logical-effect signature (Theorem V.9). Its entries indicate which of these relations are violated, with closed-form expressions obtained from Theorems V.5 and V.6. For a zero-syndrome fault, λ ≠ 0 \lambda\ne0 λ = 0 identifies a harmful undetected logical error. For a detected fault, λ \lambda λ records violations relative to the chosen logical representatives; its value must be interpreted together with the syndrome and a correction convention. If both signatures vanish, the ideal circuit channel is unchanged (Theorems V.8 and V.11 and Table II ). More generally, among faults with the same detection syndrome, the logical-effect signature distinguishes their effects on the circuit channel (Theorem V.4).
Table II. An asterisk denotes an indicator not determined by the displayed signature conditions on H ζ e T H_{\zeta e}^{\mathsf T} H ζ e T and L ζ e T L_{\zeta e}^{\mathsf T} L ζ e T .
Under stochastic Pauli noise (Theorem V.2), we show that exact recovery is possible precisely when positive-probability faults with the same detection syndrome have the same logical-effect signature (Theorem V.12 ). Circuit distance is the smallest number of faulty spacetime locations that can produce an undetected nontrivial logical effect (Theorem V.14):
d c i r c , ζ = min { wt S T ( e ) : e ∈ V ( ζ ) , H ζ e T = 0 , L ζ e T ≠ 0 } (4) d_{\mathrm{circ},\zeta}=\min\left\{\operatorname{wt}_{\mathrm{ST}}(e):e\in\mathcal{V}^{(\zeta)},\ H_{\zeta}e^{\mathsf{T}}=0,\ L_{\zeta}e^{\mathsf{T}}\ne0\right\} \tag*{(4)} d circ , ζ = min { wt ST ( e ) : e ∈ V ( ζ ) , H ζ e T = 0 , L ζ e T = 0 } (4)
Here V ( ζ ) ⊆ E ( ζ ) \mathcal{V}^{(\zeta)}\subseteq\mathcal{E}^{(\zeta)} V ( ζ ) ⊆ E ( ζ ) is the allowed fault subspace, and wt S T ( e ) \operatorname{wt}_{\mathrm{ST}}(e) wt ST ( e ) counts the faulty spacetime locations in e e e (Theorems V.1 and V.13).
Application. In Appendix B, we analyze a seven-round, 18-qubit instance of the Hastings–Haah honeycomb Floquet code [26 ] . Our analysis certifies that the measurement schedule dynamically encodes two logical qubits and has circuit distance four under the specified internal data- and record-Pauli fault model, with ideal data boundaries (Theorem B.1 and Section B 1).
Weight enumerators and linear programming bounds for non-adaptive stabilizer circuits. In § 1.2 D, we use signature-resolved circuit weight enumerators to formulate bounds across prescribed circuit families. For a partition Π \Pi Π of circuit spacetime locations, we construct a multivariate polynomial W σ , λ ( ζ ) , Π ( u , v ) W_{\sigma,\lambda}^{(\zeta),\Pi}(\mathbf{u},\mathbf{v}) W σ , λ ( ζ ) , Π ( u , v ) that counts spacetime faults by weight profile, detection syndrome σ \sigma σ , and logical effect λ \lambda λ (Theorem V.19). We count zero-syndrome faults and harmless zero-syndrome faults, and constrain these counts using the MacWilliams identities we derive (Theorem V.21) and boundary-code constraints (Theorem V.24). In § 1.2 E, these constraints yield an LP whose infeasibility rules out circuit distance at least D D D for an entire prescribed family of non-adaptive stabilizer circuits (Theorem V.28). Feasibility does not necessarily give a construction. Under the stated boundary-fault assumptions, the boundary constraints also yield Singleton-like bounds (Theorem V.24).
For a decoder that applies no correction at zero detection syndrome (Theorem V.30), we consider i.i.d. single-qubit depolarizing noise with noiseless output checks and recovery. We derive an additional constraint, which we append to the distance-bounding LP to obtain upper bounds on circuit pseudo-thresholds (Theorems V.33 and V.35 ).
Application. In Appendix § 1.2.3 , we derive LP distance bounds for flag-based syndrome-extraction circuits prescribed by their CNOT orderings [17 , 27 , 31 ] . We express the t t t -flag criterion as linear constraints on operation-fault counts and incorporate them into the LP (Theorems C.10 and C.13). We benchmark the resulting bound analytically on CSS Hamming codes, including data boundary faults, and show infeasibility for D ≥ 4 D\ge4 D ≥ 4 (Theorem C.15). Furthermore, we verify that the 1-flag construction of Chao and Reichardt [29 ] attains distance D = 3 D=3 D = 3 and supplies a feasible point, establishing tightness (Theorem C.17 ).
We discuss possibilities of further developments and applications in Section VI. The causal normalization constraints for the circuit and noise representations are derived in Appendix A.
Our circuit and noise representations build on the quantum-comb formalism for causal quantum networks [20 , 32 ] . Strategic codes apply this formalism to adaptive quantum error correction under spatially and temporally correlated noise [19 ] . In this work, the recovery goal is the complete ideal circuit operation, including its quantum output and measurement record. Our exact-recovery criterion is a constructive Kraus-operator formulation of the channel-recovery duality of Bény and Oreshkov [15 , 33 ] , with the Knill–Laflamme condition as the encoded-storage case [10 ] . SDP optimization of recovery is also established [34 , 35 ] and joint encoder–decoder optimization, product lifting, and partial-transpose constraints are also treated by constrained bilinear SDP hierarchies [36 ] . Our synthesis relaxation applies these methods to circuit-comb variables, prescribed circuit families, and exact recovery of a full quantum–classical target channel.
For stabilizer circuits, outcome relation, logical action, and fault distance have been studied through spacetime codes, circuit verification, stabilizer channels, and detector error models [16 , 22 , 24 , 30 , 37 , 38 , 39 , 40 ] . In particular, the characterization of distance through check and logical-effect matrices is already present in [16 ] . We derive explicit expressions for these matrices from the Pauli symmetries of circuit components, using a common relation space that also describes detectors, measured observables, output checks, and preserved logical operators. Related approaches to composition and circuit design include operator matching in tensor-network codes [41 , 42 ] , circuit transformations that preserve fault equivalence [21 ] , and composable detector error models [43 ] .
Our enumerator bounds build on quantum weight enumerators, MacWilliams identities, and their use in linear programming [44 , 45 , 46 , 47 , 48 , 49 , 50 ] . Tensor and circuit enumerators extend these methods to composite codes and noisy circuits [51 , 52 ] , while channel-dependent enumerators give bounds for codes under specified noise channels [53 ] . Here, we resolve fault counts by spacetime weight profile, detection syndrome, and logical effect, and combine their MacWilliams identities with circuit and boundary-code constraints. This yields LP bounds across prescribed circuit families, including performance bounds under i.i.d. depolarizing noise and the stated decoder assumptions.
Finally, our flag-circuit application builds on established flag constructions and optimization methods [7 , 17 , 27 , 29 , 54 , 55 , 56 ] . We express the t t t -flag condition as additional linear constraints on fault counts for families of CNOT orderings, and use the Chao–Reichardt one-flag construction as an analytical CSS Hamming-code benchmark.
Notation and preliminaries
All Hilbert spaces are finite dimensional and carry fixed orthonormal bases, taken to be computational bases for qubits. We write L ( H 0 , H 1 ) \mathcal{L}(\mathcal{H}_0,\mathcal{H}_1) L ( H 0 , H 1 ) for the space of linear operators from H 0 \mathcal{H}_0 H 0 to H 1 \mathcal{H}_1 H 1 , and L ( H ) ≜ L ( H , H ) \mathcal{L}(\mathcal{H}) \triangleq\mathcal{L}(\mathcal{H},\mathcal{H}) L ( H ) ≜ L ( H , H ) . The symbols T {}^{\mathsf{T}} T , ∗ {}^{*} ∗ and † {}^{\dagger} † denote transpose, entry-wise complex conjugation and adjoint, respectively, in the fixed bases. For a nonnegative integer ℓ \ell ℓ , let Z ℓ + ≜ { 1 , … , ℓ } \mathbb{Z}_{\ell}^{+} \triangleq\{1,\ldots,\ell\} Z ℓ + ≜ { 1 , … , ℓ } and [ ℓ ] ≜ { 0 , … , ℓ } [\ell] \triangleq\{0,\ldots,\ell\} [ ℓ ] ≜ { 0 , … , ℓ } .
Binary vectors are row vectors unless explicitly displayed as columns. Binary label arithmetic, ranks and kernels are over F 2 \mathbb{F}_2 F 2 . For a binary matrix B ∈ F 2 m × n B \in\mathbb{F}_2^{m \times n} B ∈ F 2 m × n , we use the left-kernel convention
ker B ≜ { u ∈ F 2 m : u B = 0 } . \ker B \triangleq\{u \in\mathbb{F}_2^m : uB = 0\}. ker B ≜ { u ∈ F 2 m : u B = 0 } .
Consequently, for a row vector v ∈ F 2 n v \in\mathbb{F}_2^n v ∈ F 2 n ,
B v T = 0 ⟺ v B T = 0 ⟺ v ∈ ker B T . Bv^{\mathsf{T}} = 0 \quad\Longleftrightarrow\quad vB^{\mathsf{T}} = 0 \quad\Longleftrightarrow\quad v \in\ker B^{\mathsf{T}}. B v T = 0 ⟺ v B T = 0 ⟺ v ∈ ker B T .
This convention applies to binary matrices. For a linear operator C C C between Hilbert spaces, ker C \ker C ker C denotes the subspace of kets ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ satisfying C ∣ ψ ⟩ = 0 C|\psi\rangle= 0 C ∣ ψ ⟩ = 0 . For V ⊆ F 2 n V \subseteq\mathbb{F}_2^n V ⊆ F 2 n , its ordinary binary dual is
V ⊥ ≜ { u ∈ F 2 n : u v T = 0 for every v ∈ V } . V^\perp\triangleq\{u \in\mathbb{F}_2^n : uv^{\mathsf{T}} = 0 \text{ for every } v \in V\}. V ⊥ ≜ { u ∈ F 2 n : u v T = 0 for every v ∈ V } .
We distinguish this dual from the symplectic dual defined below.
Pauli and Clifford operators
Definition II.1 (Pauli operators). Let X ∣ j ⟩ = ∣ j + 1 ⟩ X|j\rangle= |j+1\rangle X ∣ j ⟩ = ∣ j + 1 ⟩ and Z ∣ j ⟩ = ( − 1 ) j ∣ j ⟩ Z|j\rangle= (-1)^j|j\rangle Z ∣ j ⟩ = ( − 1 ) j ∣ j ⟩ for j ∈ F 2 j \in\mathbb{F}_2 j ∈ F 2 , with addition modulo two, and let Y = i X Z Y = iXZ Y = i X Z , where i i i is the imaginary unit. For u = [ x , z ] ∈ F 2 2 n u = [x,z] \in\mathbb{F}_2^{2n} u = [ x , z ] ∈ F 2 2 n , define
D ( u ) ≜ ⨂ j = 1 n X x j Z z j , D(u) \triangleq\bigotimes_{j=1}^{n} X^{x_j} Z^{z_j}, D ( u ) ≜ j = 1 ⨂ n X x j Z z j , P(u) \triangleq i^{\tau(u)}D(u), \qquad \tau(u) \triangleq \sum_{j=1}^{n} x_j z_j.
The sum defining τ \tau τ is evaluated over the integers. Thus the pairs ( 0 , 0 ) , ( 1 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) (0,0),(1,0),(0,1),(1,1) ( 0 , 0 ) , ( 1 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) represent I , X , Z , Y I,X,Z,Y I , X , Z , Y , respectively, and P ( u ) † = P ( u ) P(u)^{\dagger}=P(u) P ( u ) † = P ( u ) and P ( u ) 2 = I P(u)^2=I P ( u ) 2 = I . The Heisenberg–Weyl group and its Hermitian subset are
HW ( C 2 n ) ≜ { i a P ( u ) : a ∈ Z 4 , u ∈ F 2 2 n } , \operatorname{HW}(\mathbb{C}^{2^n}) \triangleq\{i^a P(u): a \in\mathbb{Z}_4,\ u \in\mathbb{F}_2^{2n}\}, HW ( C 2 n ) ≜ { i a P ( u ) : a ∈ Z 4 , u ∈ F 2 2 n } ,
P ( C 2 n ) ≜ { ( − 1 ) a P ( u ) : a ∈ F 2 , u ∈ F 2 2 n } . \mathcal{P}(\mathbb{C}^{2^n}) \triangleq\{(-1)^a P(u): a \in\mathbb{F}_2,\ u \in\mathbb{F}_2^{2n}\}. P ( C 2 n ) ≜ {( − 1 ) a P ( u ) : a ∈ F 2 , u ∈ F 2 2 n } .
We write P ‾ ( C 2 n ) \overline{\mathcal{P}}(\mathbb{C}^{2^n}) P ( C 2 n ) for the set of Hermitian Pauli modulo sign, represented by the canonical operators P ( u ) P(u) P ( u ) . The Hermitian subset P ( C 2 n ) \mathcal{P}(\mathbb{C}^{2^n}) P ( C 2 n ) is not a group, since the product of two anticommuting Hermitian Paulis is not Hermitian.
For u = [ x , z ] , v = [ x ′ , z ′ ] ∈ F 2 2 n u=[x,z],v=[x',z']\in\mathbb{F}_2^{2n} u = [ x , z ] , v = [ x ′ , z ′ ] ∈ F 2 2 n , define the symplectic inner product by
⟨ u , v ⟩ s ≜ u Ω n v T = x ( z ′ ) T + z ( x ′ ) T , \langle u,v\rangle_s \triangleq u\Omega_n v^{\mathsf{T}} = x(z')^{\mathsf{T}} + z(x')^{\mathsf{T}}, ⟨ u , v ⟩ s ≜ u Ω n v T = x ( z ′ ) T + z ( x ′ ) T ,
Ω n ≜ [ 0 I n I n 0 ] . (5) \Omega_n \triangleq\begin{bmatrix} 0 & I_n \\ I_n & 0 \end{bmatrix}. \tag*{(5)} Ω n ≜ [ 0 I n I n 0 ] . (5)
where Ω n \Omega_n Ω n denotes the symplectic form [23 ] . The symplectic form is nondegenerate because Ω n \Omega_n Ω n is invertible. For a subspace V ⊆ F 2 2 n V \subseteq\mathbb{F}_2^{2n} V ⊆ F 2 2 n , its symplectic dual is
V ⊥ s ≜ { u ∈ F 2 2 n : ⟨ u , v ⟩ s = 0 for every v ∈ V } . V^{\perp_s} \triangleq\{u \in\mathbb{F}_2^{2n} : \langle u,v\rangle_s = 0 \text{ for every } v \in V\}. V ⊥ s ≜ { u ∈ F 2 2 n : ⟨ u , v ⟩ s = 0 for every v ∈ V } .
Since multiplication by Ω n \Omega_n Ω n is invertible, dim V ⊥ s = 2 n − dim V \dim V^{\perp_s}=2n-\dim V dim V ⊥ s = 2 n − dim V . The subspace V V V is called isotropic if its vectors are pairwise symplectically orthogonal, equivalently V ⊆ V ⊥ s V \subseteq V^{\perp_s} V ⊆ V ⊥ s .
Lemma II.2 (Symplectic Pauli algebra). For u = [ x , z ] , v = [ x ′ , z ′ ] ∈ F 2 2 n u=[x,z],v=[x',z']\in\mathbb{F}_2^{2n} u = [ x , z ] , v = [ x ′ , z ′ ] ∈ F 2 2 n ,
P ( u ) P ( v ) = ( − 1 ) ⟨ u , v ⟩ s P ( v ) P ( u ) , P(u)P(v)=(-1)^{\langle u,v\rangle_s}P(v)P(u), P ( u ) P ( v ) = ( − 1 ) ⟨ u , v ⟩ s P ( v ) P ( u ) , P ( u ) P ( v ) = ι κ ( u , v ) P ( u + v ) . P(u)P(v)=\iota^{\kappa(u,v)}P(u+v). P ( u ) P ( v ) = ι κ ( u , v ) P ( u + v ) . where
κ ( u , v ) ≡ τ ( u ) + τ ( v ) + 2 ∑ j x j x j ′ − τ ( u + v ) ( m o d 4 ) . (6) \kappa(u,v)\equiv\tau(u)+\tau(v)+2\sum_jx_jx'_j-\tau(u+v)\pmod4. \tag*{(6)} κ ( u , v ) ≡ τ ( u ) + τ ( v ) + 2 j ∑ x j x j ′ − τ ( u + v ) ( mod 4 ) . (6) Here u + v u+v u + v is evaluated modulo two before applying τ \tau τ . Moreover, κ ( u , v ) m o d 2 = ⟨ u , v ⟩ s \kappa(u,v)\bmod2=\langle u,v\rangle_s κ ( u , v ) mod 2 = ⟨ u , v ⟩ s . Thus P ( u ) P(u) P ( u ) and P ( v ) P(v) P ( v ) commute precisely when ⟨ u , v ⟩ s = 0 \langle u,v\rangle_s=0 ⟨ u , v ⟩ s = 0 . In that case their product sign is ( − 1 ) κ ( u , v ) / 2 (-1)^{\kappa(u,v)/2} ( − 1 ) κ ( u , v ) /2 , where the half of an even representative is taken modulo two.
Proof. The relation Z X = − X Z ZX=-XZ Z X = − X Z gives
D ( u ) D ( v ) = ( − 1 ) ∑ j z j x j ′ D ( u + v ) . D(u)D(v)=(-1)^{\sum_jz_jx'_j}D(u+v). D ( u ) D ( v ) = ( − 1 ) ∑ j z j x j ′ D ( u + v ) . Exchanging u u u and v v v yields the commutation relation. Inserting the phases in the definition of P P P gives (6) . Finally,
τ ( u + v ) = τ ( u ) + τ ( v ) + ∑ j ( x j z j ′ + x j ′ z j ) ( m o d 2 ) , \tau(u+v)=\tau(u)+\tau(v)+\sum_j(x_jz'_j+x'_jz_j)\pmod2, τ ( u + v ) = τ ( u ) + τ ( v ) + j ∑ ( x j z j ′ + x j ′ z j ) ( mod 2 ) , so κ ( u , v ) m o d 2 = ⟨ u , v ⟩ s \kappa(u,v)\bmod2=\langle u,v\rangle_s κ ( u , v ) mod 2 = ⟨ u , v ⟩ s .
A Clifford unitary U U U normalizes the Heisenberg–Weyl group, meaning that U H W ( Q ) U † = H W ( Q ) UHW(Q)U^\dagger=HW(Q) U H W ( Q ) U † = H W ( Q ) . The Clifford unitaries on a qubit register Q Q Q form the group Cliff ( Q ) \operatorname{Cliff}(Q) Cliff ( Q ) . We use the following binary representation [23 ] .
Proposition II.3 (Symplectic representation of Clifford unitaries). For every U ∈ Cliff ( C 2 n ) U\in\operatorname{Cliff}(\mathbb{C}^{2^n}) U ∈ Cliff ( C 2 n ) , there are a binary matrix F U ∈ F 2 2 n × 2 n F_U\in\mathbb{F}_2^{2n\times2n} F U ∈ F 2 2 n × 2 n and a sign map s U : F 2 2 n → F 2 s_U:\mathbb{F}_2^{2n}\to\mathbb{F}_2 s U : F 2 2 n → F 2 such that
U P ( u ) U † = ( − 1 ) s U ( u ) P ( u F U ) , UP(u)U^\dagger=(-1)^{s_U(u)}P(uF_U), U P ( u ) U † = ( − 1 ) s U ( u ) P ( u F U ) , F U Ω n F U T = Ω n . (7) F_U\Omega_nF_U^{\mathsf T}=\Omega_n. \tag*{(7)} F U Ω n F U T = Ω n . (7) The first n n n rows of F U F_U F U are the binary labels of the images of X 1 , … , X n X_1,\ldots,X_n X 1 , … , X n , and the last n n n rows are those of Z 1 , … , Z n Z_1,\ldots,Z_n Z 1 , … , Z n . The sign map need not be linear.
Proof. Conjugation by U U U sends a Hermitian Pauli to a Hermitian Pauli. Its label and sign are therefore uniquely determined. Since multiplication of Pauli labels is binary addition, conjugation induces an additive map u ↦ u F U u\mapsto uF_U u ↦ u F U ; its values on the standard basis give the rows of F U F_U F U . Conjugation also preserves commutation, so
u F U Ω n F U T v T = u Ω n v T for all u , v . uF_U\Omega_nF_U^{\mathsf T}v^{\mathsf T}=u\Omega_nv^{\mathsf T}\qquad\text{for all }u,v. u F U Ω n F U T v T = u Ω n v T for all u , v . Taking standard basis vectors proves the matrix identity.
Matrices satisfying F Ω n F T = Ω n F\Omega_nF^{\mathsf T}=\Omega_n F Ω n F T = Ω n are called symplectic matrices and they form the group Sp ( 2 n , F 2 ) \operatorname{Sp}(2n,\mathbb{F}_2) Sp ( 2 n , F 2 ) .
Vectorization
Following [20 , 32 ] , we recall the vectorization identities and Choi representation used below to describe quantum operations and their composition. All vectorizations and transposes are taken with respect to fixed orthonormal bases.
Definition II.4 (Vectorization). For C : H 0 → H 1 C:\mathcal{H}_0\to\mathcal{H}_1 C : H 0 → H 1 , define
∣ C ⟩ ⟩ ≔ ∑ i , j C i j ∣ i ⟩ H 1 ⊗ ∣ j ⟩ H 0 , \lvert C\rangle\rangle\coloneqq\sum_{i,j}C_{ij}\lvert i\rangle_{\mathcal{H}_1}\otimes\lvert j\rangle_{\mathcal{H}_0}, ∣ C ⟩⟩ : = i , j ∑ C ij ∣ i ⟩ H 1 ⊗ ∣ j ⟩ H 0 , ∣ I H ⟩ ⟩ = ∑ j ∣ j ⟩ ⊗ ∣ j ⟩ . (8) \lvert I_{\mathcal{H}}\rangle\rangle=\sum_j\lvert j\rangle\otimes\lvert j\rangle. \tag*{(8)} ∣ I H ⟩⟩ = j ∑ ∣ j ⟩ ⊗ ∣ j ⟩ . (8) Vectorization is a linear bijection from L ( H 0 , H 1 ) \mathcal{L}(\mathcal{H}_0,\mathcal{H}_1) L ( H 0 , H 1 ) to H 1 ⊗ H 0 \mathcal{H}_1\otimes\mathcal{H}_0 H 1 ⊗ H 0 , with the output factor first. Its adjoint is denoted by ⟨ ⟨ C ∣ \langle\langle C\lvert ⟨⟨ C ∣ . These vectors are unnormalized. In particular,
⟨ ⟨ I H ∣ I H ⟩ ⟩ = dim H . \langle\langle I_{\mathcal{H}}\lvert I_{\mathcal{H}}\rangle\rangle=\dim\mathcal{H}. ⟨⟨ I H ∣ I H ⟩⟩ = dim H .
Lemma II.6 (Vectorization identities). For compatible operators,
∣ C ⟩ ⟩ = ( C ⊗ I H 0 ) ∣ I H 0 ⟩ ⟩ = ( I H 1 ⊗ C T ) ∣ I H 1 ⟩ ⟩ , \lvert C\rangle\rangle=(C\otimes I_{\mathcal{H}_0})\lvert I_{\mathcal{H}_0}\rangle\rangle
=(I_{\mathcal{H}_1}\otimes C^{\mathsf T})\lvert I_{\mathcal{H}_1}\rangle\rangle, ∣ C ⟩⟩ = ( C ⊗ I H 0 ) ∣ I H 0 ⟩⟩ = ( I H 1 ⊗ C T ) ∣ I H 1 ⟩⟩ , ( A ⊗ B T ) ∣ C ⟩ ⟩ = ∣ A C B ⟩ ⟩ , (A\otimes B^{\mathsf T})\lvert C\rangle\rangle=\lvert ACB\rangle\rangle, ( A ⊗ B T ) ∣ C ⟩⟩ = ∣ A C B ⟩⟩ , ⟨ ⟨ A ∣ B ⟩ ⟩ = Tr ( A † B ) . (9) \langle\langle A\lvert B\rangle\rangle=\operatorname{Tr}(A^\dagger B). \tag*{(9)} ⟨⟨ A ∣ B ⟩⟩ = Tr ( A † B ) . (9) In the last identity, A A A and B B B have the same domain and codomain. In particular, for A , B ∈ L ( H ) A,B\in\mathcal{L}(\mathcal{H}) A , B ∈ L ( H ) ,
⟨ ⟨ I H ∣ ( A ⊗ B T ) ∣ I H ⟩ ⟩ = Tr ( A B ) . \langle\langle I_{\mathcal{H}}\lvert(A\otimes B^{\mathsf T})\lvert I_{\mathcal{H}}\rangle\rangle=\operatorname{Tr}(AB). ⟨⟨ I H ∣( A ⊗ B T ) ∣ I H ⟩⟩ = Tr ( A B ) . Contracting an identity ket with an identity bra gives
( I H ⊗ ⟨ ⟨ I H ∣ ) ( ∣ I H ⟩ ⟩ ⊗ I H ) = I H , (I_{\mathcal{H}}\otimes\langle\langle I_{\mathcal{H}}\lvert)(\lvert I_{\mathcal{H}}\rangle\rangle\otimes I_{\mathcal{H}})=I_{\mathcal{H}}, ( I H ⊗ ⟨⟨ I H ∣ ) (∣ I H ⟩⟩ ⊗ I H ) = I H , ( ⟨ ⟨ I H ∣ ⊗ I H ) ( I H ⊗ ∣ I H ⟩ ⟩ ) = I H . (\langle\langle I_{\mathcal{H}}\lvert\otimes I_{\mathcal{H}})(I_{\mathcal{H}}\otimes\lvert I_{\mathcal{H}}\rangle\rangle)=I_{\mathcal{H}}. (⟨⟨ I H ∣ ⊗ I H ) ( I H ⊗ ∣ I H ⟩⟩) = I H .
Proof. Expanding in the fixed bases gives
( A ⊗ B T ) ∣ C ⟩ ⟩ = ∑ p , q ( ∑ i , j A p i C i j B j q ) ∣ p ⟩ ⊗ ∣ q ⟩ = ∣ A C B ⟩ ⟩ . (A \otimes B^{\mathsf{T}})\lvert C\rangle\rangle= \sum_{p,q}\left(\sum_{i,j} A_{pi}C_{ij}B_{jq}\right)\lvert p\rangle\otimes\lvert q\rangle= \lvert ACB\rangle\rangle. ( A ⊗ B T ) ∣ C ⟩⟩ = p , q ∑ ( i , j ∑ A p i C ij B j q ) ∣ p ⟩ ⊗ ∣ q ⟩ = ∣ A C B ⟩⟩ .
The first two identities follow by taking C C C in this formula to be an identity operator. Likewise, ⟨ ⟨ A ∣ ∣ B ⟩ ⟩ = ∑ i , j A i j ∗ B i j = Tr ( A † B ) \langle\langle A\vert\vert B\rangle\rangle= \sum_{i,j} A_{ij}^{*}B_{ij} = \operatorname{Tr}(A^{\dagger}B) ⟨⟨ A ∣∣ B ⟩⟩ = ∑ i , j A ij ∗ B ij = Tr ( A † B ) , which also gives the stated trace formula. Finally, each identity contraction sends a basis ket ∣ j ⟩ \lvert j\rangle ∣ j ⟩ to ∣ j ⟩ \lvert j\rangle ∣ j ⟩ , since ⟨ i ∣ j ⟩ = δ i j \langle i\vert j\rangle= \delta_{ij} ⟨ i ∣ j ⟩ = δ ij .
Quantum circuits
We define quantum circuits through their component operations and describe their composition by contracting the corresponding open wires. This separates the circuit from its noise model and gives a common description of ideal and noisy realizations. We then specialise this construction to stabilizer circuits.
Definition III.1 (Quantum circuit). A quantum circuit C C C is defined by a set of measurement outcome strings o ≜ ( o 1 , … , o ℓ ) o \triangleq(o_1,\ldots,o_{\ell}) o ≜ ( o 1 , … , o ℓ ) of length ℓ \ell ℓ , where each o r ≜ ( o r , 1 , … , o r , m r ′ ) ∈ { 0 , 1 } m r ′ o_r \triangleq(o_{r,1},\ldots,o_{r,m'_r}) \in\{0,1\}^{m'_r} o r ≜ ( o r , 1 , … , o r , m r ′ ) ∈ { 0 , 1 } m r ′ , and a sequence of ℓ \ell ℓ linear operators indexed by the measurement outcomes:
C ≜ { C o 1 : 1 , … , C o ℓ ∣ o 1 : ℓ − 1 } o for C o r ∣ o 1 : r − 1 : Q r − 1 ⟶ A r ′ ⊗ Q r . (10) C \triangleq\left\{C_{o_1:1},\ldots,C_{o_\ell\mid o_{1:\ell-1}}\right\}_{o}
\quad\text{for}\quad
C_{o_r\mid o_{1:r-1}}:Q_{r-1}\longrightarrow A'_r\otimes Q_r. \tag*{(10)} C ≜ { C o 1 : 1 , … , C o ℓ ∣ o 1 : ℓ − 1 } o for C o r ∣ o 1 : r − 1 : Q r − 1 ⟶ A r ′ ⊗ Q r . (10) Here Q r ≅ C 2 n r Q_r \cong\mathbb{C}^{2^{n_r}} Q r ≅ C 2 n r and o 1 : r − 1 ≜ ( o 1 , … , o r − 1 ) o_{1:r-1} \triangleq(o_1,\ldots,o_{r-1}) o 1 : r − 1 ≜ ( o 1 , … , o r − 1 ) is the measurement outcome history from round 1 1 1 to r − 1 r-1 r − 1 . Each operator C o r ∣ o 1 : r − 1 C_{o_r\mid o_{1:r-1}} C o r ∣ o 1 : r − 1 is composed of a ∣ 0 ⟩ ⊗ m r \lvert0\rangle^{\otimes m_r} ∣ 0 ⟩ ⊗ m r preparation on the m r m_r m r -qubit ancilla register A r ≅ C 2 m r A_r \cong\mathbb{C}^{2^{m_r}} A r ≅ C 2 m r , a history-dependent unitary U o 1 : r − 1 ∈ U ( A r ⊗ Q r − 1 ) U_{o_{1:r-1}}\in U(A_r\otimes Q_{r-1}) U o 1 : r − 1 ∈ U ( A r ⊗ Q r − 1 ) , an m r ′ m'_r m r ′ -qubit computational-basis projector ∣ o r ⟩ ⟨ o r ∣ \lvert o_r\rangle\langle o_r\vert ∣ o r ⟩ ⟨ o r ∣ on A r ′ ≅ C 2 m r ′ A'_r\cong\mathbb{C}^{2^{m'_r}} A r ′ ≅ C 2 m r ′ , and a conditional unitary U o r ∈ U ( Q r ) U_{o_r}\in U(Q_r) U o r ∈ U ( Q r ) depending on the outcome o r o_r o r . For the action of U o 1 : r − 1 U_{o_{1:r-1}} U o 1 : r − 1 , we impose A r ⊗ Q r − 1 ≅ A r ′ ⊗ Q r A_r\otimes Q_{r-1}\cong A'_r\otimes Q_r A r ⊗ Q r − 1 ≅ A r ′ ⊗ Q r , which gives m r + n r − 1 = m r ′ + n r m_r+n_{r-1}=m'_r+n_r m r + n r − 1 = m r ′ + n r . Explicitly,
C o r ∣ o 1 : r − 1 = ( ∣ o r ⟩ ⟨ o r ∣ A r ′ ⊗ U o r ) U o 1 : r − 1 ( ∣ 0 ⟩ A r ⊗ m r ⊗ I Q r − 1 ) (11) C_{o_r\mid o_{1:r-1}}=\left(\lvert o_r\rangle\langle o_r\vert_{A'_r}\otimes U_{o_r}\right)U_{o_{1:r-1}}\left(\lvert0\rangle^{\otimes m_r}_{A_r}\otimes I_{Q_{r-1}}\right) \tag*{(11)} C o r ∣ o 1 : r − 1 = ( ∣ o r ⟩ ⟨ o r ∣ A r ′ ⊗ U o r ) U o 1 : r − 1 ( ∣ 0 ⟩ A r ⊗ m r ⊗ I Q r − 1 ) (11)
Definition III.2 (Circuit components). A component of C C C is the collection of linear operators { C o r ∣ o 1 : r − 1 } o r \{C_{o_r\mid o_{1:r-1}}\}_{o_r} { C o r ∣ o 1 : r − 1 } o r for a fixed history o 1 : r − 1 o_{1:r-1} o 1 : r − 1 and round r ∈ Z + r\in\mathbb{Z}_{+} r ∈ Z + . For each history, these operators satisfy ∑ o r C o r ∣ o 1 : r − 1 † C o r ∣ o 1 : r − 1 = I Q r − 1 \sum_{o_r} C_{o_r\mid o_{1:r-1}}^{\dagger}C_{o_r\mid o_{1:r-1}}=I_{Q_{r-1}} ∑ o r C o r ∣ o 1 : r − 1 † C o r ∣ o 1 : r − 1 = I Q r − 1 , by unitarity and completeness of the measurement projectors.
Remark III.3. Here m r = 0 m_r=0 m r = 0 (respectively, m r ′ = 0 m'_r=0 m r ′ = 0 ) means that C o r ∣ o 1 : r − 1 C_{o_r\mid o_{1:r-1}} C o r ∣ o 1 : r − 1 prepares no ancilla (respectively, performs no measurement). For r < ℓ r<\ell r < ℓ , U o r U_{o_r} U o r can be absorbed into the next round’s history-dependent unitary, while the final conditional unitary must remain unless another component follows. We keep these factors separate to distinguish dependence on o r o_r o r at round r r r from dependence on its preceding history. Any quantum instrument on qubit registers admits the decomposition in Equation (11) after adding sufficient ancillas and, if needed, refining outcomes to label individual Kraus operators. Discarding or coarse-graining the refined outcomes recovers the original instrument [20 , 30 , 58 ] .
We have defined a quantum circuit as a sequence of linear operators indexed by measurement outcomes. To describe its action under a noise model, or in the ideal case, we now associate a linear map with this circuit description.
Definition III.4 (Circuit map and noise model). For a quantum circuit C C C , write A r o u t ≡ A r ′ A_r^{\mathrm{out}}\equiv A'_r A r out ≡ A r ′ for the retained outcome register and A 1 : ℓ o u t ≡ ⨂ r = 1 ℓ A r o u t A_{1:\ell}^{\mathrm{out}}\equiv\bigotimes_{r=1}^{\ell}A_r^{\mathrm{out}} A 1 : ℓ out ≡ ⨂ r = 1 ℓ A r out . Let ∣ C o 1 : ℓ ⟩ ⟩ ∈ A 1 : ℓ o u t ⊗ Q ℓ ⊗ Q r − 1 ⊗ 2 ⊗ ⋯ ⊗ Q 0 ⊗ 2 \lvert C_{o_{1:\ell}}\rangle\rangle\in A_{1:\ell}^{\mathrm{out}}\otimes Q_{\ell}\otimes Q_{r-1}^{\otimes2}\otimes\cdots\otimes Q_0^{\otimes2} ∣ C o 1 : ℓ ⟩⟩ ∈ A 1 : ℓ out ⊗ Q ℓ ⊗ Q r − 1 ⊗ 2 ⊗ ⋯ ⊗ Q 0 ⊗ 2 be the vectorization of C o 1 : r C_{o_{1:r}} C o 1 : r . We define its circuit map
C c m : L ( Q 0 ) ⟶ L ( A 1 : ℓ o u t ⊗ Q ℓ ⊗ Q ℓ − 1 ⊗ 2 ⊗ ⋯ ⊗ Q 0 ⊗ 2 ) (12) C_{\mathrm{cm}}:L(Q_0)\longrightarrow L\left(A_{1:\ell}^{\mathrm{out}}\otimes Q_{\ell}\otimes Q_{\ell-1}^{\otimes2}\otimes\cdots\otimes Q_0^{\otimes2}\right) \tag*{(12)} C cm : L ( Q 0 ) ⟶ L ( A 1 : ℓ out ⊗ Q ℓ ⊗ Q ℓ − 1 ⊗ 2 ⊗ ⋯ ⊗ Q 0 ⊗ 2 ) (12) as the CP map
C c m ( ⋅ ) = ∑ o C o ( ⋅ ) C o † (13) C_{\mathrm{cm}}(\mathord{\cdot})=\sum_o C_o(\mathord{\cdot})C_o^\dagger \tag*{(13)} C cm ( ⋅ ) = o ∑ C o ( ⋅ ) C o † (13) for
C o = ∣ C o 1 : ℓ ⟩ ⟩ ⊗ ⋯ ⊗ ∣ C o 1 ⟩ ⟩ ⊗ I Q 0 . C_o=\lvert C_{o_{1:\ell}}\rangle\rangle\otimes\cdots\otimes\lvert C_{o_1}\rangle\rangle\otimes I_{Q_0}. C o = ∣ C o 1 : ℓ ⟩⟩ ⊗ ⋯ ⊗ ∣ C o 1 ⟩⟩ ⊗ I Q 0 . A noise model over C C C is a CP map
E : L ( A 1 : ℓ o u t ⊗ Q ℓ ⊗ Q ℓ − 1 ⊗ 2 ⊗ ⋯ ⊗ Q 0 ⊗ 2 ) ⟶ L ( A 1 : ℓ o u t ⊗ Q ℓ ) (14) \mathcal{E}:L\left(A_{1:\ell}^{\mathrm{out}}\otimes Q_{\ell}\otimes Q_{\ell-1}^{\otimes2}\otimes\cdots\otimes Q_0^{\otimes2}\right)\longrightarrow L\left(A_{1:\ell}^{\mathrm{out}}\otimes Q_{\ell}\right) \tag*{(14)} E : L ( A 1 : ℓ out ⊗ Q ℓ ⊗ Q ℓ − 1 ⊗ 2 ⊗ ⋯ ⊗ Q 0 ⊗ 2 ) ⟶ L ( A 1 : ℓ out ⊗ Q ℓ ) (14) with Kraus operators { E e } e \{E_e\}_e { E e } e satisfying
∑ e E e † E e = I A 1 : ℓ o u t Q ℓ ⊗ E ( ℓ − 1 ) , \sum_e E_e^\dagger E_e=I_{A_{1:\ell}^{\mathrm{out}}Q_\ell}\otimes\mathcal{E}^{(\ell-1)}, e ∑ E e † E e = I A 1 : ℓ out Q ℓ ⊗ E ( ℓ − 1 ) , Tr Q r E ( r ) = I A r o u t Q r ⊗ E ( r − 1 ) , 1 ≤ r < ℓ , \operatorname{Tr}_{Q_r}E^{(r)}=I_{A_r^{\mathrm{out}}Q_r}\otimes E^{(r-1)},\qquad1\le r<\ell, Tr Q r E ( r ) = I A r out Q r ⊗ E ( r − 1 ) , 1 ≤ r < ℓ , Tr Q 0 E ( 0 ) = I Q 0 , E ( r ) ≥ 0 ( 0 ≤ r < ℓ ) . (15) \operatorname{Tr}_{Q_0}E^{(0)}=I_{Q_0},\qquad E^{(r)}\ge0\quad(0\le r<\ell). \tag*{(15)} Tr Q 0 E ( 0 ) = I Q 0 , E ( r ) ≥ 0 ( 0 ≤ r < ℓ ) . (15) A noisy realization of C C C under E \mathcal{E} E is the channel
C E ( ⋅ ) ≜ ( E ∘ C c m ) ( ⋅ ) C_{\mathcal{E}}(\mathord{\cdot})\triangleq(\mathcal{E}\circ C_{\mathrm{cm}})(\mathord{\cdot}) C E ( ⋅ ) ≜ ( E ∘ C cm ) ( ⋅ ) from L ( Q 0 ) L(Q_0) L ( Q 0 ) to L ( A 1 : ℓ o u t ⊗ Q ℓ ) L(A_{1:\ell}^{\mathrm{out}}\otimes Q_\ell) L ( A 1 : ℓ out ⊗ Q ℓ ) , with Kraus operators { E e C o } e , o \{E_eC_o\}_{e,o} { E e C o } e , o . An ideal realization is given by
C i d ( ⋅ ) ≜ I C c m ( ⋅ ) I † (16) C_{\mathrm{id}}(\mathord{\cdot})\triangleq I C_{\mathrm{cm}}(\mathord{\cdot})I^\dagger \tag*{(16)} C id ( ⋅ ) ≜ I C cm ( ⋅ ) I † (16) for
I = I A 1 : ℓ o u t Q ℓ ⊗ ( ⟨ ⟨ Q ℓ − 1 ∣ ⊗ ⋯ ⊗ ⟨ ⟨ Q 0 ∣ ) . I=I_{A_{1:\ell}^{\mathrm{out}}Q_\ell}\otimes\left(\langle\langle Q_{\ell-1}\vert\otimes\cdots\otimes\langle\langle Q_0\vert\right). I = I A 1 : ℓ out Q ℓ ⊗ ( ⟨⟨ Q ℓ − 1 ∣ ⊗ ⋯ ⊗ ⟨⟨ Q 0 ∣ ) . Remark III.5. The circuit map C c m C_{\mathrm{cm}} C cm is generally not trace-preserving. Its unnormalized vectorizations give
Tr C c m ( ρ ) = ( ∏ r = 0 ℓ − 1 dim Q r ) Tr ρ . \operatorname{Tr}C_{\mathrm{cm}}(\rho)=\left(\prod_{r=0}^{\ell-1}\dim Q_r\right)\operatorname{Tr}\rho. Tr C cm ( ρ ) = ( r = 0 ∏ ℓ − 1 dim Q r ) Tr ρ . However, completeness relations of the circuit components and Equation (15) imply
∑ e , o ( E e C o ) † ( E e C o ) = I Q 0 . (17) \sum_{e,o}(E_eC_o)^\dagger(E_eC_o)=I_{Q_0}. \tag*{(17)} e , o ∑ ( E e C o ) † ( E e C o ) = I Q 0 . (17)
Thus, both the noisy and ideal realizations of the circuit are trace-preserving. Both identities are proved in Appendix A. Moreover, the circuit map satisfies the quantum-comb causal normalization constraints [20 , 58 ]
∑ o C o C o † = C ( ℓ ) , C ( ℓ ) ⪰ 0 , \sum_o C_o C_o^\dagger= C^{(\ell)}, \qquad C^{(\ell)} \succeq0, o ∑ C o C o † = C ( ℓ ) , C ( ℓ ) ⪰ 0 ,
Tr A r o u t Q r C ( r ) = I Q r − 1 ⊗ C ( r − 1 ) , r ∈ Z + ℓ , \operatorname{Tr}_{A_r^{\mathrm{out}}Q_r} C^{(r)} = I_{Q_{r-1}} \otimes C^{(r-1)}, \qquad r \in\mathbb{Z}_{+}^{\ell}, Tr A r out Q r C ( r ) = I Q r − 1 ⊗ C ( r − 1 ) , r ∈ Z + ℓ ,
C ( r − 1 ) ⪰ 0 , C ( 0 ) = I Q 0 . (18) C^{(r-1)} \succeq0, \qquad C^{(0)} = I_{Q_0}. \tag*{(18)} C ( r − 1 ) ⪰ 0 , C ( 0 ) = I Q 0 . (18)
See Appendix A for more details.
Figure 2 (PDF p. 10). A fixed Pauli fault pattern for the Z 1 Z 2 Z_1Z_2 Z 1 Z 2 measurement circuit indicating the Kraus operator in Equation (28) . Each { P ( e s , t ) } s , t = 0 3 \{P(e_{s,t})\}_{s,t=0}^{3} { P ( e s , t ) } s , t = 0 3 is a single qubit Pauli fault.
This operator is illustrated in Figure 2. Given spacetime fault probabilities p e p_e p e for fault E e E_e E e , the noisy realization C E ( ⋅ ) C_E(\cdot) C E ( ⋅ ) is a CPTP map
C E ( ρ ) = ( E ∘ C c m ) ( ρ ) = ∑ e , o p e E e C o ρ C o † E e † (29) C_E(\rho) = (E \circ C_{\rm cm})(\rho)
= \sum_{e,o} p_e E_e C_o \rho C_o^\dagger E_e^\dagger \tag*{(29)} C E ( ρ ) = ( E ∘ C cm ) ( ρ ) = e , o ∑ p e E e C o ρ C o † E e † (29)
where p e ≥ 0 p_e \ge0 p e ≥ 0 and ∑ e p e = 1 \sum_e p_e = 1 ∑ e p e = 1 .
Stabilizer circuits
Syndrome extraction and many logical operations on stabilizer codes use Clifford gates, Pauli eigen-state preparations and Pauli measurements. We define stabilizer circuits in the component form of Theorem III.1, allowing different levels of abstraction and the noise models introduced above. Representing circuits as states enables us to develop a stabilizer formalism for quantum circuits analogous to that for quantum states. In Section III B, we show how stabilizers of a circuit’s components compose and how they determine detectors, measured observables and preserved logical information. In § 1.2 , we specialize to non-adaptive circuits under Pauli noise and use these symmetries to obtain explicit fault signatures and a minimum-weight characterization of circuit distance.
We first recall stabilizer states and their operator representation [3 , 30 ] . Related circuit and fault-tolerance descriptions are developed in [16 , 59 ] .
Definition III.8 (Stabilizer states and operators). An n n n -qubit unit vector ∣ ψ ⟩ ∈ C 2 n |\psi\rangle\in\mathbb{C}^{2^n} ∣ ψ ⟩ ∈ C 2 n is a pure stabilizer state if there is a Pauli subgroup S ψ ⊆ P ( C 2 n ) S_\psi\subseteq\mathcal{P}(\mathbb{C}^{2^n}) S ψ ⊆ P ( C 2 n ) with n n n independent generators and − I ∉ S ψ -I \notin S_\psi − I ∈ / S ψ such that s ∣ ψ ⟩ = ∣ ψ ⟩ s|\psi\rangle= |\psi\rangle s ∣ ψ ⟩ = ∣ ψ ⟩ for every s ∈ S ψ s \in S_\psi s ∈ S ψ . Such a subgroup is abelian [60 ] . An n n n -qubit density operator ρ \rho ρ is a stabilizer state if it is a convex mixture of pure stabilizer states
ρ = ∑ j p j ∣ ψ j ⟩ ⟨ ψ j ∣ , p j ≥ 0 , ∑ j p j = 1. \rho= \sum_j p_j |\psi_j\rangle\langle\psi_j|,\qquad p_j \ge0,\qquad\sum_j p_j = 1. ρ = j ∑ p j ∣ ψ j ⟩ ⟨ ψ j ∣ , p j ≥ 0 , j ∑ p j = 1.
A linear operator C : C 2 n i n → C 2 n o u t C:\mathbb{C}^{2^{n_{\rm in}}}\to\mathbb{C}^{2^{n_{\rm out}}} C : C 2 n in → C 2 n out is a stabilizer operator if there is a Pauli subgroup S ∣ C ⟩ ⟩ ⊆ P ( C 2 n o u t + n i n ) S_{|C\rangle\rangle}\subseteq\mathcal{P}(\mathbb{C}^{2^{n_{\rm out}+n_{\rm in}}}) S ∣ C ⟩⟩ ⊆ P ( C 2 n out + n in ) with n o u t + n i n n_{\rm out}+n_{\rm in} n out + n in independent generators and − I ∉ S ∣ C ⟩ ⟩ -I\notin S_{|C\rangle\rangle} − I ∈ / S ∣ C ⟩⟩ such that s ∣ C ⟩ ⟩ = ∣ C ⟩ ⟩ s|C\rangle\rangle=|C\rangle\rangle s ∣ C ⟩⟩ = ∣ C ⟩⟩ for every s ∈ S ∣ C ⟩ ⟩ s\in S_{|C\rangle\rangle} s ∈ S ∣ C ⟩⟩ .
Lemma III.9. For a linear operator A : C 2 n i n → C 2 n o u t A:\mathbb{C}^{2^{n_{\rm in}}}\to\mathbb{C}^{2^{n_{\rm out}}} A : C 2 n in → C 2 n out , put n = n i n + n o u t n=n_{\rm in}+n_{\rm out} n = n in + n out . The following are equivalent:
A = 0 A=0 A = 0 .
There is a Hermitian Pauli P ∈ P ( C 2 n ) P\in\mathcal{P}(\mathbb{C}^{2^n}) P ∈ P ( C 2 n ) such that P ∣ A ⟩ ⟩ = ∣ A ⟩ ⟩ P|A\rangle\rangle=|A\rangle\rangle P ∣ A ⟩⟩ = ∣ A ⟩⟩ and − P ∣ A ⟩ ⟩ = ∣ A ⟩ ⟩ -P|A\rangle\rangle=|A\rangle\rangle − P ∣ A ⟩⟩ = ∣ A ⟩⟩ .
P ∣ A ⟩ ⟩ = ∣ A ⟩ ⟩ P|A\rangle\rangle=|A\rangle\rangle P ∣ A ⟩⟩ = ∣ A ⟩⟩ for every P ∈ P ( C 2 n ) P\in\mathcal{P}(\mathbb{C}^{2^n}) P ∈ P ( C 2 n ) .
Proof. If A = 0 A=0 A = 0 , every Pauli fixes ∣ A ⟩ ⟩ |A\rangle\rangle ∣ A ⟩⟩ , proving (1) ⇒ \Rightarrow ⇒ (3). Taking P = I P=I P = I and − P = − I -P=-I − P = − I gives (3) ⇒ \Rightarrow ⇒ (2). Conversely, adding the two equalities in (2) gives 2 ∣ A ⟩ ⟩ = 0 2|A\rangle\rangle=0 2∣ A ⟩⟩ = 0 . Vectorization is injective, so A = 0 A=0 A = 0 , proving (2) ⇒ \Rightarrow ⇒ (1).
Definition III.10 (Stabilizer circuit). A stabilizer circuit C C C is specified by measurement outcome strings o = ( o 1 , … , o ℓ ) o=(o_1,\ldots,o_\ell) o = ( o 1 , … , o ℓ ) , with o r ∈ { 0 , 1 , … , m r } o_r\in\{0,1,\ldots,m_r\} o r ∈ { 0 , 1 , … , m r } , and a sequence of ℓ \ell ℓ operators indexed by these outcomes:
C = { C o 1 : r , … , C o 1 : ℓ } , C o 1 : r : Q r − 1 ⟶ A r ′ ⊗ Q r . (30) C=\{C_{o_{1:r}},\ldots,C_{o_{1:\ell}}\},\qquad C_{o_{1:r}}:\mathcal{Q}_{r-1}\longrightarrow A'_r\otimes\mathcal{Q}_r . \tag*{(30)} C = { C o 1 : r , … , C o 1 : ℓ } , C o 1 : r : Q r − 1 ⟶ A r ′ ⊗ Q r . (30)
Here Q r ≃ C 2 n r \mathcal{Q}_r\simeq\mathbb{C}^{2^{n_r}} Q r ≃ C 2 n r , o 1 : r = ( o 1 , … , o r ) o_{1:r}=(o_1,\ldots,o_r) o 1 : r = ( o 1 , … , o r ) , and { C o 1 : r } o r ≃ C o r ∣ o 1 : r − 1 \{C_{o_{1:r}}\}_{o_r}\simeq C_{o_r|o_{1:r-1}} { C o 1 : r } o r ≃ C o r ∣ o 1 : r − 1 denotes its r r r th component. Each component operator is composed of a ∣ 0 m r ⟩ A r ′ |0^{m_r}\rangle_{A'_r} ∣ 0 m r ⟩ A r ′ preparation, a history-dependent Clifford unitary U o 1 : r − 1 U_{o_{1:r-1}} U o 1 : r − 1 on A r ⊗ Q r − 1 A_r\otimes Q_{r-1} A r ⊗ Q r − 1 , a computational-basis projector ∣ o r ⟩ ⟨ o r ∣ |o_r\rangle\langle o_r| ∣ o r ⟩ ⟨ o r ∣ on A r ′ A'_r A r ′ , and a conditional Pauli correction P o r ∈ P ( Q r ) P_{o_r}\in\mathcal{P}(Q_r) P o r ∈ P ( Q r ) . The register identification A r ⊗ Q r − 1 = A r ′ ⊗ Q r A_r\otimes Q_{r-1}=A'_r\otimes Q_r A r ⊗ Q r − 1 = A r ′ ⊗ Q r requires
m r + n r − 1 = m r ′ + n r , m_r+n_{r-1}=m'_r+n_r, m r + n r − 1 = m r ′ + n r ,
and these dimensions may vary with r r r . Explicitly,
C o 1 : r = ( ∣ o r ⟩ ⟨ o r ∣ A r ′ ⊗ P o r ) U o 1 : r − 1 ( ∣ 0 m r ⟩ A r ⊗ I Q r − 1 ) . C_{o_{1:r}}=(|o_r\rangle\langle o_r|_{A'_r}\otimes P_{o_r})U_{o_{1:r-1}}(|0^{m_r}\rangle_{A_r}\otimes I_{Q_{r-1}}). C o 1 : r = ( ∣ o r ⟩ ⟨ o r ∣ A r ′ ⊗ P o r ) U o 1 : r − 1 ( ∣ 0 m r ⟩ A r ⊗ I Q r − 1 ) .
∣ 0 m r ⟩ A r ⟶ U o 1 : r − 1 ⟶ measurement Q r − 1 ⟶ U o 1 : r − 1 ⟶ P o r (31) \begin{aligned}
|0^{m_r}\rangle_{A_r}
\quad&\longrightarrow\quad
\boxed{U_{o_{1:r-1}}}
\quad\longrightarrow\quad
\boxed{\text{measurement}}\\
Q_{r-1}
\quad&\longrightarrow\quad
\boxed{\phantom{U_{o_{1:r-1}}}}
\quad\longrightarrow\quad
\boxed{P_{o_r}} \tag*{(31)}
\end{aligned} ∣ 0 m r ⟩ A r Q r − 1 ⟶ U o 1 : r − 1 ⟶ measurement ⟶ U o 1 : r − 1 ⟶ P o r (31)
The measured register A r ′ A'_r A r ′ is denoted as A r o u t A_r^{\rm out} A r out in the circuit map.
Definition III.12 (Realizable outcomes, detectors and observables). Let A r ′ A_r' A r ′ be the measured ancillary register of component r r r , with log 2 dim A r ′ = m r ′ \log_2 \dim A_r' = m_r' log 2 dim A r ′ = m r ′ , and put ℓ M = ∑ r ∈ Z + m r ′ \ell_M = \sum_{r \in\mathbb{Z}_+} m_r' ℓ M = ∑ r ∈ Z + m r ′ . We identify the complete outcome string with the binary row vector
o = [ o 1 , 1 , … , o 1 , m 1 ′ , … , o ℓ , 1 , … , o ℓ , m ℓ ′ ] ∈ F 2 ℓ M . o = [o_{1,1}, \ldots, o_{1,m_1'}, \ldots, o_{\ell,1}, \ldots, o_{\ell,m_\ell'}] \in\mathbb{F}_2^{\ell_M}. o = [ o 1 , 1 , … , o 1 , m 1 ′ , … , o ℓ , 1 , … , o ℓ , m ℓ ′ ] ∈ F 2 ℓ M . All dot products below are ordinary binary dot products, o ⋅ d = o d T o \cdot d = od^{\mathsf T} o ⋅ d = o d T . An outcome o o o is realizable if and only if I C o ≠ 0 \mathrm{IC}_o \ne0 IC o = 0 ; equivalently, it occurs with nonzero probability for some input state. The realizable outcome set is
Ω C ≔ { o ∈ F 2 ℓ M : I C o ≠ 0 } . (32) \Omega_C \coloneqq\{o \in\mathbb{F}_2^{\ell_M} : \mathrm{IC}_o \ne0\}. \tag*{(32)} Ω C : = { o ∈ F 2 ℓ M : IC o = 0 } . (32) It is nonempty because the ideal circuit is trace preserving. A vector d ∈ F 2 ℓ M d \in\mathbb{F}_2^{\ell_M} d ∈ F 2 ℓ M is a detector with parity a d ∈ F 2 a_d \in\mathbb{F}_2 a d ∈ F 2 if, for every outcome o o o ,
I C o ≠ 0 ⟹ o ⋅ d = a d . (33) \mathrm{IC}_o \ne0 \quad\Longrightarrow\quad o \cdot d = a_d. \tag*{(33)} IC o = 0 ⟹ o ⋅ d = a d . (33) Let P ∈ P ( Q 0 ) P \in\mathcal{P}(Q_0) P ∈ P ( Q 0 ) be a Hermitian input Pauli, including its sign, and let
Π P b ≔ I Q 0 + ( − 1 ) b P 2 , b ∈ { 0 , 1 } , \Pi_P^b \coloneqq\frac{I_{Q_0} + (-1)^b P}{2}, \qquad b \in\{0,1\}, Π P b : = 2 I Q 0 + ( − 1 ) b P , b ∈ { 0 , 1 } , be the projector onto its ( − 1 ) b (-1)^b ( − 1 ) b eigenspace. A vector v P ∈ F 2 ℓ M v_P \in\mathbb{F}_2^{\ell_M} v P ∈ F 2 ℓ M is an observable representative of P P P with parity a v P ∈ F 2 a_{v_P} \in\mathbb{F}_2 a v P ∈ F 2 if, for every o o o and b b b ,
I C o Π P b ≠ 0 ⟹ o ⋅ v P = a v P ⊕ b . (34) \mathrm{IC}_o\Pi_P^b \ne0 \quad\Longrightarrow\quad o \cdot v_P = a_{v_P} \oplus b. \tag*{(34)} IC o Π P b = 0 ⟹ o ⋅ v P = a v P ⊕ b . (34) We write
D C ≔ { d : d is a detector of C } , O C ( P ) ≔ { v P : v P represents P in C } (35) \begin{aligned}
D_C &\coloneqq\{d : d\text{ is a detector of }C\},\\
O_C(P) &\coloneqq\{v_P : v_P\text{ represents }P\text{ in }C\} \tag*{(35)}
\end{aligned} D C O C ( P ) : = { d : d is a detector of C } , : = { v P : v P represents P in C } (35) for the detecting set and the observable set associated with P P P . We call P P P measurable by C C C when O C ( P ) ≠ ∅ O_C(P) \ne\varnothing O C ( P ) = ∅ , and define the overall observable set by
O C ≔ ⋃ P ∈ P ( Q 0 ) O C ( P ) . O_C \coloneqq\bigcup_{P \in\mathcal{P}(Q_0)} O_C(P). O C : = P ∈ P ( Q 0 ) ⋃ O C ( P ) . Since Ω C ≠ ∅ \Omega_C \ne\varnothing Ω C = ∅ , each detector parity is unique. For fixed P P P , each observable representative also has a unique parity.
Proposition III.14 (Observable redundancy). Let P P P be a measurable Pauli of a stabilizer circuit C C C . For any two representatives v P , v P ′ ∈ O C ( P ) v_P,v_P' \in O_C(P) v P , v P ′ ∈ O C ( P ) with parities a v P , a v P ′ a_{v_P},a_{v_P'} a v P , a v P ′ , there is a detector d ∈ D C d \in D_C d ∈ D C with parity a d a_d a d such that
v P ′ = v P ⊕ d , a v P ′ = a v P ⊕ a d . v_P' = v_P \oplus d,\qquad a_{v_P'} = a_{v_P} \oplus a_d. v P ′ = v P ⊕ d , a v P ′ = a v P ⊕ a d . Proof. Set d = v P ⊕ v P ′ d = v_P \oplus v_P' d = v P ⊕ v P ′ and a d = a v P ⊕ a v P ′ a_d = a_{v_P} \oplus a_{v_P'} a d = a v P ⊕ a v P ′ . For any o ∈ Ω C o \in\Omega_C o ∈ Ω C , the identity Π P 0 + Π P 1 = I \Pi_P^0 + \Pi_P^1 = I Π P 0 + Π P 1 = I implies that I C o Π P b ≠ 0 \mathrm{IC}_o\Pi_P^b \ne0 IC o Π P b = 0 for at least one b ∈ { 0 , 1 } b \in\{0,1\} b ∈ { 0 , 1 } . The two representative conditions give
o ⋅ v P = a v P ⊕ b , o ⋅ v P ′ = a v P ′ ⊕ b . o \cdot v_P = a_{v_P} \oplus b,\qquad o \cdot v_P' = a_{v_P'} \oplus b. o ⋅ v P = a v P ⊕ b , o ⋅ v P ′ = a v P ′ ⊕ b . Adding these equalities modulo two yields o ⋅ d = a d o \cdot d = a_d o ⋅ d = a d . This holds for every realizable outcome, so d d d is a detector with the stated parity.
Any detector parity d 1 o 1 + d 2 o 2 + d 3 o 3 = a d d_1o_1+d_2o_2+d_3o_3=a_d d 1 o 1 + d 2 o 2 + d 3 o 3 = a d must hold on these three strings, which forces a d = 0 a_d=0 a d = 0 , d 1 = 0 d_1=0 d 1 = 0 , and d 2 = d 3 d_2=d_3 d 2 = d 3 . Thus the only nontrivial detector parity is
o 2 + o 3 = 0 ( m o d 2 ) . o_2+o_3=0\pmod{2}. o 2 + o 3 = 0 ( mod 2 ) .
The string 011 satisfies this parity but is not realizable, namely, o 1 = 0 o_1=0 o 1 = 0 requires the second measurement to be Z Z Z on ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ , so o 2 o_2 o 2 must be zero. The adaptive circuit therefore imposes the additional conditional restriction o 1 = 0 ⇒ o 2 = 0 o_1=0\Rightarrow o_2=0 o 1 = 0 ⇒ o 2 = 0 , which the detector parities alone do not capture. We leave characterization of detectors and observables for future work.
Remark III.16. Similarly, an observable representative v P v_P v P selects I v P = { i ∈ Z m : ( v P ) i = 1 } I_{v_P}=\{i\in\mathbb{Z}_m:(v_P)_i=1\} I v P = { i ∈ Z m : ( v P ) i = 1 } . If the input lies in the ( − 1 ) b (-1)^b ( − 1 ) b eigenspace of P P P , then
∑ i ∈ I v P o i = a v P ⊕ b ( m o d 2 ) . \sum_{i\in I_{v_P}}o_i=a_{v_P}\oplus b\pmod{2}. i ∈ I v P ∑ o i = a v P ⊕ b ( mod 2 ) .
Thus o ⋅ v P ⊕ a v P o\cdot v_P\oplus a_{v_P} o ⋅ v P ⊕ a v P gives the measured eigenvalue bit. By Theorem III.14, different representatives of the same observable give the same bit on every realisable outcome. For an arbitrary input state ρ \rho ρ , branches assigned the bit b b b annihilate the opposite eigenspace. Together with trace preservation, this implies that their total probability is Tr ( Π P b ρ ) \operatorname{Tr}(\Pi^b_P\rho) Tr ( Π P b ρ ) . A violation in the measured observable parity therefore is a logical measurement error.
Stabilizers of a stabilizer circuit
The stabilizers of a vectorized circuit describe which input Paulis are measured, which detectors are enforced, and which logical Pauli operators are preserved. We first make these interpretations precise and show how to obtain the stabilizers of a composed circuit by matching operators on its internal wires (see Theorem III.23). For non-adaptive circuits, a common set of relations then gives the detectors, observable representatives and preserved logical pairs (Theorem III.27). Finally, Theorems III.32 and III.35 give explicit binary formulas at levels 0 and 1, including conditioning on an input code. The honeycomb example (see Appendix B) illustrates how these formulas extract all three types of information from a measurement schedule.
Definition III.17 (Input and output stabilizers and preserved operators of a stabilizer circuit). For a nonzero stabilizer operator C : Q → Q ′ C:Q\to Q' C : Q → Q ′ with Q ≅ C 2 n Q\cong\mathbb{C}^{2^n} Q ≅ C 2 n and Q ′ ≅ C 2 n ′ Q'\cong\mathbb{C}^{2^{n'}} Q ′ ≅ C 2 n ′ , a Hermitian Pauli operator s ∈ P ( Q ) s\in\mathcal{P}(Q) s ∈ P ( Q ) such that C s = C Cs=C C s = C is an input stabilizer of C C C , illustrated as
s C = C . (36) s\ \boxed{C}=\boxed{C}. \tag*{(36)} s C = C . (36)
A Pauli operator s ′ ∈ P ( Q ′ ) s'\in\mathcal{P}(Q') s ′ ∈ P ( Q ′ ) such that s ′ C = C s'C=C s ′ C = C is an output stabilizer of C C C , illustrated as
C s ′ = C . (37) \boxed{C}\ s'=\boxed{C}. \tag*{(37)} C s ′ = C . (37)
In the vectorized representation, s ∈ P ( Q ) s\in\mathcal{P}(Q) s ∈ P ( Q ) is an input stabilizer of C C C if s Q ∣ C ⟩ ⟩ = ∣ C ⟩ ⟩ s_Q\lvert C\rangle\rangle=\lvert C\rangle\rangle s Q ∣ C ⟩⟩ = ∣ C ⟩⟩ and s ′ ∈ P ( Q ′ ) s'\in\mathcal{P}(Q') s ′ ∈ P ( Q ′ ) is an output stabilizer of C C C if s Q ′ ′ ∣ C ⟩ ⟩ = ∣ C ⟩ ⟩ s'_{Q'}\lvert C\rangle\rangle=\lvert C\rangle\rangle s Q ′ ′ ∣ C ⟩⟩ = ∣ C ⟩⟩ . A pair of Hermitian Paulis L ∈ P ( Q ) L\in\mathcal{P}(Q) L ∈ P ( Q ) and L ′ ∈ P ( Q ′ ) L'\in\mathcal{P}(Q') L ′ ∈ P ( Q ′ ) , including their signs, is a preserved operator pair if L ′ C L = C L'CL=C L ′ C L = C , or equivalently L ′ C = C L L'C=CL L ′ C = C L . In the vectorized representation, this is ( L ′ ⊗ L T ) ∣ C ⟩ ⟩ = ∣ C ⟩ ⟩ (L'\otimes L^T)\lvert C\rangle\rangle=\lvert C\rangle\rangle ( L ′ ⊗ L T ) ∣ C ⟩⟩ = ∣ C ⟩⟩ , illustrated as
L C L ′ = C . (38) L\ \boxed{C}\ L'= \boxed{C}. \tag*{(38)} L C L ′ = C . (38)
Input and output stabilizers are the special cases ( L , I ) (L,I) ( L , I ) and ( I , L ′ ) (I,L') ( I , L ′ ) , respectively. We call a preserved pair nontrivial when C L ∉ { C , − C } CL\notin\{C,-C\} C L ∈ / { C , − C } ; equivalently, L ′ C ∉ { C , − C } L'C\notin\{C,-C\} L ′ C ∈ / { C , − C } . Such a pair relates a nontrivial input logical Pauli to its output counterpart. This differs from a measurable input Pauli, whose value is inferred from the classical record as in Theorem III.12.
Remark III.18. A preserved pair transfers Pauli eigenvalues through the operator: if L ∣ ϕ ± ⟩ = ± ∣ ϕ ± ⟩ L\lvert\phi^\pm\rangle=\pm\lvert\phi^\pm\rangle L ∣ ϕ ± ⟩ = ± ∣ ϕ ± ⟩ , then
L ′ C ∣ ϕ ± ⟩ = C L ∣ ϕ ± ⟩ = ± C ∣ ϕ ± ⟩ . L'C\lvert\phi^\pm\rangle=CL\lvert\phi^\pm\rangle=\pm C\lvert\phi^\pm\rangle. L ′ C ∣ ϕ ± ⟩ = C L ∣ ϕ ± ⟩ = ± C ∣ ϕ ± ⟩ .
Thus every nonzero image C ∣ ϕ ± ⟩ C\lvert\phi^\pm\rangle C ∣ ϕ ± ⟩ retains the corresponding eigenvalue of L ′ L' L ′ . The signs of L , L ′ L,L' L , L ′ matter; for example, the gate X X X preserves the pair ( Z , − Z ) (Z,-Z) ( Z , − Z ) .
For C ≠ 0 C\ne0 C = 0 , the vector ∣ C ⟩ ⟩ \lvert C\rangle\rangle ∣ C ⟩⟩ is proportional to a pure stabilizer state on n + n ′ n+n' n + n ′ qubits. Its stabilizer group therefore has n + n ′ n+n' n + n ′ independent generators. We use the stacked notation
P ′ P ≡ P ′ ⊗ P T , \frac{P'}{P}\equiv P'\otimes P^T, P P ′ ≡ P ′ ⊗ P T ,
with the output Pauli above the input Pauli. By vectorization,
P ′ P ∣ C ⟩ ⟩ = ∣ C ⟩ ⟩ ⟺ P ′ C P = C . \frac{P'}{P}\lvert C\rangle\rangle=\lvert C\rangle\rangle
\quad\Longleftrightarrow\quad
P'CP=C. P P ′ ∣ C ⟩⟩ = ∣ C ⟩⟩ ⟺ P ′ C P = C .
The transpose is part of this notation, including its sign for Y Y Y factors.
Proposition III.19. For a nonzero stabilizer operator C : Q → Q ′ C:Q\to Q' C : Q → Q ′ , its input and output stabilizers form abelian Pauli subgroups S i n S_{\mathrm{in}} S in and S o u t S_{\mathrm{out}} S out , neither containing − I -I − I . Every preserved pair ( P , P ′ ) (P,P') ( P , P ′ ) satisfies
P ∈ N ( S i n ) , P ′ ∈ N ( S o u t ) , P\in\mathcal{N}(S_{\mathrm{in}}),\qquad P'\in\mathcal{N}(S_{\mathrm{out}}), P ∈ N ( S in ) , P ′ ∈ N ( S out ) , where the normalizers are taken in the corresponding Heisenberg–Weyl groups. Moreover, ( s P , s ′ P ′ ) (sP,s'P') ( s P , s ′ P ′ ) is a preserved pair for all s ∈ S i n s\in S_{\mathrm{in}} s ∈ S in and s ′ ∈ S o u t s'\in S_{\mathrm{out}} s ′ ∈ S out .
Proof. If C s = C Cs=C C s = C and C t = C Ct=C C t = C , then C s t = C Cst=C C s t = C . If s , t s,t s , t anticommute, we would also have C s t = − C t s = − C Cst=-Cts=-C C s t = − C t s = − C , contradicting C ≠ 0 C\ne0 C = 0 . Thus the input stabilizers commute, are closed under multiplication, and exclude − I -I − I . The output argument is identical.
For a preserved pair, P ′ C = C P P'C=CP P ′ C = C P . If an input stabilizer s s s anticommuted with P P P , then
C P = P ′ C s = C P s = − C s P = − C P , CP=P'Cs=CPs=-CsP=-CP, C P = P ′ C s = C P s = − C s P = − C P ,
which is impossible because P P P is invertible and C ≠ 0 C\ne0 C = 0 . Hence P P P commutes with every input stabilizer; similarly, P ′ P' P ′ commutes with every output stabilizer. Within the Pauli group, these centralizers equal the normalizers: conjugation can only change a Pauli’s sign, and a stabilizer group cannot contain both signs. Finally,
( s ′ P ′ ) C = s ′ C P = C P = C ( s P ) , (s'P')C=s'CP=CP=C(sP), ( s ′ P ′ ) C = s ′ C P = C P = C ( s P ) ,
so multiplying either endpoint by a stabilizer preserves the relation.
Corollary III.20 (Logical Pauli preservation). Let C : Q → Q ′ C:Q\to Q' C : Q → Q ′ be a nonzero stabilizer operator on n n n input and n ′ n' n ′ output qubits. Order its phase-free endpoint labels as input followed by output, and define
V C ≔ { [ p , p ′ ] : P ( p ′ ) C P ( p ) = ( − 1 ) η C for some η ∈ F 2 } , V_C\coloneqq\{[p,p'] : P(p')CP(p)=(-1)^{\eta}C\text{ for some }\eta\in\mathbb{F}_2\}, V C : = {[ p , p ′ ] : P ( p ′ ) C P ( p ) = ( − 1 ) η C for some η ∈ F 2 } , V i n ≔ { p : [ p , 0 ] ∈ V C } , V o u t ≔ { p ′ : [ 0 , p ′ ] ∈ V C } . V_{\mathrm{in}}\coloneqq\{p:[p,0]\in V_C\},\qquad V_{\mathrm{out}}\coloneqq\{p':[0,p']\in V_C\}. V in : = { p : [ p , 0 ] ∈ V C } , V out : = { p ′ : [ 0 , p ′ ] ∈ V C } . Here p ∈ F 2 2 n p\in\mathbb{F}_2^{2n} p ∈ F 2 2 n and p ′ ∈ F 2 2 n ′ p'\in\mathbb{F}_2^{2n'} p ′ ∈ F 2 2 n ′ ; the transpose in the stacked notation changes signs but not these labels. Write r = dim V i n r=\dim V_{\mathrm{in}} r = dim V in and r ′ = dim V o u t r'=\dim V_{\mathrm{out}} r ′ = dim V out . The logical Pauli spaces are
L i n ≔ V i n ⊥ s / V i n , L o u t ≔ V o u t ⊥ s / V o u t . L_{\mathrm{in}}\coloneqq V_{\mathrm{in}}^{\perp_s}/V_{\mathrm{in}},\qquad L_{\mathrm{out}}\coloneqq V_{\mathrm{out}}^{\perp_s}/V_{\mathrm{out}}. L in : = V in ⊥ s / V in , L out : = V out ⊥ s / V out . Their classes are [ p ] i n = p + V i n [p]_{\mathrm{in}}=p+V_{\mathrm{in}} [ p ] in = p + V in and [ p ′ ] o u t = p ′ + V o u t [p']_{\mathrm{out}}=p'+V_{\mathrm{out}} [ p ′ ] out = p ′ + V out , with the symplectic product inherited from representatives. Then n − r = n ′ − r ′ ≔ k n-r=n'-r'\coloneqq k n − r = n ′ − r ′ : = k , and C C C induces a well-defined linear bijection
Φ C : L i n → L o u t , [ p ] i n ↦ [ p ′ ] o u t when [ p , p ′ ] ∈ V C . \Phi_C:L_{\mathrm{in}}\to L_{\mathrm{out}},\qquad[p]_{\mathrm{in}}\mapsto[p']_{\mathrm{out}}\quad\text{when }[p,p']\in V_C. Φ C : L in → L out , [ p ] in ↦ [ p ′ ] out when [ p , p ′ ] ∈ V C . Both spaces have dimension 2 k 2k 2 k , and the bijection preserves the symplectic product:
⟨ Φ C ( [ p ] i n ) , Φ C ( [ q ] i n ) ⟩ s = ⟨ [ p ] i n , [ q ] i n ⟩ s . (39) \left\langle\Phi_C([p]_{\mathrm{in}}),\Phi_C([q]_{\mathrm{in}})\right\rangle_s
=\left\langle[p]_{\mathrm{in}},[q]_{\mathrm{in}}\right\rangle_s. \tag*{(39)} ⟨ Φ C ([ p ] in ) , Φ C ([ q ] in ) ⟩ s = ⟨ [ p ] in , [ q ] in ⟩ s . (39)
Proof. The n + n ′ n+n' n + n ′ independent stabilizers of ∣ C ⟩ ⟩ \lvert C\rangle\!\rangle ∣ C ⟩ ⟩ give dim V C = n + n ′ \dim V_C=n+n' dim V C = n + n ′ . Their commutativity implies
⟨ p , q ⟩ s + ⟨ p ′ , q ′ ⟩ s = 0 ( [ p , p ′ ] , [ q , q ′ ] ∈ V C ) . (40) \langle p,q\rangle_s+\langle p',q'\rangle_s=0
\qquad([p,p'],[q,q']\in V_C). \tag*{(40)} ⟨ p , q ⟩ s + ⟨ p ′ , q ′ ⟩ s = 0 ([ p , p ′ ] , [ q , q ′ ] ∈ V C ) . (40)
In particular, V i n V_{\mathrm{in}} V in and V o u t V_{\mathrm{out}} V out are isotropic. Let π i n ( [ p , p ′ ] ) = p \pi_{\mathrm{in}}([p,p'])=p π in ([ p , p ′ ]) = p and π o u t ( [ p , p ′ ] ) = p ′ \pi_{\mathrm{out}}([p,p'])=p' π out ([ p , p ′ ]) = p ′ . Their kernels have dimensions r ′ r' r ′ and r r r , respectively. Every projected input label commutes with V i n V_{\mathrm{in}} V in , and every projected output label commutes with V o u t V_{\mathrm{out}} V out . Rank–nullity and nondegeneracy of the ambient symplectic forms therefore give
n + n ′ − r ′ ≤ 2 n − r , (41) n+n'-r'\le2n-r, \tag*{(41)} n + n ′ − r ′ ≤ 2 n − r , (41)
n + n ′ − r ≤ 2 n ′ − r ′ . (42) n+n'-r\le2n'-r'. \tag*{(42)} n + n ′ − r ≤ 2 n ′ − r ′ . (42)
Together these imply n − r = n ′ − r ′ = k n-r=n'-r'=k n − r = n ′ − r ′ = k , so both inequalities are equalities. Hence
im π i n = V i n ⊥ s , im π o u t = V o u t ⊥ s , \operatorname{im}\pi_{\mathrm{in}}=V_{\mathrm{in}}^{\perp_s},\qquad
\operatorname{im}\pi_{\mathrm{out}}=V_{\mathrm{out}}^{\perp_s}, im π in = V in ⊥ s , im π out = V out ⊥ s ,
and both logical quotients have dimension 2 k 2k 2 k .
For any input logical representative p p p , the first equality supplies an output partner p ′ p' p ′ . If [ p , p ′ ] , [ q , q ′ ] ∈ V C [p,p'],[q,q']\in V_C [ p , p ′ ] , [ q , q ′ ] ∈ V C and p + q ∈ V i n p+q\in V_{\mathrm{in}} p + q ∈ V in , then
[ 0 , p ′ + q ′ ] = [ p , p ′ ] + [ q , q ′ ] + [ p + q , 0 ] ∈ V C . [0,p'+q']=[p,p']+[q,q']+[p+q,0]\in V_C. [ 0 , p ′ + q ′ ] = [ p , p ′ ] + [ q , q ′ ] + [ p + q , 0 ] ∈ V C .
Thus p ′ + q ′ ∈ V o u t p'+q'\in V_{\mathrm{out}} p ′ + q ′ ∈ V out , proving that Φ C \Phi_C Φ C is independent of all choices of representatives. Linearity follows by adding pairs in V C V_C V C ; the second projection equality gives surjectivity, hence bijectivity.
The quotient symplectic forms are well-defined because adding a stabilizer label to a representative does not change its pairing with any commuting label. They are nondegenerate since ( V i n ⊥ s ) ⊥ s = V i n (V_{\mathrm{in}}^{\perp_s})^{\perp_s}=V_{\mathrm{in}} ( V in ⊥ s ) ⊥ s = V in , and similarly at the output. Finally, (41) gives ⟨ p , q ⟩ s = ⟨ p ′ , q ′ ⟩ s \langle p,q\rangle_s=\langle p',q'\rangle_s ⟨ p , q ⟩ s = ⟨ p ′ , q ′ ⟩ s , proving (40).
Remark III.21 (Logical action of a stabilizer circuit). The bijection Φ C \Phi_C Φ C is intrinsic to C C C , whereas its matrix depends on the input and output logical Pauli bases. For ordered symplectic bases B i n = ( [ g i i n ] i n ) i = 1 2 k B_{\mathrm{in}}=([g_i^{\mathrm{in}}]_{\mathrm{in}})_{i=1}^{2k} B in = ([ g i in ] in ) i = 1 2 k and B o u t = ( [ g i o u t ] o u t ) i = 1 2 k B_{\mathrm{out}}=([g_i^{\mathrm{out}}]_{\mathrm{out}})_{i=1}^{2k} B out = ([ g i out ] out ) i = 1 2 k , our row-vector convention defines F l o g F_{\mathrm{log}} F log by
Φ C ( [ g j i n ] i n ) = ∑ j = 1 2 k ( F l o g ) i j [ g j o u t ] o u t . \Phi_C([g_j^{\mathrm{in}}]_{\mathrm{in}})
=\sum_{j=1}^{2k}(F_{\mathrm{log}})_{ij}[g_j^{\mathrm{out}}]_{\mathrm{out}}. Φ C ([ g j in ] in ) = j = 1 ∑ 2 k ( F log ) ij [ g j out ] out . This symplectic matrix specifies the phase-free logical action. The signs of the preserved pairs additionally determine the signed logical Pauli action.
For example, C = H C=H C = H exchanges the labels x , z x,z x , z of X , Z X,Z X , Z . Using ( x , z ) (x,z) ( x , z ) at both boundaries gives
F l o g = ( 0 1 1 0 ) . F_{\mathrm{log}}=
\begin{pmatrix}
0&1\\
1&0
\end{pmatrix}. F log = ( 0 1 1 0 ) . Keeping the input basis but choosing ( z , x ) (z,x) ( z , x ) at the output gives F l o g = I 2 F_{\mathrm{log}}=I_2 F log = I 2 . This is identity relative to the new bases; the physical gate and Φ H \Phi_H Φ H are unchanged.
Compatible Clifford encoders U i n U_{\mathrm{in}} U in and U o u t U_{\mathrm{out}} U out can fix these frames by mapping ∣ 0 r ⟩ ⊗ Q L \lvert0^{r}\rangle\otimes Q_L ∣ 0 r ⟩ ⊗ Q L and ∣ 0 r ′ ⟩ ⊗ Q L \lvert0^{r'}\rangle\otimes Q_L ∣ 0 r ′ ⟩ ⊗ Q L onto the input and output stabilizer codes. The logical operator is then
C l o g = ( ⟨ 0 r ′ ∣ ⊗ I ) U o u t † C U i n ( ∣ 0 r ⟩ ⊗ I ) . C_{\mathrm{log}}=(\langle0^{r'}|\otimes I)U_{\mathrm{out}}^\dagger C U_{\mathrm{in}}(|0^r\rangle\otimes I). C log = (⟨ 0 r ′ ∣ ⊗ I ) U out † C U in ( ∣ 0 r ⟩ ⊗ I ) . It is proportional to a Clifford unitary on k k k qubits, as follows from the bipartite stabilizer normal form [30 Sec. 2.4] . The boundary Cliffords may serve only to define the logical frames; they need not be applied physically [16 ] .
A circuit component may itself be a sequence of simpler stabilizer operations. We now show how its stabilizers follow from those of its components, so the same construction can be applied at any level of abstraction.
Definition III.22 (Parallel and sequential composition). *For stabilizer circuit operators C o t , j : Q t , j → A t , j ⊗ C_{o_t,j}:Q_{t,j}\to A_{t,j}\otimes C o t , j : Q t , j → A t , j ⊗
Q t , j ′ Q'_{t,j} Q t , j ′ , j ∈ Z q + j \in\mathbb{Z}_q^+ j ∈ Z q + , parallel composition is their tensor product:
∣ C o p a r ⟩ ⟩ = ∣ C o , q ⟩ ⟩ ⊗ ⋯ ⊗ ∣ C o , 1 ⟩ ⟩ \lvert C_o^{\mathrm{par}}\rangle\rangle= \lvert C_{o,q}\rangle\rangle\otimes\cdots\otimes\lvert C_{o,1}\rangle\rangle ∣ C o par ⟩⟩ = ∣ C o , q ⟩⟩ ⊗ ⋯ ⊗ ∣ C o , 1 ⟩⟩
For C o r : Q r − 1 → A r ⊗ Q r C_{o_r}: Q_{r-1} \to A_r \otimes Q_r C o r : Q r − 1 → A r ⊗ Q r , r ∈ Z ℓ + r \in\mathbb{Z}_\ell^+ r ∈ Z ℓ + , sequential composition connects each output data register to the next input. Identities on retained records are understood in the operator product C o = C o ℓ ⋯ C o 1 C_o=C_{o_\ell}\cdots C_{o_1} C o = C o ℓ ⋯ C o 1 . Equivalently,
∣ C o ⟩ ⟩ = I ( ∣ C o ℓ ⟩ ⟩ ⊗ ⋯ ⊗ ∣ C o 1 ⟩ ⟩ ) = C o 1 C o 2 C o 2 C o ℓ ⋯ C o ℓ , \begin{aligned}
\lvert C_o\rangle\rangle= \mathbf{I}(\lvert C_{o_\ell}\rangle\rangle\otimes\cdots\otimes\lvert C_{o_1}\rangle\rangle) \\
&= \boxed{C_{o_1}\phantom{C_{o_2}}}\boxed{C_{o_2}\phantom{C_{o_\ell}}}\cdots\boxed{C_{o_\ell}},
\end{aligned} ∣ C o ⟩⟩ = I (∣ C o ℓ ⟩⟩ ⊗ ⋯ ⊗ ∣ C o 1 ⟩⟩) = C o 1 C o 2 C o 2 C o ℓ ⋯ C o ℓ ,
where
I = I A 1 : ℓ ⊗ I Q ℓ ⊗ ( ⨂ j = ℓ − 1 1 ⟨ ⟨ I Q j ∣ ) ⊗ I Q 0 . \mathbf{I}=\mathbf{I}_{A_{1:\ell}}\otimes\mathbf{I}_{Q_\ell}\otimes\left(\bigotimes_{j=\ell-1}^{1}\langle\langle\mathbf{I}_{Q_j}\rvert\right)\otimes\mathbf{I}_{Q_0}. I = I A 1 : ℓ ⊗ I Q ℓ ⊗ j = ℓ − 1 ⨂ 1 ⟨⟨ I Q j ∣ ⊗ I Q 0 .
Theorem III.23 (Stabilizer composition rule). Let C o r : Q r − 1 → A r ⊗ Q r C_{o_r}:Q_{r-1}\to A_r\otimes Q_r C o r : Q r − 1 → A r ⊗ Q r be nonzero stabilizer operators, with n r − 1 n_{r-1} n r − 1 , n r n_r n r , n A r n_{A_r} n A r qubits in the respective registers. Define
∣ C o p a r ⟩ ⟩ = ∣ C o ⟩ ⟩ ⊗ ⋯ ⊗ ∣ C o 1 ⟩ ⟩ , ∣ C o s e q ⟩ ⟩ = I ∣ C o p a r ⟩ ⟩ . \lvert C_o^{\mathrm{par}}\rangle\rangle=\lvert C_o\rangle\rangle\otimes\cdots\otimes\lvert C_{o_1}\rangle\rangle,\qquad
\lvert C_o^{\mathrm{seq}}\rangle\rangle=\mathbf{I}\lvert C_o^{\mathrm{par}}\rangle\rangle. ∣ C o par ⟩⟩ = ∣ C o ⟩⟩ ⊗ ⋯ ⊗ ∣ C o 1 ⟩⟩ , ∣ C o seq ⟩⟩ = I ∣ C o par ⟩⟩ . The parallel stabilizer group is
S ∣ C o p a r ⟩ ⟩ = S ∣ C o ℓ ⟩ ⟩ ⊗ ⋯ ⊗ S ∣ C o 1 ⟩ ⟩ . \mathcal{S}_{\lvert C_o^{\mathrm{par}}\rangle\rangle}=\mathcal{S}_{\lvert C_{o_\ell}\rangle\rangle}\otimes\cdots\otimes\mathcal{S}_{\lvert C_{o_1}\rangle\rangle}. S ∣ C o par ⟩⟩ = S ∣ C o ℓ ⟩⟩ ⊗ ⋯ ⊗ S ∣ C o 1 ⟩⟩ . If C o s e q ≠ 0 C_o^{\mathrm{seq}}\ne0 C o seq = 0 , its full stabilizer group consists of the operators
( − 1 ) ∑ j = 1 ℓ − 1 λ j ( R ℓ ⊗ ⋯ ⊗ R 1 ) ⊗ P ℓ o u t P 1 i n , (-1)^{\sum_{j=1}^{\ell-1}\lambda_j}(R_\ell\otimes\cdots\otimes R_1)\otimes P_\ell^{\mathrm{out}}P_1^{\mathrm{in}}, ( − 1 ) ∑ j = 1 ℓ − 1 λ j ( R ℓ ⊗ ⋯ ⊗ R 1 ) ⊗ P ℓ out P 1 in , obtained from local stabilizers
R r ⊗ P r o u t P r i n ∈ S ∣ C o r ⟩ ⟩ , r ∈ Z ℓ + , R_r\otimes\frac{P_r^{\mathrm{out}}}{P_r^{\mathrm{in}}}\in\mathcal{S}_{\lvert C_{o_r}\rangle\rangle},\qquad r\in\mathbb{Z}_\ell^+, R r ⊗ P r in P r out ∈ S ∣ C o r ⟩⟩ , r ∈ Z ℓ + , whose internal factors match up to sign:
P j o u t P j + 1 i n = ( − 1 ) λ j I Q j , λ j ∈ F 2 , j ∈ Z ℓ − 1 + . P_j^{\mathrm{out}}P_{j+1}^{\mathrm{in}}=(-1)^{\lambda_j}\mathbf{I}_{Q_j},\qquad\lambda_j\in\mathbb{F}_2,\qquad j\in\mathbb{Z}_{\ell-1}^+. P j out P j + 1 in = ( − 1 ) λ j I Q j , λ j ∈ F 2 , j ∈ Z ℓ − 1 + . Here R r R_r R r , P r i n P_r^{\mathrm{in}} P r in , P r o u t P_r^{\mathrm{out}} P r out are Hermitian Paulis on A r A_r A r , Q r − 1 Q_{r-1} Q r − 1 , Q r Q_r Q r , respectively.
Remark III.24. This is the operator-matching construction used in stabilizer tensor networks [41 , 42 ] . We give the proof with the transposes and signs required by our circuit convention.
Proof. Set ∣ Ψ ⟩ = ∣ C o p a r ⟩ ⟩ \lvert\Psi\rangle=\lvert C_o^{\mathrm{par}}\rangle\rangle ∣ Ψ ⟩ = ∣ C o par ⟩⟩ , N r = n A r + n r − 1 + n r N_r=n_{A_r}+n_{r-1}+n_r N r = n A r + n r − 1 + n r , and N = ∑ r N r N=\sum_rN_r N = ∑ r N r . The stabilizer generators of each S ∣ C o r ⟩ ⟩ \mathcal{S}_{\lvert C_{o_r}\rangle\rangle} S ∣ C o r ⟩⟩ act on disjoint tensor factors, so together they give N N N independent stabilizers. Thus S ≡ S ∣ Ψ ⟩ = ⨂ r = ℓ 1 S ∣ C o r ⟩ ⟩ \mathcal{S}\equiv\mathcal{S}_{\lvert\Psi\rangle}=\bigotimes_{r=\ell}^{1}\mathcal{S}_{\lvert C_{o_r}\rangle\rangle} S ≡ S ∣ Ψ ⟩ = ⨂ r = ℓ 1 S ∣ C o r ⟩⟩ , proving the parallel rule, and
∣ Ψ ⟩ ⟨ Ψ ∣ = ν 2 N ∑ s ∈ S s , ν = ⟨ Ψ ∣ Ψ ⟩ . (43) \lvert\Psi\rangle\langle\Psi\rvert=\frac{\nu}{2^N}\sum_{s\in\mathcal{S}}s,\qquad\nu=\langle\Psi\vert\Psi\rangle. \tag*{(43)} ∣ Ψ ⟩ ⟨ Ψ ∣ = 2 N ν s ∈ S ∑ s , ν = ⟨ Ψ∣Ψ ⟩ . (43)
Now let ∣ ψ ⟩ = I ∣ Ψ ⟩ ≠ 0 \lvert\psi\rangle=\mathbf{I}\lvert\Psi\rangle\ne0 ∣ ψ ⟩ = I ∣ Ψ ⟩ = 0 . Write N ′ = ∑ j = 1 ℓ − 1 n j N'=\sum_{j=1}^{\ell-1}n_j N ′ = ∑ j = 1 ℓ − 1 n j and N ′ ′ = N − 2 N ′ N''=N-2N' N ′′ = N − 2 N ′ . For s = s ℓ ⊗ ⋯ ⊗ s 1 ∈ S s=s_\ell\otimes\cdots\otimes s_1\in\mathcal{S} s = s ℓ ⊗ ⋯ ⊗ s 1 ∈ S , let
B ( s ) = ( R ℓ ⊗ ⋯ ⊗ R 1 ) ⊗ P ℓ o u t P 1 i n . B(s)=(R_\ell\otimes\cdots\otimes R_1)\otimes P_\ell^{\mathrm{out}}P_1^{\mathrm{in}}. B ( s ) = ( R ℓ ⊗ ⋯ ⊗ R 1 ) ⊗ P ℓ out P 1 in .
Using Theorem II.6 we get,
I s I † = B ( s ) ∏ j = 1 ℓ − 1 Tr ( P j o u t P j + 1 i n ) . (44) \mathbf{I}s\mathbf{I}^{\dagger}=B(s)\prod_{j=1}^{\ell-1}\operatorname{Tr}(P_j^{\mathrm{out}}P_{j+1}^{\mathrm{in}}). \tag*{(44)} I s I † = B ( s ) j = 1 ∏ ℓ − 1 Tr ( P j out P j + 1 in ) . (44)
Pauli trace orthogonality makes this nonzero exactly when
P j o u t P j + 1 i n = ( − 1 ) λ j I Q j ( j ∈ Z ℓ − 1 + ) . (45) P_j^{\mathrm{out}}P_{j+1}^{\mathrm{in}}=(-1)^{\lambda_j}\mathbf{I}_{Q_j}\qquad(j\in\mathbb{Z}_{\ell-1}^+). \tag*{(45)} P j out P j + 1 in = ( − 1 ) λ j I Q j ( j ∈ Z ℓ − 1 + ) . (45)
Let T T T be the set of matching elements and put
θ ( t ) = ( − 1 ) ∑ j λ j B ( t ) = 2 − N ′ I t I † . \theta(t)=(-1)^{\sum_j\lambda_j}B(t)=2^{-N'}\mathbf{I}\mathbf{t}\mathbf{I}^{\dagger}. θ ( t ) = ( − 1 ) ∑ j λ j B ( t ) = 2 − N ′ It I † .
This definition is independent of how signs are distributed among the local factors. The matching condition also gives
⟨ ⟨ I Q j ∣ ( P j o u t ⊗ ( P j + 1 i n ) T ) = ( − 1 ) λ j ⟨ ⟨ I Q j ∣ . \langle\langle\mathbf{I}_{Q_j}\rvert(P_j^{\mathrm{out}}\otimes(P_{j+1}^{\mathrm{in}})^{\mathsf{T}})=(-1)^{\lambda_j}\langle\langle\mathbf{I}_{Q_j}\rvert. ⟨⟨ I Q j ∣ ( P j out ⊗ ( P j + 1 in ) T ) = ( − 1 ) λ j ⟨⟨ I Q j ∣ .
Applying it on every internal wire yields
I t = θ ( t ) I , θ ( t ) ∣ ψ ⟩ = ∣ ψ ⟩ . (46) \mathbf{I}t=\theta(t)\mathbf{I},\qquad\theta(t)\lvert\psi\rangle=\lvert\psi\rangle. \tag*{(46)} I t = θ ( t ) I , θ ( t ) ∣ ψ ⟩ = ∣ ψ ⟩ . (46)
Thus every operator in G = { θ ( t ) : t ∈ T } G=\{\theta(t):t\in T\} G = { θ ( t ) : t ∈ T } is a stabilizer of the contracted vector.
To prove completeness, contract (43) as I ∣ Ψ ⟩ ⟨ Ψ ∣ I † \mathbf{I}\lvert\Psi\rangle\langle\Psi\rvert\mathbf{I}^{\dagger} I ∣ Ψ ⟩ ⟨ Ψ ∣ I † and normalize to obtain
ρ = ∣ ψ ⟩ ⟨ ψ ∣ ⟨ ψ ∣ ψ ⟩ = 1 2 N ′ ′ ⟨ ψ ∣ ψ ⟩ ∑ t ∈ T θ ( t ) . (47) \rho=\frac{\lvert\psi\rangle\langle\psi\rvert}{\langle\psi\vert\psi\rangle}
=\frac{1}{2^{N''}\langle\psi\vert\psi\rangle}\sum_{t\in T}\theta(t). \tag*{(47)} ρ = ⟨ ψ ∣ ψ ⟩ ∣ ψ ⟩ ⟨ ψ ∣ = 2 N ′′ ⟨ ψ ∣ ψ ⟩ 1 t ∈ T ∑ θ ( t ) . (47)
After collecting repeated operators, write ρ = ∑ g ∈ G c g g \rho=\sum_{g\in G}c_gg ρ = ∑ g ∈ G c g g . If a Hermitian Pauli h h h stabilizes ∣ ψ ⟩ \lvert\psi\rangle ∣ ψ ⟩ , then Tr ( h ρ ) = 1 \operatorname{Tr}(h\rho)=1 Tr ( h ρ ) = 1 . If h ∉ G h\notin G h ∈ / G , neither does − h -h − h , because all elements of G G G fix the same nonzero vector. Pauli trace orthogonality would then give Tr ( h ρ ) = 0 \operatorname{Tr}(h\rho)=0 Tr ( h ρ ) = 0 . Hence G G G contains every Pauli stabilizer. Such stabilizers commute and form a group: anticommutation would force ∣ ψ ⟩ = − ∣ ψ ⟩ \lvert\psi\rangle=-\lvert\psi\rangle ∣ ψ ⟩ = − ∣ ψ ⟩ , and products also fix ∣ ψ ⟩ \lvert\psi\rangle ∣ ψ ⟩ .
For each g ∈ G g\in G g ∈ G , orthogonality now gives 1 = Tr ( g ρ ) = 2 N ′ ′ c g 1=\operatorname{Tr}(g\rho)=2^{N''}c_g 1 = Tr ( g ρ ) = 2 N ′′ c g . Therefore
ρ = 2 − N ′ ′ ∑ g ∈ G g , 1 = Tr ( ρ 2 ) = 2 − N ′ ′ ∣ G ∣ . \rho=2^{-N''}\sum_{g\in G}g,\qquad1=\operatorname{Tr}(\rho^2)=2^{-N''}|G|. ρ = 2 − N ′′ g ∈ G ∑ g , 1 = Tr ( ρ 2 ) = 2 − N ′′ ∣ G ∣.
Thus ∣ G ∣ = 2 N ′ ′ |G|=2^{N''} ∣ G ∣ = 2 N ′′ , so the contracted vector is proportional to a pure stabilizer state with precisely the claimed group.
The composition rule determines the stabilizers of each branch. For a non-adaptive circuit, we can collect the branch-dependent signs into the retained measurement record and work with one common relation space. Its input, output and record support then distinguishes observables, output checks and detectors. The following proposition establishes this formally.
Definition III.25 (Common stabilizer relations). Let C \mathbf{C} C be a non-adaptive stabilizer with branch operators
C o = ∣ o ⟩ A ⊗ K o : Q ⟶ A ⊗ Q ′ , Ω C = { o : K o ≠ 0 } , C_o = \lvert o\rangle_A \otimes K_o : Q \longrightarrow A \otimes Q',
\qquad\Omega_C = \{o : K_o \ne0\}, C o = ∣ o ⟩ A ⊗ K o : Q ⟶ A ⊗ Q ′ , Ω C = { o : K o = 0 } , where Q ≅ C 2 n Q \cong\mathbb{C}^{2^n} Q ≅ C 2 n , Q ′ ≅ C 2 n ′ Q' \cong\mathbb{C}^{2^{n'}} Q ′ ≅ C 2 n ′ , and A ≅ ( C 2 ) ⊗ ℓ M A \cong(\mathbb{C}^2)^{\otimes\ell_M} A ≅ ( C 2 ) ⊗ ℓ M . Define the common stabilizer group
G C ≔ ⋂ o ∈ Ω C S ∣ C o ⟩ ⟩ . (48) G_C \coloneqq\bigcap_{o \in\Omega_C} S_{\lvert C_o\rangle\rangle}. \tag*{(48)} G C : = o ∈ Ω C ⋂ S ∣ C o ⟩⟩ . (48) For b ∈ F 2 ℓ M b \in\mathbb{F}_2^{\ell_M} b ∈ F 2 ℓ M , p ∈ F 2 2 n p \in\mathbb{F}_2^{2n} p ∈ F 2 2 n , and p ′ ∈ F 2 2 n ′ p' \in\mathbb{F}_2^{2n'} p ′ ∈ F 2 2 n ′ , put Z A b = P ( 0 , b ) A Z_A^b = P(0,b)_A Z A b = P ( 0 , b ) A . The common relation space W C W_C W C is defined to contain triples ω = [ b , p , p ′ ] \omega= [b,p,p'] ω = [ b , p , p ′ ] admitting a unique [61 ] c ω ∈ F 2 c_\omega\in\mathbb{F}_2 c ω ∈ F 2 such that
g ( ω ) ≔ ( − 1 ) c ω Z A b ⊗ P ( p ′ ) P ( p ) ∈ G C . (49) g(\omega) \coloneqq(-1)^{c_\omega} Z_A^b \otimes\frac{P(p')}{P(p)} \in G_C. \tag*{(49)} g ( ω ) : = ( − 1 ) c ω Z A b ⊗ P ( p ) P ( p ′ ) ∈ G C . (49) Define
W d e t ≔ { [ b , 0 , 0 ] ∈ W C } , W o b s ≔ { [ b , p , 0 ] ∈ W C } , W_{\mathrm{det}} \coloneqq\{[b,0,0] \in W_C\},
\qquad
W_{\mathrm{obs}} \coloneqq\{[b,p,0] \in W_C\}, W det : = {[ b , 0 , 0 ] ∈ W C } , W obs : = {[ b , p , 0 ] ∈ W C } , W o u t ≔ { [ b , 0 , p ′ ] ∈ W C } . (50) W_{\mathrm{out}} \coloneqq\{[b,0,p'] \in W_C\}. \tag*{(50)} W out : = {[ b , 0 , p ′ ] ∈ W C } . (50) These subspaces satisfy W o b s ∩ W o u t = W d e t W_{\mathrm{obs}} \cap W_{\mathrm{out}} = W_{\mathrm{det}} W obs ∩ W out = W det . We define the preserved-pair quotient space as
L P O P ≔ W C / ( W o b s + W o u t ) . (51) \mathcal{L}_{\mathrm{POP}} \coloneqq W_C/(W_{\mathrm{obs}} + W_{\mathrm{out}}). \tag*{(51)} L POP : = W C / ( W obs + W out ) . (51)
Proposition III.26 (Detectors, observables, and output checks). For the circuit of Theorem III.25, every ω = [ b , p , p ′ ] ∈ W C \omega= [b,p,p'] \in W_C ω = [ b , p , p ′ ] ∈ W C satisfies
( Z A b ⊗ P ( p ′ ) ) C o = ( − 1 ) c ω C o P ( p ) ( ∀ o ) . (52) (Z_A^b \otimes P(p'))C_o = (-1)^{c_\omega} C_oP(p)
\qquad(\forall o). \tag*{(52)} ( Z A b ⊗ P ( p ′ )) C o = ( − 1 ) c ω C o P ( p ) ( ∀ o ) . (52) The detectors and observable representatives are
D C = { b : [ b , 0 , 0 ] ∈ W C } , O C ( P ( p ) ) = { b : [ b , p , 0 ] ∈ W C } , (53) D_C = \{b : [b,0,0] \in W_C\},
\qquad
O_C(P(p)) = \{b : [b,p,0] \in W_C\}, \tag*{(53)} D C = { b : [ b , 0 , 0 ] ∈ W C } , O C ( P ( p )) = { b : [ b , p , 0 ] ∈ W C } , (53) with parities c [ b , 0 , 0 ] c_{[b,0,0]} c [ b , 0 , 0 ] and c [ b , p , 0 ] c_{[b,p,0]} c [ b , p , 0 ] , respectively. Moreover, the realizable outcome set is given by
Ω C = { o ∈ F 2 ℓ M : o ⋅ d = c [ d , 0 , 0 ] for every d ∈ D C } . (54) \Omega_C = \{o \in\mathbb{F}_2^{\ell_M} : o \cdot d = c_{[d,0,0]} \text{ for every } d \in D_C\}. \tag*{(54)} Ω C = { o ∈ F 2 ℓ M : o ⋅ d = c [ d , 0 , 0 ] for every d ∈ D C } . (54) Proof. Equation (52) follows from Theorem II.6. For p = p ′ = 0 p = p' = 0 p = p ′ = 0 , this is exactly the detector condition. For p ′ = 0 p' = 0 p ′ = 0 , it is equivalent to
C o Π P ( p ) 1 + c ω + o ⋅ b = 0 ( ∀ o ) , C_o \Pi_{P(p)}^{1+c_\omega+o\cdot b} = 0
\qquad(\forall o), C o Π P ( p ) 1 + c ω + o ⋅ b = 0 ( ∀ o ) , which is the observable condition.
Non-adaptivity by Theorem III.25 gives a Clifford isometry V V V , formed from the fixed gates and preparations, such that C o = ( ∣ o ⟩ ⟨ o ∣ A ⊗ I ) V C_o = (\lvert o\rangle\langle o\rvert_A \otimes I)V C o = (∣ o ⟩ ⟨ o ∣ A ⊗ I ) V . Since ∑ o ∣ o ⟩ ⟨ o ∣ A = I A \sum_o \lvert o\rangle\langle o\rvert_A = I_A ∑ o ∣ o ⟩ ⟨ o ∣ A = I A , we have B = ∑ o C o = V B = \sum_o C_o = V B = ∑ o C o = V . Thus ∣ ψ ⟩ = 2 − n / 2 ∣ B ⟩ ⟩ \lvert\psi\rangle= 2^{-n/2}\lvert B\rangle\rangle ∣ ψ ⟩ = 2 − n /2 ∣ B ⟩⟩ is a normalized stabilizer state.
By orthogonality of the records, ( − 1 ) a Z A d ⊗ I (-1)^a Z_A^d \otimes I ( − 1 ) a Z A d ⊗ I stabilizes ∣ ψ ⟩ \lvert\psi\rangle ∣ ψ ⟩ exactly when d d d is a detector of parity a a a . For a non-detector, Z A d ⊗ I Z_A^d \otimes I Z A d ⊗ I anticommutes with some stabilizer of ∣ ψ ⟩ \lvert\psi\rangle ∣ ψ ⟩ and therefore has zero expectation. Expanding the record projector gives
2 − n Tr ( C o † C o ) = ⟨ ψ ∣ ( ∣ o ⟩ ⟨ o ∣ A ⊗ I ) ∣ ψ ⟩ = 2 − ℓ M ∑ d ∈ F 2 ℓ M ( − 1 ) o ⋅ d ⟨ ψ ∣ ( Z A d ⊗ I ) ∣ ψ ⟩ = 2 − ℓ M ∑ d ∈ D C ( − 1 ) c [ d , 0 , 0 ] + o ⋅ d . 2^{-n}\operatorname{Tr}(C_o^\dagger C_o)
= \langle\psi\lvert(\lvert o\rangle\langle o\rvert_A \otimes I)\rvert\psi\rangle
= 2^{-\ell_M}\sum_{d\in\mathbb{F}_2^{\ell_M}}(-1)^{o\cdot d}\langle\psi\lvert(Z_A^d\otimes I)\rvert\psi\rangle
= 2^{-\ell_M}\sum_{d\in D_C}(-1)^{c_{[d,0,0]}+o\cdot d}. 2 − n Tr ( C o † C o ) = ⟨ ψ ∣(∣ o ⟩ ⟨ o ∣ A ⊗ I )∣ ψ ⟩ = 2 − ℓ M d ∈ F 2 ℓ M ∑ ( − 1 ) o ⋅ d ⟨ ψ ∣( Z A d ⊗ I )∣ ψ ⟩ = 2 − ℓ M d ∈ D C ∑ ( − 1 ) c [ d , 0 , 0 ] + o ⋅ d . Linearity of detector parities makes the last sum equal to ∣ D C ∣ \lvert D_C\rvert ∣ D C ∣ when all parities hold and zero otherwise by pairwise cancellation. The left-hand side is positive exactly when C o ≠ 0 C_o \ne0 C o = 0 , proving (55). □
Proposition III.27 (Outcome independence and preserved logical information). For the circuit of Theorem III.25, the endpoint spaces V K o V_{K_o} V K o of Theorem III.20 coincide for all o ∈ Ω C o \in\Omega_C o ∈ Ω C . Denote their common value by V V V , and put
V i n ≔ { p : [ p , 0 ] ∈ V } , V o u t ≔ { p ′ : [ 0 , p ′ ] ∈ V } . V_{\mathrm{in}} \coloneqq\{p : [p,0] \in V\},
\qquad
V_{\mathrm{out}} \coloneqq\{p' : [0,p'] \in V\}. V in : = { p : [ p , 0 ] ∈ V } , V out : = { p ′ : [ 0 , p ′ ] ∈ V } . It then holds
W C / W d e t ≅ V , W o b s / W d e t ≅ V i n , W o u t / W d e t ≅ V o u t . (55) W_C/W_{\mathrm{det}} \cong V,
\qquad
W_{\mathrm{obs}}/W_{\mathrm{det}} \cong V_{\mathrm{in}},
\qquad
W_{\mathrm{out}}/W_{\mathrm{det}} \cong V_{\mathrm{out}}. \tag*{(55)} W C / W det ≅ V , W obs / W det ≅ V in , W out / W det ≅ V out . (55) The phase-free logical bijections Φ K o \Phi_{K_o} Φ K o in Theorem III.20 also coincide for all o ∈ Ω C o \in\Omega_C o ∈ Ω C . Each nonzero branch preserves k k k logical qubits, where
k = n − dim V i n = n ′ − dim V o u t , k = n - \dim V_{\mathrm{in}} = n' - \dim V_{\mathrm{out}}, k = n − dim V in = n ′ − dim V out , dim L P O P = 2 k . (56) \dim\mathcal{L}_{\mathrm{POP}} = 2k. \tag*{(56)} dim L POP = 2 k . (56) Proof. We begin by noting down the stabilizer generators of the possible circuit components. For a fixed Clifford gate U U U , the stabilizer generators of ∣ U ⟩ \lvert U\rangle ∣ U ⟩ are { U P U † } P ∈ P ( dom U ) \{UPU^\dagger\}_{P\in\mathcal{P}(\operatorname{dom} U)} { U P U † } P ∈ P ( dom U ) ; identity wires correspond to U = I U=I U = I . An m m m -qubit preparation ∣ 0 ⟩ ⊗ m \lvert0\rangle^{\otimes m} ∣ 0 ⟩ ⊗ m has generators Z j Z_j Z j , j ∈ Z m + j \in\mathbb{Z}_m^+ j ∈ Z m + . For a Z Z Z measurement, { Π t Z } \{\Pi_t^Z\} { Π t Z } has generators
( − 1 ) t Z ⊗ I , ( − 1 ) t I ⊗ Z . (-1)^t Z \otimes I,
\qquad
(-1)^t I \otimes Z. ( − 1 ) t Z ⊗ I , ( − 1 ) t I ⊗ Z . Thus all local binary label spaces are fixed; only the measurement signs depend on the outcomes. By Theorem III.23, matching equal binary Pauli labels on the shared registers gives all branch endpoint relations. The available labels and matching conditions are outcome-independent, so all V K o V_{K_o} V K o coincide.
For any [ p , p ′ ] ∈ V [p,p']\in V [ p , p ′ ] ∈ V , fix matching local stabilizers. Their measurement signs multiply to ( − 1 ) o ⋅ b (-1)^{o\cdot b} ( − 1 ) o ⋅ b , while the remaining phases give a fixed sign ( − 1 ) c (-1)^c ( − 1 ) c . Hence
P ( p ′ ) K o P ( p ) = ( − 1 ) c + o ⋅ b K o ( o ∈ Ω C ) , P(p')K_{o}P(p)=(-1)^{c+o\cdot b}K_{o}\qquad(o\in\Omega_C), P ( p ′ ) K o P ( p ) = ( − 1 ) c + o ⋅ b K o ( o ∈ Ω C ) ,
for some c ∈ F 2 c\in\mathbb{F}_2 c ∈ F 2 and b ∈ F 2 M b\in\mathbb{F}_2^M b ∈ F 2 M . Since Z A b ∣ o ⟩ = ( − 1 ) o ⋅ b ∣ o ⟩ Z_A^b|o\rangle=(-1)^{o\cdot b}|o\rangle Z A b ∣ o ⟩ = ( − 1 ) o ⋅ b ∣ o ⟩ , this gives [ b , p , p ′ ] ∈ W C [b,p,p']\in\mathcal{W}_C [ b , p , p ′ ] ∈ W C .
For w , w ′ ∈ W C w,w'\in\mathcal{W}_C w , w ′ ∈ W C with same p , p ′ p,p' p , p ′ , we have w − w ′ = [ b + b ′ , 0 , 0 ] ∈ W d e t w-w'=[b+b',0,0]\in\mathcal{W}_{\mathrm{det}} w − w ′ = [ b + b ′ , 0 , 0 ] ∈ W det . Conversely, by definition for arbitrary d ∈ W d e t d\in\mathcal{W}_{\mathrm{det}} d ∈ W det , w + d , w ′ + d w+d,w'+d w + d , w ′ + d have the same endpoint labels p , p ′ p,p' p , p ′ by definition. Thus, the cosets of W d e t \mathcal{W}_{\mathrm{det}} W det correspond bijectively and linearly to the pairs in V V V . Restricting to p ′ = 0 p'=0 p ′ = 0 or p = 0 p=0 p = 0 gives the other two identifications in (55) .
The logical bijection in Theorem III.20 is determined by V V V , so all Φ K \Phi_K Φ K coincide. From Theorem III.20 and its proof it then follows that k = n − dim V i n = n ′ − dim V o u t k=n-\dim V_{\mathrm{in}}=n'-\dim V_{\mathrm{out}} k = n − dim V in = n ′ − dim V out and dim V = n + n ′ \dim V=n+n' dim V = n + n ′ . Finally, using (55) and W o b s ∩ W o u t = W d e t \mathcal{W}_{\mathrm{obs}}\cap\mathcal{W}_{\mathrm{out}}=\mathcal{W}_{\mathrm{det}} W obs ∩ W out = W det ,
dim L P O P = dim W C − dim ( W o b s + W o u t ) = dim V − dim V i n − dim V o u t = 2 k . \begin{aligned}
\dim\mathcal{L}_{\mathrm{POP}}&=\dim\mathcal{W}_C-\dim(\mathcal{W}_{\mathrm{obs}}+\mathcal{W}_{\mathrm{out}})\\
&=\dim V-\dim V_{\mathrm{in}}-\dim V_{\mathrm{out}}\\
&=2k.
\end{aligned} dim L POP = dim W C − dim ( W obs + W out ) = dim V − dim V in − dim V out = 2 k .
Encoding circuit for [ [ n , k , d ] ] [[n,k,d]] [[ n , k , d ]] stabilizer code
Definition III.28 (Encoding circuit for [ [ n , k , d ] ] [[n,k,d]] [[ n , k , d ]] stabilizer code). Let S ⊆ P ( Q ) \mathcal{S}\subseteq\mathcal{P}(Q) S ⊆ P ( Q ) be the stabilizer group of an [ [ n , k , d ] ] [[n,k,d]] [[ n , k , d ]] stabilizer code with codespace T ( S ) ⊆ Q \mathcal{T}(\mathcal{S})\subseteq Q T ( S ) ⊆ Q . Let Q L ≅ C 2 k Q_L\cong\mathbb{C}^{2^k} Q L ≅ C 2 k be a k k k -qubit logical input register and let A = A 1 ⊗ ⋯ ⊗ A n − k ≅ C 2 n − k A=A_1\otimes\cdots\otimes A_{n-k}\cong\mathbb{C}^{2^{n-k}} A = A 1 ⊗ ⋯ ⊗ A n − k ≅ C 2 n − k be an ( n − k ) (n-k) ( n − k ) -qubit ancilla register, where A i ≅ C 2 A_i\cong\mathbb{C}^2 A i ≅ C 2 , such that Q ≅ A ⊗ Q L ≅ C 2 n Q\cong A\otimes Q_L\cong\mathbb{C}^{2^n} Q ≅ A ⊗ Q L ≅ C 2 n . An encoding circuit C e n c C_{\mathrm{enc}} C enc for S \mathcal{S} S is a stabilizer circuit defined by a sequence of two linear operators
C e n c ≔ { C ( 1 ) , C ( 2 ) } , C ( 1 ) : Q L ⟶ Q , C ( 2 ) : Q ⟶ Q , (57) C_{\mathrm{enc}}\coloneqq\{C^{(1)},C^{(2)}\},\qquad C^{(1)}:Q_L\longrightarrow Q,\qquad C^{(2)}:Q\longrightarrow Q, \tag*{(57)} C enc : = { C ( 1 ) , C ( 2 ) } , C ( 1 ) : Q L ⟶ Q , C ( 2 ) : Q ⟶ Q , (57)
where the preparation component and Clifford component are respectively given by C ( 1 ) = ∣ s ⟩ A ⊗ I Q L C^{(1)}=|s\rangle_A\otimes I_{Q_L} C ( 1 ) = ∣ s ⟩ A ⊗ I Q L and C ( 2 ) = U e n c C^{(2)}=U_{\mathrm{enc}} C ( 2 ) = U enc , for a Clifford unitary U e n c ∈ Cliff ( Q ) U_{\mathrm{enc}}\in\operatorname{Cliff}(Q) U enc ∈ Cliff ( Q ) and a fixed string s = [ s 1 , … , s n − k ] ∈ F 2 n − k s=[s_1,\ldots,s_{n-k}]\in\mathbb{F}_2^{n-k} s = [ s 1 , … , s n − k ] ∈ F 2 n − k . We require U e n c U_{\mathrm{enc}} U enc and s s s to satisfy S = ⟨ ( − 1 ) s i U e n c Z A i U e n c † : i ∈ Z n − k + ⟩ \mathcal{S}=\langle(-1)^{s_i}U_{\mathrm{enc}}Z_{A_i}U_{\mathrm{enc}}^\dagger:i\in\mathbb{Z}_{n-k}^+\rangle S = ⟨( − 1 ) s i U enc Z A i U enc † : i ∈ Z n − k + ⟩ . The circuit operator C e n c : Q L → Q C_{\mathrm{enc}}:Q_L\to Q C enc : Q L → Q can thus be decomposed as
C e n c = C ( 2 ) C ( 1 ) = U e n c ( ∣ s ⟩ A ⊗ I Q L ) . C_{\mathrm{enc}}=C^{(2)}C^{(1)}=U_{\mathrm{enc}}\left(|s\rangle_A\otimes I_{Q_L}\right). C enc = C ( 2 ) C ( 1 ) = U enc ( ∣ s ⟩ A ⊗ I Q L ) .
Figure 16.
Remark III.29. For fixed U e n c U_{\mathrm{enc}} U enc , changing s s s changes the signs of the encoded stabilizers and hence selects a different syndrome sector, rather than the same signed code. A known choice of s s s can be absorbed into the encoder by replacing U e n c U_{\mathrm{enc}} U enc with U e n c ( X A s ⊗ I ) U_{\mathrm{enc}}(X_A^s\otimes I) U enc ( X A s ⊗ I ) . Thus we take s = 0 s=0 s = 0 from now on, without restricting the encoded stabilizer code or its logical frame.
Proposition III.30. The encoding circuit satisfies im ( C e n c ) = T ( S ) \operatorname{im}(C_{\mathrm{enc}})=\mathcal{T}(\mathcal{S}) im ( C enc ) = T ( S ) , or equivalently, S = ⟨ ( − 1 ) s i U e n c Z A i U e n c † : i ∈ Z n − k + ⟩ \mathcal{S}=\langle(-1)^{s_i}U_{\mathrm{enc}}Z_{A_i}U_{\mathrm{enc}}^\dagger:i\in\mathbb{Z}_{n-k}^+\rangle S = ⟨( − 1 ) s i U enc Z A i U enc † : i ∈ Z n − k + ⟩ . Decompose Q L = Q L , 1 ⊗ ⋯ ⊗ Q L , k Q_L=Q_{L,1}\otimes\cdots\otimes Q_{L,k} Q L = Q L , 1 ⊗ ⋯ ⊗ Q L , k where for i ∈ Z k + i\in\mathbb{Z}_k^+ i ∈ Z k + each Q L , i ≅ C 2 Q_{L,i}\cong\mathbb{C}^2 Q L , i ≅ C 2 . We then have the 2 k 2k 2 k logical operator representatives as { X ˉ i = U e n c X Q L , i U e n c † } i ∈ Z k + \{\bar{X}_i=U_{\mathrm{enc}}X_{Q_{L,i}}U_{\mathrm{enc}}^\dagger\}_{i\in\mathbb{Z}_k^+} { X ˉ i = U enc X Q L , i U enc † } i ∈ Z k + and { Z ˉ j = U e n c Z Q L , j U e n c † } j ∈ Z k + \{\bar{Z}_j=U_{\mathrm{enc}}Z_{Q_{L,j}}U_{\mathrm{enc}}^\dagger\}_{j\in\mathbb{Z}_k^+} { Z ˉ j = U enc Z Q L , j U enc † } j ∈ Z k + .
Proof. The proof is given in [3 ] , Secs. 4.1–4.2 and 5.3. □
Remark III.31 (Code conditioning). For the code-conditioned circuit Kraus operators { C ~ o = C o C e n c } o \{\widetilde{C}_o=C_oC_{\mathrm{enc}}\}_o { C o = C o C enc } o , C o = 0 C_o=0 C o = 0 implies C ~ o = 0 \widetilde{C}_o=0 C o = 0 , so conditioning can only remove realizable outcomes. Any detector equation o ⋅ d ∈ D C o\cdot d\in\mathcal{D}_C o ⋅ d ∈ D C valid on Ω C \Omega_C Ω C remains valid on the restricted outcome set. Hence
∅ ≠ Ω ~ C ⊆ Ω C , D C ⊆ D ~ C , \varnothing\ne\widetilde{\Omega}_C\subseteq\Omega_C,\qquad\mathcal{D}_C\subseteq\widetilde{\mathcal{D}}_C, ∅ = Ω C ⊆ Ω C , D C ⊆ D C ,
with unchanged detector parities. Nonemptiness follows from trace preservation and the isometric encoder. In particular, let S \mathcal{S} S be the input code stabilizer group. If v ∈ O C ( s ) v\in\mathcal{O}_C(s) v ∈ O C ( s ) has parity a v a_v a v for some s ∈ S s\in\mathcal{S} s ∈ S , then s C e n c = C e n c sC_{\mathrm{enc}}=C_{\mathrm{enc}} s C enc = C enc gives
( Z A v ⊗ I Q L ) C ~ o = ( − 1 ) a v C ~ o . (Z_A^v\otimes I_{Q_L})\widetilde{C}_o=(-1)^{a_v}\widetilde{C}_o. ( Z A v ⊗ I Q L ) C o = ( − 1 ) a v C o .
Thus an observable representative of an input code stabilizer becomes a detector with the same parity. If C C C is non-adaptive, so is the conditioned circuit, and the extraction rules of Theorem III.27 apply directly to C ~ \widetilde{C} C .
At level 0, the Pauli relations are obtained by propagation through the encoder and Clifford gates. The following proposition expresses this as a binary linear system; restricting its endpoint labels then gives detectors, observable representatives and output checks.
Proposition III.32 (Code-conditioned common relations space at level 0). Let U = U N ⋯ U 1 : A ⊗ Q → A ′ ⊗ Q ′ U=U_N\cdots U_1:A\otimes Q\to A'\otimes Q' U = U N ⋯ U 1 : A ⊗ Q → A ′ ⊗ Q ′ be a fixed Clifford circuit with m = n + n ′ m=n+n' m = n + n ′ gates, where A , Q , A ′ , Q ′ A,Q,A',Q' A , Q , A ′ , Q ′ contain m , n , m ′ , n ′ m,n,m',n' m , n , m ′ , n ′ qubits, respectively. The gates U i U_i U i act on this common total register; its input and output partitions may differ. For the previously defined encoder C e n c : Q L → Q C_{\mathrm{enc}}:Q_L\to Q C enc : Q L → Q , with dim Q L = 2 k \dim Q_L=2^k dim Q L = 2 k , write
C o = ( ∣ o ⟩ ⟨ o ∣ A ′ ⊗ I Q ′ ) U ( ∣ 0 m ⟩ A ⊗ I Q ) , C_o=(|o\rangle\langle o|_{A'}\otimes I_{Q'})U(|0^m\rangle_A\otimes I_Q), C o = ( ∣ o ⟩ ⟨ o ∣ A ′ ⊗ I Q ′ ) U ( ∣ 0 m ⟩ A ⊗ I Q ) ,
C ~ o = C o C e n c , o ∈ F 2 m ′ . \widetilde{C}_o=C_oC_{\mathrm{enc}},\qquad o\in\mathbb{F}_2^{m'}. C o = C o C enc , o ∈ F 2 m ′ .
Let F U , F U e n c F_U,F_{U_{\mathrm{enc}}} F U , F U enc and s U , s U e n c s_U,s_{U_{\mathrm{enc}}} s U , s U enc be the symplectic matrices and sign maps of U , U e n c U,U_{\mathrm{enc}} U , U enc , respectively (see Theorem III.3). The common relations space W C ~ \mathcal{W}_{\widetilde{C}} W C consists precisely of the labels ω = [ b , p , p ′ ] \omega=[b,p,p'] ω = [ b , p , p ′ ] , with b ∈ F 2 m b\in\mathbb{F}_2^m b ∈ F 2 m , p = [ x L , z L ] ∈ F 2 2 k p=[x_L,z_L]\in\mathbb{F}_2^{2k} p = [ x L , z L ] ∈ F 2 2 k and p ′ = [ x Q ′ , z Q ′ ] ∈ F 2 2 n ′ p'=[x_Q',z_Q']\in\mathbb{F}_2^{2n'} p ′ = [ x Q ′ , z Q ′ ] ∈ F 2 2 n ′ , for which there exist z A ∈ F 2 2 m z_A\in\mathbb{F}_2^{2m} z A ∈ F 2 2 m , z A e n c ∈ F 2 n − k z_{A_{\mathrm{enc}}}\in\mathbb{F}_2^{n-k} z A enc ∈ F 2 n − k and x Q , z Q ∈ F 2 n x_Q,z_Q\in\mathbb{F}_2^n x Q , z Q ∈ F 2 n satisfying
[ 0 , x L , z A e n c , z L ] F U e n c = [ x Q , z Q ] , [0,x_L,z_{A_{\mathrm{enc}},z_L}]F_{U_{\mathrm{enc}}}=[x_Q,z_Q], [ 0 , x L , z A enc , z L ] F U enc = [ x Q , z Q ] ,
[ 0 , x Q , z A , z Q ] F U = [ 0 , x Q ′ , z Q ′ ] . (58) [0,x_Q,z_A,z_Q]F_U=[0,x_Q',z_Q']. \tag*{(58)} [ 0 , x Q , z A , z Q ] F U = [ 0 , x Q ′ , z Q ′ ] . (58)
These witnesses z A , z A e n c , x Q , z Q z_A,z_{A_{\mathrm{enc}}},x_Q,z_Q z A , z A enc , x Q , z Q are unique for each ω \omega ω , and its common stabilizer sign is
c ω = s U e n c ( [ 0 , x L , z A e n c , z L ] ) + s U ( [ 0 , x Q , z A , z Q ] ) . (59) c_\omega=s_{U_{\mathrm{enc}}}([0,x_L,z_{A_{\mathrm{enc}},z_L}])+s_U([0,x_Q,z_A,z_Q]). \tag*{(59)} c ω = s U enc ([ 0 , x L , z A enc , z L ]) + s U ([ 0 , x Q , z A , z Q ]) . (59)
Proof. The relation space and sign formula follow directly from Theorem III.23, using the Clifford conjugation rule of Theorem II.3 and the Z Z Z stabilizers of the prepared ancillas. The witnesses are unique because symplectic matrices are invertible and F U − 1 F_U^{-1} F U − 1 determines x Q , z Q , z A x_Q,z_Q,z_A x Q , z Q , z A , and F U e n c − 1 F_{U_{\mathrm{enc}}}^{-1} F U enc − 1 then determines z A e n c z_{A_{\mathrm{enc}}} z A enc .
Example III.33 (Single-qubit Z Z Z measurement with two ancillas). Take C e n c = I Q C_{\mathrm{enc}}=I_Q C enc = I Q , so n = k = n ′ = 1 n=k=n'=1 n = k = n ′ = 1 and m = m ′ = 2 m=m'=2 m = m ′ = 2 . Order the output registers as A 2 , A 1 , Q ′ A_2,A_1,Q' A 2 , A 1 , Q ′ , and define
U = CNOT A 1 → A 2 CNOT Q → A 1 , U=\operatorname{CNOT}_{A_1\to A_2}\operatorname{CNOT}_{Q\to A_1}, U = CNOT A 1 → A 2 CNOT Q → A 1 , B = U ( ∣ 00 ⟩ A 2 A 1 ⊗ I Q ) , B=U\left(\lvert00\rangle_{A_2A_1}\otimes I_Q\right), B = U ( ∣ 00 ⟩ A 2 A 1 ⊗ I Q ) , C o Z = ( ∣ o ⟩ ⟨ o ∣ A 2 A 1 ⊗ I Q ′ ) B , o = [ o 2 , o 1 ] . C_o^Z=\left(\lvert o\rangle\langle o\rvert_{A_2A_1}\otimes I_{Q'}\right)B,\qquad o=[o_2,o_1]. C o Z = ( ∣ o ⟩ ⟨ o ∣ A 2 A 1 ⊗ I Q ′ ) B , o = [ o 2 , o 1 ] . Here Q ′ Q' Q ′ is the data wire after the gates:
Figure 17a.
The relevant symplectic action is
[ 0 , 0 , x , u 2 , u 1 , z ] F U = [ x , x , x , u 2 , u 2 + u 1 , u 1 + z ] . (60) [0,0,x,u_2,u_1,z]F_U
=[x,x,x,u_2,u_2+u_1,u_1+z]. \tag*{(60)} [ 0 , 0 , x , u 2 , u 1 , z ] F U = [ x , x , x , u 2 , u 2 + u 1 , u 1 + z ] . (60) Matching with [ 0 , 0 , x ′ , b 2 , b 1 , z ′ ] [0,0,x',b_2,b_1,z'] [ 0 , 0 , x ′ , b 2 , b 1 , z ′ ] as in Theorem III.32 gives
W C = { [ b , [ 0 , z ] , [ 0 , z ′ ] ] : b = [ b 2 , b 1 ] ∈ F 2 2 , z , z ′ ∈ F 2 , b 2 + b 1 + z + z ′ = 0 } . (61) \mathcal{W}_C=\left\{[b,[0,z],[0,z']]:b=[b_2,b_1]\in\mathbb{F}_2^2,\ z,z'\in\mathbb{F}_2,\ b_2+b_1+z+z'=0\right\}. \tag*{(61)} W C = { [ b , [ 0 , z ] , [ 0 , z ′ ]] : b = [ b 2 , b 1 ] ∈ F 2 2 , z , z ′ ∈ F 2 , b 2 + b 1 + z + z ′ = 0 } . (61) The matching equations force x = x ′ = 0 x=x'=0 x = x ′ = 0 , so the relations involve only I I I and Z Z Z factors. The CNOT gates introduce no signs on these operators; hence c ω = 0 c_\omega=0 c ω = 0 for every ω ∈ W C \omega\in\mathcal{W}_C ω ∈ W C . Equivalently,
G C = ⟨ Z Z I I Z I I Z Z I Z I ⟩ , G_C=\left\langle
\begin{matrix}
ZZI & IZI & IZZ\\
I & Z & I
\end{matrix}
\right\rangle, G C = ⟨ Z Z I I I Z I Z I Z Z I ⟩ , with upper factors ordered as A 2 , A 1 , Q ′ A_2,A_1,Q' A 2 , A 1 , Q ′ and lower factor the input Q Q Q . By Theorem III.26,
D C = O C ( I ) = span { [ 1 , 1 ] } , D_C=O_C(I)=\operatorname{span}\{[1,1]\}, D C = O C ( I ) = span {[ 1 , 1 ]} , O C ( Z ) = [ 0 , 1 ] + D C = { [ 0 , 1 ] , [ 1 , 0 ] } , O_C(Z)=[0,1]+D_C=\{[0,1],[1,0]\}, O C ( Z ) = [ 0 , 1 ] + D C = {[ 0 , 1 ] , [ 1 , 0 ]} , O C ( X ) = O C ( Y ) = ∅ , O_C(X)=O_C(Y)=\varnothing, O C ( X ) = O C ( Y ) = ∅ , Ω C = { [ 0 , 0 ] , [ 1 , 1 ] } . \Omega_C=\{[0,0],[1,1]\}. Ω C = {[ 0 , 0 ] , [ 1 , 1 ]} . All displayed parities are zero. Thus Z Q Z_Q Z Q is the sole nontrivial measured input Pauli, up to sign. Either record bit reports its eigenvalue; the two representatives differ by the detector [ 1 , 1 ] [1,1] [ 1 , 1 ] , which checks that the bits agree. Setting p = 0 p=0 p = 0 in Equation (52) gives the common output checks generated by Z A 2 Z A 1 Z_{A_2}Z_{A_1} Z A 2 Z A 1 and Z A 1 Z Q ′ Z_{A_1}Z_{Q'} Z A 1 Z Q ′ . The second is the single independent check beyond the detector, namely a noiseless measurement of Z Q ′ Z_{Q'} Z Q ′ by a decoder tests the outcome bit matches with o 1 o_1 o 1 . Here
dim W C = 3 , dim W d e t = 1 , \dim\mathcal{W}_C=3,\qquad\dim\mathcal{W}_{\mathrm{det}}=1, dim W C = 3 , dim W det = 1 , dim W o b s = 2 , dim W o u t = 2. \dim\mathcal{W}_{\mathrm{obs}}=2,\qquad\dim\mathcal{W}_{\mathrm{out}}=2. dim W obs = 2 , dim W out = 2. Hence W C = W o b s + W o u t \mathcal{W}_C=\mathcal{W}_{\mathrm{obs}}+\mathcal{W}_{\mathrm{out}} W C = W obs + W out . By Theorem III.27, L P O P = { 0 } \mathcal{L}_{\mathrm{POP}}=\{0\} L POP = { 0 } and each nonzero branch preserves k p r e s = 1 − ( 2 − 1 ) = 0 k_{\mathrm{pres}}=1-(2-1)=0 k pres = 1 − ( 2 − 1 ) = 0 logical qubits.
Indeed, B ∣ t ⟩ = ∣ t , t , t ⟩ B\lvert t\rangle=\lvert t,t,t\rangle B ∣ t ⟩ = ∣ t , t , t ⟩ , so the nonzero branches are
C [ t , t ] Z = ∣ t , t ⟩ A 2 A 1 ⊗ ∣ t ⟩ Q ′ ⟨ t ∣ Q , t ∈ F 2 . C^Z_{[t,t]}=\lvert t,t\rangle_{A_2A_1}\otimes\lvert t\rangle_{Q'}\langle t\rvert_Q,\qquad t\in\mathbb{F}_2. C [ t , t ] Z = ∣ t , t ⟩ A 2 A 1 ⊗ ∣ t ⟩ Q ′ ⟨ t ∣ Q , t ∈ F 2 . The measured eigenvalue is ( − 1 ) t (-1)^t ( − 1 ) t , and its eigenstate remains on Q ′ Q' Q ′ . Moreover, ∣ C [ t , t ] Z ⟩ ⟩ = ∣ t ⟩ ⊗ 4 \lvert C^Z_{[t,t]}\rangle\rangle=\lvert t\rangle^{\otimes4} ∣ C [ t , t ] Z ⟩⟩ = ∣ t ⟩ ⊗ 4 , whose full stabilizer group is generated by ( − 1 ) t Z (-1)^tZ ( − 1 ) t Z on each factor.
Finally, condition on the input code span { ∣ 0 ⟩ Q } \operatorname{span}\{\lvert0\rangle_Q\} span {∣ 0 ⟩ Q } using C e n c : C → Q C_{\mathrm{enc}}:\mathbb{C}\to Q C enc : C → Q , α ↦ α ∣ 0 ⟩ Q \alpha\mapsto\alpha\lvert0\rangle_Q α ↦ α ∣ 0 ⟩ Q . Since Z Q C e n c = C e n c Z_QC_{\mathrm{enc}}=C_{\mathrm{enc}} Z Q C enc = C enc , Theorem III.31 turns both Z Q Z_Q Z Q observable representatives into detectors with parity zero. Thus
D C ~ = F 2 2 , Ω C ~ = { [ 0 , 0 ] } . D_{\widetilde C}=\mathbb{F}_2^2,\qquad\Omega_{\widetilde C}=\{[0,0]\}. D C = F 2 2 , Ω C = {[ 0 , 0 ]} .
At level 1, we consider each component is a Pauli measurement. The following proposition gives explicit expressions for computing the common stabilizer relations of non-adaptive level-1 circuits conditioned on an input code. These expressions are derived for fixed qubit registers throughout time and denote the detectors, measured observables and preserved logical operators. We illustrate their application to a finite Hastings–Haah honeycomb Floquet-code circuit in Appendix B.
Definition III.34 (Measurement schedule and spacetime commutation matrices). Fix an outcome-independent sequence of nonidentity Paulis M r = P ( m r ) M_r=P(m_r) M r = P ( m r ) on n n n data qubits with r ∈ Z + ℓ r\in\mathbb{Z}_{+\ell} r ∈ Z + ℓ . Define the measurement schedule matrix M ∈ F 2 ℓ × 2 n M\in\mathbb{F}_2^{\ell\times2n} M ∈ F 2 ℓ × 2 n , its symplectic dual Q ∈ F 2 ℓ × 2 n Q\in\mathbb{F}_2^{\ell\times2n} Q ∈ F 2 ℓ × 2 n , and the spacetime commutation matrix T ∈ F 2 ℓ × ℓ T\in\mathbb{F}_2^{\ell\times\ell} T ∈ F 2 ℓ × ℓ by
M ≔ [ m 1 ⋮ m ℓ ] , Q ≔ M Ω n , (62) M\coloneqq
\begin{bmatrix}
m_1\\
\vdots\\
m_\ell
\end{bmatrix},
\qquad Q\coloneqq M\Omega_n, \tag*{(62)} M : = m 1 ⋮ m ℓ , Q : = M Ω n , (62) T r s ≔ { ⟨ m s , m r ⟩ s , s < r , 0 , s ≥ r , r , s ∈ Z + ℓ . T_{rs}\coloneqq
\begin{cases}
\langle m_s,m_r\rangle_s,&s<r,\\
0,&s\ge r,
\end{cases}
\qquad r,s\in\mathbb{Z}_{+\ell}. T r s : = { ⟨ m s , m r ⟩ s , 0 , s < r , s ≥ r , r , s ∈ Z + ℓ .
Proposition III.35 (Code-conditioned common relation space at level 1). For the schedule of Theorem III.34, let C e n c : Q L → Q C_{\mathrm{enc}}:Q_L\to Q C enc : Q L → Q encode k k k qubits into n n n qubits, with ancillas prepared in ∣ 0 n − k ⟩ \lvert0^{n-k}\rangle ∣ 0 n − k ⟩ . Write F e n c , s e n c F_{\mathrm{enc}},s_{\mathrm{enc}} F enc , s enc for the symplectic matrix and sign map of its encoding Clifford. For o ∈ F 2 ℓ o\in\mathbb{F}_2^\ell o ∈ F 2 ℓ , set
Π t M r = I + ( − 1 ) t M r 2 , \Pi_t^{M_r}=\frac{I+(-1)^tM_r}{2}, Π t M r = 2 I + ( − 1 ) t M r , C o = ∣ o ⟩ A ⊗ Π o ℓ M ℓ ⋯ Π o 1 M 1 , C_o=\lvert o\rangle_A\otimes\Pi_{o_\ell}^{M_\ell}\cdots\Pi_{o_1}^{M_1}, C o = ∣ o ⟩ A ⊗ Π o ℓ M ℓ ⋯ Π o 1 M 1 , C ~ o = C o C e n c . \widetilde C_o=C_oC_{\mathrm{enc}}. C o = C o C enc .
A label ω = [ b , p , p ′ ] \omega=[b,p,p'] ω = [ b , p , p ′ ] , with b ∈ F 2 ℓ b\in\mathbb{F}_2^\ell b ∈ F 2 ℓ , p = [ x L , z L ] ∈ F 2 2 k p=[x_L,z_L]\in\mathbb{F}_2^{2k} p = [ x L , z L ] ∈ F 2 2 k and p ′ ∈ F 2 2 n p'\in\mathbb{F}_2^{2n} p ′ ∈ F 2 2 n , belongs to W ~ C \widetilde{\mathcal{W}}_{\mathsf{C}} W C exactly when some z A e n c ∈ F 2 n − k z_{A_{\mathrm{enc}}}\in\mathbb{F}_2^{n-k} z A enc ∈ F 2 n − k satisfies
ν = [ 0 , x L , z A e n c , z L ] F e n c , \nu=[0,x_L,z_{A_{\mathrm{enc}}},z_L]F_{\mathrm{enc}}, ν = [ 0 , x L , z A enc , z L ] F enc ,
ν Q T + b T T = 0 , \nu Q^{\mathsf T}+bT^{\mathsf T}=0, ν Q T + b T T = 0 ,
p ′ = ν + b M . (63) p'=\nu+bM. \tag*{(63)} p ′ = ν + b M . (63)
The witnesses ν , z A e n c \nu,z_{A_{\mathrm{enc}}} ν , z A enc are unique. Put
ν r = ν + ∑ s < r b s m s , r ∈ Z ℓ + 1 + . (64) \nu_r=\nu+\sum_{s<r}b_sm_s,\qquad r\in\mathbb{Z}_{\ell+1}^{+}. \tag*{(64)} ν r = ν + s < r ∑ b s m s , r ∈ Z ℓ + 1 + . (64)
The middle equation in Equation (63) gives ⟨ ν r , m r ⟩ s = 0 \langle\nu_r,m_r\rangle_s=0 ⟨ ν r , m r ⟩ s = 0 for r ∈ Z ℓ + r\in\mathbb{Z}_{\ell}^{+} r ∈ Z ℓ + . For [ P ( u ) , P ( v ) ] = 0 [P(u),P(v)]=0 [ P ( u ) , P ( v )] = 0 , define γ ( u , v ) ≔ κ ( u , v ) / 2 ( m o d 2 ) \gamma(u,v)\coloneqq\kappa(u,v)/2\pmod2 γ ( u , v ) : = κ ( u , v ) /2 ( mod 2 ) , as in Theorem II.2. Then the common stabilizer sign is
c ω = s e n c ( [ 0 , x L , z A e n c , z L ] ) + Θ ( ν , b ) , c_\omega=s_{\mathrm{enc}}([0,x_L,z_{A_{\mathrm{enc}}},z_L])+\Theta(\nu,b), c ω = s enc ([ 0 , x L , z A enc , z L ]) + Θ ( ν , b ) ,
where
Θ ( ν , b ) ≔ ∑ r = 1 ℓ b r γ ( m r , ν r ) . (65) \Theta(\nu,b)\coloneqq\sum_{r=1}^{\ell}b_r\gamma(m_r,\nu_r). \tag*{(65)} Θ ( ν , b ) : = r = 1 ∑ ℓ b r γ ( m r , ν r ) . (65)
Proof. The stabilizers of ∣ Π M r ⟩ ⟩ \lvert\Pi_{M_r}\rangle\rangle ∣ Π M r ⟩⟩ are generated by ( − 1 ) t M r (-1)^tM_r ( − 1 ) t M r and P ( μ ) P(\mu) P ( μ ) for μ ∈ F 2 2 n \mu\in\mathbb{F}_2^{2n} μ ∈ F 2 2 n satisfying ⟨ μ , m r ⟩ s = 0 \langle\mu,m_r\rangle_s=0 ⟨ μ , m r ⟩ s = 0 . The retained record ∣ t ⟩ A r \lvert t\rangle_{A_r} ∣ t ⟩ A r contributes the generator ( − 1 ) t Z A r (-1)^tZ_{A_r} ( − 1 ) t Z A r . By Theorem III.23, matching these local Pauli labels gives
ν r + 1 = ν r + b r m r , ⟨ ν r , m r ⟩ s = 0. \nu_{r+1}=\nu_r+b_rm_r,\qquad\langle\nu_r,m_r\rangle_s=0. ν r + 1 = ν r + b r m r , ⟨ ν r , m r ⟩ s = 0.
Together with the encoder relation, these are exactly (65). Adding the local sign exponents, including the encoder sign, gives (67) by Theorem II.2. Finally, ν = p ′ + b M \nu=p'+bM ν = p ′ + b M and invertibility of F e n c F_{\mathrm{enc}} F enc give uniqueness of the witnesses. □ \square □
Corollary III.36 (Detectors, observables, and logical qubits). For C e n c = I C_{\mathrm{enc}}=I C enc = I , the detectors and observable representatives are
D C = ker [ T M ] = ker [ T T M ] , \mathcal{D}_{C}=\ker[T\ M]=\ker[T^{\mathsf T}\ M], D C = ker [ T M ] = ker [ T T M ] , O C ( P ( p ) ) = { v : v T = 0 , v M = p } , (66) \mathcal{O}_{C}(P(p))=\{v:vT=0,\ vM=p\}, \tag*{(66)} O C ( P ( p )) = { v : v T = 0 , v M = p } , (66) with parities Θ ( 0 , d ) \Theta(0,d) Θ ( 0 , d ) and Θ ( p , v ) \Theta(p,v) Θ ( p , v ) , respectively. Each nonzero branch preserves
k p r e s = n − rank [ T M ] + rank T (67) k_{\mathrm{pres}}=n-\operatorname{rank}[T\ M]+\operatorname{rank}T \tag*{(67)} k pres = n − rank [ T M ] + rank T (67) logical qubits.
Proof. For C e n c = I C_{\mathrm{enc}}=I C enc = I , we have ν = p \nu=p ν = p and c ω = Θ ( p , b ) c_\omega=\Theta(p,b) c ω = Θ ( p , b ) . Using M Q T = T + T T MQ^{\mathsf T}=T+T^{\mathsf T} M Q T = T + T T , the matching conditions of Theorem III.23 with p ′ = 0 p'=0 p ′ = 0 become p = v M p=vM p = v M and v T = 0 vT=0 v T = 0 . This gives the observable formula and, on setting p = 0 p=0 p = 0 , the detector formula, with the stated parities. The two detector kernels coincide because v M = 0 vM=0 v M = 0 implies v T = v T T vT=vT^{\mathsf T} v T = v T T . Finally,
dim W o b s = ℓ − rank T , \dim\mathcal{W}_{\mathrm{obs}}=\ell-\operatorname{rank}T, dim W obs = ℓ − rank T , dim W d e t = ℓ − rank [ T M ] . \dim\mathcal{W}_{\mathrm{det}}=\ell-\operatorname{rank}[T\ M]. dim W det = ℓ − rank [ T M ] . The logical-qubit count follows from Theorem III.27. □ \square □
Fault tolerance of general quantum circuits
We now ask when the noisy realization of a circuit can be corrected to reproduce its ideal action, including the retained measurement record. In § 1.1 A, we provide algebraic necessary and sufficient conditions for exact recovery under a prescribed noise model, allowing correlations across time. These conditions recover the Knill–Laflamme criterion and give an exact SDP test for a fixed circuit. We then construct an SDP relaxation for circuit synthesis.
Necessary and sufficient conditions for fault tolerance
We first formalize the notion of fault tolerance for general quantum circuits and then establish necessary and sufficient conditions for achieving it. Here fault tolerance means exact recoverability of the intended circuit operation including its measurement outcomes. A scalable threshold or composition with noisy recovery requires additional hypotheses [62 ] .
Definition IV.1 (Fault tolerance criterion). Let C C C be an ℓ \ell ℓ -time-step quantum circuit with circuit map C c m C_{\mathrm{cm}} C cm and ideal realization C i d C_{\mathrm{id}} C id , and let E \mathbf{E} E be a noise model satisfying Theorem III.4. Both the noisy and ideal realizations are channels from L ( Q 0 ) \mathrm{L}(\mathcal{Q}_0) L ( Q 0 ) to L ( H o u t ) \mathrm{L}(\mathcal{H}_{\mathrm{out}}) L ( H out ) , where
H o u t ≜ A 1 : ℓ o u t ⊗ Q ℓ . \mathcal{H}_{\mathrm{out}}\triangleq A^{\mathrm{out}}_{1:\ell}\otimes\mathcal{Q}_\ell. H out ≜ A 1 : ℓ out ⊗ Q ℓ . The circuit is fault-tolerant under E \mathbf{E} E if there exists a CPTP recovery map R : L ( H o u t ) → L ( H o u t ) \mathcal{R}:\mathrm{L}(\mathcal{H}_{\mathrm{out}})\to\mathrm{L}(\mathcal{H}_{\mathrm{out}}) R : L ( H out ) → L ( H out ) such that
R ∘ E ∘ C c m = C i d . (68) \mathcal{R}\circ\mathbf{E}\circ C_{\mathrm{cm}}=C_{\mathrm{id}}. \tag*{(68)} R ∘ E ∘ C cm = C id . (68) This is an equality of channels, required for every input state. The recovery is applied noiselessly.
Remark IV.2. The ideal outcome record is classical in the computational basis. A known flip of a record bit can be corrected by X ∣ 0 ⟩ j = ∣ 1 ⟩ j X\lvert0\rangle_j=\lvert1\rangle_j X ∣ 0 ⟩ j = ∣ 1 ⟩ j , or by the corresponding classical update if the record is stored classically.
The following criterion is a Kraus-operator form of the exact channel-recovery duality of [33 Theorem 1] , specialized to an ideal circuit that retains its full outcome record. A detailed treatment of this duality is given in [15 ] . We give a constructive proof in the circuit notation.
Theorem IV.3 (Algebraic necessary and sufficient conditions for fault tolerance). For a circuit map C c m C_{\mathrm{cm}} C cm with Kraus operators { C o } o \{C_o\}_o { C o } o , let E \mathbf{E} E be a noise model with space-time Kraus operators { E e } e \{E_e\}_e { E e } e . Then C C C is fault-tolerant under E \mathbf{E} E if and only if there exist Hermitian matrices { Λ ( k ) } k \{\Lambda^{(k)}\}_k { Λ ( k ) } k , indexed by the combined noisy Kraus indices
( o , e ) (o,e) ( o , e ) , satisfying, for all o , e , o ′ , e ′ o,e,o',e' o , e , o ′ , e ′ ,
C o ′ † E e ′ † E e C o = ∑ k Λ ( o , e ) , ( o ′ , e ′ ) ( k ) C k † I † I C k \mathbf{C}_{o'}^{\dagger}\mathbf{E}_{e'}^{\dagger}\mathbf{E}_{e}\mathbf{C}_{o}
= \sum_k \Lambda_{(o,e),(o',e')}^{(k)} \mathbf{C}_{k}^{\dagger}\mathbf{I}^{\dagger}\mathbf{I}\mathbf{C}_{k} C o ′ † E e ′ † E e C o = k ∑ Λ ( o , e ) , ( o ′ , e ′ ) ( k ) C k † I † I C k
[ Λ ( k ) ] ( o , e ) , ( o ′ , e ′ ) ≔ λ ( o , e ) , ( o ′ , e ′ ) ( k ) (69) \left[\Lambda^{(k)}\right]_{(o,e),(o',e')} \coloneqq\lambda_{(o,e),(o',e')}^{(k)} \tag*{(69)} [ Λ ( k ) ] ( o , e ) , ( o ′ , e ′ ) : = λ ( o , e ) , ( o ′ , e ′ ) ( k ) (69)
Λ ( k ) ⪰ 0 , Tr Λ ( k ) = 1 for every k . \Lambda^{(k)} \succeq0,\quad\operatorname{Tr}\Lambda^{(k)}=1\quad\text{for every }k. Λ ( k ) ⪰ 0 , Tr Λ ( k ) = 1 for every k .
Proof. Write H o u t = A 1 : ℓ o u t ⊗ Q ℓ \mathcal{H}_{\mathrm{out}}=A_{1:\ell}^{\mathrm{out}}\otimes Q_{\ell} H out = A 1 : ℓ out ⊗ Q ℓ and set
K k = I C k , F a = E e C o , a = ( o , e ) . K_k=\mathbf{I}C_k,\qquad F_a=E_eC_o,\qquad a=(o,e). K k = I C k , F a = E e C o , a = ( o , e ) .
These are the ideal and noisy Kraus operators, respectively, from Q 0 Q_0 Q 0 to H o u t \mathcal{H}_{\mathrm{out}} H out , with
∑ k K k † K k = ∑ a F a † F a = I Q 0 . \sum_k K_k^{\dagger}K_k=\sum_a F_a^{\dagger}F_a=I_{Q_0}. k ∑ K k † K k = a ∑ F a † F a = I Q 0 .
The equalities follow from the circuit and noise normalization constraints in Appendix A. Retaining the full record gives K k = ∣ k ⟩ ⊗ B k K_k=\lvert k\rangle\otimes B_k K k = ∣ k ⟩ ⊗ B k , where B k : Q 0 → Q ℓ B_k:Q_0\to Q_{\ell} B k : Q 0 → Q ℓ . Consequently,
K k ′ † K k = δ k ′ , k K k † K k . (70) K_{k'}^{\dagger}K_k=\delta_{k',k}K_k^{\dagger}K_k. \tag*{(70)} K k ′ † K k = δ k ′ , k K k † K k . (70)
This holds for both adaptive and non-adaptive circuits. In particular, the nonzero K k K_k K k are Hilbert–Schmidt orthogonal.
Necessity (⟹ \Longrightarrow ⟹ ). Suppose a CPTP recovery with Kraus operators { R α } α \{R_{\alpha}\}_{\alpha} { R α } α exists. Equality of the recovered and ideal channels gives the Choi identity
∑ α , a ∣ R α F a ⟩ ⟩ ⟨ ⟨ R α F a ∣ = ∑ k ∣ K k ⟩ ⟩ ⟨ ⟨ K k ∣ . (71) \sum_{\alpha,a}\lvert R_{\alpha}F_a\rangle\rangle\langle\langle R_{\alpha}F_a\rvert
=\sum_k\lvert K_k\rangle\rangle\langle\langle K_k\rvert. \tag*{(71)} α , a ∑ ∣ R α F a ⟩⟩ ⟨⟨ R α F a ∣ = k ∑ ∣ K k ⟩⟩ ⟨⟨ K k ∣ . (71)
First consider only terms with K k ≠ 0 K_k\ne0 K k = 0 . If ∣ w ⟩ \lvert w\rangle ∣ w ⟩ is orthogonal to every ∣ K k ⟩ ⟩ \lvert K_k\rangle\rangle ∣ K k ⟩⟩ , taking its expectation above yields
∑ α , a ∣ ⟨ w ∣ R α F a ⟩ ⟩ ∣ 2 = 0. \sum_{\alpha,a}\left\lvert\langle w\mid R_{\alpha}F_a\rangle\rangle\right\rvert^2=0. α , a ∑ ∣ ⟨ w ∣ R α F a ⟩⟩ ∣ 2 = 0.
Every summand is nonnegative, so each vanishes. Thus every R α F a R_{\alpha}F_a R α F a belongs to the span of the nonzero K k K_k K k , and we may write
R α F a = ∑ k v α , a , k K k . (72) R_{\alpha}F_a=\sum_k v_{\alpha,a,k}K_k. \tag*{(72)} R α F a = k ∑ v α , a , k K k . (72)
For d k = Tr ( K k † K k ) > 0 d_k=\operatorname{Tr}(K_k^{\dagger}K_k)>0 d k = Tr ( K k † K k ) > 0 , Hilbert–Schmidt orthogonality gives Tr ( K k † R α F a ) = d k v α , a , k \operatorname{Tr}(K_k^{\dagger}R_{\alpha}F_a)=d_kv_{\alpha,a,k} Tr ( K k † R α F a ) = d k v α , a , k . Taking the expectation of (71) in ∣ K k ⟩ ⟩ \lvert K_k\rangle\rangle ∣ K k ⟩⟩ and dividing by d k 2 d_k^2 d k 2 gives
∑ α , a ∣ v α , a , k ∣ 2 = 1. (73) \sum_{\alpha,a}\left\lvert v_{\alpha,a,k}\right\rvert^2=1. \tag*{(73)} α , a ∑ ∣ v α , a , k ∣ 2 = 1. (73)
Since ∑ α R α † R α = I \sum_{\alpha}R_{\alpha}^{\dagger}R_{\alpha}=I ∑ α R α † R α = I , using (70) gives
F a ′ † F a = ∑ α ( R α F a ′ ) † ( R α F a ) = ∑ k λ a , a ′ ( k ) K k † K k . (74) F_{a'}^{\dagger}F_a
=\sum_{\alpha}(R_{\alpha}F_{a'})^{\dagger}(R_{\alpha}F_a)
=\sum_k\lambda_{a,a'}^{(k)}K_k^{\dagger}K_k. \tag*{(74)} F a ′ † F a = α ∑ ( R α F a ′ ) † ( R α F a ) = k ∑ λ a , a ′ ( k ) K k † K k . (74)
where
λ a , a ′ ( k ) = ∑ α v α , a , k v α , a ′ , k ‾ . (75) \lambda_{a,a'}^{(k)}=\sum_{\alpha}v_{\alpha,a,k}\overline{v_{\alpha,a',k}}. \tag*{(75)} λ a , a ′ ( k ) = α ∑ v α , a , k v α , a ′ , k . (75)
For the column vectors v α , k = ( v α , a , k ) a v_{\alpha,k}=(v_{\alpha,a,k})_a v α , k = ( v α , a , k ) a ,
Λ ( k ) = ∑ α v α , k v α , k † ⪰ 0 , Tr Λ ( k ) = 1 , \Lambda^{(k)}=\sum_{\alpha}v_{\alpha,k}v_{\alpha,k}^{\dagger}\succeq0,\qquad\operatorname{Tr}\Lambda^{(k)}=1, Λ ( k ) = α ∑ v α , k v α , k † ⪰ 0 , Tr Λ ( k ) = 1 ,
where the trace follows from (73) . For K k = 0 K_k=0 K k = 0 , any positive semidefinite Λ ( k ) \Lambda^{(k)} Λ ( k ) of trace one suffices, since its operator contribution vanishes.
Sufficiency (⟸ \Longleftarrow ⟸ ). Conversely, suppose the stated matrices exist. Factor Λ ( k ) = T ( k ) T ( k ) † \Lambda^{(k)}=T^{(k)}T^{(k)\dagger} Λ ( k ) = T ( k ) T ( k ) † and write t a , j ( k ) = [ T ( k ) ] a , j t_{a,j}^{(k)}=[T^{(k)}]_{a,j} t a , j ( k ) = [ T ( k ) ] a , j . Then
λ a , a ′ ( k ) = ∑ j t a , j ( k ) t a ′ , j ( k ) ‾ , ∑ a , j ∣ t a , j ( k ) ∣ 2 = Tr Λ ( k ) = 1. (76) \lambda_{a,a'}^{(k)}=\sum_j t_{a,j}^{(k)}\overline{t_{a',j}^{(k)}},
\qquad
\sum_{a,j}\left\lvert t_{a,j}^{(k)}\right\rvert^2=\operatorname{Tr}\Lambda^{(k)}=1. \tag*{(76)} λ a , a ′ ( k ) = j ∑ t a , j ( k ) t a ′ , j ( k ) , a , j ∑ t a , j ( k ) 2 = Tr Λ ( k ) = 1. (76)
Let F \mathcal{F} F have orthonormal basis { ∣ k , j ⟩ } \{\lvert k,j\rangle\} {∣ k , j ⟩} and define G a : Q 0 → H o u t ⊗ F G_a:Q_0\to\mathcal{H}_{\mathrm{out}}\otimes\mathcal{F} G a : Q 0 → H out ⊗ F by
G a ∣ ψ ⟩ ≔ ∑ k , j t a , j ( k ) K k ∣ ψ ⟩ ⊗ ∣ k , j ⟩ . G_a\lvert\psi\rangle\coloneqq\sum_{k,j}t_{a,j}^{(k)}K_k\lvert\psi\rangle\otimes\lvert k,j\rangle. G a ∣ ψ ⟩ : = k , j ∑ t a , j ( k ) K k ∣ ψ ⟩ ⊗ ∣ k , j ⟩ .
The auxiliary basis { ∣ k , j ⟩ } k , j \{\lvert k,j\rangle\}_{k,j} {∣ k , j ⟩ } k , j is orthonormal, so the assumed operator identity implies
G a ′ † G a = ∑ k λ a , a ′ ( k ) K k † K k = F a ′ † F a . (77) G_{a'}^{\dagger}G_a=\sum_k\lambda_{a,a'}^{(k)}K_k^{\dagger}K_k=F_{a'}^{\dagger}F_a. \tag*{(77)} G a ′ † G a = k ∑ λ a , a ′ ( k ) K k † K k = F a ′ † F a . (77)
Thus the F a F_a F a and G a G_a G a have the same operator-valued Gram matrix. Let S \mathcal{S} S be the subspace spanned by the ranges of the noisy Kraus operators:
S ≔ { ∑ a F a ∣ ψ a ⟩ : ∣ ψ a ⟩ ∈ Q 0 for every a } . (78) \mathcal{S}\coloneqq\left\{\sum_aF_a\lvert\psi_a\rangle:\lvert\psi_a\rangle\in Q_0\text{ for every }a\right\}. \tag*{(78)} S : = { a ∑ F a ∣ ψ a ⟩ : ∣ ψ a ⟩ ∈ Q 0 for every a } . (78)
The vectors ∣ ψ a ⟩ \lvert\psi_a\rangle ∣ ψ a ⟩ are arbitrary, so the displayed set is a linear subspace. Every noisy output state is supported on S \mathcal{S} S . On this subspace, define
V S ( ∑ a F a ∣ ψ a ⟩ ) ≔ ∑ a G a ∣ ψ a ⟩ . (79) V_{\mathcal{S}}\left(\sum_aF_a\lvert\psi_a\rangle\right)\coloneqq\sum_aG_a\lvert\psi_a\rangle. \tag*{(79)} V S ( a ∑ F a ∣ ψ a ⟩ ) : = a ∑ G a ∣ ψ a ⟩ . (79)
This is independent of the chosen representation because
∥ ∑ a G a ∣ ψ a ⟩ ∥ 2 = ∑ a , a ′ ⟨ ψ a ′ ∣ F a ′ † F a ∣ ψ a ⟩ = ∥ ∑ a F a ∣ ψ a ⟩ ∥ 2 . (80) \left\|\sum_aG_a\lvert\psi_a\rangle\right\|^2
=\sum_{a,a'}\langle\psi_{a'}\mid F_{a'}^{\dagger}F_a\mid\psi_a\rangle
=\left\|\sum_aF_a\lvert\psi_a\rangle\right\|^2. \tag*{(80)} a ∑ G a ∣ ψ a ⟩ 2 = a , a ′ ∑ ⟨ ψ a ′ ∣ F a ′ † F a ∣ ψ a ⟩ = a ∑ F a ∣ ψ a ⟩ 2 . (80)
Indeed, subtracting two representations of the same vector gives zero on the right and therefore also on the left. The resulting linear map V S V_{\mathcal{S}} V S preserves norms and is therefore an isometry. Let Π S \Pi_S Π S project onto S \mathcal{S} S and extend V S V_S V S by zero, setting V = V S Π S V=V_S\Pi_S V = V S Π S . Then
V † V = Π S , V F a = G a . V^\dagger V=\Pi_S,\qquad VF_a=G_a. V † V = Π S , V F a = G a .
Choose a unit vector ∣ ξ ⟩ ∈ H o u t |\xi\rangle\in\mathcal{H}_{\mathrm{out}} ∣ ξ ⟩ ∈ H out and define
R ( X ) = Tr F ( V X V † ) + Tr [ ( I − Π S ) X ] ∣ ξ ⟩ ⟨ ξ ∣ . (81) \mathcal{R}(X)=\operatorname{Tr}_{F}(VXV^\dagger)+\operatorname{Tr}[(I-\Pi_S)X]|\xi\rangle\langle\xi|. \tag*{(81)} R ( X ) = Tr F ( V X V † ) + Tr [( I − Π S ) X ] ∣ ξ ⟩ ⟨ ξ ∣. (81)
The first term is completely positive. For an orthonormal basis { ∣ u s ⟩ } s \{|u_s\rangle\}_s { ∣ u s ⟩ } s of S ⊥ \mathcal{S}^{\perp} S ⊥ , the second term has Kraus operators ∣ ξ ⟩ ⟨ u s ∣ |\xi\rangle\langle u_s| ∣ ξ ⟩ ⟨ u s ∣ and is therefore also completely positive. Moreover,
Tr R ( X ) = Tr ( Π S X ) + Tr [ ( I − Π S ) X ] = Tr X . \operatorname{Tr}\mathcal{R}(X)=\operatorname{Tr}(\Pi_SX)+\operatorname{Tr}[(I-\Pi_S)X]=\operatorname{Tr}X. Tr R ( X ) = Tr ( Π S X ) + Tr [( I − Π S ) X ] = Tr X .
Thus R \mathcal{R} R is CPTP. Since every F a F_a F a has range in S \mathcal{S} S , the second term vanishes on noisy outputs. Using V F a = G a VF_a=G_a V F a = G a and (76) , we obtain
R ( ∑ a F a ρ F a † ) = ∑ a Tr F ( G a ρ G a † ) = ∑ k ( ∑ a , j ∣ t a , j ( k ) ∣ 2 ) K k ρ K k † = ∑ k K k ρ K k † . (82) \mathcal{R}\left(\sum_a F_a\rho F_a^\dagger\right)
=\sum_a\operatorname{Tr}_{F}(G_a\rho G_a^\dagger)
=\sum_k\left(\sum_{a,j}|t_{a,j}^{(k)}|^2\right)K_k\rho K_k^\dagger
=\sum_kK_k\rho K_k^\dagger. \tag*{(82)} R ( a ∑ F a ρ F a † ) = a ∑ Tr F ( G a ρ G a † ) = k ∑ ( a , j ∑ ∣ t a , j ( k ) ∣ 2 ) K k ρ K k † = k ∑ K k ρ K k † . (82)
This proves (68) .
Remark IV.4 (Operational interpretation of the coefficient matrices). For F a = E e C o F_a=E_eC_o F a = E e C o , with a = ( o , e ) a=(o,e) a = ( o , e ) , choose an environment basis { ∣ a ⟩ } a \{|a\rangle\}_a { ∣ a ⟩ } a . The complementary channel of the noisy realization, obtained from an associated Stinespring dilation [63 ] , is
C E c ( ρ ) = ∑ a , a ′ Tr ( F a ′ † F a ρ ) ∣ a ⟩ ⟨ a ′ ∣ . \mathcal{C}_{E}^{\mathrm{c}}(\rho)=\sum_{a,a'}\operatorname{Tr}(F_{a'}^\dagger F_a\rho)|a\rangle\langle a'|. C E c ( ρ ) = a , a ′ ∑ Tr ( F a ′ † F a ρ ) ∣ a ⟩ ⟨ a ′ ∣.
It gives the environment output when the circuit output is discarded. Theorem IV.3 expresses it as
C E c ( ρ ) = ∑ k p k ( ρ ) Λ ( k ) , \mathcal{C}_{E}^{\mathrm{c}}(\rho)=\sum_kp_k(\rho)\Lambda^{(k)}, C E c ( ρ ) = k ∑ p k ( ρ ) Λ ( k ) ,
p k ( ρ ) = Tr ( K k ρ K k † ) , K k = I C k . p_k(\rho)=\operatorname{Tr}(K_k\rho K_k^\dagger),\qquad K_k=IC_k. p k ( ρ ) = Tr ( K k ρ K k † ) , K k = I C k .
Since the ideal branches retain distinct records, (70) gives
C i d c ( ρ ) = ∑ k p k ( ρ ) ∣ k ⟩ ⟨ k ∣ . \mathcal{C}_{\mathrm{id}}^{\mathrm{c}}(\rho)=\sum_kp_k(\rho)|k\rangle\langle k|. C id c ( ρ ) = k ∑ p k ( ρ ) ∣ k ⟩ ⟨ k ∣.
Consequently,
C E c = T ∘ C i d c , \mathcal{C}_{E}^{\mathrm{c}}=\mathcal{T}\circ\mathcal{C}_{\mathrm{id}}^{\mathrm{c}}, C E c = T ∘ C id c ,
T ( X ) = ∑ k ⟨ k ∣ X ∣ k ⟩ Λ ( k ) . \mathcal{T}(X)=\sum_k\langle k|X|k\rangle\Lambda^{(k)}. T ( X ) = k ∑ ⟨ k ∣ X ∣ k ⟩ Λ ( k ) .
Positivity and unit trace of each Λ ( k ) \Lambda^{(k)} Λ ( k ) make T \mathcal{T} T a CPTP measure-and-prepare map, namely, it reads k k k and prepares the environment state Λ ( k ) \Lambda^{(k)} Λ ( k ) . Thus exact recovery is possible precisely when the noisy environment can be simulated from the outcome record alone. This is the exact-recovery instance of complementary-channel duality [33 ] . An information-theoretic correctability criterion is also given for strategic codes in [19 Theorem 2] . For a single isometric ideal branch, the complementary channel is constant, recovering the usual Knill–Laflamme interpretation.
Corollary IV.5 (Knill–Laflamme conditions [10 ] as a special case). Let C e n c : Q L → Q C_{\mathrm{enc}}:Q_L\to Q C enc : Q L → Q be an isometric encoder, put P = C e n c C e n c † P=C_{\mathrm{enc}}C_{\mathrm{enc}}^\dagger P = C enc C enc † , and write C e n c , i d ( ρ ) = C e n c ρ C e n c † C_{\mathrm{enc,id}}(\rho)=C_{\mathrm{enc}}\rho C_{\mathrm{enc}}^\dagger C enc , id ( ρ ) = C enc ρ C enc † . For a CPTP noise channel E \mathcal{E} E on Q Q Q with Kraus operators { E a } a \{E_a\}_a { E a } a , a CPTP recovery R \mathcal{R} R on Q Q Q satisfying
R ∘ E ∘ C e n c , i d = C e n c , i d \mathcal{R}\circ\mathcal{E}\circ C_{\mathrm{enc,id}}=C_{\mathrm{enc,id}} R ∘ E ∘ C enc , id = C enc , id exists if and only if
P E a † E b P = α a b P ( ∀ a , b ) (83) PE_a^\dagger E_bP=\alpha_{ab}P\qquad(\forall a,b) \tag*{(83)} P E a † E b P = α ab P ( ∀ a , b ) (83) for some α a b ∈ C \alpha_{ab}\in\mathbb{C} α ab ∈ C .
Proof. With ideal Kraus operator C e n c C_{\mathrm{enc}} C enc and noisy Kraus operators E a C e n c E_aC_{\mathrm{enc}} E a C enc , Theorem IV.3 gives the conditions
C e n c † E a † E b C e n c = α a b I Q L , C_{\mathrm{enc}}^\dagger E_a^\dagger E_bC_{\mathrm{enc}}=\alpha_{ab}I_{Q_L}, C enc † E a † E b C enc = α ab I Q L ,
which are equivalent to (83) because C e n c C_{\mathrm{enc}} C enc is an isometry. For any unit vector ∣ ψ ⟩ ∈ im C e n c |\psi\rangle\in\operatorname{im}C_{\mathrm{enc}} ∣ ψ ⟩ ∈ im C enc , the coefficients satisfy α a b = ⟨ E a ψ ∣ E b ψ ⟩ \alpha_{ab}=\langle E_a\psi|E_b\psi\rangle α ab = ⟨ E a ψ ∣ E b ψ ⟩ . Thus α = [ α a b ] \alpha=[\alpha_{ab}] α = [ α ab ] is positive semidefinite and has unit trace by trace preservation of E \mathcal{E} E , so the coefficient requirements of Theorem IV.3 are automatic.
Corollary IV.6 (Semidefinite feasibility formulation). Fix a circuit C C C and a noise model E \mathcal{E} E satisfying the hypotheses of Theorem IV.3. Let a = ( o , e ) a=(o,e) a = ( o , e ) be the number of combined indices and define
F a ≜ E e C o , a = ( o , e ) , F_a\triangleq E_eC_o,\qquad a=(o,e), F a ≜ E e C o , a = ( o , e ) , M k ≜ C k † I † I C k . M_k\triangleq C_k^\dagger I^\dagger IC_k. M k ≜ C k † I † I C k . Then C C C is fault-tolerant under E \mathcal{E} E if and only if the following semidefinite feasibility problem, with Hermitian m × m m\times m m × m matrix variables { Λ ( k ) } k \{\Lambda^{(k)}\}_k { Λ ( k ) } k , is feasible:
find { Λ ( k ) } k \text{find }\{\Lambda^{(k)}\}_k find { Λ ( k ) } k subject to Λ ( k ) ≥ 0 , Tr Λ ( k ) = 1 ∀ k , \text{subject to }\Lambda^{(k)}\geq0,\qquad\operatorname{Tr}\Lambda^{(k)}=1\quad\forall k, subject to Λ ( k ) ≥ 0 , Tr Λ ( k ) = 1 ∀ k , F a ′ † F a = ∑ k [ Λ ( k ) ] a , a ′ M k ∀ a , a ′ . (84) F_{a'}^\dagger F_a=\sum_k[\Lambda^{(k)}]_{a,a'}M_k\qquad\forall a,a'. \tag*{(84)} F a ′ † F a = k ∑ [ Λ ( k ) ] a , a ′ M k ∀ a , a ′ . (84) The real and imaginary parts of the operator equalities are imposed entrywise.
Proof. Since the circuit and noise model are fixed, the operators F a F_a F a and M k M_k M k are known. All equality constraints in (84) are therefore affine in the matrix variables, and the remaining constraints are positive semidefiniteness conditions. Thus (84) is an SDP feasibility problem. Its equivalence to exact CPTP recovery follows from Theorem IV.3 upon identifying λ a , a ′ ( k ) = [ Λ ( k ) ] a , a ′ \lambda^{(k)}_{a,a'}=[\Lambda^{(k)}]_{a,a'} λ a , a ′ ( k ) = [ Λ ( k ) ] a , a ′ .
SDP for fault-tolerant circuit synthesis
We seek a circuit and a recovery that together realize a prescribed operation under a fixed noise model. Fix the depth ℓ \ell ℓ and the registers of Theorem III.1, with
Q r ≅ C 2 n r , A r ≅ C 2 m r , A r o u t ≅ C 2 m r ′ . Q_r \cong\mathbb{C}^{2^{n_r}}, \qquad A_r \cong\mathbb{C}^{2^{m_r}}, \qquad A_r^{\mathrm{out}} \cong\mathbb{C}^{2^{m'_r}}. Q r ≅ C 2 n r , A r ≅ C 2 m r , A r out ≅ C 2 m r ′ .
Here Q r Q_r Q r is the data register, A r A_r A r is the preparation register and A r o u t A_r^{\mathrm{out}} A r out is the retained outcome register. The indices run over 0 ≤ r ≤ ℓ 0 \le r \le\ell 0 ≤ r ≤ ℓ with ℓ \ell ℓ fixed, and for every r ∈ Z ℓ + r \in\mathbb{Z}_{\ell}^{+} r ∈ Z ℓ + we also fix m r + n r − 1 = m r ′ + n r m_r+n_{r-1}=m'_r+n_r m r + n r − 1 = m r ′ + n r . The spaces and their dimensions are fixed throughout the search.
Let C Θ = { C θ : θ ∈ Θ } \mathcal{C}_{\Theta}=\{C_{\theta}:\theta\in\Theta\} C Θ = { C θ : θ ∈ Θ } be a prescribed circuit family. For each component r r r and preceding outcome history h = o 1 : r − 1 h=o_{1:r-1} h = o 1 : r − 1 , its operators satisfy
C θ , o r ∣ h : Q r − 1 ⟶ A r o u t ⊗ Q r , C_{\theta,o_r\mid h}:Q_{r-1}\longrightarrow A_r^{\mathrm{out}}\otimes Q_r, C θ , o r ∣ h : Q r − 1 ⟶ A r out ⊗ Q r ,
∑ o r C θ , o r ∣ h † C θ , o r ∣ h = I Q r − 1 . \sum_{o_r} C_{\theta,o_r\mid h}^{\dagger}C_{\theta,o_r\mid h}=I_{Q_{r-1}}. o r ∑ C θ , o r ∣ h † C θ , o r ∣ h = I Q r − 1 .
The parameter θ \theta θ labels the permitted choices of component operations, gate supports, gate orderings and dependence on previous measurement outcomes within the fixed depth and register structure. (Note: Explicit knowledge about the circuit family parametrized by Θ \Theta Θ may yield additional affine constraints or linear matrix inequalities that strengthen the SDP search in Theorem IV.9. ) Fixing θ \theta θ specifies every component operator C θ , o r ∣ h C_{\theta,o_r\mid h} C θ , o r ∣ h and hence the complete circuit C θ C_{\theta} C θ . The recovery R θ R_{\theta} R θ is chosen for that circuit and may therefore vary with θ \theta θ . Set
H o u t = A 1 : ℓ o u t ⊗ Q ℓ , \mathcal{H}_{\mathrm{out}}=A_{1:\ell}^{\mathrm{out}}\otimes Q_{\ell}, H out = A 1 : ℓ out ⊗ Q ℓ ,
and use the external input copy Q 0 e x t ≅ Q 0 Q_0^{\mathrm{ext}}\cong Q_0 Q 0 ext ≅ Q 0 of Appendix A. Fix a noise model E \mathcal{E} E satisfying Theorem III.4 on the common ports, and a target CPTP map
C t a r : L ( Q 0 e x t ) ⟶ L ( H o u t ) . \mathcal{C}_{\mathrm{tar}}:\mathcal{L}(Q_0^{\mathrm{ext}})\longrightarrow\mathcal{L}(\mathcal{H}_{\mathrm{out}}). C tar : L ( Q 0 ext ) ⟶ L ( H out ) .
We ask whether for some θ ∈ Θ \theta\in\Theta θ ∈ Θ there exists a CPTP recovery map R θ : L ( H o u t ) → L ( H o u t ) R_{\theta}:\mathcal{L}(\mathcal{H}_{\mathrm{out}})\to\mathcal{L}(\mathcal{H}_{\mathrm{out}}) R θ : L ( H out ) → L ( H out ) such that
C θ , i d = C t a r , C_{\theta,\mathrm{id}}=C_{\mathrm{tar}}, C θ , id = C tar ,
R θ ∘ E ∘ C θ , c m = C t a r . (85) R_{\theta}\circ\mathcal{E}\circ C_{\theta,\mathrm{cm}}=C_{\mathrm{tar}}. \tag*{(85)} R θ ∘ E ∘ C θ , cm = C tar . (85)
These equalities concern the complete operation, including the quantum output and measurement record. The recovery may depend on the chosen circuit and use its record, but must work for every input without access to unobserved faults or the noise memory. It is noiseless, and its implementation cost is excluded from the circuit resource budget. Figure 3 illustrates the search question.
Figure 3. Fault-tolerant circuit synthesis with fixed depth ℓ \ell ℓ , register dimensions, target operation and noise comb E \mathbf{E} E . The circuit C θ \mathcal{C}_{\theta} C θ and its recovery R θ \mathcal{R}_{\theta} R θ are chosen jointly subject to the displayed ideal-target and exact-recovery conditions. The local boxes show a fixed noise-Kraus index sequence e = ( e 0 , … , e ℓ ) e=(e_0,\ldots,e_{\ell}) e = ( e 0 , … , e ℓ ) and circuit outcome sequence o = ( o 1 , … , o ℓ ) o=(o_1,\ldots,o_{\ell}) o = ( o 1 , … , o ℓ ) ; summing over e e e and o o o gives the noisy channel before recovery. The upper wire carries the noise memory; record registers and classical control are suppressed. Noise acts on the ports specified by the model. For adaptive circuits, the outcome history selects the components as in Theorem III.6.
We first describe the circuit search variables. Use the open-wire prefix spaces
H r = ⨂ i ∈ Z r + ( A i o u t ⊗ Q i o u t ⊗ Q i − 1 i n ) \mathcal{H}_r=\bigotimes_{i\in\mathbb{Z}_r^+}\left(A_i^{\mathrm{out}}\otimes Q_i^{\mathrm{out}}\otimes Q_{i-1}^{\mathrm{in}}\right) H r = i ∈ Z r + ⨂ ( A i out ⊗ Q i out ⊗ Q i − 1 in )
of Appendix A, with H 0 = C \mathcal{H}_0=\mathbb{C} H 0 = C . Set d 0 = dim Q 0 e x t d_0=\dim Q_0^{\mathrm{ext}} d 0 = dim Q 0 ext . An actual circuit has prefix normalization operators, for 1 ≤ r ≤ ℓ 1\le r\le\ell 1 ≤ r ≤ ℓ ,
C θ ( r ) = ∑ o 1 : r C θ , o 1 : r C θ , o 1 : r † , C θ ( 0 ) = I Q 0 e x t , C_{\theta}^{(r)}=\sum_{o_{1:r}}C_{\theta,o_{1:r}}C_{\theta,o_{1:r}}^{\dagger}, \qquad C_{\theta}^{(0)}=I_{Q_0^{\mathrm{ext}}}, C θ ( r ) = o 1 : r ∑ C θ , o 1 : r C θ , o 1 : r † , C θ ( 0 ) = I Q 0 ext ,
where the prefix Kraus operators are defined in Appendix A. Now, introduce Hermitian variables C ( r ) ∈ L ( H r ⊗ Q 0 e x t ) C^{(r)}\in\mathcal{L}(\mathcal{H}_r\otimes Q_0^{\mathrm{ext}}) C ( r ) ∈ L ( H r ⊗ Q 0 ext ) and impose causal normalization constraints (see Appendix A):
C ( 0 ) = I Q 0 e x t , C^{(0)}=I_{Q_0^{\mathrm{ext}}}, C ( 0 ) = I Q 0 ext ,
C ( r ) ⪰ 0 , C^{(r)}\succeq0, C ( r ) ⪰ 0 ,
Tr A r o u t Q r o u t C ( r ) = I Q r − 1 i n ⊗ C ( r − 1 ) ( 1 ≤ r ≤ ℓ ) . (86) \operatorname{Tr}_{A_r^{\mathrm{out}}Q_r^{\mathrm{out}}}C^{(r)}
=I_{Q_{r-1}^{\mathrm{in}}}\otimes C^{(r-1)}
\qquad(1\le r\le\ell). \tag*{(86)} Tr A r out Q r out C ( r ) = I Q r − 1 in ⊗ C ( r − 1 ) ( 1 ≤ r ≤ ℓ ) . (86)
We also retain
C ( ℓ ) = Tr Q 0 e x t C ( ℓ ) d 0 ⊗ I Q 0 e x t , C^{(\ell)}=\frac{\operatorname{Tr}_{Q_0^{\mathrm{ext}}}C^{(\ell)}}{d_0}\otimes I_{Q_0^{\mathrm{ext}}}, C ( ℓ ) = d 0 Tr Q 0 ext C ( ℓ ) ⊗ I Q 0 ext ,
C ( ℓ ) = ∑ o P o C ( ℓ ) P o , C^{(\ell)}=\sum_o P_oC^{(\ell)}P_o, C ( ℓ ) = o ∑ P o C ( ℓ ) P o ,
( C ( ℓ ) ) T 1 : r ⪰ 0 ( 1 ≤ r < ℓ ) . (87) \left(C^{(\ell)}\right)^{\mathrm{T}_{1:r}}\succeq0
\qquad(1\le r<\ell). \tag*{(87)} ( C ( ℓ ) ) T 1 : r ⪰ 0 ( 1 ≤ r < ℓ ) . (87)
Here P o = ∣ o ⟩ ⟨ o ∣ A 1 : ℓ o u t ⊗ I P_o=|o\rangle\langle o|_{A_{1:\ell}^{\mathrm{out}}}\otimes I P o = ∣ o ⟩ ⟨ o ∣ A 1 : ℓ out ⊗ I , and T 1 : r \mathrm{T}_{1:r} T 1 : r transposes the complete input and output factors of components 1 , … , r 1,\ldots,r 1 , … , r . These constraints express the external identity factor, classical records and partial-transpose positivity.
Let S Θ \mathcal{S}_{\Theta} S Θ be the set of Hermitian prefix tuples satisfying Eqs. (86) and (87) , together with any specified finite collection of affine equalities and linear matrix inequalities valid for every circuit in C Θ \mathcal{C}_{\Theta} C Θ . These additional constraints encode necessary properties of the chosen family.
Proposition IV.7 (Circuit search set). The set S Θ \mathcal{S}_{\Theta} S Θ is convex, compact and SDP-representable, and
{ ( C θ ( 0 ) , … , C θ ( ℓ ) ) : θ ∈ Θ } ⊆ S Θ . (88) \left\{\left(C_{\theta}^{(0)},\ldots,C_{\theta}^{(\ell)}\right):\theta\in\Theta\right\}\subseteq\mathcal{S}_{\Theta}. \tag*{(88)} { ( C θ ( 0 ) , … , C θ ( ℓ ) ) : θ ∈ Θ } ⊆ S Θ . (88) Every tuple in this set satisfies
Tr C ( r ) = d 0 ∏ i = 0 r − 1 dim Q i , 0 ≤ r ≤ ℓ , (89) \operatorname{Tr}C^{(r)}=d_0\prod_{i=0}^{r-1}\dim Q_i,
\qquad0\le r\le\ell, \tag*{(89)} Tr C ( r ) = d 0 i = 0 ∏ r − 1 dim Q i , 0 ≤ r ≤ ℓ , (89) where the product is one for r = 0 r=0 r = 0 .
Proof. For an actual circuit C θ C_{\theta} C θ , causal normalization follows from Appendix A. Its Kraus representation gives the external identity factor and block diagonality in the retained outcome record. Each branch operator C θ , o C θ , o † C_{\theta,o}C_{\theta,o}^{\dagger} C θ , o C θ , o † is a tensor product of positive semidefinite operators on the complete component factors and I Q 0 e x t I_{Q_0^{\mathrm{ext}}} I Q 0 ext . Transposing any collection of complete component factors therefore preserves positivity. Summing over the branches establishes the partial-transpose constraints and hence (87) . The additional family constraints hold by assumption, proving (88) .
The defining constraints are a finite collection of affine equalities and linear matrix inequalities in the Hermitian prefix variables. Thus S Θ \mathcal{S}_{\Theta} S Θ is convex and SDP-representable. It is also closed, since the affine maps are continuous and the positive semidefinite cone is closed.
It remains to establish boundedness. Taking traces in (86) gives
Tr C ( r ) = ( dim Q r − 1 ) Tr C ( r − 1 ) . \operatorname{Tr} \mathsf{C}^{(r)}=(\dim Q_{r-1})\operatorname{Tr} \mathsf{C}^{(r-1)}. Tr C ( r ) = ( dim Q r − 1 ) Tr C ( r − 1 ) .
Starting from C ( 0 ) = I Q 0 e x t \mathsf{C}^{(0)}=I_{Q^{\mathrm{ext}}_0} C ( 0 ) = I Q 0 ext and iterating proves (89) .
To bound each prefix, use the Frobenius norm ∥ A ∥ F = Tr ( A † A ) \lVert A\rVert_{\mathrm{F}}=\sqrt{\operatorname{Tr}(A^{\dagger}A)} ∥ A ∥ F = Tr ( A † A ) . Since C ( r ) ⪰ 0 \mathsf{C}^{(r)}\succeq0 C ( r ) ⪰ 0 , its eigenvalues λ j \lambda_j λ j are nonnegative, and therefore
∥ C ( r ) ∥ F 2 = Tr [ ( C ( r ) ) 2 ] = ∑ j λ j 2 ≤ ( ∑ j λ j ) 2 = ( d 0 ∏ i = 0 r − 1 dim Q i ) 2 . \begin{aligned}
\lVert\mathsf{C}^{(r)}\rVert_{\mathrm{F}}^2
&=\operatorname{Tr}\left[(\mathsf{C}^{(r)})^2\right]
=\sum_j\lambda_j^2\\
&\leq\left(\sum_j\lambda_j\right)^2\\
&=\left(d_0\prod_{i=0}^{r-1}\dim Q_i\right)^2.
\end{aligned} ∥ C ( r ) ∥ F 2 = Tr [ ( C ( r ) ) 2 ] = j ∑ λ j 2 ≤ ( j ∑ λ j ) 2 = ( d 0 i = 0 ∏ r − 1 dim Q i ) 2 .
The number of prefixes and all register dimensions are fixed, so these bounds make the entire prefix tuple bounded. Hence S Θ \mathcal{S}_{\Theta} S Θ is closed and bounded in a finite-dimensional real vector space, and is therefore compact. □
Remark IV.8. Membership in S Θ \mathcal{S}_{\Theta} S Θ need not provide a circuit decomposition in C Θ \mathcal{C}_{\Theta} C Θ . This is the first relaxation of the search problem, namely, we only retain necessary matrix constraints instead of requiring an admissible circuit realization.
We express the target and recovery conditions using the unnormalized Choi operator
J N = ( N ⊗ id ) ( ∣ I ⟩ ⟩ ⟨ ⟨ I ∣ ) = ∑ a ∣ K a ⟩ ⟩ ⟨ ⟨ K a ∣ (90) J_{\mathcal{N}}=(\mathcal{N}\otimes\operatorname{id})(\lvert I\rangle\!\rangle\langle\!\langle I\rvert)=\sum_a\lvert K_a\rangle\!\rangle\langle\!\langle K_a\rvert \tag*{(90)} J N = ( N ⊗ id ) (∣ I ⟩ ⟩ ⟨ ⟨ I ∣) = a ∑ ∣ K a ⟩ ⟩ ⟨ ⟨ K a ∣ (90)
for N ( ρ ) = ∑ a K a ρ K a † \mathcal{N}(\rho)=\sum_a K_a\rho K_a^{\dagger} N ( ρ ) = ∑ a K a ρ K a † . Equality of Choi operators is equivalent to equality of the corresponding maps [20 ] . We can therefore formulate the search for a CPTP recovery map as a search for its Choi operator, subject to positivity and the partial-trace constraint enforcing trace preservation.
Let R 0 ≅ Q 0 e x t ≅ Q 0 R_0\cong Q^{\mathrm{ext}}_0\cong Q_0 R 0 ≅ Q 0 ext ≅ Q 0 be a reference register, and put
Φ 0 = ∣ I Q 0 ⟩ ⟩ ⟨ ⟨ I Q 0 ∣ , J t a r = ( C t a r ⊗ id R 0 ) ( Φ 0 ) , \Phi_0=\lvert I_{Q_0}\rangle\!\rangle\langle\!\langle I_{Q_0}\rvert,\qquad J_{\mathrm{tar}}=(\mathcal{C}_{\mathrm{tar}}\otimes\operatorname{id}_{R_0})(\Phi_0), Φ 0 = ∣ I Q 0 ⟩ ⟩ ⟨ ⟨ I Q 0 ∣ , J tar = ( C tar ⊗ id R 0 ) ( Φ 0 ) ,
where Φ 0 \Phi_0 Φ 0 acts on Q 0 e x t ⊗ R 0 Q^{\mathrm{ext}}_0\otimes R_0 Q 0 ext ⊗ R 0 . Define the fixed linear map
J E ( Y ) = ( E ⊗ id R 0 ) [ Tr Q 0 e x t Y d 0 ⊗ Φ 0 ] (91) J_{\mathbf{E}}(Y)=(\mathbf{E}\otimes\operatorname{id}_{R_0})\left[\frac{\operatorname{Tr}_{Q^{\mathrm{ext}}_0}Y}{d_0}\otimes\Phi_0\right] \tag*{(91)} J E ( Y ) = ( E ⊗ id R 0 ) [ d 0 Tr Q 0 ext Y ⊗ Φ 0 ] (91)
from L ( H ℓ ⊗ Q 0 e x t ) \mathcal{L}(\mathcal{H}_{\ell}\otimes Q^{\mathrm{ext}}_0) L ( H ℓ ⊗ Q 0 ext ) to L ( H o u t ⊗ R 0 ) \mathcal{L}(\mathcal{H}_{\mathrm{out}}\otimes R_0) L ( H out ⊗ R 0 ) . The normalized partial trace gives
C θ , c m ( ρ ) = Tr Q 0 e x t C θ ( ℓ ) d 0 ⊗ ρ . \mathcal{C}_{\theta,\mathrm{cm}}(\rho)=\frac{\operatorname{Tr}_{Q^{\mathrm{ext}}_0}\mathsf{C}^{(\ell)}_{\theta}}{d_0}\otimes\rho. C θ , cm ( ρ ) = d 0 Tr Q 0 ext C θ ( ℓ ) ⊗ ρ .
Define J i d ( ⋅ ) J_{\mathrm{id}}(\cdot) J id ( ⋅ ) by replacing E \mathbf{E} E with I \mathbf{I} I in the definition of J E ( ⋅ ) J_{\mathbf{E}}(\cdot) J E ( ⋅ ) . For actual circuits,
J E ( C θ ( ℓ ) ) = J E ∘ C θ , c m , J i d ( C θ ( ℓ ) ) = J C θ , i d . (92) \begin{aligned}
J_{\mathbf{E}}(\mathsf{C}^{(\ell)}_{\theta})&=J_{\mathbf{E}\circ\mathcal{C}_{\theta,\mathrm{cm}}},\\
J_{\mathrm{id}}(\mathsf{C}^{(\ell)}_{\theta})&=J_{\mathcal{C}_{\theta,\mathrm{id}}}. \tag*{(92)}
\end{aligned} J E ( C θ ( ℓ ) ) J id ( C θ ( ℓ ) ) = J E ∘ C θ , cm , = J C θ , id . (92)
Both maps also apply to relaxed matrices in S Θ \mathcal{S}_{\Theta} S Θ for which no circuit realization is known. Let H o u t ′ ≅ H o u t \mathcal{H}'_{\mathrm{out}}\cong\mathcal{H}_{\mathrm{out}} H out ′ ≅ H out label the recovery output. A recovery R θ \mathcal{R}_{\theta} R θ for the circuit C θ C_{\theta} C θ is represented by its unnormalized Choi operator
J R θ ∈ L ( H o u t ′ ⊗ H o u t ) . J_{\mathcal{R}_{\theta}}\in\mathcal{L}\left(\mathcal{H}'_{\mathrm{out}}\otimes\mathcal{H}_{\mathrm{out}}\right). J R θ ∈ L ( H out ′ ⊗ H out ) .
The inverse Choi formula [20 ] determines R θ \mathcal{R}_{\theta} R θ linearly from J R θ J_{\mathcal{R}_{\theta}} J R θ as
R θ ( A ) = Tr H o u t [ J R θ ( I H o u t ′ ⊗ A T ) ] . \mathcal{R}_{\theta}(A)=\operatorname{Tr}_{\mathcal{H}_{\mathrm{out}}}\left[J_{\mathcal{R}_{\theta}}\left(I_{\mathcal{H}'_{\mathrm{out}}}\otimes A^{\mathsf{T}}\right)\right]. R θ ( A ) = Tr H out [ J R θ ( I H out ′ ⊗ A T ) ] .
This map is CPTP precisely when
J R θ ⪰ 0 , Tr H o u t ′ J R θ = I H o u t . (93) J_{\mathcal{R}_{\theta}}\succeq0,\qquad\operatorname{Tr}_{\mathcal{H}'_{\mathrm{out}}}J_{\mathcal{R}_{\theta}}=I_{\mathcal{H}_{\mathrm{out}}}. \tag*{(93)} J R θ ⪰ 0 , Tr H out ′ J R θ = I H out . (93)
All transposes use fixed bases. We identify H o u t ′ \mathcal{H}'_{\mathrm{out}} H out ′ with H o u t \mathcal{H}_{\mathrm{out}} H out in these bases when comparing the recovered operation with the target.
For a circuit C θ C_{\theta} C θ that implements the target ideally, exact recovery is equivalent to (93) and
( R θ ⊗ id R 0 ) ( J E ( C θ ( ℓ ) ) ) = J t a r . (94) \left(\mathcal{R}_{\theta}\otimes\operatorname{id}_{R_0}\right)\left(J_{\mathcal{E}}\left(C_{\theta}^{(\ell)}\right)\right)=J_{\mathrm{tar}}. \tag*{(94)} ( R θ ⊗ id R 0 ) ( J E ( C θ ( ℓ ) ) ) = J tar . (94)
For a fixed circuit, this equation is linear in J R θ J_{\mathcal{R}_{\theta}} J R θ and gives an exact recovery SDP. When the circuit also varies, it contains products of unknown entries of J R θ J_{\mathcal{R}_{\theta}} J R θ and C ( ℓ ) C^{(\ell)} C ( ℓ ) . The equation is therefore bilinear, and the joint problem is generally nonconvex even after replacing the circuit constraints by S Θ \mathcal{S}_{\Theta} S Θ .
To express this bilinear equation as a linear constraint, introduce a Hermitian variable
Z ∈ L ( H o u t ′ ⊗ H o u t ⊗ H ℓ ⊗ Q 0 e x t ) . Z\in\mathcal{L}\left(\mathcal{H}'_{\mathrm{out}}\otimes\mathcal{H}_{\mathrm{out}}\otimes\mathcal{H}_{\ell}\otimes\mathcal{Q}^{\mathrm{ext}}_0\right). Z ∈ L ( H out ′ ⊗ H out ⊗ H ℓ ⊗ Q 0 ext ) .
For a genuine circuit–recovery pair, we would have C ( ℓ ) = C θ ( ℓ ) C^{(\ell)}=C_{\theta}^{(\ell)} C ( ℓ ) = C θ ( ℓ ) and
Z = J R θ ⊗ C ( ℓ ) . (95) Z=J_{\mathcal{R}_{\theta}}\otimes C^{(\ell)}. \tag*{(95)} Z = J R θ ⊗ C ( ℓ ) . (95)
Define a fixed linear map K E \mathcal{K}_{\mathcal{E}} K E on product matrices by
K E ( J R θ ⊗ Y ) = ( R θ ⊗ id R 0 ) ( J E ( Y ) ) . (96) \mathcal{K}_{\mathcal{E}}\left(J_{\mathcal{R}_{\theta}}\otimes Y\right)=\left(\mathcal{R}_{\theta}\otimes\operatorname{id}_{R_0}\right)\left(J_{\mathcal{E}}(Y)\right). \tag*{(96)} K E ( J R θ ⊗ Y ) = ( R θ ⊗ id R 0 ) ( J E ( Y ) ) . (96)
For this definition, J R θ ∈ L ( H o u t ′ ⊗ H o u t ) J_{\mathcal{R}_{\theta}}\in\mathcal{L}(\mathcal{H}'_{\mathrm{out}}\otimes\mathcal{H}_{\mathrm{out}}) J R θ ∈ L ( H out ′ ⊗ H out ) and Y ∈ L ( H ℓ ⊗ Q 0 e x t ) Y\in\mathcal{L}(\mathcal{H}_{\ell}\otimes\mathcal{Q}^{\mathrm{ext}}_0) Y ∈ L ( H ℓ ⊗ Q 0 ext ) may be arbitrary operators. The corresponding linear map R θ \mathcal{R}_{\theta} R θ is given by the inverse Choi formula [20 ] applied to J R θ J_{\mathcal{R}_{\theta}} J R θ , without imposing the CPTP constraints. The right-hand side is bilinear in J R θ J_{\mathcal{R}_{\theta}} J R θ and Y Y Y . Its values on a product matrix basis therefore define a unique linear map on all Z Z Z , with output in L ( H o u t ′ ⊗ R 0 ) \mathcal{L}(\mathcal{H}'_{\mathrm{out}}\otimes R_0) L ( H out ′ ⊗ R 0 ) . This construction is independent of the chosen θ \theta θ . For a genuine circuit–recovery pair ( C θ , R θ ) (C_{\theta},\mathcal{R}_{\theta}) ( C θ , R θ ) , the recovery equation becomes
K E ( Z ) = J t a r , (97) \mathcal{K}_{\mathcal{E}}(Z)=J_{\mathrm{tar}}, \tag*{(97)} K E ( Z ) = J tar , (97)
which is linear in Z Z Z .
The product requirement (95) remains nonconvex. We relax it by retaining necessary semidefinite constraints. Let T r e c \mathsf{T}_{\mathrm{rec}} T rec transpose the complete recovery factor H o u t ′ ⊗ H o u t \mathcal{H}'_{\mathrm{out}}\otimes\mathcal{H}_{\mathrm{out}} H out ′ ⊗ H out , leaving the circuit factors H ℓ ⊗ Q 0 e x t \mathcal{H}_{\ell}\otimes\mathcal{Q}^{\mathrm{ext}}_0 H ℓ ⊗ Q 0 ext unchanged. Every genuine pair satisfies
Z ⪰ 0 , Z T r e c = J R θ ⊗ C ( ℓ ) ⪰ 0 , Z\succeq0,\qquad
Z^{\mathsf{T}_{\mathrm{rec}}}=J_{\mathcal{R}_{\theta}}\otimes C^{(\ell)}\succeq0, Z ⪰ 0 , Z T rec = J R θ ⊗ C ( ℓ ) ⪰ 0 ,
Tr H o u t ′ Z = I H o u t ⊗ C ( ℓ ) . (98) \operatorname{Tr}_{\mathcal{H}'_{\mathrm{out}}}Z=I_{\mathcal{H}_{\mathrm{out}}}\otimes C^{(\ell)}. \tag*{(98)} Tr H out ′ Z = I H out ⊗ C ( ℓ ) . (98)
The second line follows because the full transpose J R θ T J_{\mathcal{R}_{\theta}}^{\mathsf{T}} J R θ T is positive semidefinite, and the last follows from trace preservation of R θ \mathcal{R}_{\theta} R θ . These constraints are necessary for the product form but do not enforce it. Replacing the product requirement by them therefore gives the second relaxation in our search problem.
Combining these constraints with the circuit search set gives the following SDP.
Theorem IV.9 (SDP relaxation for fault-tolerant synthesis). For the prescribed registers, circuit family G Θ \mathcal{G}_{\Theta} G Θ , noise model E \mathcal{E} E and target C t a r C_{\mathrm{tar}} C tar , consider
find { C ( r ) } r = 0 ℓ , Z subject to ( C ( 0 ) , … , C ( ℓ ) ) ∈ S Θ , J i d ( C ( ℓ ) ) = J t a r , Z ⪰ 0 , Z T r e c ⪰ 0 , Tr H o u t ′ Z = I H o u t ⊗ C ( ℓ ) , K E ( Z ) = J t a r . (99) \begin{aligned}
&\text{find}\quad\{C^{(r)}\}_{r=0}^{\ell},\ Z\\
&\text{subject to}\quad(C^{(0)},\ldots,C^{(\ell)})\in\mathcal{S}_{\Theta},\\
&\qquad J_{\mathrm{id}}(C^{(\ell)})=J_{\mathrm{tar}},\\
&\qquad Z\succeq0,\qquad Z^{\mathsf{T}_{\mathrm{rec}}}\succeq0,\\
&\qquad\operatorname{Tr}_{\mathcal{H}'_{\mathrm{out}}}Z=I_{\mathcal{H}_{\mathrm{out}}}\otimes C^{(\ell)},\\
&\qquad\mathcal{K}_{\mathcal{E}}(Z)=J_{\mathrm{tar}}. \tag*{(99)}
\end{aligned} find { C ( r ) } r = 0 ℓ , Z subject to ( C ( 0 ) , … , C ( ℓ ) ) ∈ S Θ , J id ( C ( ℓ ) ) = J tar , Z ⪰ 0 , Z T rec ⪰ 0 , Tr H out ′ Z = I H out ⊗ C ( ℓ ) , K E ( Z ) = J tar . (99) This is an SDP. Every circuit–recovery pair satisfying [87] gives a feasible point. Consequently, infeasibility rules out every circuit in G Θ \mathcal{G}_{\Theta} G Θ that implements the target ideally and admits a CPTP recovery under E \mathcal{E} E . The recovery may depend on the selected circuit.
Proof. By Theorem IV.7, S Θ \mathcal{S}_{\Theta} S Θ is SDP-representable. The remaining constraints are affine equalities and linear matrix inequalities, since J i d J_{\mathrm{id}} J id , K E \mathcal{K}_{\mathcal{E}} K E , partial trace and partial transpose are fixed linear maps. Thus (99) is an SDP.
Suppose that a circuit C θ C_{\theta} C θ and a CPTP recovery R θ \mathcal{R}_{\theta} R θ satisfy [87]. Set
C ( r ) = C θ ( r ) , Z = J R θ ⊗ C θ ( ℓ ) . C^{(r)}=C_{\theta}^{(r)},\qquad Z=J_{\mathcal{R}_{\theta}}\otimes C_{\theta}^{(\ell)}. C ( r ) = C θ ( r ) , Z = J R θ ⊗ C θ ( ℓ ) . The circuit tuple belongs to S Θ \mathcal{S}_{\Theta} S Θ by (88) , and the ideal-target equality gives
J i d ( C θ ( ℓ ) ) = J t a r . J_{\mathrm{id}}\left(C_{\theta}^{(\ell)}\right)=J_{\mathrm{tar}}. J id ( C θ ( ℓ ) ) = J tar . Since R θ \mathcal{R}_{\theta} R θ is CPTP, (98) gives positivity of Z Z Z , positivity of its indicated partial transpose and the required partial trace. Finally, the definition of K E \mathcal{K}_{\mathcal{E}} K E and exact recovery give
K E ( Z ) = ( R θ ⊗ id R 0 ) ( J E ( C θ ( ℓ ) ) ) = J t a r . \begin{aligned}
\mathcal{K}_{\mathcal{E}}(Z)
&=\left(\mathcal{R}_{\theta}\otimes\operatorname{id}_{R_0}\right)\left(J_{\mathcal{E}}\left(C_{\theta}^{(\ell)}\right)\right)\\
&=J_{\mathrm{tar}}.
\end{aligned} K E ( Z ) = ( R θ ⊗ id R 0 ) ( J E ( C θ ( ℓ ) ) ) = J tar . Hence every such pair gives a feasible point. The infeasibility statement follows by contraposition. □ \square □
Remark IV.10 (Feasibility and recovery). A feasible point need not identify an admissible circuit. Suppose that its final normalization operator admits a realization C ( ℓ ) = C θ ( ℓ ) C^{(\ell)}=C_{\theta}^{(\ell)} C ( ℓ ) = C θ ( ℓ ) for some θ ∈ Θ \theta\in\Theta θ ∈ Θ . For this circuit, define R θ \mathcal{R}_{\theta} R θ through the Choi operator
J R θ = Tr H Q 0 e x t ℓ Z Tr C ( ℓ ) . (100) J_{\mathcal{R}_{\theta}}=\frac{\operatorname{Tr}_{\mathcal{H}_{Q_0^{\mathrm{ext}}}^{\ell}}Z}{\operatorname{Tr}C^{(\ell)}}. \tag*{(100)} J R θ = Tr C ( ℓ ) Tr H Q 0 ext ℓ Z . (100)
The denominator is fixed and strictly positive by (89) . Since Z ⪰ 0 Z\succeq0 Z ⪰ 0 , we have J R θ ⪰ 0 J_{\mathcal{R}_{\theta}}\succeq0 J R θ ⪰ 0 . Moreover, the SDP partial-trace constraint gives
Tr H o u t ′ J R θ = Tr H Q 0 e x t ℓ ( I H o u t ⊗ C ( ℓ ) ) Tr C ( ℓ ) = I H o u t . \operatorname{Tr}_{\mathcal{H}_{\mathrm{out}}^{\prime}}J_{\mathcal{R}_{\theta}}=\frac{\operatorname{Tr}_{\mathcal{H}_{Q_0^{\mathrm{ext}}}^{\ell}}\left(I_{\mathcal{H}_{\mathrm{out}}}\otimes C^{(\ell)}\right)}{\operatorname{Tr}C^{(\ell)}}=I_{\mathcal{H}_{\mathrm{out}}}. Tr H out ′ J R θ = Tr C ( ℓ ) Tr H Q 0 ext ℓ ( I H out ⊗ C ( ℓ ) ) = I H out .
Thus R θ \mathcal{R}_{\theta} R θ is CPTP. Sufficient conditions for synthesis are therefore
C ( ℓ ) = C θ ( ℓ ) for some θ ∈ Θ , and C^{(\ell)}=C_{\theta}^{(\ell)}\quad\text{for some }\theta\in\Theta,\qquad\text{and} C ( ℓ ) = C θ ( ℓ ) for some θ ∈ Θ , and
Z = J R θ ⊗ C ( ℓ ) , (101) Z=J_{\mathcal{R}_{\theta}}\otimes C^{(\ell)}, \tag*{(101)} Z = J R θ ⊗ C ( ℓ ) , (101)
with J R θ J_{\mathcal{R}_{\theta}} J R θ given by (100) . The first condition supplies an admissible circuit. The second turns the final SDP equality into
( R θ ⊗ id R 0 ) ( J E ( C θ ( ℓ ) ) ) = J t a r . (\mathcal{R}_{\theta}\otimes\operatorname{id}_{R_0})\left(J_{\mathcal{E}}\left(C_{\theta}^{(\ell)}\right)\right)=J_{\mathrm{tar}}. ( R θ ⊗ id R 0 ) ( J E ( C θ ( ℓ ) ) ) = J tar .
Together with the ideal-target constraint, equality of Choi operators then gives
C θ , i d = C t a r , R θ ∘ E ∘ C θ , c m = C t a r . C_{\theta,\mathrm{id}}=C_{\mathrm{tar}},\qquad\mathcal{R}_{\theta}\circ\mathcal{E}\circ C_{\theta,\mathrm{cm}}=C_{\mathrm{tar}}. C θ , id = C tar , R θ ∘ E ∘ C θ , cm = C tar .
Feasibility alone guarantees neither an admissible circuit realization nor that the extracted CPTP map recovers its ideal operation. Positivity, partial-transpose positivity and even separability do not by themselves establish the product identity in (101) . When C Θ \mathcal{C}_{\Theta} C Θ contains every implementation allowed by a given resource budget, and the fixed noise model applies throughout, infeasibility excludes all such implementations. Recovery may vary with the circuit, but remains noiseless and its implementation cost is excluded from that budget.
Remark IV.11 (Fixed recovery). If the same CPTP recovery is prescribed for every circuit, then R θ = R ∗ \mathcal{R}_{\theta}=\mathcal{R}_{*} R θ = R ∗ for all θ ∈ Θ \theta\in\Theta θ ∈ Θ , with fixed Choi operator J R ∗ J_{\mathcal{R}_{*}} J R ∗ . We may then impose the exact product constraint
Z = J R ∗ ⊗ C ( ℓ ) , Z=J_{\mathcal{R}_{*}}\otimes C^{(\ell)}, Z = J R ∗ ⊗ C ( ℓ ) ,
which is linear in C ( ℓ ) C^{(\ell)} C ( ℓ ) . Eliminating Z Z Z gives the fixed-recovery SDP, with correction condition
( R ∗ ⊗ id R 0 ) ( J E ( C ( ℓ ) ) ) = J t a r . (\mathcal{R}_{*}\otimes\operatorname{id}_{R_0})\left(J_{\mathcal{E}}\left(C^{(\ell)}\right)\right)=J_{\mathrm{tar}}. ( R ∗ ⊗ id R 0 ) ( J E ( C ( ℓ ) ) ) = J tar .
Both positivity constraints and the partial-trace constraint on Z Z Z hold automatically because R ∗ \mathcal{R}_{*} R ∗ is CPTP and C ( ℓ ) ⪰ 0 C^{(\ell)}\succeq0 C ( ℓ ) ⪰ 0 . If the SDP for variable recovery is infeasible then the SDP for fixed recovery is automatically infeasible.
Fault tolerance of non-adaptive stabilizer circuits
In this section, we characterize fault-tolerance of non-adaptive stabilizer circuits under stochastic Pauli noise, with a noiseless encoding circuit, all outcomes retained, and noiseless recovery on the output data and measurement ancillas.
Stochastic Pauli noise model
We begin by formalizing the notion of spacetime locations on which faults occur before defining the stochastic Pauli noise model.
Definition V.1 (Circuit Pauli fault space and fault locations). Fix an abstraction level ζ ∈ { 0 , 1 } \zeta\in\{0,1\} ζ ∈ { 0 , 1 } and consider a non-adaptive stabilizer circuit C ≅ { C o 1 ( 1 ) , … , C o ℓ ( ℓ ) } o ∈ F 2 ℓ M \mathcal{C}\cong\{\mathcal{C}_{o_1}^{(1)},\ldots,\mathcal{C}_{o_\ell}^{(\ell)}\}_{o\in\mathbb{F}_2^{\ell M}} C ≅ { C o 1 ( 1 ) , … , C o ℓ ( ℓ ) } o ∈ F 2 ℓ M , of depth ℓ \ell ℓ , with component operators
C o t ( t ) : Q t − 1 ⟶ A t o u t ⊗ Q t , t ∈ Z ℓ + , \mathcal{C}_{o_t}^{(t)}:Q_{t-1}\longrightarrow A_t^{\mathrm{out}}\otimes Q_t,\qquad t\in\mathbb{Z}_{\ell}^{+}, C o t ( t ) : Q t − 1 ⟶ A t out ⊗ Q t , t ∈ Z ℓ + , as in Theorem III.10. Here Q t Q_t Q t contains n t n_t n t data qubits, A t o u t A_t^{\mathrm{out}} A t out contains m t ′ m_t' m t ′ ancilla qubits, and set
o = [ o 1 , … , o ℓ ] ∈ F 2 ℓ M , o t ∈ F 2 m t ′ , ℓ M = ∑ t = 1 ℓ m t ′ , o=[o_1,\ldots,o_\ell]\in\mathbb{F}_2^{\ell M},\qquad o_t\in\mathbb{F}_2^{m_t'},\qquad\ell_M=\sum_{t=1}^{\ell}m_t', o = [ o 1 , … , o ℓ ] ∈ F 2 ℓ M , o t ∈ F 2 m t ′ , ℓ M = t = 1 ∑ ℓ m t ′ , with A 0 o u t = C A_0^{\mathrm{out}}=\mathbb{C} A 0 out = C and m 0 ′ = 0 m_0'=0 m 0 ′ = 0 . Furthermore, for t ∈ { 0 , … , ℓ } t\in\{0,\ldots,\ell\} t ∈ { 0 , … , ℓ } , fix decompositions
A t o u t ≅ ⨂ s = 1 m t ′ Q s , t , Q t ≅ ⨂ s = m t ′ + 1 m t ′ + n t Q s , t , Q s , t ≅ C 2 . A_t^{\mathrm{out}}\cong\bigotimes_{s=1}^{m_t'}Q_{s,t},\qquad Q_t\cong\bigotimes_{s=m_t'+1}^{m_t'+n_t}Q_{s,t},\qquad Q_{s,t}\cong\mathbb{C}^{2}. A t out ≅ s = 1 ⨂ m t ′ Q s , t , Q t ≅ s = m t ′ + 1 ⨂ m t ′ + n t Q s , t , Q s , t ≅ C 2 . Define the permitted fault-location set Λ ( ζ ) \Lambda^{(\zeta)} Λ ( ζ ) and the spacetime fault space E ( ζ ) \mathcal{E}^{(\zeta)} E ( ζ ) of C \mathcal{C} C as
Λ ( ζ ) ≔ { ( s , t ) : 0 ≤ t ≤ ℓ , s ∈ Z m t ′ + n t + } , \Lambda^{(\zeta)}\coloneqq\{(s,t):0\leq t\leq\ell,\ s\in\mathbb{Z}_{m_t'+n_t}^{+}\}, Λ ( ζ ) : = {( s , t ) : 0 ≤ t ≤ ℓ , s ∈ Z m t ′ + n t + } , E ( ζ ) ≔ { e = [ e s , t ] ( s , t ) ∈ Λ ( ζ ) : e s , t ∈ F 2 2 } . (102) \mathcal{E}^{(\zeta)}\coloneqq\left\{e=[e_{s,t}]_{(s,t)\in\Lambda^{(\zeta)}}:e_{s,t}\in\mathbb{F}_2^2\right\}. \tag*{(102)} E ( ζ ) : = { e = [ e s , t ] ( s , t ) ∈ Λ ( ζ ) : e s , t ∈ F 2 2 } . (102) With componentwise addition and scalar multiplication,
E ( ζ ) ≅ F 2 d ζ , d ζ ≔ 2 ∣ Λ ( ζ ) ∣ . \mathcal{E}^{(\zeta)}\cong\mathbb{F}_2^{d_{\zeta}},\qquad d_{\zeta}\coloneqq2|\Lambda^{(\zeta)}|. E ( ζ ) ≅ F 2 d ζ , d ζ : = 2∣ Λ ( ζ ) ∣. Definition V.2 (Stochastic Pauli noise model). For the circuit and fault space of Theorem V.1, a stochastic Pauli noise model E \mathcal{E} E has multi-step Kraus operators
{ μ e E e } e ∈ E ( ζ ) , μ e ≥ 0 , ∑ e ∈ E ( ζ ) μ e = 1. \left\{\sqrt{\mu_e}E_e\right\}_{e\in\mathcal{E}^{(\zeta)}},\qquad\mu_e\geq0,\qquad\sum_{e\in\mathcal{E}^{(\zeta)}}\mu_e=1. { μ e E e } e ∈ E ( ζ ) , μ e ≥ 0 , e ∈ E ( ζ ) ∑ μ e = 1. For each fault pattern e ∈ E ( ζ ) e\in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) , we define its record and data Paulis by
P t A ( e ) ≔ ⨂ s = 1 m t ′ P ( e s , t ) ∈ P ( A t o u t ) , t ∈ Z ℓ + , P_t^A(e)\coloneqq\bigotimes_{s=1}^{m_t'}P(e_{s,t})\in\mathcal{P}(A_t^{\mathrm{out}}),\qquad t\in\mathbb{Z}_{\ell}^{+}, P t A ( e ) : = s = 1 ⨂ m t ′ P ( e s , t ) ∈ P ( A t out ) , t ∈ Z ℓ + , P t Q ( e ) ≔ ⨂ s = m t ′ + 1 m t ′ + n t P ( e s , t ) ∈ P ( Q t ) , 0 ≤ t ≤ ℓ . P_t^Q(e)\coloneqq\bigotimes_{s=m_t'+1}^{m_t'+n_t}P(e_{s,t})\in\mathcal{P}(Q_t),\qquad0\leq t\leq\ell. P t Q ( e ) : = s = m t ′ + 1 ⨂ m t ′ + n t P ( e s , t ) ∈ P ( Q t ) , 0 ≤ t ≤ ℓ .
The explicit form of the multi-step operators is defined as
E e ≜ ⨂ t = 1 ℓ P t A ( e ) ⊗ P ℓ Q ( e ) ⊗ ⟨ ⟨ P ℓ − 1 Q ( e ) ∣ ⊗ ⋯ ⊗ ⟨ ⟨ P 0 Q ( e ) ∣ . (103) \mathbf{E}_e \triangleq\bigotimes_{t=1}^{\ell} P_t^{A}(e) \otimes P_{\ell}^{Q}(e) \otimes\langle\!\langle P_{\ell-1}^{Q}(e)| \otimes\cdots\otimes\langle\!\langle P_{0}^{Q}(e)|. \tag*{(103)} E e ≜ t = 1 ⨂ ℓ P t A ( e ) ⊗ P ℓ Q ( e ) ⊗ ⟨ ⟨ P ℓ − 1 Q ( e ) ∣ ⊗ ⋯ ⊗ ⟨ ⟨ P 0 Q ( e ) ∣. (103)
Proposition V.3 (Channels for fixed Pauli faults). For the circuit and noise model of Theorems V.1 and V.2, let C o C_o C o be the circuit-map Kraus operators of Theorem III.4. For each e ∈ E ( ζ ) e \in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) , define
F e , o ≜ E e C o , N e ( ρ ) ≜ ∑ o ∈ F 2 ℓ M F e , o ρ F e , o † . (104) F_{e,o} \triangleq\mathbf{E}_e C_o,\qquad\mathcal{N}_e(\rho) \triangleq\sum_{o\in\mathbb{F}_2^{\ell M}} F_{e,o}\rho F_{e,o}^{\dagger}. \tag*{(104)} F e , o ≜ E e C o , N e ( ρ ) ≜ o ∈ F 2 ℓ M ∑ F e , o ρ F e , o † . (104) Each N e : L ( Q 0 ) → L ( A 1 : ℓ o u t ⊗ Q ℓ ) \mathcal{N}_e:\mathcal{L}(Q_0)\to\mathcal{L}(A_{1:\ell}^{\mathrm{out}}\otimes Q_\ell) N e : L ( Q 0 ) → L ( A 1 : ℓ out ⊗ Q ℓ ) is CPTP, and N 0 = C i d \mathcal{N}_0=C_{\mathrm{id}} N 0 = C id . The stochastic noisy realization C E = ∑ e μ e N e C_{\mathcal{E}}=\sum_e\mu_e\mathcal{N}_e C E = ∑ e μ e N e .
Proof. By Theorem III.6, F e , o F_{e,o} F e , o is the composed noisy branch operator with the specified Pauli faults. Summing successively over o ℓ , … , o 1 o_\ell,\ldots,o_1 o ℓ , … , o 1 , component completeness relations and Pauli unitarity give
∑ o F e , o † F e , o = I Q 0 . \sum_o F_{e,o}^{\dagger}F_{e,o}=I_{Q_0}. o ∑ F e , o † F e , o = I Q 0 .
Thus the Kraus form defines a CPTP map. Finally, E 0 = I \mathbf{E}_0=I E 0 = I gives the ideal realization, and the weighted Kraus operators give the stated mixture. □ \square □
Fault signatures and effect
Fix ζ ∈ { 0 , 1 } \zeta\in\{0,1\} ζ ∈ { 0 , 1 } and a noiseless stabilizer encoder C e n c : Q L → Q 0 C_{\mathrm{enc}}:Q_L\to Q_0 C enc : Q L → Q 0 , where Q L ≅ C 2 k i n Q_L\cong\mathbb{C}^{2^{k_{\mathrm{in}}}} Q L ≅ C 2 k in . Throughout the remainder of this section, include this encoder in the fixed-fault channels of Theorem V.3, so that
F e , o = E e C o C e n c , F 0 , o = I C o C e n c ≜ C ~ o . F_{e,o}=\mathbf{E}_eC_oC_{\mathrm{enc}},\qquad F_{0,o}=IC_oC_{\mathrm{enc}}\triangleq\widetilde{C}_o. F e , o = E e C o C enc , F 0 , o = I C o C enc ≜ C o .
Denote the resulting channels again by N e \mathcal{N}_e N e . Write A = A 1 : ℓ o u t A=A_{1:\ell}^{\mathrm{out}} A = A 1 : ℓ out and H o u t = A ⊗ Q ℓ H_{\mathrm{out}}=A\otimes Q_\ell H out = A ⊗ Q ℓ , with n R = ℓ M n_R=\ell M n R = ℓ M record qubits and n o u t = n ℓ n_{\mathrm{out}}=n_\ell n out = n ℓ data qubits. Let W ( ζ ) ≜ W ~ ( ζ ) \mathcal{W}^{(\zeta)}\triangleq\widetilde{\mathcal{W}}^{(\zeta)} W ( ζ ) ≜ W ( ζ ) and retain its subspaces W d e t \mathcal{W}_{\mathrm{det}} W det , W o b s \mathcal{W}_{\mathrm{obs}} W obs , and W o u t \mathcal{W}_{\mathrm{out}} W out from Theorem III.25. For ω = [ b , p , p ′ ] ∈ W ( ζ ) \omega=[b,p,p']\in\mathcal{W}^{(\zeta)} ω = [ b , p , p ′ ] ∈ W ( ζ ) , put
R ω ≜ ( − 1 ) c ω Z A b ⊗ P ( p ′ ) , R ω C ~ o = C ~ o P ( p ) . (105) R_\omega\triangleq(-1)^{c_\omega}Z_A^b\otimes P(p'),\qquad R_\omega\widetilde{C}_o=\widetilde{C}_oP(p). \tag*{(105)} R ω ≜ ( − 1 ) c ω Z A b ⊗ P ( p ′ ) , R ω C o = C o P ( p ) . (105)
Proposition V.4 (Bi-linear fault relations). There exists a unique bilinear map
χ ζ : E ( ζ ) × W ( ζ ) ⟶ F 2 \chi_\zeta:\mathcal{E}^{(\zeta)}\times\mathcal{W}^{(\zeta)}\longrightarrow\mathbb{F}_2 χ ζ : E ( ζ ) × W ( ζ ) ⟶ F 2 such that, for every e ∈ E ( ζ ) e\in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) , ω = [ b , p , p ′ ] ∈ W ( ζ ) \omega=[b,p,p']\in\mathcal{W}^{(\zeta)} ω = [ b , p , p ′ ] ∈ W ( ζ ) , and outcome string o ∈ F 2 ℓ M o\in\mathbb{F}_2^{\ell M} o ∈ F 2 ℓ M ,
R ω F e , o = ( − 1 ) χ ζ ( e , ω ) F e , o P ( p ) . (106) R_\omega F_{e,o}=(-1)^{\chi_\zeta(e,\omega)}F_{e,o}P(p). \tag*{(106)} R ω F e , o = ( − 1 ) χ ζ ( e , ω ) F e , o P ( p ) . (106) Moreover, N e = N f \mathcal{N}_e=\mathcal{N}_f N e = N f if and only if χ ζ ( e , ⋅ ) = χ ζ ( f , ⋅ ) \chi_\zeta(e,\mathord\cdot)=\chi_\zeta(f,\mathord\cdot) χ ζ ( e , ⋅ ) = χ ζ ( f , ⋅ ) .
Proof. Clifford conjugation propagates Pauli labels linearly, while
Π t P ( m ) P ( u ) = P ( u ) Π t + ⟨ u , m ⟩ s P ( m ) \Pi_t^{P(m)}P(u)=P(u)\Pi_{t+\langle u,m\rangle_s}^{P(m)} Π t P ( m ) P ( u ) = P ( u ) Π t + ⟨ u , m ⟩ s P ( m )
shifts measurement outcomes. Consequently, applying the Clifford conjugation rule of Theorem II.3 and the measurement identity above successively to the composed branches of Theorem III.6 gives F 2 \mathbb{F}_2 F 2 -linear maps
β ( ζ ) : E ( ζ ) ⟶ F 2 ( n R + n o u t ) , s : E ( ζ ) ⟶ F 2 n R \beta^{(\zeta)}:\mathcal{E}^{(\zeta)}\longrightarrow\mathbb{F}_2^{(n_R+n_{\mathrm{out}})},\qquad s:\mathcal{E}^{(\zeta)}\longrightarrow\mathbb{F}_2^{n_R} β ( ζ ) : E ( ζ ) ⟶ F 2 ( n R + n out ) , s : E ( ζ ) ⟶ F 2 n R
such that
F e , o ≐ P ( β ( ζ ) ( e ) ) C ~ o + s ( e ) ( ∀ e , o ) , F_{e,o}\doteq P(\beta^{(\zeta)}(e))\widetilde{C}_{o+s(e)}\qquad(\forall\,e,o), F e , o ≐ P ( β ( ζ ) ( e )) C o + s ( e ) ( ∀ e , o ) ,
where ≐ \doteq ≐ denotes equality up to an overall phase. Summing over all outcomes gives
N e ( ρ ) = P ( β ( ζ ) ( e ) ) N 0 ( ρ ) P ( β ( ζ ) ( e ) ) † . (107) \mathcal{N}_e(\rho)=P(\beta^{(\zeta)}(e))\mathcal{N}_0(\rho)P(\beta^{(\zeta)}(e))^\dagger. \tag*{(107)} N e ( ρ ) = P ( β ( ζ ) ( e )) N 0 ( ρ ) P ( β ( ζ ) ( e ) ) † . (107)
If r ( ω ) r(\omega) r ( ω ) is the binary label of R ω R_\omega R ω , then
χ ζ ( e , ω ) = ⟨ β ( ζ ) ( e ) , r ( ω ) ⟩ s (108) \chi_\zeta(e,\omega)=\langle\beta^{(\zeta)}(e),r(\omega)\rangle_s \tag*{(108)} χ ζ ( e , ω ) = ⟨ β ( ζ ) ( e ) , r ( ω ) ⟩ s (108)
is bilinear and satisfies (108). Trace preservation guarantees a nonzero branch for each e e e , establishing uniqueness. Finally, for ω = [ b , p , p ′ ] ∈ W ( ζ ) \omega=[b,p,p']\in\mathcal{W}^{(\zeta)} ω = [ b , p , p ′ ] ∈ W ( ζ ) , put
g ( ω ) ≜ R ω ⊗ P ( p ) T , J e ≜ ∑ o ∣ F e , o ⟩ ⟩ ⟨ ⟨ F e , o ∣ . g(\omega)\triangleq R_\omega\otimes P(p)^{\mathsf{T}},\qquad J_e\triangleq\sum_o|F_{e,o}\rangle\!\rangle\langle\!\langle F_{e,o}|. g ( ω ) ≜ R ω ⊗ P ( p ) T , J e ≜ o ∑ ∣ F e , o ⟩ ⟩ ⟨ ⟨ F e , o ∣.
Then define the normalized stabilizer state
∣ ψ ⟩ = 2 − k i n / 2 ∑ o ∣ C ~ o ⟩ ⟩ . |\psi\rangle=2^{-k_{\mathrm{in}}/2}\sum_o|\widetilde{C}_o\rangle\!\rangle. ∣ ψ ⟩ = 2 − k in /2 o ∑ ∣ C o ⟩ ⟩ .
For Π o = ∣ o ⟩ ⟨ o ∣ A ⊗ I \Pi_o=|o\rangle\langle o|_{A}\otimes I Π o = ∣ o ⟩ ⟨ o ∣ A ⊗ I , its stabilizer expansion therefore gives
J 0 = 2 k i n ∑ o Π o ∣ ψ ⟩ ⟨ ψ ∣ Π o = 2 − ( n R + n o u t ) ∑ ω ∈ W ( ζ ) g ( ω ) . J_0=2^{k_{\mathrm{in}}}\sum_o\Pi_o|\psi\rangle\langle\psi|\Pi_o
=2^{-(n_R+n_{\mathrm{out}})}\sum_{\omega\in\mathcal{W}^{(\zeta)}}g(\omega). J 0 = 2 k in o ∑ Π o ∣ ψ ⟩ ⟨ ψ ∣ Π o = 2 − ( n R + n out ) ω ∈ W ( ζ ) ∑ g ( ω ) .
Conjugating J 0 J_0 J 0 by the propagated Pauli P ( β ( ζ ) ( e ) ) P(\beta^{(\zeta)}(e)) P ( β ( ζ ) ( e )) now yields
J e = 2 − ( n R + n o u t ) ∑ ω ∈ W ( ζ ) ( − 1 ) χ ζ ( e , ω ) g ( ω ) . (109) J_e=2^{-(n_R+n_{\mathrm{out}})}\sum_{\omega\in\mathcal{W}^{(\zeta)}}(-1)^{\chi_\zeta(e,\omega)}g(\omega). \tag*{(109)} J e = 2 − ( n R + n out ) ω ∈ W ( ζ ) ∑ ( − 1 ) χ ζ ( e , ω ) g ( ω ) . (109)
The g ( ω ) g(\omega) g ( ω ) are mutually orthogonal, so their coefficients are unique. Thus the Choi correspondence [20 ] gives
N e = N f ⟺ J e = J f ⟺ χ ζ ( e , ω ) = χ ζ ( f , ω ) ∀ ω ∈ W ( ζ ) . \mathcal{N}_e=\mathcal{N}_f\Longleftrightarrow J_e=J_f
\Longleftrightarrow\chi_\zeta(e,\omega)=\chi_\zeta(f,\omega)\quad\forall\,\omega\in\mathcal{W}^{(\zeta)}. N e = N f ⟺ J e = J f ⟺ χ ζ ( e , ω ) = χ ζ ( f , ω ) ∀ ω ∈ W ( ζ ) .
□ \square □
The following two corollaries enable us to compute χ ζ \chi_\zeta χ ζ explicitly for any level ζ ∈ { 0 , 1 } \zeta\in\{0,1\} ζ ∈ { 0 , 1 } .
Corollary V.5 (Evaluation at level 0). Consider the circuit of Theorem III.32, with U = U N ⋯ U 1 U = U_N \cdots U_1 U = U N ⋯ U 1 . Resolve preparation, the N N N gates, and final measurement into ℓ = N + 2 \ell= N + 2 ℓ = N + 2 components. Write e 0 = [ x 0 , z 0 ] e_0 = [x_0,z_0] e 0 = [ x 0 , z 0 ] for the fault label on the physical input, e 1 e_1 e 1 for the label after preparation, e j + 1 e_{j+1} e j + 1 for the label after U j U_j U j , and e N + 2 e_{N+2} e N + 2 for the label after measurement. Define
u 0 = [ 0 m , x 0 , 0 m , z 0 ] + e 1 , u j = u j − 1 F U j + e j + 1 , j ∈ Z N + . (110) \begin{aligned}
u_0 &= [0^m,x_0,0^m,z_0] + e_1,\\
u_j &= u_{j-1}F_{U_j} + e_{j+1}, \qquad j \in\mathbb{Z}_{N}^{+}. \tag*{(110)}
\end{aligned} u 0 u j = [ 0 m , x 0 , 0 m , z 0 ] + e 1 , = u j − 1 F U j + e j + 1 , j ∈ Z N + . (110) For ω = [ b , p , p ′ ] ∈ W ( 0 ) \omega= [b,p,p'] \in\mathcal{W}^{(0)} ω = [ b , p , p ′ ] ∈ W ( 0 ) with p ′ = [ x ′ , z ′ ] p' = [x',z'] p ′ = [ x ′ , z ′ ] ,
χ 0 ( e , ω ) = ⟨ u N + e N + 2 , [ 0 n R , x ′ , b , z ′ ] ⟩ s . (111) \chi_0(e,\omega) = \left\langle u_N + e_{N+2},[0^{n_R},x',b,z']\right\rangle_s. \tag*{(111)} χ 0 ( e , ω ) = ⟨ u N + e N + 2 , [ 0 n R , x ′ , b , z ′ ] ⟩ s . (111)
Proof. Theorem V.4 enables us to propagate all faults to the output data-record registers. Moving the resulting Pauli through its projector shifts the outcome index, leaving output label u N + e N + 2 u_N + e_{N+2} u N + e N + 2 . Its commutation sign with R ω R_\omega R ω gives the formula.
Corollary V.6 (Evaluation at level 1). Consider the measurement sequence of Theorem III.35. Let e r e_r e r be the label of P r Q ( e ) P^Q_r(e) P r Q ( e ) and [ a r , d r ] [a_r,d_r] [ a r , d r ] the label of P r A ( e ) P^A_r(e) P r A ( e ) . For ω = [ b , p , p ′ ] ∈ W ( 1 ) \omega= [b,p,p'] \in\mathcal{W}^{(1)} ω = [ b , p , p ′ ] ∈ W ( 1 ) , let ν r \nu_r ν r be its matched data labels from Equation (64) . Then
χ 1 ( e , ω ) = ∑ r = 0 ℓ ⟨ e r , ν r + 1 ⟩ s + ∑ r = 1 ℓ a r b r . (112) \chi_1(e,\omega) = \sum_{r=0}^{\ell}\langle e_r,\nu_{r+1}\rangle_s + \sum_{r=1}^{\ell}a_rb_r. \tag*{(112)} χ 1 ( e , ω ) = r = 0 ∑ ℓ ⟨ e r , ν r + 1 ⟩ s + r = 1 ∑ ℓ a r b r . (112) In particular, record Z Z Z faults do not affect the signature.
Proof. The matched relation acts by P ( ν r + 1 ) P(\nu_{r+1}) P ( ν r + 1 ) on the data after measurement r r r and by Z b r Z^{b_r} Z b r on its record. Propagating these operators through the faults contributes the displayed symplectic and record signs. The composition rule of Theorem III.23 adds these signs.
Definition V.7 (Fault signature). The fault signature of e ∈ E ( ζ ) e \in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) is the linear functional
χ ζ ( e , ⋅ ) : W ( ζ ) ⟶ F 2 . \chi_\zeta(e,\cdot):\mathcal{W}^{(\zeta)}\longrightarrow\mathbb{F}_2. χ ζ ( e , ⋅ ) : W ( ζ ) ⟶ F 2 . A relation ω ∈ X ⊆ W ( ζ ) \omega\in\mathcal{X} \subseteq\mathcal{W}^{(\zeta)} ω ∈ X ⊆ W ( ζ ) is defined to be violated when χ ζ ( e , ω ) = 1 \chi_\zeta(e,\omega)=1 χ ζ ( e , ω ) = 1 .
Definition V.8 (Operational meaning of fault signatures). For a subspace X ⊆ W ( ζ ) \mathcal{X} \subseteq\mathcal{W}^{(\zeta)} X ⊆ W ( ζ ) , define its indicator δ X \delta_{\mathcal{X}} δ X as
δ X ( e ) ≔ { 0 , χ ζ ( e , ω ) = 0 for every ω ∈ X , 1 , otherwise . (113) \delta_{\mathcal{X}}(e) \coloneqq
\begin{cases}
0, & \chi_\zeta(e,\omega)=0\text{ for every }\omega\in\mathcal{X},\\
1, & \text{otherwise}.
\end{cases} \tag*{(113)} δ X ( e ) : = { 0 , 1 , χ ζ ( e , ω ) = 0 for every ω ∈ X , otherwise . (113) Abbreviate the indicators for W d e t \mathcal{W}_{\mathrm{det}} W det , W o u t \mathcal{W}_{\mathrm{out}} W out , W o b s \mathcal{W}_{\mathrm{obs}} W obs , and W ( ζ ) \mathcal{W}^{(\zeta)} W ( ζ ) (c.f. Theorem III.25) as δ d e t \delta_{\mathrm{det}} δ det , δ o u t \delta_{\mathrm{out}} δ out , δ o b s \delta_{\mathrm{obs}} δ obs , and δ W \delta_{\mathcal{W}} δ W . The operational meaning of these indicators is presented in Table I .
Definition V.9 (Detection and logical-effect matrices). Let ϵ 1 , … , ϵ d ζ \epsilon_1,\ldots,\epsilon_{d_\zeta} ϵ 1 , … , ϵ d ζ be the coordinate basis of E ( ζ ) \mathcal{E}^{(\zeta)} E ( ζ ) , and define
γ ζ ( ω ) ≔ [ χ ζ ( ϵ 1 , ω ) , … , χ ζ ( ϵ d ζ , ω ) ] . (114) \gamma_\zeta(\omega) \coloneqq[\chi_\zeta(\epsilon_1,\omega),\ldots,\chi_\zeta(\epsilon_{d_\zeta},\omega)]. \tag*{(114)} γ ζ ( ω ) : = [ χ ζ ( ϵ 1 , ω ) , … , χ ζ ( ϵ d ζ , ω )] . (114) Thus γ ( ω ) T = χ ζ ( e , ω ) \gamma(\omega)^{\mathsf{T}}=\chi_\zeta(e,\omega) γ ( ω ) T = χ ζ ( e , ω ) . Choose a basis ω 1 , … , ω h \omega_1,\ldots,\omega_h ω 1 , … , ω h of W o u t \mathcal{W}_{\mathrm{out}} W out and extend it to a basis ω 1 , … , ω q \omega_1,\ldots,\omega_q ω 1 , … , ω q of W ( ζ ) \mathcal{W}^{(\zeta)} W ( ζ ) . The detection matrix and logical-effect matrix are then defined by
H ζ ≔ [ γ ( ω 1 ) ⋮ γ ( ω h ) ] , L ζ ≔ [ γ ( ω h + 1 ) ⋮ γ ( ω q ) ] . (115) H_\zeta\coloneqq
\begin{bmatrix}
\gamma(\omega_1)\\
\vdots\\
\gamma(\omega_h)
\end{bmatrix},
\qquad
L_\zeta\coloneqq
\begin{bmatrix}
\gamma(\omega_{h+1})\\
\vdots\\
\gamma(\omega_q)
\end{bmatrix}. \tag*{(115)} H ζ : = γ ( ω 1 ) ⋮ γ ( ω h ) , L ζ : = γ ( ω h + 1 ) ⋮ γ ( ω q ) . (115) For each fault pattern e e e , its syndrome and logical-effect signature are defined as
σ ζ ( e ) ≔ H ζ e T , λ ζ ( e ) ≔ L ζ e T . \sigma_\zeta(e) \coloneqq H_\zeta e^{\mathsf{T}},
\qquad
\lambda_\zeta(e) \coloneqq L_\zeta e^{\mathsf{T}}. σ ζ ( e ) : = H ζ e T , λ ζ ( e ) : = L ζ e T . The syndrome records all input-independent output-check violations. Together, the two vectors specify the full fault signature and hence the channel N e \mathcal{N}_e N e .
Remark V.10. Changing the chosen relation bases gives
H ζ ′ = U H H ζ , L ζ ′ = U L L ζ + R H ζ , (116) H'_\zeta= U_HH_\zeta,
\qquad
L'_\zeta= U_LL_\zeta+ RH_\zeta, \tag*{(116)} H ζ ′ = U H H ζ , L ζ ′ = U L L ζ + R H ζ , (116)
with U H , U L U_H,U_L U H , U L invertible. Thus zero syndrome and equality of logical-effect signatures at a fixed syndrome are independent of these choices.
Proposition V.11 (Detection and logical effect matrices and indicators violation). For every e ∈ E ( ζ ) e \in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) ,
H ζ e T = 0 ⟺ δ o u t ( e ) = 0 , H_\zeta e^{\mathsf{T}} = 0 \Longleftrightarrow\delta_{\mathrm{out}}(e)=0, H ζ e T = 0 ⟺ δ out ( e ) = 0 , H ζ e T = L ζ e T = 0 ⟺ δ W ( e ) = 0. H_\zeta e^{\mathsf{T}} = L_\zeta e^{\mathsf{T}} = 0 \Longleftrightarrow\delta_{\mathcal{W}}(e)=0. H ζ e T = L ζ e T = 0 ⟺ δ W ( e ) = 0. Consequently, the four signature cases imply the indicator values in Table II .
Proof. The rows of H ζ H_\zeta H ζ evaluate the signature on a basis of W o u t \mathcal{W}_{\mathrm{out}} W out , while the rows of H ζ H_\zeta H ζ and L ζ L_\zeta L ζ together evaluate it on a basis of W ( ζ ) \mathcal{W}^{(\zeta)} W ( ζ ) . Linearity gives both equivalences.
:::
If both signatures vanish, all four indicators vanish. If only the syndrome vanishes, then δ d e t = δ o u t = 0 \delta_{\mathrm{det}}=\delta_{\mathrm{out}}=0 δ det = δ out = 0 and δ W = 1 \delta_W=1 δ W = 1 , while δ o b s \delta_{\mathrm{obs}} δ obs may be zero or one. If the syndrome is nonzero, then δ o u t = δ W = 1 \delta_{\mathrm{out}}=\delta_W=1 δ out = δ W = 1 regardless of whether the logical-effect signature vanishes; neither δ d e t \delta_{\mathrm{det}} δ det nor δ o b s \delta_{\mathrm{obs}} δ obs is determined in general.
Exact recovery and circuit distance
We begin by establishing necessary and sufficient conditions for fault tolerance of non-adaptive stabilizer circuits. Then following the footsteps of [16 , 30 ] we define circuit distance in terms of the detection and logical effect matrices.
Theorem V.12 (Exact recovery). Let
μ e ≥ 0 , ∑ e ∈ E ( ζ ) μ e = 1 , N μ ≔ ∑ e ∈ E ( ζ ) μ e N e . \mu_e \ge0,\qquad\sum_{e\in\mathcal{E}^{(\zeta)}}\mu_e=1,\qquad\mathcal{N}_{\mu}\coloneqq\sum_{e\in\mathcal{E}^{(\zeta)}}\mu_e\mathcal{N}_e. μ e ≥ 0 , e ∈ E ( ζ ) ∑ μ e = 1 , N μ : = e ∈ E ( ζ ) ∑ μ e N e . A CPTP recovery R \mathcal{R} R on H o u t ( ζ ) H_{\mathrm{out}}^{(\zeta)} H out ( ζ ) satisfying R ∘ N μ = N 0 \mathcal{R}\circ\mathcal{N}_{\mu}=\mathcal{N}_0 R ∘ N μ = N 0 exists if and only if, for every e , f ∈ E ( ζ ) e,f\in\mathcal{E}^{(\zeta)} e , f ∈ E ( ζ ) with μ e , μ f > 0 \mu_e,\mu_f>0 μ e , μ f > 0 ,
H ζ e T = H ζ f T ⟹ L ζ e T = L ζ f T . (117) H_{\zeta e}^{\mathsf T}=H_{\zeta f}^{\mathsf T}\quad\Longrightarrow\quad L_{\zeta e}^{\mathsf T}=L_{\zeta f}^{\mathsf T}. \tag*{(117)} H ζ e T = H ζ f T ⟹ L ζ e T = L ζ f T . (117) Operationally, faults having the same syndrome must have the same logical effect for a common correction based on their syndrome to succeed.
Proof. (⟹ \Longrightarrow ⟹ ) Suppose recovery exists and pick arbitrary e , f ∈ E ( ζ ) e,f\in\mathcal{E}^{(\zeta)} e , f ∈ E ( ζ ) with H ζ e T = H ζ f T H_{\zeta e}^{\mathsf T}=H_{\zeta f}^{\mathsf T} H ζ e T = H ζ f T and μ e , μ f ≠ 0 \mu_e,\mu_f\ne0 μ e , μ f = 0 . We must show that L ζ e T = L ζ f T L_{\zeta e}^{\mathsf T}=L_{\zeta f}^{\mathsf T} L ζ e T = L ζ f T . Now assume L ζ e T ≠ L ζ f T L_{\zeta e}^{\mathsf T}\ne L_{\zeta f}^{\mathsf T} L ζ e T = L ζ f T . Then by Theorem V.9, there exists ω i ∈ { ω h + 1 , … , ω q } \omega_i\in\{\omega_{h+1},\ldots,\omega_q\} ω i ∈ { ω h + 1 , … , ω q } such that χ ζ ( e , ω i ) ≠ χ ζ ( f , ω i ) \chi_{\zeta}(e,\omega_i)\ne\chi_{\zeta}(f,\omega_i) χ ζ ( e , ω i ) = χ ζ ( f , ω i ) . Now letting ω i = [ b i , p i , p i ′ ] \omega_i=[b_i,p_i,p_i'] ω i = [ b i , p i , p i ′ ] , Equation (105) gives for all j j j ,
P ( p i ) C ~ j † C ~ j = C ~ j † R ω i C ~ j = C ~ j † C ~ j P ( p i ) P(p_i)\widetilde{C}_j^\dagger\widetilde{C}_j=\widetilde{C}_j^\dagger R_{\omega_i}\widetilde{C}_j=\widetilde{C}_j^\dagger\widetilde{C}_jP(p_i) P ( p i ) C j † C j = C j † R ω i C j = C j † C j P ( p i ) ⟹ [ C ~ j † C ~ j , P ( p i ) ] = 0. \Longrightarrow\left[\widetilde{C}_j^\dagger\widetilde{C}_j,P(p_i)\right]=0. ⟹ [ C j † C j , P ( p i ) ] = 0. Now by Theorem IV.3, existence of recovery implies
F f , o ′ † F e , o ∈ span { C ~ j † C ~ j } , ∀ o , o ′ F_{f,o'}^\dagger F_{e,o}\in\operatorname{span}\{\widetilde{C}_j^\dagger\widetilde{C}_j\},\qquad\forall o,o' F f , o ′ † F e , o ∈ span { C j † C j } , ∀ o , o ′ ⟹ [ F f , o ′ † F e , o , P ( p i ) ] = 0. \Longrightarrow\left[F_{f,o'}^\dagger F_{e,o},P(p_i)\right]=0. ⟹ [ F f , o ′ † F e , o , P ( p i ) ] = 0. Again, by Equation (106) we have
P ( p i ) F f , o ′ † F e , o = ( − 1 ) χ ζ ( f , ω i ) F f , o ′ † R ω i F e , o P(p_i)F_{f,o'}^\dagger F_{e,o}=(-1)^{\chi_{\zeta}(f,\omega_i)}F_{f,o'}^\dagger R_{\omega_i}F_{e,o} P ( p i ) F f , o ′ † F e , o = ( − 1 ) χ ζ ( f , ω i ) F f , o ′ † R ω i F e , o = ( − 1 ) χ ζ ( f , ω i ) + χ ζ ( e , ω i ) F f , o ′ † F e , o P ( p i ) . =(-1)^{\chi_{\zeta}(f,\omega_i)+\chi_{\zeta}(e,\omega_i)}F_{f,o'}^\dagger F_{e,o}P(p_i). = ( − 1 ) χ ζ ( f , ω i ) + χ ζ ( e , ω i ) F f , o ′ † F e , o P ( p i ) . However, χ ζ ( e , ω i ) ≠ χ ζ ( f , ω i ) \chi_{\zeta}(e,\omega_i)\ne\chi_{\zeta}(f,\omega_i) χ ζ ( e , ω i ) = χ ζ ( f , ω i ) implies
{ F f , o ′ † F e , o , P ( p i ) } = 0. \{F_{f,o'}^\dagger F_{e,o},P(p_i)\}=0. { F f , o ′ † F e , o , P ( p i )} = 0. This forces F f , o ′ † F e , o = 0 F_{f,o'}^\dagger F_{e,o}=0 F f , o ′ † F e , o = 0 . Put σ = H ζ e T = H ζ f T \sigma=H_{\zeta e}^{\mathsf T}=H_{\zeta f}^{\mathsf T} σ = H ζ e T = H ζ f T and taking ω j ∈ { ω 1 , … , ω h } \omega_j\in\{\omega_1,\ldots,\omega_h\} ω j ∈ { ω 1 , … , ω h } from Theorem V.9 define
Π σ ≔ ∏ j = 1 h I + ( − 1 ) σ j R ω j 2 ≠ 0. \Pi_{\sigma}\coloneqq\prod_{j=1}^{h}\frac{I+(-1)^{\sigma_j}R_{\omega_j}}{2}\ne0. Π σ : = j = 1 ∏ h 2 I + ( − 1 ) σ j R ω j = 0. Since Tr ( P ( p ) T ) = 2 k i n δ p , 0 \operatorname{Tr}(P(p)^{\mathsf T})=2^{k_{\mathrm{in}}}\delta_{p,0} Tr ( P ( p ) T ) = 2 k in δ p , 0 , tracing out the input registers in J e , J f J_e,J_f J e , J f in Equation (109) gives, for a ∈ { e , f } a\in\{e,f\} a ∈ { e , f } ,
∑ o F a , o F a , o † = 2 k i n − n R − n o u t ∑ ω ∈ W o u t ( − 1 ) χ ζ ( a , ω ) R ω \sum_o F_{a,o}F_{a,o}^{\dagger}=2^{k_{\mathrm{in}}-n_R-n_{\mathrm{out}}}\sum_{\omega\in\mathcal{W}_{\mathrm{out}}}(-1)^{\chi_{\zeta}(a,\omega)}R_{\omega} o ∑ F a , o F a , o † = 2 k in − n R − n out ω ∈ W out ∑ ( − 1 ) χ ζ ( a , ω ) R ω = c Π σ , c ≔ 2 k i n + h − n R − n o u t > 0. =c\Pi_{\sigma},\qquad c\coloneqq2^{k_{\mathrm{in}}+h-n_R-n_{\mathrm{out}}}>0. = c Π σ , c : = 2 k in + h − n R − n out > 0. The last equality follows by expanding the product defining Π σ \Pi_{\sigma} Π σ . Trace preservation gives c Tr Π σ = 2 k i n > 0 c\operatorname{Tr}\Pi_{\sigma}=2^{k_{\mathrm{in}}}>0 c Tr Π σ = 2 k in > 0 . However, the vanishing cross-products imply
c 2 Π σ = ∑ o ′ , o F f , o ′ ( F f , o ′ † F e , o ) F e , o † = 0 , c^2\Pi_{\sigma}=\sum_{o',o}F_{f,o'}(F_{f,o'}^\dagger F_{e,o})F_{e,o}^\dagger=0, c 2 Π σ = o ′ , o ∑ F f , o ′ ( F f , o ′ † F e , o ) F e , o † = 0 , a contradiction. Hence L ζ e T = L ζ f T L_{\zeta e}^{\mathsf T}=L_{\zeta f}^{\mathsf T} L ζ e T = L ζ f T . (⟸ \Longleftarrow ⟸ ) The converse directly follows from Theorem V.4. Now assume Equation (117) holds. For each syndrome σ \sigma σ attained by a fault of positive probability, choose such a fault e σ e_\sigma e σ and set
U σ ≔ P ( β ( ζ ) ( e σ ) ) † . U_{\sigma}\coloneqq P(\beta^{(\zeta)}(e_{\sigma}))^\dagger. U σ : = P ( β ( ζ ) ( e σ ) ) † . Set U σ = I U_\sigma=I U σ = I for all remaining syndromes and define
R ( τ ) ≔ ∑ σ ∈ F 2 h U σ Π σ τ Π σ U σ † . \mathcal{R}(\tau)\coloneqq\sum_{\sigma\in\mathbb{F}_2^h}U_\sigma\Pi_\sigma\tau\Pi_\sigma U_\sigma^\dagger. R ( τ ) : = σ ∈ F 2 h ∑ U σ Π σ τ Π σ U σ † . The projectors Π σ \Pi_\sigma Π σ are mutually orthogonal and sum to I I I , so R \mathcal{R} R is CPTP. Fix e e e with μ e > 0 \mu_e>0 μ e > 0 and put σ = H ζ e T \sigma=H_{\zeta e}^{\mathsf T} σ = H ζ e T . The assumed condition gives L ζ e T = L ζ e σ T L_{\zeta e}^{\mathsf T}=L_{\zeta e_\sigma}^{\mathsf T} L ζ e T = L ζ e σ T , hence N e = N e σ \mathcal{N}_e=\mathcal{N}_{e_\sigma} N e = N e σ by Theorem V.4. Moreover, since ω 1 , … , ω h \omega_1,\ldots,\omega_h ω 1 , … , ω h have zero input labels, Equation (106) gives Π σ F e , o = F e , o \Pi_\sigma F_{e,o}=F_{e,o} Π σ F e , o = F e , o . Therefore, using Equation (107) ,
R ( N e ( ρ ) ) = U σ N e ( ρ ) U σ † \mathcal{R}(\mathcal{N}_e(\rho))=U_\sigma\mathcal{N}_e(\rho)U_\sigma^\dagger R ( N e ( ρ )) = U σ N e ( ρ ) U σ † = U σ N e σ ( ρ ) U σ † =U_\sigma\mathcal{N}_{e_\sigma}(\rho)U_\sigma^\dagger = U σ N e σ ( ρ ) U σ † = N 0 ( ρ ) . =\mathcal{N}_0(\rho). = N 0 ( ρ ) . Thus one recovery corrects every positive-probability fault. By linearity and ∑ e μ e = 1 \sum_e\mu_e=1 ∑ e μ e = 1 , R ∘ N μ = N 0 \mathcal{R}\circ\mathcal{N}_\mu=\mathcal{N}_0 R ∘ N μ = N 0 .
Definition V.13 (Spacetime Pauli weight). For e ∈ E ( ζ ) e\in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) , we define its spacetime weight as
wt S T ( e ) ≔ ∣ { ( s , t ) ∈ Λ ( ζ ) : e s , t ≠ [ 0 , 0 ] } ∣ . (118) \operatorname{wt}_{\mathrm{ST}}(e)\coloneqq\left|\{(s,t)\in\Lambda^{(\zeta)}:e_{s,t}\ne[0,0]\}\right|. \tag*{(118)} wt ST ( e ) : = {( s , t ) ∈ Λ ( ζ ) : e s , t = [ 0 , 0 ]} . (118)
Definition V.14 (Circuit distance). Fix ζ ∈ { 0 , 1 } \zeta\in\{0,1\} ζ ∈ { 0 , 1 } and a binary linear fault subspace V ( ζ ) ⊆ E ( ζ ) \mathcal{V}^{(\zeta)} \subseteq\mathcal{E}^{(\zeta)} V ( ζ ) ⊆ E ( ζ ) . The circuit distance of C ~ \widetilde{C} C relative to V ( ζ ) \mathcal{V}^{(\zeta)} V ( ζ ) is
d c i r c , ζ ≜ min e ∈ V ( ζ ) H ζ e T = 0 L ζ e T ≠ 0 wt S T ( e ) , (119) d_{\mathrm{circ},\zeta} \triangleq\min_{\substack{e \in\mathcal{V}^{(\zeta)}\\ H_{\zeta}e^{\mathsf{T}}=0\\ L_{\zeta}e^{\mathsf{T}}\ne0}} \operatorname{wt}_{\mathrm{ST}}(e), \tag*{(119)} d circ , ζ ≜ e ∈ V ( ζ ) H ζ e T = 0 L ζ e T = 0 min wt ST ( e ) , (119) with min ∅ = ∞ \min\varnothing= \infty min ∅ = ∞ . Operationally, it is the minimum weight of an allowed spacetime fault with trivial syndrome and nontrivial logical effect.
Proposition V.15 (Exact recovery of faults with bounded weight). For every integer t ≥ 0 t \ge0 t ≥ 0 with 2 t < d c i r c , ζ 2t < d_{\mathrm{circ},\zeta} 2 t < d circ , ζ , one CPTP recovery corrects all patterns e ∈ V ( ζ ) e \in\mathcal{V}^{(\zeta)} e ∈ V ( ζ ) satisfying wt S T ( e ) ≤ t \operatorname{wt}_{\mathrm{ST}}(e) \le t wt ST ( e ) ≤ t , and hence every stochastic mixture of these patterns. In particular, for finite distance, all faults up to weight
⌊ d c i r c , ζ − 1 2 ⌋ \left\lfloor\frac{d_{\mathrm{circ},\zeta}-1}{2} \right\rfloor ⌊ 2 d circ , ζ − 1 ⌋ are correctable.
Proof. Since V ( ζ ) \mathcal{V}^{(\zeta)} V ( ζ ) is a vector space, closure under addition gives, for all e , f ∈ V ( ζ ) e,f \in\mathcal{V}^{(\zeta)} e , f ∈ V ( ζ ) satisfying wt S T ( e ) , wt S T ( f ) ≤ t \operatorname{wt}_{\mathrm{ST}}(e),\operatorname{wt}_{\mathrm{ST}}(f) \le t wt ST ( e ) , wt ST ( f ) ≤ t ,
e + f ∈ V ( ζ ) e+f \in\mathcal{V}^{(\zeta)} e + f ∈ V ( ζ )
wt S T ( e + f ) ≤ wt S T ( e ) + wt S T ( f ) ≤ 2 t < d c i r c , ζ . \operatorname{wt}_{\mathrm{ST}}(e+f) \le\operatorname{wt}_{\mathrm{ST}}(e)+\operatorname{wt}_{\mathrm{ST}}(f) \le2t < d_{\mathrm{circ},\zeta}. wt ST ( e + f ) ≤ wt ST ( e ) + wt ST ( f ) ≤ 2 t < d circ , ζ .
If their syndromes agree, the distance definition therefore forces L ζ ( e + f ) T = 0 L_{\zeta}(e+f)^{\mathsf{T}}=0 L ζ ( e + f ) T = 0 . Their logical-effect signatures consequently agree, and Theorem V.12 supplies a common recovery.
In Appendix B, we explicitly compute this distance for the finite honeycomb circuit under its specified fault locations.
Weight enumerators
For each non-adaptive stabilizer circuit in a prescribed family, we use the signature matrices H ζ , L ζ H_{\zeta},L_{\zeta} H ζ , L ζ (Theorem V.9) to count Pauli faults by their weights in blocks of spacetime locations, detection syndrome, and logical effect. These counts define nonnegative integer-valued distributions. We derive Fourier–MacWilliams identities using character duality for additive codes [46 , 48 ] and combine them with circuit and boundary constraints. Related quantum and circuit enumerators appear in [44 , 45 , 51 , 52 ] . In § 1.2 E, we relax the counts to real variables and construct linear programs that give upper bounds on circuit distance, lower bounds on undetected logical failure probability, and upper bounds on pseudo-threshold throughout the family under stochastic Pauli noise model.
Circuit families and weight distributions
We begin by defining a family of non-adaptive stabilizer circuits implementing the same linear map on some given input space.
Definition V.16 (Non-adaptive stabilizer circuit family and fault space). Fix ζ ∈ { 0 , 1 } \zeta\in\{0,1\} ζ ∈ { 0 , 1 } and a family { C θ : θ ∈ Θ } \{C_{\theta}:\theta\in\Theta\} { C θ : θ ∈ Θ } of non-adaptive stabilizer circuits on common input and output registers, with a fixed noiseless encoder C e n c C_{\mathrm{enc}} C enc and the complete measurement record retained. All members implement the same quantum channel, namely, ∀ θ ∈ Θ \forall\theta\in\Theta ∀ θ ∈ Θ it holds
∑ o C ~ θ , o ρ C ~ θ , o † ≜ N 0 ( ρ ) , C ~ θ , o ≜ C θ , o C e n c . (120) \sum_o \widetilde{C}_{\theta,o}\rho\widetilde{C}_{\theta,o}^{\dagger} \triangleq\mathcal{N}_0(\rho), \qquad\widetilde{C}_{\theta,o} \triangleq C_{\theta,o}C_{\mathrm{enc}}. \tag*{(120)} o ∑ C θ , o ρ C θ , o † ≜ N 0 ( ρ ) , C θ , o ≜ C θ , o C enc . (120) Each circuit C θ C_{\theta} C θ has permitted spacetime locations and a partition Π θ \Pi_{\theta} Π θ given by
Λ θ ( ζ ) ≜ ⨆ b = 1 B θ I θ , b , Π θ ≜ { I θ , 1 , … , I θ , B θ } , ∀ b ∈ Z + B θ , I θ , b ≠ ∅ , \Lambda_{\theta}^{(\zeta)} \triangleq\bigsqcup_{b=1}^{B_{\theta}} I_{\theta,b}, \qquad\Pi_{\theta} \triangleq\{I_{\theta,1},\ldots,I_{\theta,B_{\theta}}\}, \qquad\forall b \in\mathbb{Z}_{+}^{B_{\theta}}, I_{\theta,b} \ne\varnothing, Λ θ ( ζ ) ≜ b = 1 ⨆ B θ I θ , b , Π θ ≜ { I θ , 1 , … , I θ , B θ } , ∀ b ∈ Z + B θ , I θ , b = ∅ , N θ , b ≜ ∣ I θ , b ∣ , ∣ Λ θ ( ζ ) ∣ ≜ N θ ≜ ∑ b N θ , b ≤ N max Θ ∈ Z < ∞ . (121) N_{\theta,b} \triangleq|I_{\theta,b}|,\qquad|\Lambda_{\theta}^{(\zeta)}| \triangleq N_{\theta} \triangleq\sum_b N_{\theta,b} \le N_{\max}^{\Theta} \in\mathbb{Z}<\infty. \tag*{(121)} N θ , b ≜ ∣ I θ , b ∣ , ∣ Λ θ ( ζ ) ∣ ≜ N θ ≜ b ∑ N θ , b ≤ N m a x Θ ∈ Z < ∞. (121) The spacetime fault space for each member is given by E θ ( ζ ) ≅ F 2 2 N θ \mathcal{E}_{\theta}^{(\zeta)} \cong\mathbb{F}_2^{2N_{\theta}} E θ ( ζ ) ≅ F 2 2 N θ with dimension d ζ , θ ≜ 2 N θ d_{\zeta,\theta} \triangleq2N_{\theta} d ζ , θ ≜ 2 N θ . The permitted patterns form a binary subspace V θ ( ζ ) ⊆ E θ ( ζ ) \mathcal{V}_{\theta}^{(\zeta)} \subseteq\mathcal{E}_{\theta}^{(\zeta)} V θ ( ζ ) ⊆ E θ ( ζ ) .
Definition V.17 (Block weight and weight profile). For e ∈ E θ ( ζ ) e \in\mathcal{E}_{\theta}^{(\zeta)} e ∈ E θ ( ζ ) and b ∈ Z + B θ b \in\mathbb{Z}_{+}^{B_{\theta}} b ∈ Z + B θ , define its block weight by
wt θ , b ( e ) ≜ ∣ { ( s , t ) ∈ I θ , b : e s , t ≠ 0 } ∣ ≤ N θ , b . (122) \operatorname{wt}_{\theta,b}(e) \triangleq|\{(s,t) \in I_{\theta,b}:e_{s,t}\ne0\}| \le N_{\theta,b}. \tag*{(122)} wt θ , b ( e ) ≜ ∣ {( s , t ) ∈ I θ , b : e s , t = 0 } ∣ ≤ N θ , b . (122) Its weight profile under Π θ \Pi_{\theta} Π θ is
wt Π θ ( e ) ≜ ( wt θ , 1 ( e ) , … , wt θ , B θ ( e ) ) . (123) \operatorname{wt}_{\Pi_{\theta}}(e) \triangleq\left(\operatorname{wt}_{\theta,1}(e),\ldots,\operatorname{wt}_{\theta,B_{\theta}}(e)\right). \tag*{(123)} wt Π θ ( e ) ≜ ( wt θ , 1 ( e ) , … , wt θ , B θ ( e ) ) . (123) The set of all weight profiles is defined as
J Π θ ≜ { ( w 1 , … , w B θ ) ∈ Z B θ : 0 ≤ w b ≤ N θ , b ∀ b ∈ Z + B θ } . (124) J_{\Pi_{\theta}} \triangleq\left\{(w_1,\ldots,w_{B_{\theta}})\in\mathbb{Z}^{B_{\theta}}:0\le w_b\le N_{\theta,b}\ \forall b\in\mathbb{Z}_{+}^{B_{\theta}}\right\}. \tag*{(124)} J Π θ ≜ { ( w 1 , … , w B θ ) ∈ Z B θ : 0 ≤ w b ≤ N θ , b ∀ b ∈ Z + B θ } . (124)
Definition V.18 (Syndrome-trivial and channel-trivial spaces). For circuit C θ C_{\theta} C θ , construct the detection matrix H ζ , θ H_{\zeta,\theta} H ζ , θ and logical-effect matrix L ζ , θ L_{\zeta,\theta} L ζ , θ by Theorem V.9, with columns indexed by the coordinates of E θ ( ζ ) \mathcal{E}_{\theta}^{(\zeta)} E θ ( ζ ) , and define
M ζ , θ ≜ [ H ζ , θ L ζ , θ ] . M_{\zeta,\theta} \triangleq\begin{bmatrix} H_{\zeta,\theta}\\ L_{\zeta,\theta}\end{bmatrix}. M ζ , θ ≜ [ H ζ , θ L ζ , θ ] . For the permitted binary linear fault space V θ ( ζ ) ⊆ E θ ( ζ ) \mathcal{V}_{\theta}^{(\zeta)}\subseteq\mathcal{E}_{\theta}^{(\zeta)} V θ ( ζ ) ⊆ E θ ( ζ ) , define the syndrome-trivial space and channel-trivial space by
K ζ , θ ≜ { e ∈ V θ ( ζ ) : H ζ , θ e T = 0 } , (125) \mathcal{K}_{\zeta,\theta} \triangleq\{e\in\mathcal{V}_{\theta}^{(\zeta)}:H_{\zeta,\theta}e^{\mathsf{T}}=0\}, \tag*{(125)} K ζ , θ ≜ { e ∈ V θ ( ζ ) : H ζ , θ e T = 0 } , (125) T ζ , θ ≜ { e ∈ V θ ( ζ ) : M ζ , θ e T = 0 } . \mathcal{T}_{\zeta,\theta} \triangleq\{e\in\mathcal{V}_{\theta}^{(\zeta)}:M_{\zeta,\theta}e^{\mathsf{T}}=0\}. T ζ , θ ≜ { e ∈ V θ ( ζ ) : M ζ , θ e T = 0 } . Define their character duals by
K ζ , θ ⊥ ≜ { x ∈ E θ ( ζ ) : x e T = 0 ∀ e ∈ K ζ , θ } , (126) \mathcal{K}_{\zeta,\theta}^{\perp} \triangleq\{x\in\mathcal{E}_{\theta}^{(\zeta)}:xe^{\mathsf{T}}=0\ \forall e\in\mathcal{K}_{\zeta,\theta}\}, \tag*{(126)} K ζ , θ ⊥ ≜ { x ∈ E θ ( ζ ) : x e T = 0 ∀ e ∈ K ζ , θ } , (126) T ζ , θ ⊥ ≜ { x ∈ E θ ( ζ ) : x e T = 0 ∀ e ∈ T ζ , θ } , \mathcal{T}_{\zeta,\theta}^{\perp} \triangleq\{x\in\mathcal{E}_{\theta}^{(\zeta)}:xe^{\mathsf{T}}=0\ \forall e\in\mathcal{T}_{\zeta,\theta}\}, T ζ , θ ⊥ ≜ { x ∈ E θ ( ζ ) : x e T = 0 ∀ e ∈ T ζ , θ } , where x e T xe^{\mathsf{T}} x e T is the ordinary binary dot product.
Definition V.19 (Weight enumerators and generating functions). For w ∈ J Π θ \mathbf{w} \in J_{\Pi_\theta} w ∈ J Π θ , define the weight enumerators U θ , w , T θ , w , U ^ θ , w , T ^ θ , w U_{\theta,\mathbf{w}}, T_{\theta,\mathbf{w}}, \widehat{U}_{\theta,\mathbf{w}}, \widehat{T}_{\theta,\mathbf{w}} U θ , w , T θ , w , U θ , w , T θ , w as
U θ , w ≜ ∣ { e ∈ K ζ , θ : wt Π θ ( e ) = w } ∣ , T θ , w ≜ ∣ { e ∈ T ζ , θ : wt Π θ ( e ) = w } ∣ , U ^ θ , w ≜ ∣ { e ∈ K ζ , θ ⊥ : wt Π θ ( e ) = w } ∣ , T ^ θ , w ≜ ∣ { e ∈ T ζ , θ ⊥ : wt Π θ ( e ) = w } ∣ . (127) \begin{aligned}
U_{\theta,\mathbf{w}} &\triangleq\left|\left\{\mathbf{e} \in\mathcal{K}_{\zeta,\theta} : \operatorname{wt}_{\Pi_\theta}(\mathbf{e})=\mathbf{w}\right\}\right|,\\
T_{\theta,\mathbf{w}} &\triangleq\left|\left\{\mathbf{e} \in\mathcal{T}_{\zeta,\theta} : \operatorname{wt}_{\Pi_\theta}(\mathbf{e})=\mathbf{w}\right\}\right|,\\
\widehat{U}_{\theta,\mathbf{w}} &\triangleq\left|\left\{\mathbf{e} \in\mathcal{K}_{\zeta,\theta}^{\perp} : \operatorname{wt}_{\Pi_\theta}(\mathbf{e})=\mathbf{w}\right\}\right|,\\
\widehat{T}_{\theta,\mathbf{w}} &\triangleq\left|\left\{\mathbf{e} \in\mathcal{T}_{\zeta,\theta}^{\perp} : \operatorname{wt}_{\Pi_\theta}(\mathbf{e})=\mathbf{w}\right\}\right|. \tag*{(127)}
\end{aligned} U θ , w T θ , w U θ , w T θ , w ≜ ∣ { e ∈ K ζ , θ : wt Π θ ( e ) = w } ∣ , ≜ ∣ { e ∈ T ζ , θ : wt Π θ ( e ) = w } ∣ , ≜ { e ∈ K ζ , θ ⊥ : wt Π θ ( e ) = w } , ≜ { e ∈ T ζ , θ ⊥ : wt Π θ ( e ) = w } . (127)
The difference U θ , w − T θ , w U_{\theta,\mathbf{w}}-T_{\theta,\mathbf{w}} U θ , w − T θ , w counts harmful undetected faults with weight profile w \mathbf{w} w . Let σ , λ \boldsymbol{\sigma},\boldsymbol{\lambda} σ , λ be binary column vectors with lengths equal to the row counts of H ζ , θ H_{\zeta,\theta} H ζ , θ and L ζ , θ L_{\zeta,\theta} L ζ , θ , respectively. Define the signature-resolved weight coefficients and their generating function by
A θ , w ( ζ ) ( σ , λ ) ≜ ∣ { e ∈ V θ ( ζ ) : H ζ , θ e T = σ , L ζ , θ e T = λ , wt Π θ ( e ) = w } ∣ , (128) A_{\theta,\mathbf{w}}^{(\zeta)}(\boldsymbol{\sigma},\boldsymbol{\lambda}) \triangleq\left|\left\{\mathbf{e}\in\mathcal{V}_{\theta}^{(\zeta)}:
\begin{array}{l}
H_{\zeta,\theta}\mathbf{e}^{\mathsf T}=\boldsymbol{\sigma},\\
L_{\zeta,\theta}\mathbf{e}^{\mathsf T}=\boldsymbol{\lambda},\\
\operatorname{wt}_{\Pi_\theta}(\mathbf{e})=\mathbf{w}
\end{array}
\right\}\right|, \tag*{(128)} A θ , w ( ζ ) ( σ , λ ) ≜ ⎩ ⎨ ⎧ e ∈ V θ ( ζ ) : H ζ , θ e T = σ , L ζ , θ e T = λ , wt Π θ ( e ) = w ⎭ ⎬ ⎫ , (128)
W θ ; σ , λ ( ζ ) , Π θ ( u , v ) ≜ ∑ w ∈ J Π θ A θ , w ( ζ ) ( σ , λ ) ∏ b = 1 B θ u b N θ , b − w b v b w b . (129) W_{\theta;\boldsymbol{\sigma},\boldsymbol{\lambda}}^{(\zeta),\Pi_\theta}(u,v)\triangleq\sum_{\mathbf{w}\in J_{\Pi_\theta}}A_{\theta,\mathbf{w}}^{(\zeta)}(\boldsymbol{\sigma},\boldsymbol{\lambda})\prod_{b=1}^{B_\theta}u_b^{N_{\theta,b}-w_b}v_b^{w_b}. \tag*{(129)} W θ ; σ , λ ( ζ ) , Π θ ( u , v ) ≜ w ∈ J Π θ ∑ A θ , w ( ζ ) ( σ , λ ) b = 1 ∏ B θ u b N θ , b − w b v b w b . (129)
Here u = ( u 1 , … , u B θ ) u=(u_1,\ldots,u_{B_\theta}) u = ( u 1 , … , u B θ ) and v = ( v 1 , … , v B θ ) v=(v_1,\ldots,v_{B_\theta}) v = ( v 1 , … , v B θ ) are tuples of formal variables. Unattainable signatures have zero coefficients. In particular,
U θ , w = ∑ λ A θ , w ( ζ ) ( 0 , λ ) , T θ , w = A θ , w ( ζ ) ( 0 , 0 ) , U_{\theta,\mathbf{w}}=\sum_{\boldsymbol{\lambda}}A_{\theta,\mathbf{w}}^{(\zeta)}(0,\boldsymbol{\lambda}),\qquad T_{\theta,\mathbf{w}}=A_{\theta,\mathbf{w}}^{(\zeta)}(0,0), U θ , w = λ ∑ A θ , w ( ζ ) ( 0 , λ ) , T θ , w = A θ , w ( ζ ) ( 0 , 0 ) ,
where the sum runs over all logical-effect signatures.
Proposition V.20 (Dual spaces and cardinalities). For A ∈ { H ζ , θ , M ζ , θ } A\in\{H_{\zeta,\theta},M_{\zeta,\theta}\} A ∈ { H ζ , θ , M ζ , θ } , we denote A ∣ V θ ( ζ ) A\big|_{\mathcal{V}_{\theta}^{(\zeta)}} A V θ ( ζ ) as a linear map e ↦ A e T \mathbf{e}\mapsto A\mathbf{e}^{\mathsf T} e ↦ A e T with domain V θ ( ζ ) \mathcal{V}_{\theta}^{(\zeta)} V θ ( ζ ) and define its rank as the dimension of its image. Taking all duals in E θ ( ζ ) \mathcal{E}_{\theta}^{(\zeta)} E θ ( ζ ) ,
K ζ , θ ⊥ = ( V θ ( ζ ) ) ⊥ + row H ζ , θ , T ζ , θ ⊥ = ( V θ ( ζ ) ) ⊥ + row M ζ , θ . (130) \begin{aligned}
\mathcal{K}_{\zeta,\theta}^{\perp}&=\left(\mathcal{V}_{\theta}^{(\zeta)}\right)^{\perp}+\operatorname{row}H_{\zeta,\theta},\\
\mathcal{T}_{\zeta,\theta}^{\perp}&=\left(\mathcal{V}_{\theta}^{(\zeta)}\right)^{\perp}+\operatorname{row}M_{\zeta,\theta}. \tag*{(130)}
\end{aligned} K ζ , θ ⊥ T ζ , θ ⊥ = ( V θ ( ζ ) ) ⊥ + row H ζ , θ , = ( V θ ( ζ ) ) ⊥ + row M ζ , θ . (130)
∣ K ζ , θ ∣ = 2 dim V θ ( ζ ) − rank ( H ζ , θ ∣ V θ ( ζ ) ) , ∣ T ζ , θ ∣ = 2 dim V θ ( ζ ) − rank ( M ζ , θ ∣ V θ ( ζ ) ) . (131) \begin{aligned}
|\mathcal{K}_{\zeta,\theta}|&=2^{\dim\mathcal{V}_{\theta}^{(\zeta)}-\operatorname{rank}(H_{\zeta,\theta}|_{\mathcal{V}_{\theta}^{(\zeta)}})},\\
|\mathcal{T}_{\zeta,\theta}|&=2^{\dim\mathcal{V}_{\theta}^{(\zeta)}-\operatorname{rank}(M_{\zeta,\theta}|_{\mathcal{V}_{\theta}^{(\zeta)}})}. \tag*{(131)}
\end{aligned} ∣ K ζ , θ ∣ ∣ T ζ , θ ∣ = 2 d i m V θ ( ζ ) − rank ( H ζ , θ ∣ V θ ( ζ ) ) , = 2 d i m V θ ( ζ ) − rank ( M ζ , θ ∣ V θ ( ζ ) ) . (131)
∣ K ζ , θ ⊥ ∣ = 2 d ζ , θ ∣ K ζ , θ ∣ , ∣ T ζ , θ ⊥ ∣ = 2 d ζ , θ ∣ T ζ , θ ∣ . (132) \begin{aligned}
|\mathcal{K}_{\zeta,\theta}^{\perp}|&=\frac{2^{d_{\zeta,\theta}}}{|\mathcal{K}_{\zeta,\theta}|},\\
|\mathcal{T}_{\zeta,\theta}^{\perp}|&=\frac{2^{d_{\zeta,\theta}}}{|\mathcal{T}_{\zeta,\theta}|}. \tag*{(132)}
\end{aligned} ∣ K ζ , θ ⊥ ∣ ∣ T ζ , θ ⊥ ∣ = ∣ K ζ , θ ∣ 2 d ζ , θ , = ∣ T ζ , θ ∣ 2 d ζ , θ . (132)
Proof. By definition,
K ζ , θ = V θ ( ζ ) ∩ ( row H ζ , θ ) ⊥ , T ζ , θ = V θ ( ζ ) ∩ ( row M ζ , θ ) ⊥ . \begin{aligned}
\mathcal{K}_{\zeta,\theta}&=\mathcal{V}_{\theta}^{(\zeta)}\cap(\operatorname{row}H_{\zeta,\theta})^{\perp},\\
\mathcal{T}_{\zeta,\theta}&=\mathcal{V}_{\theta}^{(\zeta)}\cap(\operatorname{row}M_{\zeta,\theta})^{\perp}.
\end{aligned} K ζ , θ T ζ , θ = V θ ( ζ ) ∩ ( row H ζ , θ ) ⊥ , = V θ ( ζ ) ∩ ( row M ζ , θ ) ⊥ .
The orthogonal complement of an intersection is the sum of the orthogonal complements, and taking the orthogonal complement twice returns the original subspace. Applying these facts give Equation (130) . The spaces K ζ , θ \mathcal{K}_{\zeta,\theta} K ζ , θ and T ζ , θ \mathcal{T}_{\zeta,\theta} T ζ , θ are the kernels of H ζ , θ ∣ V θ ( ζ ) H_{\zeta,\theta}|_{\mathcal{V}_{\theta}^{(\zeta)}} H ζ , θ ∣ V θ ( ζ ) and M ζ , θ ∣ V θ ( ζ ) M_{\zeta,\theta}|_{\mathcal{V}_{\theta}^{(\zeta)}} M ζ , θ ∣ V θ ( ζ ) , respectively. Rank–nullity therefore gives their dimensions. Since a binary linear space has cardinality two raised to its dimension, Equation (131) follows. Finally, nondegeneracy of the binary dot product gives
dim K ζ , θ ⊥ = d ζ , θ − dim K ζ , θ , dim T ζ , θ ⊥ = d ζ , θ − dim T ζ , θ . \begin{aligned}
\dim\mathcal{K}_{\zeta,\theta}^{\perp}&=d_{\zeta,\theta}-\dim\mathcal{K}_{\zeta,\theta},\\
\dim\mathcal{T}_{\zeta,\theta}^{\perp}&=d_{\zeta,\theta}-\dim\mathcal{T}_{\zeta,\theta}.
\end{aligned} dim K ζ , θ ⊥ dim T ζ , θ ⊥ = d ζ , θ − dim K ζ , θ , = d ζ , θ − dim T ζ , θ .
Exponentiating these equalities with base two proves Equation (132) .
MacWilliams identities and constraints
We next derive constraints on these enumerators by combining the character-duality approach to MacWilliams identities [48 , 51 , 52 ] with the circuit signature characterization.
Proposition V.21 (Split MacWilliams identities). For integers q ≥ 2 q\ge2 q ≥ 2 , n ≥ 0 n\ge0 n ≥ 0 , and 0 ≤ i , j ≤ n 0\le i,j\le n 0 ≤ i , j ≤ n , the q q q -ary Krawtchouk polynomials [48 ] are defined as
K j ( q ) ( i ; n ) ≜ ∑ a = 0 j ( − 1 ) a ( q − 1 ) j − a ( i a ) ( n − i j − a ) . (133) \mathrm{K}_{j}^{(q)}(i;n)\triangleq\sum_{a=0}^{j}(-1)^a(q-1)^{j-a}\binom{i}{a}\binom{n-i}{j-a}. \tag*{(133)} K j ( q ) ( i ; n ) ≜ a = 0 ∑ j ( − 1 ) a ( q − 1 ) j − a ( a i ) ( j − a n − i ) . (133)
where the summand vanishes whenever a > i a>i a > i or j − a > n − i j-a>n-i j − a > n − i . For j , w ∈ J Π θ \mathbf{j},\mathbf{w}\in J_{\Pi_\theta} j , w ∈ J Π θ , define
K j Π θ ( w ) ≜ ∏ b = 1 B θ K j b ( 4 ) ( w b ; N θ , b ) . (134) \mathrm{K}_{\mathbf{j}}^{\Pi_\theta}(\mathbf{w})\triangleq\prod_{b=1}^{B_\theta}\mathrm{K}_{j_b}^{(4)}(w_b;N_{\theta,b}). \tag*{(134)} K j Π θ ( w ) ≜ b = 1 ∏ B θ K j b ( 4 ) ( w b ; N θ , b ) . (134)
For every circuit C θ C_\theta C θ , the split MacWilliams identities are given by
U ^ θ , j = 1 ∣ K ζ , θ ∣ ∑ w ∈ J Π θ U θ , w K j Π θ ( w ) , \widehat{U}_{\theta,\mathbf{j}}=\frac{1}{|\mathcal{K}_{\zeta,\theta}|}\sum_{\mathbf{w}\in J_{\Pi_\theta}}U_{\theta,\mathbf{w}}\mathrm{K}_{\mathbf{j}}^{\Pi_\theta}(\mathbf{w}), U θ , j = ∣ K ζ , θ ∣ 1 w ∈ J Π θ ∑ U θ , w K j Π θ ( w ) ,
T ^ θ , j = 1 ∣ T ζ , θ ∣ ∑ w ∈ J Π θ T θ , w K j Π θ ( w ) . (135) \widehat{T}_{\theta,\mathbf{j}}=\frac{1}{|\mathcal{T}_{\zeta,\theta}|}\sum_{\mathbf{w}\in J_{\Pi_\theta}}T_{\theta,\mathbf{w}}\mathrm{K}_{\mathbf{j}}^{\Pi_\theta}(\mathbf{w}). \tag*{(135)} T θ , j = ∣ T ζ , θ ∣ 1 w ∈ J Π θ ∑ T θ , w K j Π θ ( w ) . (135)
Proof. For every x ∈ E θ ( ζ ) \mathbf{x}\in\mathcal{E}_{\theta}^{(\zeta)} x ∈ E θ ( ζ ) , it holds
∑ e ∈ K ζ , θ ( − 1 ) x e T = { ∣ K ζ , θ ∣ , x ∈ K ζ , θ ⊥ , 0 , otherwise . (136) \sum_{\mathbf{e}\in\mathcal{K}_{\zeta,\theta}}(-1)^{\mathbf{x}\mathbf{e}^{\mathsf T}}=
\begin{cases}
|\mathcal{K}_{\zeta,\theta}|,&\mathbf{x}\in\mathcal{K}_{\zeta,\theta}^{\perp},\\
0,&\text{otherwise}.
\end{cases} \tag*{(136)} e ∈ K ζ , θ ∑ ( − 1 ) x e T = { ∣ K ζ , θ ∣ , 0 , x ∈ K ζ , θ ⊥ , otherwise . (136)
For each ( s , t ) ∈ Λ θ ( ζ ) (s,t)\in\Lambda_{\theta}^{(\zeta)} ( s , t ) ∈ Λ θ ( ζ ) ,
∑ x s , t ∈ F 2 2 ∖ { 0 } ( − 1 ) x s , t e s , t T = { 3 , e s , t = 0 , − 1 , e s , t ≠ 0. (137) \sum_{\mathbf{x}_{s,t}\in\mathbb{F}_2^{2}\setminus\{0\}}(-1)^{\mathbf{x}_{s,t}\mathbf{e}_{s,t}^{\mathsf T}}=
\begin{cases}
3,&e_{s,t}=0,\\
-1,&e_{s,t}\ne0.
\end{cases} \tag*{(137)} x s , t ∈ F 2 2 ∖ { 0 } ∑ ( − 1 ) x s , t e s , t T = { 3 , − 1 , e s , t = 0 , e s , t = 0. (137)
Using Equation (136) and then factoring the sum over the location labels gives
∑ j ∈ J Π θ U ^ θ , j ∏ b u b N θ , b − j b v b j b = 1 ∣ K ζ , θ ∣ ∑ e ∈ K ζ , θ ∑ x ∈ E θ ( ζ ) ( − 1 ) x e T ∏ b u b N θ , b − wt θ , b ( x ) v b wt θ , b ( x ) = 1 ∣ K ζ , θ ∣ ∑ e ∈ K ζ , θ ∏ b ∏ ( s , t ) ∈ I θ , b ( u b + v b ∑ x s , t ∈ F 2 ∖ { 0 } ( − 1 ) x s , t e s , t ) = 1 ∣ K ζ , θ ∣ ∑ w ∈ J Π θ U θ , w ∏ b ( u b + 3 v b ) N θ , b − w b ( u b − v b ) w b . \sum_{j\in J_{\Pi_\theta}} \widehat{U}_{\theta,j}\prod_b u_b^{N_{\theta,b}-j_b}v_b^{j_b}
= \frac{1}{\lvert K_{\zeta,\theta}\rvert}\sum_{e\in K_{\zeta,\theta}}\sum_{x\in E_{\theta}^{(\zeta)}}(-1)^{x e^{T}}\prod_b u_b^{N_{\theta,b}-\operatorname{wt}_{\theta,b}(x)}v_b^{\operatorname{wt}_{\theta,b}(x)}
= \frac{1}{\lvert K_{\zeta,\theta}\rvert}\sum_{e\in K_{\zeta,\theta}}\prod_b\prod_{(s,t)\in I_{\theta,b}}\left(u_b+v_b\sum_{x_{s,t}\in\mathbb{F}_2\setminus\{0\}}(-1)^{x_{s,t}e_{s,t}}\right)
= \frac{1}{\lvert K_{\zeta,\theta}\rvert}\sum_{w\in J_{\Pi_\theta}}U_{\theta,w}\prod_b(u_b+3v_b)^{N_{\theta,b}-w_b}(u_b-v_b)^{w_b}. j ∈ J Π θ ∑ U θ , j b ∏ u b N θ , b − j b v b j b = ∣ K ζ , θ ∣ 1 e ∈ K ζ , θ ∑ x ∈ E θ ( ζ ) ∑ ( − 1 ) x e T b ∏ u b N θ , b − wt θ , b ( x ) v b wt θ , b ( x ) = ∣ K ζ , θ ∣ 1 e ∈ K ζ , θ ∑ b ∏ ( s , t ) ∈ I θ , b ∏ u b + v b x s , t ∈ F 2 ∖ { 0 } ∑ ( − 1 ) x s , t e s , t = ∣ K ζ , θ ∣ 1 w ∈ J Π θ ∑ U θ , w b ∏ ( u b + 3 v b ) N θ , b − w b ( u b − v b ) w b .
The last equality uses Equation (137) and groups e e e by its weight profile. By the binomial theorem and Equations (133) and (134) ,
∏ b ( u b + 3 v b ) N θ , b − w b ( u b − v b ) w b = ∑ j ∈ J Π θ K j Π θ ( w ) ∏ b u b N θ , b − j b v b j b . \prod_b(u_b+3v_b)^{N_{\theta,b}-w_b}(u_b-v_b)^{w_b}
=\sum_{j\in J_{\Pi_\theta}}K_j^{\Pi_\theta}(w)\prod_bu_b^{N_{\theta,b}-j_b}v_b^{j_b}. b ∏ ( u b + 3 v b ) N θ , b − w b ( u b − v b ) w b = j ∈ J Π θ ∑ K j Π θ ( w ) b ∏ u b N θ , b − j b v b j b .
Substitution and comparison of coefficients give
U ^ θ , j = 1 ∣ K ζ , θ ∣ ∑ w ∈ J Π θ U θ , w K j Π θ ( w ) . \widehat{U}_{\theta,j}=\frac{1}{\lvert K_{\zeta,\theta}\rvert}\sum_{w\in J_{\Pi_\theta}}U_{\theta,w}K_j^{\Pi_\theta}(w). U θ , j = ∣ K ζ , θ ∣ 1 w ∈ J Π θ ∑ U θ , w K j Π θ ( w ) .
Replacing K ζ , θ K_{\zeta,\theta} K ζ , θ by T ζ , θ T_{\zeta,\theta} T ζ , θ proves the second identity in Equation (135) .
Proposition V.22 (Counting and distance constraints). For w ∈ J Π θ w\in J_{\Pi_\theta} w ∈ J Π θ , write
Γ θ , w ≔ ∏ b = 1 B θ 3 w b ( N θ , b w b ) , ∣ w ∣ ≔ ∑ b = 1 B θ w b . \Gamma_{\theta,w}\coloneqq\prod_{b=1}^{B_\theta}3^{w_b}\binom{N_{\theta,b}}{w_b},\qquad\lvert w\rvert\coloneqq\sum_{b=1}^{B_\theta}w_b. Γ θ , w : = b = 1 ∏ B θ 3 w b ( w b N θ , b ) , ∣ w ∣ : = b = 1 ∑ B θ w b .
For every circuit C θ C_\theta C θ , the four weight distributions are nonnegative integer-valued and satisfy
0 ≤ T θ , w ≤ U θ , w ≤ Γ θ , w , 0 ≤ U ^ θ , w ≤ T ^ θ , w ≤ Γ θ , w . (138) \begin{aligned}
0&\le T_{\theta,w}\le U_{\theta,w}\le\Gamma_{\theta,w},\\
0&\le\widehat{U}_{\theta,w}\le\widehat{T}_{\theta,w}\le\Gamma_{\theta,w}. \tag*{(138)}
\end{aligned} 0 0 ≤ T θ , w ≤ U θ , w ≤ Γ θ , w , ≤ U θ , w ≤ T θ , w ≤ Γ θ , w . (138)
U θ , 0 = T θ , 0 = U ^ θ , 0 = T ^ θ , 0 = 1. (139) U_{\theta,0}=T_{\theta,0}=\widehat{U}_{\theta,0}=\widehat{T}_{\theta,0}=1. \tag*{(139)} U θ , 0 = T θ , 0 = U θ , 0 = T θ , 0 = 1. (139)
and
∑ w ∈ J Π θ U θ , w = ∣ K ζ , θ ∣ , ∑ w ∈ J Π θ T θ , w = ∣ T ζ , θ ∣ , \sum_{w\in J_{\Pi_\theta}}U_{\theta,w}=\lvert K_{\zeta,\theta}\rvert,\qquad
\sum_{w\in J_{\Pi_\theta}}T_{\theta,w}=\lvert T_{\zeta,\theta}\rvert, w ∈ J Π θ ∑ U θ , w = ∣ K ζ , θ ∣ , w ∈ J Π θ ∑ T θ , w = ∣ T ζ , θ ∣ ,
∑ w ∈ J Π θ U ^ θ , w = 2 d ζ , θ ∣ K ζ , θ ∣ , ∑ w ∈ J Π θ T ^ θ , w = 2 d ζ , θ ∣ T ζ , θ ∣ . (140) \sum_{w\in J_{\Pi_\theta}}\widehat{U}_{\theta,w}=\frac{2^{d_{\zeta,\theta}}}{\lvert K_{\zeta,\theta}\rvert},\qquad
\sum_{w\in J_{\Pi_\theta}}\widehat{T}_{\theta,w}=\frac{2^{d_{\zeta,\theta}}}{\lvert T_{\zeta,\theta}\rvert}. \tag*{(140)} w ∈ J Π θ ∑ U θ , w = ∣ K ζ , θ ∣ 2 d ζ , θ , w ∈ J Π θ ∑ T θ , w = ∣ T ζ , θ ∣ 2 d ζ , θ . (140)
Furthermore, for every integer D ≥ 1 D\ge1 D ≥ 1 ,
d c i r c , ζ ( θ ) ≥ D ⟺ U θ , w = T θ , w for all 0 < ∣ w ∣ < D . (141) d_{\mathrm{circ},\zeta}(\theta)\ge D\Longleftrightarrow U_{\theta,w}=T_{\theta,w}\quad\text{for all }0<\lvert w\rvert<D. \tag*{(141)} d circ , ζ ( θ ) ≥ D ⟺ U θ , w = T θ , w for all 0 < ∣ w ∣ < D . (141)
Proof. The inclusions
T ζ , θ ⊆ K ζ , θ , K ζ , θ ⊥ ⊆ T ζ , θ ⊥ T_{\zeta,\theta}\subseteq K_{\zeta,\theta},\qquad K_{\zeta,\theta}^{\perp}\subseteq T_{\zeta,\theta}^{\perp} T ζ , θ ⊆ K ζ , θ , K ζ , θ ⊥ ⊆ T ζ , θ ⊥
give the inequalities between the distributions. There are exactly Γ θ , w \Gamma_{\theta,w} Γ θ , w labels of profile w w w in E θ ( ζ ) E_{\theta}^{(\zeta)} E θ ( ζ ) , namely, in each block, choose w b w_b w b locations and one of three nonzero labels at each chosen location. This proves Equation (138) . Each subspace contains the zero vector, the unique label of zero weight, proving Equation (139) . Summing over profiles counts all elements of each subspace; Theorem V.20 then gives Equation (140) . By Equations (125) and (127) , U θ , w − T θ , w U_{\theta,w}-T_{\theta,w} U θ , w − T θ , w counts the faults in K ζ , θ ∖ T ζ , θ K_{\zeta,\theta}\setminus T_{\zeta,\theta} K ζ , θ ∖ T ζ , θ with profile w w w . The signature characterization of circuit distance in Theorem V.14 directly gives Equation (141) .
Proposition V.23 (Stabilizer constraints at the boundaries). Let V c o d e V_{\mathrm{code}} V code , V o u t , θ V_{\mathrm{out},\theta} V out , θ , and V ~ o u t \widetilde{V}_{\mathrm{out}} V out be the output-stabilizer label spaces of the encoder, unconditioned circuit, and code-conditioned circuit, respectively (Theorems III.20 and III.27). Define
A j i n ≔ ∣ { p ∈ V c o d e : wt P ( p ) = j } ∣ , B j i n ≔ ∣ { p ∈ V c o d e ⊥ s : wt P ( p ) = j } ∣ , A_j^{\mathrm{in}}\coloneqq\lvert\{p\in V_{\mathrm{code}}:\operatorname{wt}_P(p)=j\}\rvert,\qquad
B_j^{\mathrm{in}}\coloneqq\lvert\{p\in V_{\mathrm{code}}^{\perp_s}:\operatorname{wt}_P(p)=j\}\rvert, A j in : = ∣{ p ∈ V code : wt P ( p ) = j }∣ , B j in : = ∣{ p ∈ V code ⊥ s : wt P ( p ) = j }∣ ,
A θ , j o u t ≔ ∣ { p ∈ V o u t , θ : wt P ( p ) = j } ∣ , B θ , j o u t ≔ ∣ { p ∈ V o u t , θ ⊥ s : wt P ( p ) = j } ∣ , A_{\theta,j}^{\mathrm{out}}\coloneqq\lvert\{p\in V_{\mathrm{out},\theta}:\operatorname{wt}_P(p)=j\}\rvert,\qquad
B_{\theta,j}^{\mathrm{out}}\coloneqq\lvert\{p\in V_{\mathrm{out},\theta}^{\perp_s}:\operatorname{wt}_P(p)=j\}\rvert, A θ , j out : = ∣{ p ∈ V out , θ : wt P ( p ) = j }∣ , B θ , j out : = ∣{ p ∈ V out , θ ⊥ s : wt P ( p ) = j }∣ ,
A ~ j o u t ≔ ∣ { p ∈ V ~ o u t : wt P ( p ) = j } ∣ , B ~ j o u t ≔ ∣ { p ∈ V ~ o u t ⊥ s : wt P ( p ) = j } ∣ . \widetilde{A}_j^{\mathrm{out}}\coloneqq\lvert\{p\in\widetilde{V}_{\mathrm{out}}:\operatorname{wt}_P(p)=j\}\rvert,\qquad
\widetilde{B}_j^{\mathrm{out}}\coloneqq\lvert\{p\in\widetilde{V}_{\mathrm{out}}^{\perp_s}:\operatorname{wt}_P(p)=j\}\rvert. A j out : = ∣{ p ∈ V out : wt P ( p ) = j }∣ , B j out : = ∣{ p ∈ V out ⊥ s : wt P ( p ) = j }∣ .
for 0 ≤ j ≤ n i n 0\le j\le n_{\mathrm{in}} 0 ≤ j ≤ n in in the input pair ( A j i n , B j i n ) (A_j^{\mathrm{in}},B_j^{\mathrm{in}}) ( A j in , B j in ) and 0 ≤ j ≤ n o u t 0\le j\le n_{\mathrm{out}} 0 ≤ j ≤ n out in the output pairs ( A θ , j o u t , B θ , j o u t ) ; ( A ~ j o u t , B ~ j o u t ) (A_{\theta,j}^{\mathrm{out}},B_{\theta,j}^{\mathrm{out}});(\widetilde{A}_j^{\mathrm{out}},\widetilde{B}_j^{\mathrm{out}}) ( A θ , j out , B θ , j out ) ; ( A j out , B j out ) . Each pair ( A j , B j ) (A_j,B_j) ( A j , B j ) satisfies
B j = 2 − r ∑ i = 0 n A i K j ( 4 ) ( i ; n ) ( 0 ≤ j ≤ n ) , B_j=2^{-r}\sum_{i=0}^{n}A_iK_j^{(4)}(i;n)\qquad(0\le j\le n), B j = 2 − r i = 0 ∑ n A i K j ( 4 ) ( i ; n ) ( 0 ≤ j ≤ n ) ,
A 0 = B 0 = 1 , 0 ≤ A j ≤ B j ≤ 3 j ( n j ) ( 0 ≤ j ≤ n ) , A_0=B_0=1,\qquad0\le A_j\le B_j\le3^j\binom{n}{j}\qquad(0\le j\le n), A 0 = B 0 = 1 , 0 ≤ A j ≤ B j ≤ 3 j ( j n ) ( 0 ≤ j ≤ n ) ,
∑ j = 0 n A j = 2 r , ∑ j = 0 n B j = 2 2 n − r . (142) \sum_{j=0}^{n}A_j=2^r,\qquad\sum_{j=0}^{n}B_j=2^{2n-r}. \tag*{(142)} j = 0 ∑ n A j = 2 r , j = 0 ∑ n B j = 2 2 n − r . (142)
where r r r is the dimension of the corresponding stabilizer space, and n = n i n n=n_{\mathrm{in}} n = n in for the input pair or n = n o u t n=n_{\mathrm{out}} n = n out for either output pair. If the corresponding boundary code has distance at least d 0 d_0 d 0 , then also A j = B j A_j=B_j A j = B j for 0 < j < d 0 0<j<d_0 0 < j < d 0 .
Proof. Each boundary space is isotropic, so the standard stabilizer weight-enumerator constraints apply [45 , 64 ] .
Proposition V.24 (Boundary constraints and Singleton bound). Let α ∈ { i n , o u t } \alpha\in\{\mathrm{in},\mathrm{out}\} α ∈ { in , out } denote the input or output boundary, immediately after the encoder or the final operation, respectively. Suppose all data-qubit locations at boundary α \alpha α form a block I θ , α ⊂ I θ I_{\theta,\alpha}\subset I_\theta I θ , α ⊂ I θ , and every Pauli pattern supported on that block belongs to V θ ( ζ ) V_\theta^{(\zeta)} V θ ( ζ ) . Let v θ , α ( j ) v_{\theta,\alpha}(j) v θ , α ( j ) denote the weight profile with weight j j j in block I θ , α I_{\theta,\alpha} I θ , α and zero elsewhere. Using the boundary distributions of Theorem V.23, the input case α = i n \alpha=\mathrm{in} α = in gives
T θ , θ , i n ( j ) ≥ A j i n , U θ , θ , i n ( j ) ≥ B j i n ( 0 ≤ j ≤ n i n ) . (143) T_{\theta,\theta,\mathrm{in}}(j)\ge A_j^{\mathrm{in}},\qquad U_{\theta,\theta,\mathrm{in}}(j)\ge B_j^{\mathrm{in}}\qquad(0\le j\le n_{\mathrm{in}}). \tag*{(143)} T θ , θ , in ( j ) ≥ A j in , U θ , θ , in ( j ) ≥ B j in ( 0 ≤ j ≤ n in ) . (143)
The output case α = o u t \alpha=\mathrm{out} α = out gives, for 0 ≤ j ≤ n o u t 0\le j\le n_{\mathrm{out}} 0 ≤ j ≤ n out ,
T θ , θ , o u t ( j ) = A ~ j o u t ≥ A θ , j o u t , T_{\theta,\theta,\mathrm{out}}(j)=\widetilde{A}_j^{\mathrm{out}}\ge A_{\theta,j}^{\mathrm{out}}, T θ , θ , out ( j ) = A j out ≥ A θ , j out ,
U θ , θ , o u t ( j ) = B ~ j o u t ≤ B θ , j o u t . (144) U_{\theta,\theta,\mathrm{out}}(j)=\widetilde{B}_j^{\mathrm{out}}\le B_{\theta,j}^{\mathrm{out}}. \tag*{(144)} U θ , θ , out ( j ) = B j out ≤ B θ , j out . (144)
If all final-data Pauli fault patterns belong to V θ ( ζ ) V_{\theta}^{(\zeta)} V θ ( ζ ) and k p r e s = n o u t − dim V ~ o u t > 0 k_{\mathrm{pres}}=n_{\mathrm{out}}-\dim\widetilde{V}_{\mathrm{out}}>0 k pres = n out − dim V out > 0 , then, for any partition Π θ \Pi_\theta Π θ ,
n o u t − k p r e s ≥ 2 ( d c i r c , ζ ( θ ) − 1 ) . (145) n_{\mathrm{out}}-k_{\mathrm{pres}}\ge2\left(d_{\mathrm{circ},\zeta}(\theta)-1\right). \tag*{(145)} n out − k pres ≥ 2 ( d circ , ζ ( θ ) − 1 ) . (145)
Proof. Input labels in V c o d e V_{\mathrm{code}} V code are channel-trivial. Those in V c o d e ⊥ s V_{\mathrm{code}}^{\perp_s} V code ⊥ s act as logical input Paulis and preserve every ideal output check. Counting these faults proves Equation (143) .
By Theorems III.20 and III.27, an output Pauli fault is undetected precisely when its label lies in V ~ o u t ⊥ s \widetilde{V}_{\mathrm{out}}^{\perp_s} V out ⊥ s , and channel-trivial precisely when its label lies in V ~ o u t \widetilde{V}_{\mathrm{out}} V out . Counting gives the output equalities. Composing unconditioned output relations with the encoder gives V o u t , θ ⊆ V ~ o u t V_{\mathrm{out},\theta}\subseteq\widetilde{V}_{\mathrm{out}} V out , θ ⊆ V out ; this inclusion and its reversed symplectic-dual inclusion give the output inequalities. Consequently,
d c i r c , ζ ( θ ) ≤ d o u t ≔ min p ∈ V ~ o u t ⊥ s ∖ V ~ o u t wt P ( p ) , (146) d_{\mathrm{circ},\zeta}(\theta)\le d_{\mathrm{out}}\coloneqq\min_{p\in\widetilde{V}_{\mathrm{out}}^{\perp_s}\setminus\widetilde{V}_{\mathrm{out}}}\operatorname{wt}_{P}(p), \tag*{(146)} d circ , ζ ( θ ) ≤ d out : = p ∈ V out ⊥ s ∖ V out min wt P ( p ) , (146)
with min ∅ = ∞ \min\varnothing=\infty min ∅ = ∞ , whenever all final-data faults are permitted. For k p r e s > 0 k_{\mathrm{pres}}>0 k pres > 0 , the quantum Singleton bound [3 Sec. 7.1] gives
n o u t − k p r e s ≥ 2 ( d o u t − 1 ) ≥ 2 ( d c i r c , ζ ( θ ) − 1 ) . n_{\mathrm{out}}-k_{\mathrm{pres}}\ge2(d_{\mathrm{out}}-1)\ge2(d_{\mathrm{circ},\zeta}(\theta)-1). n out − k pres ≥ 2 ( d out − 1 ) ≥ 2 ( d circ , ζ ( θ ) − 1 ) .
Remark V.25. For a given circuit family, the constraints in Theorem V.24 are applicable only under the stated assumptions therein.
Linear programming bounds
We now use the constraints derived in the earlier section to obtain LP upper bounds on circuit distance and pseudo-threshold, and lower bounds on undetected logical failure probability.
Distance bounds
We first group circuits whose enumerator constraints have the same numerical data. We formalize this below.
Definition V.26 (Circuit classes). Partition the parameter set into finitely many nonempty classes,
Θ = ⨆ c ∈ C Θ c (147) \Theta=\bigsqcup_{c\in\mathcal{C}}\Theta_c \tag*{(147)} Θ = c ∈ C ⨆ Θ c (147)
with common block sizes and cardinalities within each class, namely,
( N θ , 1 , … , N θ , B θ ) = ( N c , 1 , … , N c , B c ) , (N_{\theta,1},\ldots,N_{\theta,B_\theta})=(N_{c,1},\ldots,N_{c,B_c}), ( N θ , 1 , … , N θ , B θ ) = ( N c , 1 , … , N c , B c ) ,
∣ K ζ , θ ∣ = κ c , ∣ T ζ , θ ∣ = τ c ( θ ∈ Θ c ) . (148) |\mathcal{K}_{\zeta,\theta}|=\kappa_c,\qquad|\mathcal{T}_{\zeta,\theta}|=\tau_c\qquad(\theta\in\Theta_c). \tag*{(148)} ∣ K ζ , θ ∣ = κ c , ∣ T ζ , θ ∣ = τ c ( θ ∈ Θ c ) . (148)
The applicability, block indices, and numerical data of the boundary constraints used are also common within each class. Such a finite partition exists because N θ ≤ N max Θ N_\theta\le N_{\max}^{\Theta} N θ ≤ N m a x Θ and the boundary registers are fixed. Write N c = ∑ b = 1 B c N c , b N_c=\sum_{b=1}^{B_c}N_{c,b} N c = ∑ b = 1 B c N c , b and denote the corresponding profile set, capacities, and Krawtchouk coefficients by J c \mathcal{J}_c J c , Γ c , w \Gamma_{c,w} Γ c , w , and K j c ( w ) K_j^{c}(\mathbf{w}) K j c ( w ) respectively.
Definition V.27 (Spacetime linear program). For an integer D ≥ 1 D\ge1 D ≥ 1 , we define the spacetime distance linear program as the feasibility LP STLP Θ ( D ) \operatorname{STLP}_{\Theta}(D) STLP Θ ( D ) which has four real arrays
U w ( c ) , T w ( c ) , U ^ w ( c ) , T ^ w ( c ) ( c ∈ C , w ∈ J c ) , U_{\mathbf{w}}^{(c)},\quad T_{\mathbf{w}}^{(c)},\quad\widehat{U}_{\mathbf{w}}^{(c)},\quad\widehat{T}_{\mathbf{w}}^{(c)}
\qquad(c\in\mathcal{C},\ \mathbf{w}\in\mathcal{J}_c), U w ( c ) , T w ( c ) , U w ( c ) , T w ( c ) ( c ∈ C , w ∈ J c ) ,
and weights
η c ≥ 0 , ∑ c ∈ C η c = 1. (149) \eta_c\ge0,\qquad\sum_{c\in\mathcal{C}}\eta_c=1. \tag*{(149)} η c ≥ 0 , c ∈ C ∑ η c = 1. (149)
For each class c c c in Theorem V.26, impose the MacWilliams identities Equation (135) using its class data, and the distance constraints
U w ( c ) = T w ( c ) ( w ∈ J c , 0 < ∣ w ∣ < D ) . U_{\mathbf{w}}^{(c)}=T_{\mathbf{w}}^{(c)}
\qquad(\mathbf{w}\in\mathcal{J}_c,\ 0<|\mathbf{w}|<D). U w ( c ) = T w ( c ) ( w ∈ J c , 0 < ∣ w ∣ < D ) .
These equalities retain their form. The counting constraints Equations (138) to (140) become
U 0 ( c ) = T 0 ( c ) = U ^ 0 ( c ) = T ^ 0 ( c ) = η c , U_{\mathbf{0}}^{(c)}=T_{\mathbf{0}}^{(c)}=\widehat{U}_{\mathbf{0}}^{(c)}=\widehat{T}_{\mathbf{0}}^{(c)}=\eta_c, U 0 ( c ) = T 0 ( c ) = U 0 ( c ) = T 0 ( c ) = η c ,
0 ≤ T w ( c ) ≤ U w ( c ) ≤ η c Γ c , w , 0\le T_{\mathbf{w}}^{(c)}\le U_{\mathbf{w}}^{(c)}\le\eta_c\Gamma_{c,\mathbf{w}}, 0 ≤ T w ( c ) ≤ U w ( c ) ≤ η c Γ c , w ,
0 ≤ U ^ w ( c ) ≤ T ^ w ( c ) ≤ η c Γ c , w ( w ∈ J c ) , 0\le\widehat{U}_{\mathbf{w}}^{(c)}\le\widehat{T}_{\mathbf{w}}^{(c)}\le\eta_c\Gamma_{c,\mathbf{w}}
\qquad(\mathbf{w}\in\mathcal{J}_c), 0 ≤ U w ( c ) ≤ T w ( c ) ≤ η c Γ c , w ( w ∈ J c ) ,
∑ w ∈ J c U w ( c ) = η c κ c , ∑ w ∈ J c T w ( c ) = η c τ c , \sum_{\mathbf{w}\in\mathcal{J}_c}U_{\mathbf{w}}^{(c)}=\eta_c\kappa_c,\qquad
\sum_{\mathbf{w}\in\mathcal{J}_c}T_{\mathbf{w}}^{(c)}=\eta_c\tau_c, w ∈ J c ∑ U w ( c ) = η c κ c , w ∈ J c ∑ T w ( c ) = η c τ c ,
∑ w ∈ J c U ^ w ( c ) = η c 4 N c κ c , ∑ w ∈ J c T ^ w ( c ) = η c 4 N c τ c . (150) \sum_{\mathbf{w}\in\mathcal{J}_c}\widehat{U}_{\mathbf{w}}^{(c)}=\eta_c\frac{4^{N_c}}{\kappa_c},\qquad
\sum_{\mathbf{w}\in\mathcal{J}_c}\widehat{T}_{\mathbf{w}}^{(c)}=\eta_c\frac{4^{N_c}}{\tau_c}. \tag*{(150)} w ∈ J c ∑ U w ( c ) = η c κ c 4 N c , w ∈ J c ∑ T w ( c ) = η c τ c 4 N c . (150)
Include the boundary constraints Equations (143) and (144) when applicable, multiplying every boundary count on their right-hand sides by η c \eta_c η c . The boundary data satisfy Equation (142) and any prescribed boundary-code distance. When Equation (145) applies, also impose
η c ( n o u t − k p r e s ) ≥ 2 η c ( D − 1 ) . \eta_c(n_{\mathrm{out}}-k_{\mathrm{pres}})\ge2\eta_c(D-1). η c ( n out − k pres ) ≥ 2 η c ( D − 1 ) .
Theorem V.28 (LP distance bound). Every circuit with d c i r c , ζ ( θ ) ≥ D d_{\mathrm{circ},\zeta}(\theta)\ge D d circ , ζ ( θ ) ≥ D gives a feasible point of STLP Θ ( D ) \operatorname{STLP}_{\Theta}(D) STLP Θ ( D ) . Consequently,
STLP Θ ( D ) infeasible ⟹ d c i r c , ζ ( θ ) ≤ D − 1 for every θ ∈ Θ . (151) \operatorname{STLP}_{\Theta}(D)\ \text{infeasible}
\quad\Longrightarrow\quad
d_{\mathrm{circ},\zeta}(\theta)\le D-1\quad\text{for every }\theta\in\Theta. \tag*{(151)} STLP Θ ( D ) infeasible ⟹ d circ , ζ ( θ ) ≤ D − 1 for every θ ∈ Θ. (151)
Define
d L P = min { D − 1 : D ∈ { 1 , … , N max Θ + 1 } , STLP Θ ( D ) infeasible } , (152) d_{\mathrm{LP}}=\min\left\{D-1:D\in\{1,\ldots,N_{\max}^{\Theta}+1\},\ \operatorname{STLP}_{\Theta}(D)\ \text{infeasible}\right\}, \tag*{(152)} d LP = min { D − 1 : D ∈ { 1 , … , N m a x Θ + 1 } , STLP Θ ( D ) infeasible } , (152)
with min ∅ = ∞ \min\varnothing=\infty min ∅ = ∞ . Then d c i r c , ζ ( θ ) ≤ d L P d_{\mathrm{circ},\zeta}(\theta)\le d_{\mathrm{LP}} d circ , ζ ( θ ) ≤ d LP for every family member. The bound is finite whenever κ c > τ c \kappa_c>\tau_c κ c > τ c in every class. Proof. For a circuit θ ∈ Θ c \theta\in\Theta_c θ ∈ Θ c of distance at least D D D , set η c = 1 \eta_c = 1 η c = 1 and assign its four enumerators to the class-c c c arrays. Set all other weights and arrays to zero. By Theorems V.21, V.22 and V.24, these assignments satisfy every applicable constraint. Thus infeasibility excludes every circuit of distance at least D D D , proving the bounds.
At D = N max Θ + 1 D = N_{\max}^{\Theta} + 1 D = N m a x Θ + 1 , the distance constraints give U w ( c ) = T w ( c ) U_{\mathbf{w}}^{(c)} = T_{\mathbf{w}}^{(c)} U w ( c ) = T w ( c ) for every profile. Summing and using the cardinality constraints yields η c ( κ c − τ c ) = 0 \eta_c(\kappa_c-\tau_c)=0 η c ( κ c − τ c ) = 0 for every class. If κ c > τ c \kappa_c > \tau_c κ c > τ c throughout for every c c c , all weights vanish, contradicting ∑ c ∈ C η c = 1 \sum_{c\in\mathcal{C}}\eta_c=1 ∑ c ∈ C η c = 1 .
Circuit distance identifies the smallest harmful undetected fault. Performance under a specified noise model also depends on the number of fault patterns of each weight and signature. We use the enumerators to bound undetected logical failure probability and pseudo-threshold throughout the family. In this subsection, all Pauli fault patterns on Λ ( ζ ) \Lambda^{(\zeta)} Λ ( ζ ) are permitted, so V θ ( ζ ) = E θ ( ζ ) \mathcal{V}^{(\zeta)}_\theta=\mathcal{E}^{(\zeta)}_\theta V θ ( ζ ) = E θ ( ζ ) for every θ ∈ Θ \theta\in\Theta θ ∈ Θ . Additionally, in what follows, we present our results for i.i.d. depolarizing noise and leave the generalization to stochastic noise model for future work.
Definition V.29 (i.i.d. depolarizing noise). For 0 ≤ p ≤ 1 0 \le p \le1 0 ≤ p ≤ 1 , the i.i.d. depolarizing noise model E θ ( p ) \mathbf{E}_\theta(p) E θ ( p ) is the special case of Theorem V.2 with probabilities
μ θ , e ( p ) = π θ , w ( p ) ≔ ( 1 − p ) N θ − ∣ w ∣ ( p / 3 ) ∣ w ∣ , (153) \mu_{\theta,e}(p)=\pi_{\theta,\mathbf{w}}(p)\coloneqq(1-p)^{N_\theta-\lvert\mathbf{w}\rvert}(p/3)^{\lvert\mathbf{w}\rvert}, \tag*{(153)} μ θ , e ( p ) = π θ , w ( p ) : = ( 1 − p ) N θ − ∣ w ∣ ( p /3 ) ∣ w ∣ , (153) where e ∈ E ( ζ ) e\in\mathcal{E}^{(\zeta)} e ∈ E ( ζ ) and w = wt Π θ ( e ) \mathbf{w}=\operatorname{wt}_{\Pi_\theta}(e) w = wt Π θ ( e ) . Thus the Pauli labels at the locations in Λ ( ζ ) \Lambda^{(\zeta)} Λ ( ζ ) are independent, each assigning probability 1 − p 1-p 1 − p to I I I and p / 3 p/3 p /3 to each of X , Y , Z X,Y,Z X , Y , Z . On a classical record, this gives bit-flip probability 2 p / 3 2p/3 2 p /3 .
Definition V.30 (Attainable signatures and deterministic decoder). The attainable signature set is
Σ ζ , θ ≔ { ( H ζ , θ e T , L ζ , θ e T ) : e ∈ E θ ( ζ ) } . (154) \Sigma_{\zeta,\theta}\coloneqq\{(H_{\zeta,\theta}e^{\mathsf{T}},L_{\zeta,\theta}e^{\mathsf{T}}):e\in\mathcal{E}^{(\zeta)}_\theta\}. \tag*{(154)} Σ ζ , θ : = {( H ζ , θ e T , L ζ , θ e T ) : e ∈ E θ ( ζ ) } . (154) A fixed deterministic syndrome decoder assigns e ^ ζ , θ ( σ ) ∈ E θ ( ζ ) \widehat{e}_{\zeta,\theta}(\sigma)\in\mathcal{E}^{(\zeta)}_\theta e ζ , θ ( σ ) ∈ E θ ( ζ ) to every σ \sigma σ for which ( σ , λ ) ∈ Σ ζ , θ (\sigma,\lambda)\in\Sigma_{\zeta,\theta} ( σ , λ ) ∈ Σ ζ , θ for some λ \lambda λ , with
H ζ , θ e ^ ζ , θ ( σ ) T = σ , e ^ ζ , θ ( 0 ) = 0 , H_{\zeta,\theta}\widehat{e}_{\zeta,\theta}(\sigma)^{\mathsf{T}}=\sigma,\qquad\widehat{e}_{\zeta,\theta}(0)=0, H ζ , θ e ζ , θ ( σ ) T = σ , e ζ , θ ( 0 ) = 0 , δ θ ( σ ) ≔ L ζ , θ e ^ ζ , θ ( σ ) T . (155) \delta_\theta(\sigma)\coloneqq L_{\zeta,\theta}\widehat{e}_{\zeta,\theta}(\sigma)^{\mathsf{T}}. \tag*{(155)} δ θ ( σ ) : = L ζ , θ e ζ , θ ( σ ) T . (155) It applies correction P ( β θ ( ζ ) ( e ^ ζ , θ ( σ ) ) ) † P(\beta_\theta^{(\zeta)}(\widehat{e}_{\zeta,\theta}(\sigma)))^\dagger P ( β θ ( ζ ) ( e ζ , θ ( σ )) ) † at the circuit data-record output as in Theorem V.12 , with noiseless output-check measurements and recovery.
Definition V.31 (Undetected logical failure probability). Under Theorem V.29, the unconditional probability of a harmful undetected fault is
P u d , θ ( ζ ) ( p ) ≔ ∑ ( 0 , λ ) ∈ Σ ζ , θ λ ≠ 0 W 0 ; θ , λ ( ζ ) , Π θ ( u , v ) ∣ u b = 1 − p v b = p / 3 . (156) P_{\mathrm{ud},\theta}^{(\zeta)}(p)\coloneqq\left.\sum_{\substack{(0,\lambda)\in\Sigma_{\zeta,\theta}\\\lambda\ne0}}W_{0;\theta,\lambda}^{(\zeta),\Pi_\theta}(u,v)\right|_{\substack{u_b=1-p\\v_b=p/3}}. \tag*{(156)} P ud , θ ( ζ ) ( p ) : = ( 0 , λ ) ∈ Σ ζ , θ λ = 0 ∑ W 0 ; θ , λ ( ζ ) , Π θ ( u , v ) u b = 1 − p v b = p /3 . (156) Here and below, the substitutions apply to every b ∈ Z β θ + b\in\mathbb{Z}_{\beta_\theta}^{+} b ∈ Z β θ + .
Definition V.32 (Decoded failure probability). Under Theorem V.29, the probability of a fault pattern for which, after the decoder in Theorem V.30 applies a correction, the resulting channel is different from N 0 \mathcal{N}_0 N 0 is
P f a i l , θ ( ζ ) , δ θ ( p ) ≔ ∑ ( σ , λ ) ∈ Σ ζ , θ λ ≠ δ θ ( σ ) W σ ; θ , λ ( ζ ) , Π θ ( u , v ) ∣ u b = 1 − p v b = p / 3 . (157) P_{\mathrm{fail},\theta}^{(\zeta),\delta_\theta}(p)\coloneqq\left.\sum_{\substack{(\sigma,\lambda)\in\Sigma_{\zeta,\theta}\\\lambda\ne\delta_\theta(\sigma)}}W_{\sigma;\theta,\lambda}^{(\zeta),\Pi_\theta}(u,v)\right|_{\substack{u_b=1-p\\v_b=p/3}}. \tag*{(157)} P fail , θ ( ζ ) , δ θ ( p ) : = ( σ , λ ) ∈ Σ ζ , θ λ = δ θ ( σ ) ∑ W σ ; θ , λ ( ζ ) , Π θ ( u , v ) u b = 1 − p v b = p /3 . (157)
Definition V.33 (Pseudo-threshold). Fix 0 < p max ≤ 1 0<p_{\max}\le1 0 < p m a x ≤ 1 . For an integer j ≥ 0 j\ge0 j ≥ 0 , define the pseudo-threshold relative to the target 10 − j p 10^{-j}p 1 0 − j p by
p p s , θ ( ζ ) , δ θ ( j ) ≔ sup { x ∈ [ 0 , p max ] : P f a i l , θ ( ζ ) , δ θ ( p ) ≤ 10 − j p for every 0 < p < x } . (158) p_{\mathrm{ps},\theta}^{(\zeta),\delta_\theta}(j)\coloneqq\sup\{x\in[0,p_{\max}]:P_{\mathrm{fail},\theta}^{(\zeta),\delta_\theta}(p)\le10^{-j}p\ \text{for every }0<p<x\}. \tag*{(158)} p ps , θ ( ζ ) , δ θ ( j ) : = sup { x ∈ [ 0 , p m a x ] : P fail , θ ( ζ ) , δ θ ( p ) ≤ 1 0 − j p for every 0 < p < x } . (158) The case j = 0 j=0 j = 0 gives the usual pseudo-threshold [17 Sec. 1.2] ; j ≥ 1 j\ge1 j ≥ 1 requires suppression by a factor of at least 10 j 10^j 1 0 j relative to the physical error rate. The value is zero if no positive interval qualifies.
Definition V.34 (Circuit performance linear program). Fix integers D ≥ 1 D\ge1 D ≥ 1 , j ≥ 0 j\ge0 j ≥ 0 , and p ∈ [ 0 , p max ] p\in[0,p_{\max}] p ∈ [ 0 , p m a x ] . Put π c , w ( p ) = ( 1 − p ) N c − ∣ w ∣ ( p / 3 ) ∣ w ∣ \pi_{c,\mathbf{w}}(p)=(1-p)^{N_c-\lvert\mathbf{w}\rvert}(p/3)^{\lvert\mathbf{w}\rvert} π c , w ( p ) = ( 1 − p ) N c − ∣ w ∣ ( p /3 ) ∣ w ∣ and define
P Θ ( D , p ) ≔ min S T L P E Θ ( D ) ∑ c ∈ C ∑ w ∈ W c ( U w ( c ) − T w ( c ) ) π c , w ( p ) , (159) P_{\Theta}(D,p)\coloneqq\min_{\mathrm{STLPE}_{\Theta}(D)}\sum_{c\in\mathcal{C}}\sum_{\mathbf{w}\in\mathcal{W}_c}(U_{\mathbf{w}}^{(c)}-T_{\mathbf{w}}^{(c)})\pi_{c,\mathbf{w}}(p), \tag*{(159)} P Θ ( D , p ) : = STLPE Θ ( D ) min c ∈ C ∑ w ∈ W c ∑ ( U w ( c ) − T w ( c ) ) π c , w ( p ) , (159) with an empty minimum equal to + ∞ +\infty + ∞ . The feasibility LP PerfLP Θ ( D , p , j ) \operatorname{PerfLP}_{\Theta}(D,p,j) PerfLP Θ ( D , p , j ) consists of STLP Θ ( D ) \operatorname{STLP}_{\Theta}(D) STLP Θ ( D ) and the single additional constraint
∑ c ∈ C ∑ w ∈ W c ( U w ( c ) − T w ( c ) ) π c , w ( p ) ≤ 10 − j p . (160) \sum_{c\in\mathcal{C}}\sum_{\mathbf{w}\in\mathcal{W}_c}(U_{\mathbf{w}}^{(c)}-T_{\mathbf{w}}^{(c)})\pi_{c,\mathbf{w}}(p)\le10^{-j}p. \tag*{(160)} c ∈ C ∑ w ∈ W c ∑ ( U w ( c ) − T w ( c ) ) π c , w ( p ) ≤ 1 0 − j p . (160)
Theorem V.35 (LP performance bounds). Fix integers D ≥ 1 D\ge1 D ≥ 1 and j ≥ 0 j\ge0 j ≥ 0 . Every θ ∈ Θ \theta\in\Theta θ ∈ Θ with d c i r c ( θ ) ≥ D d_{\mathrm{circ}}(\theta)\ge D d circ ( θ ) ≥ D and every decoder in Theorem V.30 satisfy, for 0 ≤ p ≤ p max 0\le p\le p_{\max} 0 ≤ p ≤ p m a x ,
P Θ ( D , p ) ≤ P u d , θ ( ζ ) ( p ) ≤ P f a i l , θ ( ζ ) , δ θ ( p ) . (161) P_{\Theta}(D,p)\le P_{\mathrm{ud},\theta}^{(\zeta)}(p)\le P_{\mathrm{fail},\theta}^{(\zeta),\delta_\theta}(p). \tag*{(161)} P Θ ( D , p ) ≤ P ud , θ ( ζ ) ( p ) ≤ P fail , θ ( ζ ) , δ θ ( p ) . (161) Whenever P f a i l , θ ( ζ ) , δ θ ( p ) ≤ 10 − j p P_{\mathrm{fail},\theta}^{(\zeta),\delta_\theta}(p)\le10^{-j}p P fail , θ ( ζ ) , δ θ ( p ) ≤ 1 0 − j p , the circuit family’s enumerators give a feasible point of PerfLP Θ ( D , p , j ) \operatorname{PerfLP}_{\Theta}(D,p,j) PerfLP Θ ( D , p , j ) . Consequently,
p p s , θ ( ζ ) , δ θ ( j ) ≤ p p s L P ( D , j ) , p_{\mathrm{ps},\theta}^{(\zeta),\delta_\theta}(j)\le p_{\mathrm{ps}}^{\mathrm{LP}}(D,j), p ps , θ ( ζ ) , δ θ ( j ) ≤ p ps LP ( D , j ) , p p s L P ( D , j ) ≔ sup { x ∈ [ 0 , p max ] : PerfLP Θ ( D , p , j ) is feasible for every 0 < p < x } . (162) p_{\mathrm{ps}}^{\mathrm{LP}}(D,j)\coloneqq\sup\{x\in[0,p_{\max}]:\operatorname{PerfLP}_{\Theta}(D,p,j)\text{ is feasible for every }0<p<x\}. \tag*{(162)} p ps LP ( D , j ) : = sup { x ∈ [ 0 , p m a x ] : PerfLP Θ ( D , p , j ) is feasible for every 0 < p < x } . (162) Proof. The feasible point supplied by Theorem V.28 has objective P u d , θ ( ζ ) ( p ) P_{\mathrm{ud},\theta}^{(\zeta)}(p) P ud , θ ( ζ ) ( p ) , by expanding Equation (129) . Minimization gives the first inequality in Equation (161) . Since δ θ ( 0 ) = 0 \delta_\theta(0)=0 δ θ ( 0 ) = 0 , every harmful undetected fault also causes decoded failure, giving the second. Thus this point
satisfies the additional performance constraint whenever the decoder achieves the prescribed target. Every comparison interval in Theorem V.33 therefore gives an interval on which the performance LP is feasible. Taking supremums proves Equation (162) .
We illustrate these LP bounds with flag-based syndrome-extraction circuits, expressing the t t t -flag condition as additional linear constraints in Appendix § 1.2.3 .
Discussion and outlook
The tools developed in this work provide a general framework for analyzing fault tolerance while retaining the full circuit operation, including quantum outputs and measurement records. We therefore foresee broad applications in fault-tolerant circuit verification and design. Some interesting avenues for future work are as follows:
Adaptive stabilizer circuits. Consider the simple adaptive circuit in Theorem III.15. It is shown there that the global parity check o 2 + o 3 = 0 o_2+o_3=0 o 2 + o 3 = 0 does not capture the outcome-conditional parity check ( 1 + o 1 ) o 2 = 0 (1+o_1)o_2=0 ( 1 + o 1 ) o 2 = 0 over F 2 \mathbb{F}_2 F 2 . Applying our construction of the common relation space W C W_C W C in Theorem III.25 to adaptive circuits captures only Pauli relations valid across all branches with fixed input and output Pauli labels and signs determined by fixed record parities. It therefore need not capture such conditional checks. An extension of our framework could retain the branch spaces V K o V_{K_o} V K o defined in Theorem III.20, together with their relation signs and the conditions selecting each history. The composition rule of Theorem III.23 could then update these relations as the preceding outcomes determine the next operation. An extension that includes faults on the classical controller must also account for corrupted control outcomes that change these choices, beyond the retained-record noise convention in Theorem III.6. Existing verification methods for circuits with classical control [30 , 65 , 66 ] and composable detector error models [43 ] provide starting points. A remaining challenge is to combine these approaches with our fault-signature and weight-enumerator tools while retaining the conditional checks without explicitly enumerating all measurement histories, whose number can grow exponentially with the number of measurements.
Non-stabilizer circuits. Our recovery conditions in Theorem IV.3 already apply to non-stabilizer circuits, but our explicit fault signatures and weight enumerators rely on stabilizer structure. For example, T X T † = ( X + Y ) / 2 TXT^\dagger=(X+Y)/\sqrt{2} T X T † = ( X + Y ) / 2 , so a single Pauli fault can become a sum of Pauli terms that affect subsequent checks differently. Replacing this coherent sum by a random choice between an X X X fault and a Y Y Y fault, each with probability 1 / 2 1/2 1/2 , would generally change the error channel. Extending our weight-enumerator LP approach would require quantities that describe faults of each spacetime weight while retaining the amplitudes and relative phases of the Pauli terms they produce. The next step would be to derive linear equalities and inequalities that these quantities must satisfy whenever a circuit achieves a specified level of fault protection. Circuits with few T T T gates offer a concrete starting point, namely, expanding each T T T as a linear combination of I I I and Z Z Z expresses the circuit operator as a sum of Clifford circuit operators, whose contributions must be combined coherently. Existing tensor and circuit enumerators [51 , 52 ] and simulation methods using stabilizer decompositions [67 ] provide tools for investigating this extension.
Connectivity and other hardware constraints. Our framework can accommodate restricted qubit connectivity, native gate sets, and limits on circuit depth or ancilla resources by restricting the admissible circuit family. This provides a basis for investigating how hardware constraints limit achievable fault tolerance. We leave the development of corresponding SDP and LP bounds and explicit circuit constructions for future work.
Acknowledgments
S. Ghosh and H. Boche acknowledge support from the BMFTR under the “Souverän. Digital. Vernetzt.” program for project 6G-life, 16KIS2414. S. Ghosh and H. Boche acknowledge support from the BMFTR Quantum Programme Q-STARS, 16KIS2601, and project QUARKS, 16KIS1998K.
H. Boche acknowledges funding by the DFG as part of Germany’s Excellence Strategy-EXC 2050/2-Project ID 390696704- Cluster of Excellence “Centre for Tactile Internet with Human-in-the-Loop” (CeTI) of Technische Universität Dresden and within the Gottfried Wilhelm Leibniz Prize Programme under Grant BO 1734/20-1 and in part by DFG Projects under Grant BO 1734/35-1. A.T. is supported by the CQT PhD Scholarship, the Google PhD Fellowship Program and the CQT Young Researcher Career Development Grant.
Data availability. The data specifying the finite honeycomb circuit and the analytic CSS Hamming-code benchmark are contained in this article.
AI use. The authors used OpenAI GPT-5.6 Sol to assist with writing the Python code for the honeycomb Floquet example in Appendix B. All the proofs were done by the authors while their correctness were cross-checked with OpenAI GPT-5.6 Sol and GPT-6 Astra.
Causal normalization of circuit map and noise model
The constraints used in Theorem III.4 follow from local trace preservation and causality. We derive them by discarding the latest output and repeating the calculation at each earlier step. We then show that connecting the circuit and noise gives a trace-preserving map. The register dimensions may depend on the time step, as in Theorem III.1. All vectorizations use the fixed bases of the preliminaries and are unnormalized. A CP map C ( ρ ) = ∑ a C a ρ C a † C(\rho)=\sum_a C_a\rho C_a^\dagger C ( ρ ) = ∑ a C a ρ C a † has Choi operator J C = ∑ a ∣ C a ⟩ ⟩ ⟨ ⟨ C a ∣ ⪰ 0 J_C=\sum_a\lvert C_a\rangle\!\rangle\langle\!\langle C_a\rvert\succeq0 J C = ∑ a ∣ C a ⟩ ⟩ ⟨ ⟨ C a ∣ ⪰ 0 [20 ] . For an operator D : X → Y D:X\to Y D : X → Y , write ∣ D ⟩ ⟩ = ∑ i , j D i j ∣ i ⟩ Y ⊗ ∣ j ⟩ X \lvert D\rangle\!\rangle=\sum_{i,j}D_{ij}\lvert i\rangle_Y\otimes\lvert j\rangle_X ∣ D ⟩ ⟩ = ∑ i , j D ij ∣ i ⟩ Y ⊗ ∣ j ⟩ X . Tracing the output gives
Tr Y ( ∣ D ⟩ ⟩ ⟨ ⟨ D ∣ ) = ∑ j , k ( ∑ i D i j D i k ∗ ) ∣ j ⟩ ⟨ k ∣ = ( D † D ) T . (163) \begin{aligned}
\operatorname{Tr}_Y(\lvert D\rangle\!\rangle\langle\!\langle D\rvert)=\sum_{j,k}\left(\sum_i D_{ij}D_{ik}^{*}\right)\lvert j\rangle\langle k\rvert\\
&=(D^\dagger D)^{\mathsf T}. \tag*{(163)}
\end{aligned} Tr Y (∣ D ⟩ ⟩ ⟨ ⟨ D ∣) = j , k ∑ ( i ∑ D ij D ik ∗ ) ∣ j ⟩ ⟨ k ∣ = ( D † D ) T . (163)
Consequently, for Kraus operators { D a } a \{D_a\}_a { D a } a , the condition ∑ a D a † D a = I X \sum_aD_a^\dagger D_a=I_X ∑ a D a † D a = I X is equivalent to Tr Y ∑ a ∣ D a ⟩ ⟩ ⟨ ⟨ D a ∣ = I X \operatorname{Tr}_Y\sum_a\lvert D_a\rangle\!\rangle\langle\!\langle D_a\rvert=I_X Tr Y ∑ a ∣ D a ⟩ ⟩ ⟨ ⟨ D a ∣ = I X . We use this identity and its index form below.
Circuit map constraints
To distinguish open wires, let Q r o u t Q_r^{\mathrm{out}} Q r out denote the data output of component r r r , and let Q r i n Q_r^{\mathrm{in}} Q r in denote the input of component r + 1 r+1 r + 1 . For 1 ≤ r < ℓ 1\le r<\ell 1 ≤ r < ℓ , these are distinct copies of Q r Q_r Q r until connected. The final data output is denoted by Q ℓ o u t Q_\ell^{\mathrm{out}} Q ℓ out . Likewise, the external input Q 0 e x t Q_0^{\mathrm{ext}} Q 0 ext is distinct from the first component’s input copy Q 0 i n Q_0^{\mathrm{in}} Q 0 in . For each fixed history h = o 1 : r − 1 h=o_{1:r-1} h = o 1 : r − 1 , the component Kraus operators define a trace-preserving channel
C o r ∣ h : Q r − 1 i n ⟶ A r o u t ⊗ Q r o u t , ∑ o r C o r ∣ h † C o r ∣ h = I Q r − 1 i n . (164) C_{o_r\mid h}:Q_{r-1}^{\mathrm{in}}\longrightarrow A_r^{\mathrm{out}}\otimes Q_r^{\mathrm{out}},\qquad\sum_{o_r}C_{o_r\mid h}^{\dagger}C_{o_r\mid h}=I_{Q_{r-1}^{\mathrm{in}}}. \tag*{(164)} C o r ∣ h : Q r − 1 in ⟶ A r out ⊗ Q r out , o r ∑ C o r ∣ h † C o r ∣ h = I Q r − 1 in . (164)
It is this local completeness relation that yields the circuit-map constraints. For 0 ≤ r ≤ ℓ 0\le r\le\ell 0 ≤ r ≤ ℓ , define the prefix space containing all open input and output legs of the first r r r circuit components by
H r ≔ ⨂ i ∈ Z r + ( A i o u t ⊗ Q i o u t ⊗ Q i − 1 i n ) . \mathcal H_r\coloneqq\bigotimes_{i\in\mathbb Z_r^+}\left(A_i^{\mathrm{out}}\otimes Q_i^{\mathrm{out}}\otimes Q_{i-1}^{\mathrm{in}}\right). H r : = i ∈ Z r + ⨂ ( A i out ⊗ Q i out ⊗ Q i − 1 in ) .
The factors are ordered from i = r i=r i = r to i = 1 i=1 i = 1 , and the empty tensor product gives H 0 = C \mathcal H_0=\mathbb C H 0 = C . For each outcome prefix o 1 : r o_{1:r} o 1 : r , define
C o 1 : r ≔ ∣ C o r ∣ o 1 : r − 1 ⟩ ⟩ ⊗ ⋯ ⊗ ∣ C o 1 ⟩ ⟩ ⊗ I Q 0 e x t , C ∅ = I Q 0 e x t . (165) C_{o_{1:r}}\coloneqq\lvert C_{o_r\mid o_{1:r-1}}\rangle\!\rangle\otimes\cdots\otimes\lvert C_{o_1}\rangle\!\rangle\otimes I_{Q_0^{\mathrm{ext}}},
\qquad
C_{\varnothing}=I_{Q_0^{\mathrm{ext}}}. \tag*{(165)} C o 1 : r : = ∣ C o r ∣ o 1 : r − 1 ⟩ ⟩ ⊗ ⋯ ⊗ ∣ C o 1 ⟩ ⟩ ⊗ I Q 0 ext , C ∅ = I Q 0 ext . (165)
Thus C o 1 : r C_{o_{1:r}} C o 1 : r maps Q 0 e x t Q_0^{\mathrm{ext}} Q 0 ext to H r ⊗ Q 0 e x t \mathcal H_r\otimes Q_0^{\mathrm{ext}} H r ⊗ Q 0 ext . At r = ℓ r=\ell r = ℓ , these are precisely the circuit-map Kraus operators C o C_o C o . The normalization operators in Theorem III.4 are
C ( r ) ≔ ∑ o 1 : r C o 1 : r C o 1 : r † ⪰ 0 , C ( 0 ) = I Q 0 e x t . (166) C^{(r)}\coloneqq\sum_{o_{1:r}}C_{o_{1:r}}C_{o_{1:r}}^\dagger\succeq0,\qquad C^{(0)}=I_{Q_0^{\mathrm{ext}}}. \tag*{(166)} C ( r ) : = o 1 : r ∑ C o 1 : r C o 1 : r † ⪰ 0 , C ( 0 ) = I Q 0 ext . (166)
For h = o 1 : r − 1 h=o_{1:r-1} h = o 1 : r − 1 , the prefix factorizes as C o 1 : r = ∣ C o r ∣ h ⟩ ⟩ ⊗ C h C_{o_{1:r}}=\lvert C_{o_r\mid h}\rangle\!\rangle\otimes C_h C o 1 : r = ∣ C o r ∣ h ⟩ ⟩ ⊗ C h . Grouping the sum by h h h and applying (A1) to the last component gives
Tr A r o u t Q r o u t C ( r ) = ∑ h ( ∑ o r C o r ∣ h † C o r ∣ h ) T ⊗ C h C h † = I Q r − 1 i n ⊗ C ( r − 1 ) . (167) \begin{aligned}
\operatorname{Tr}_{A_r^{\mathrm{out}}Q_r^{\mathrm{out}}}C^{(r)}
=\sum_h\left(\sum_{o_r}C_{o_r\mid h}^{\dagger}C_{o_r\mid h}\right)^{\mathsf T}\otimes C_hC_h^\dagger\\
&=I_{Q_{r-1}^{\mathrm{in}}}\otimes C^{(r-1)}. \tag*{(167)}
\end{aligned} Tr A r out Q r out C ( r ) = h ∑ ( o r ∑ C o r ∣ h † C o r ∣ h ) T ⊗ C h C h † = I Q r − 1 in ⊗ C ( r − 1 ) . (167)
For r = 1 r=1 r = 1 , the history is empty and C h = I Q 0 e x t C_h=I_{Q^{\mathrm{ext}}_0} C h = I Q 0 ext , giving the stated boundary condition. Since the completeness relation holds for every history, the argument also applies to all adaptive choices of the components. These are the deterministic quantum-comb normalization constraints with the external input retained [20 ] . Discarding the latest output leaves an identity on that component’s input, tensored with the earlier prefix normalization operator. Thus later trace-preserving operations do not alter the earlier process. The full circuit map satisfies
C c m ( ρ ) = ∑ o C o ρ C o † , C c m ( I Q 0 e x t ) = C ( ℓ ) . (168) C_{\mathrm{cm}}(\rho)=\sum_o C_o\rho C_o^\dagger,\qquad C_{\mathrm{cm}}(I_{Q^{\mathrm{ext}}_0})=C^{(\ell)}. \tag*{(168)} C cm ( ρ ) = o ∑ C o ρ C o † , C cm ( I Q 0 ext ) = C ( ℓ ) . (168)
Here C ( ℓ ) C^{(\ell)} C ( ℓ ) is the normalization operator appearing in Theorem III.4 and it is not the Choi operator of C c m C_{\mathrm{cm}} C cm . Local trace preservation does not imply that this open circuit map is trace-preserving. Indeed, the external input is an identity tensor factor in every C o C_o C o , so ∑ o C o † C o \sum_o C_o^\dagger C_o ∑ o C o † C o is proportional to I Q 0 e x t I_{Q^{\mathrm{ext}}_0} I Q 0 ext . Taking traces in (A5) determines the proportionality factor
∑ o C o † C o = ( ∏ r = 0 ℓ − 1 dim Q r ) I Q 0 e x t , \sum_o C_o^\dagger C_o=\left(\prod_{r=0}^{\ell-1}\dim Q_r\right)I_{Q^{\mathrm{ext}}_0}, o ∑ C o † C o = ( r = 0 ∏ ℓ − 1 dim Q r ) I Q 0 ext ,
Tr C c m ( ρ ) = ( ∏ r = 0 ℓ − 1 dim Q r ) Tr ρ . (169) \operatorname{Tr}C_{\mathrm{cm}}(\rho)=\left(\prod_{r=0}^{\ell-1}\dim Q_r\right)\operatorname{Tr}\rho. \tag*{(169)} Tr C cm ( ρ ) = ( r = 0 ∏ ℓ − 1 dim Q r ) Tr ρ . (169)
The dimension factors arise from the unnormalized vectorizations. After contraction with a noise model satisfying the stated constraints, the resulting map is trace-preserving, as shown in Section A 3.
Noise model constraints
Consider the local noise operators of Theorem III.6, with N 0 = N ℓ + 1 = C N_0=N_{\ell+1}=\mathbb{C} N 0 = N ℓ + 1 = C . The initial operation includes preparation of the memory, and the final Kraus family includes tracing it out. More explicitly, the local operators have domains and codomains
E e 0 : Q 0 e x t ⟶ Q 0 i n ⊗ N 1 , E_{e_0}:Q^{\mathrm{ext}}_0\longrightarrow Q^{\mathrm{in}}_0\otimes N_1, E e 0 : Q 0 ext ⟶ Q 0 in ⊗ N 1 ,
E e r : A r o u t ⊗ Q r o u t ⊗ N r ⟶ A r o u t ⊗ Q r i n ⊗ N r + 1 ( 1 ≤ r < ℓ ) , E_{e_r}:A^{\mathrm{out}}_r\otimes Q^{\mathrm{out}}_r\otimes N_r\longrightarrow A^{\mathrm{out}}_r\otimes Q^{\mathrm{in}}_r\otimes N_{r+1}\qquad(1\le r<\ell), E e r : A r out ⊗ Q r out ⊗ N r ⟶ A r out ⊗ Q r in ⊗ N r + 1 ( 1 ≤ r < ℓ ) ,
E e ℓ : A ℓ o u t ⊗ Q ℓ o u t ⊗ N ℓ ⟶ A ℓ o u t ⊗ Q ℓ . E_{e_\ell}:A^{\mathrm{out}}_\ell\otimes Q^{\mathrm{out}}_\ell\otimes N_\ell\longrightarrow A^{\mathrm{out}}_\ell\otimes Q_\ell. E e ℓ : A ℓ out ⊗ Q ℓ out ⊗ N ℓ ⟶ A ℓ out ⊗ Q ℓ .
The input and output copies of each record register are distinct tensor factors, although both are denoted by A r o u t A^{\mathrm{out}}_r A r out . Noise may act on these registers as well as on the data. Their local completeness relations are
∑ e 0 E e 0 † E e 0 = I Q 0 e x t , ∑ e r E e r † E e r = I A r o u t Q r o u t N r ( 1 ≤ r ≤ ℓ ) . (170) \sum_{e_0}E_{e_0}^\dagger E_{e_0}=I_{Q^{\mathrm{ext}}_0},\qquad
\sum_{e_r}E_{e_r}^\dagger E_{e_r}=I_{A^{\mathrm{out}}_r Q^{\mathrm{out}}_r N_r}\qquad(1\le r\le\ell). \tag*{(170)} e 0 ∑ E e 0 † E e 0 = I Q 0 ext , e r ∑ E e r † E e r = I A r out Q r out N r ( 1 ≤ r ≤ ℓ ) . (170)
For 0 ≤ r < ℓ 0\le r<\ell 0 ≤ r < ℓ , define the noise-prefix operators
E e 0 : r : Q r i n ⊗ H r ⊗ Q 0 e x t ⟶ A 1 : r o u t ⊗ N r + 1 . (171) E_{e_{0:r}}:Q^{\mathrm{in}}_r\otimes\mathcal{H}_r\otimes Q^{\mathrm{ext}}_0\longrightarrow A^{\mathrm{out}}_{1:r}\otimes N_{r+1}. \tag*{(171)} E e 0 : r : Q r in ⊗ H r ⊗ Q 0 ext ⟶ A 1 : r out ⊗ N r + 1 . (171)
The component blocks in the domain are ordered from i = r i=r i = r to i = 1 i=1 i = 1 ; empty tensor products equal C \mathbb{C} C . Writing I i n I_{\mathrm{in}} I in (resp. I o u t I_{\mathrm{out}} I out ) for the identities on the displayed domain (resp. codomain) of Equation (171) , we have
E e 0 : r ≔ ( I o u t ⊗ ⟨ ⟨ E e r ∗ ∣ ⊗ ⋯ ⊗ ⟨ ⟨ E e 0 ∗ ∣ ) ⋅ ( ∣ I o u t ⟩ ⟩ ⊗ ⨂ s = 1 r ∣ I N s ⟩ ⟩ ⊗ I i n ) . (172) E_{e_{0:r}}\coloneqq\left(I_{\mathrm{out}}\otimes\langle\!\langle E^*_{e_r}\rvert\otimes\cdots\otimes\langle\!\langle E^*_{e_0}\rvert\right)\cdot\left(\lvert I_{\mathrm{out}}\rangle\!\rangle\otimes\bigotimes_{s=1}^{r}\lvert I_{N_s}\rangle\!\rangle\otimes I_{\mathrm{in}}\right). \tag*{(172)} E e 0 : r : = ( I out ⊗ ⟨ ⟨ E e r ∗ ∣ ⊗ ⋯ ⊗ ⟨ ⟨ E e 0 ∗ ∣ ) ⋅ ( ∣ I out ⟩ ⟩ ⊗ s = 1 ⨂ r ∣ I N s ⟩ ⟩ ⊗ I in ) . (172)
Each ∣ I N s ⟩ ⟩ \lvert I_{N_s}\rangle\!\rangle ∣ I N s ⟩ ⟩ connects the N s N_s N s output of E e s − 1 E_{e_{s-1}} E e s − 1 to the N s N_s N s input of E e s E_{e_s} E e s . The ket ∣ I o u t ⟩ ⟩ \lvert I_{\mathrm{out}}\rangle\!\rangle ∣ I out ⟩ ⟩ retains the record outputs and the remaining memory, while I i n I_{\mathrm{in}} I in leaves the prefix inputs open. Tensor factors are paired according to these register labels and reordered as in (A9). Define the positive normalization operators
E ( r ) ≔ ∑ e 0 : r E e 0 : r † E e 0 : r ⪰ 0. (173) E^{(r)}\coloneqq\sum_{e_{0:r}}E_{e_{0:r}}^\dagger E_{e_{0:r}}\succeq0. \tag*{(173)} E ( r ) : = e 0 : r ∑ E e 0 : r † E e 0 : r ⪰ 0. (173)
For 1 ≤ r < ℓ 1\le r<\ell 1 ≤ r < ℓ , write h ′ = e 0 : r − 1 h'=e_{0:r-1} h ′ = e 0 : r − 1 . For fixed h ′ h' h ′ and e r e_r e r , the prefix operator is obtained by treating the Q r i n Q^{\mathrm{in}}_r Q r in output of E e r E_{e_r} E e r as an open input index. Tracing this index in E e 0 : r † E e 0 : r E^\dagger_{e_{0:r}}E_{e_{0:r}} E e 0 : r † E e 0 : r therefore sums over that output index. The other output indices are already summed in the operator product. Together these sums give E e r † E e r E_{e_r}^{\dagger}E_{e_r} E e r † E e r , with no transpose. Grouping the sum by h ′ h' h ′ and applying local completeness gives
Tr Q r i n E ( r ) = ∑ h ′ ( I A r o u t ⊗ Q r o u t ⊗ E h ′ ) † [ I A 1 : r − 1 o u t ⊗ ∑ e r E e r † E e r ] ( I A r o u t ⊗ Q r o u t ⊗ E h ′ ) = I A r o u t ⊗ Q r o u t ⊗ ∑ h ′ E h ′ † E h ′ = I A r o u t ⊗ Q r o u t ⊗ E ( r − 1 ) . (174) \begin{aligned}
\operatorname{Tr}_{Q^{\mathrm{in}}_r} E^{(r)} = \sum_{h'} \left(I_{A^{\mathrm{out}}_r} \otimes Q^{\mathrm{out}}_r \otimes E_{h'}\right)^{\dagger} \left[I_{A^{\mathrm{out}}_{1:r-1}} \otimes\sum_{e_r} E_{e_r}^{\dagger} E_{e_r}\right]\left(I_{A^{\mathrm{out}}_r} \otimes Q^{\mathrm{out}}_r \otimes E_{h'}\right) \\
&= I_{A^{\mathrm{out}}_r} \otimes Q^{\mathrm{out}}_r \otimes\sum_{h'} E_{h'}^{\dagger} E_{h'} \\
&= I_{A^{\mathrm{out}}_r} \otimes Q^{\mathrm{out}}_r \otimes E^{(r-1)}. \tag*{(174)}
\end{aligned} Tr Q r in E ( r ) = h ′ ∑ ( I A r out ⊗ Q r out ⊗ E h ′ ) † [ I A 1 : r − 1 out ⊗ e r ∑ E e r † E e r ] ( I A r out ⊗ Q r out ⊗ E h ′ ) = I A r out ⊗ Q r out ⊗ h ′ ∑ E h ′ † E h ′ = I A r out ⊗ Q r out ⊗ E ( r − 1 ) . (174)
The identity on A 1 : r − 1 o u t A^{\mathrm{out}}_{1:r-1} A 1 : r − 1 out carries the earlier record outputs through the latest operation. At r = 0 r=0 r = 0 , the same calculation gives the boundary condition
Tr Q 0 i n E ( 0 ) = ∑ e 0 E e 0 † E e 0 = I Q 0 e x t . (175) \operatorname{Tr}_{Q^{\mathrm{in}}_0} E^{(0)} = \sum_{e_0} E_{e_0}^{\dagger} E_{e_0} = I_{Q^{\mathrm{ext}}_0}. \tag*{(175)} Tr Q 0 in E ( 0 ) = e 0 ∑ E e 0 † E e 0 = I Q 0 ext . (175)
Appending the final local noise operator yields
E e = ( I A 1 : ℓ − 1 o u t ⊗ E e ℓ ) ( I A ℓ o u t ⊗ Q ℓ o u t ⊗ E e 0 : ℓ − 1 ) . (176) E_e = \left(I_{A^{\mathrm{out}}_{1:\ell-1}} \otimes E_{e_\ell}\right)\left(I_{A^{\mathrm{out}}_\ell} \otimes Q^{\mathrm{out}}_\ell\otimes E_{e_{0:\ell-1}}\right). \tag*{(176)} E e = ( I A 1 : ℓ − 1 out ⊗ E e ℓ ) ( I A ℓ out ⊗ Q ℓ out ⊗ E e 0 : ℓ − 1 ) . (176)
Summing first over e ℓ e_\ell e ℓ and applying local completeness once more gives
∑ e E e † E e = I A ℓ o u t ⊗ Q ℓ o u t ⊗ ∑ e 0 : ℓ − 1 E e 0 : ℓ − 1 † E e 0 : ℓ − 1 = I A ℓ o u t ⊗ Q ℓ o u t ⊗ E ( ℓ − 1 ) . (177) \begin{aligned}
\sum_e E_e^{\dagger}E_e = I_{A^{\mathrm{out}}_\ell} \otimes Q^{\mathrm{out}}_\ell\otimes\sum_{e_{0:\ell-1}} E_{e_{0:\ell-1}}^{\dagger}E_{e_{0:\ell-1}} \\
&= I_{A^{\mathrm{out}}_\ell} \otimes Q^{\mathrm{out}}_\ell\otimes E^{(\ell-1)}. \tag*{(177)}
\end{aligned} e ∑ E e † E e = I A ℓ out ⊗ Q ℓ out ⊗ e 0 : ℓ − 1 ∑ E e 0 : ℓ − 1 † E e 0 : ℓ − 1 = I A ℓ out ⊗ Q ℓ out ⊗ E ( ℓ − 1 ) . (177)
These are the noise constraints of Theorem III.4. The connected memory registers allow correlations between local noise operators; no independence assumption is used. A related operational treatment of quantum processes with memory is given by the process-tensor framework [58 ] .
Normalization after connecting circuit and noise
The following argument uses only the circuit and noise normalization constraints. It therefore applies to any noise map satisfying those constraints, whether or not a local realization has been specified. The connected map has Kraus operators { E e C o } e , o \{E_e C_o\}_{e,o} { E e C o } e , o . By (A15),
∑ e , o ( E e C o ) † ( E e C o ) = ∑ o C o † ( I A ℓ o u t ⊗ Q ℓ o u t ⊗ E ( ℓ − 1 ) ) C o . (178) \sum_{e,o}(E_e C_o)^{\dagger}(E_e C_o) = \sum_o C_o^{\dagger}\left(I_{A^{\mathrm{out}}_\ell} \otimes Q^{\mathrm{out}}_\ell\otimes E^{(\ell-1)}\right)C_o. \tag*{(178)} e , o ∑ ( E e C o ) † ( E e C o ) = o ∑ C o † ( I A ℓ out ⊗ Q ℓ out ⊗ E ( ℓ − 1 ) ) C o . (178)
Fix h = o 1 : r − 1 h=o_{1:r-1} h = o 1 : r − 1 . Choose orthonormal bases { ∣ a ⟩ } \{\lvert a\rangle\} {∣ a ⟩} of A r o u t ⊗ Q r o u t A^{\mathrm{out}}_r \otimes Q^{\mathrm{out}}_r A r out ⊗ Q r out and { ∣ i ⟩ } \{\lvert i\rangle\} {∣ i ⟩} of Q r − 1 i n Q^{\mathrm{in}}_{r-1} Q r − 1 in . Then
∣ C o r ∣ h ⟩ ⟩ = ∑ a , i ( C o r ∣ h ) a i ∣ a ⟩ ⊗ ∣ i ⟩ , C o 1 : r = ∣ C o r ∣ h ⟩ ⟩ ⊗ C h . \lvert C_{o_r\mid h}\rangle\rangle= \sum_{a,i}(C_{o_r\mid h})_{ai}\lvert a\rangle\otimes\lvert i\rangle,\qquad C_{o_{1:r}}=\lvert C_{o_r\mid h}\rangle\rangle\otimes C_h. ∣ C o r ∣ h ⟩⟩ = a , i ∑ ( C o r ∣ h ) ai ∣ a ⟩ ⊗ ∣ i ⟩ , C o 1 : r = ∣ C o r ∣ h ⟩⟩ ⊗ C h .
Component completeness gives
∑ o r , a ( C o r ∣ h ) a i ∗ ( C o r ∣ h ) a j = ( ∑ o r C o r ∣ h † C o r ∣ h ) i j = δ i j . \sum_{o_r,a}(C_{o_r\mid h})_{ai}^{*}(C_{o_r\mid h})_{aj}=\left(\sum_{o_r}C_{o_r\mid h}^{\dagger}C_{o_r\mid h}\right)_{ij}=\delta_{ij}. o r , a ∑ ( C o r ∣ h ) ai ∗ ( C o r ∣ h ) aj = ( o r ∑ C o r ∣ h † C o r ∣ h ) ij = δ ij .
Consequently, expanding the contraction yields
∑ o r C o 1 : r † ( I A r o u t ⊗ Q r o u t ⊗ E ( r − 1 ) ) C o 1 : r = C h † [ ∑ o r , a , i , j ( C o r ∣ h ) a i ∗ ( C o r ∣ h ) a j ( ⟨ i ∣ ⊗ I ) E ( r − 1 ) ( ∣ j ⟩ ⊗ I ) ] C h = C h † [ ∑ i ( ⟨ i ∣ ⊗ I ) E ( r − 1 ) ( ∣ i ⟩ ⊗ I ) ] C h = C h † ( Tr Q r − 1 i n E ( r − 1 ) ) C h . (179) \begin{aligned}
\sum_{o_r}C_{o_{1:r}}^{\dagger}\left(I_{A^{\mathrm{out}}_r}\otimes Q^{\mathrm{out}}_r\otimes E^{(r-1)}\right)C_{o_{1:r}} \\
&= C_h^{\dagger}\left[\sum_{o_r,a,i,j}(C_{o_r\mid h})_{ai}^{*}(C_{o_r\mid h})_{aj}(\langle i\lvert\otimes I)E^{(r-1)}(\lvert j\rangle\otimes I)\right]C_h \\
&= C_h^{\dagger}\left[\sum_i(\langle i\lvert\otimes I)E^{(r-1)}(\lvert i\rangle\otimes I)\right]C_h \\
&= C_h^{\dagger}\left(\operatorname{Tr}_{Q^{\mathrm{in}}_{r-1}}E^{(r-1)}\right)C_h. \tag*{(179)}
\end{aligned} o r ∑ C o 1 : r † ( I A r out ⊗ Q r out ⊗ E ( r − 1 ) ) C o 1 : r = C h † [ o r , a , i , j ∑ ( C o r ∣ h ) ai ∗ ( C o r ∣ h ) aj (⟨ i ∣ ⊗ I ) E ( r − 1 ) (∣ j ⟩ ⊗ I ) ] C h = C h † [ i ∑ (⟨ i ∣ ⊗ I ) E ( r − 1 ) (∣ i ⟩ ⊗ I ) ] C h = C h † ( Tr Q r − 1 in E ( r − 1 ) ) C h . (179)
Here I I I acts on H r − 1 ⊗ Q 0 e x t \mathcal{H}_{r-1} \otimes\mathcal{Q}^{\mathrm{ext}}_{0} H r − 1 ⊗ Q 0 ext , and the final equality is the definition of the partial trace. For r > 1 r>1 r > 1 , the noise recursion gives
Tr Q r − 1 i n E ( r − 1 ) = I A r − 1 o u t Q r − 1 o u t ⊗ E ( r − 2 ) . \operatorname{Tr}_{\mathcal{Q}^{\mathrm{in}}_{r-1}}\mathcal{E}^{(r-1)}=I^{\mathcal{A}_{r-1}^{\mathrm{out}}}\mathcal{Q}_{r-1}^{\mathrm{out}}\otimes\mathcal{E}^{(r-2)}. Tr Q r − 1 in E ( r − 1 ) = I A r − 1 out Q r − 1 out ⊗ E ( r − 2 ) .
Thus summing (A17) over h h h reduces the expression from r r r components to r − 1 r-1 r − 1 . Repeating this reduction gives
∑ e , o ( E e C o ) † ( E e C o ) = ∑ o C o † ( I A ℓ o u t Q ℓ o u t ⊗ E ( ℓ − 1 ) ) C o = ⋯ = ∑ o 1 C o 1 † ( I A 1 o u t Q 1 o u t ⊗ E ( 0 ) ) C o 1 = C ∅ † ( Tr Q 0 i n E ( 0 ) ) C ∅ = I Q 0 e x t . (180) \begin{aligned}
\sum_{e,o}(\mathcal{E}_{e}\mathcal{C}_{o})^{\dagger}(\mathcal{E}_{e}\mathcal{C}_{o})=\sum_{o}\mathcal{C}_{o}^{\dagger}\left(I^{\mathcal{A}_{\ell}^{\mathrm{out}}}\mathcal{Q}_{\ell}^{\mathrm{out}}\otimes\mathcal{E}^{(\ell-1)}\right)\mathcal{C}_{o} \\
&=\cdots=\sum_{o_{1}}\mathcal{C}_{o_{1}}^{\dagger}\left(I^{\mathcal{A}_{1}^{\mathrm{out}}}\mathcal{Q}_{1}^{\mathrm{out}}\otimes\mathcal{E}^{(0)}\right)\mathcal{C}_{o_{1}} \\
&=\mathcal{C}_{\varnothing}^{\dagger}\left(\operatorname{Tr}_{\mathcal{Q}^{\mathrm{in}}_{0}}\mathcal{E}^{(0)}\right)\mathcal{C}_{\varnothing} \\
&=I_{\mathcal{Q}^{\mathrm{ext}}_{0}.} \tag*{(180)}
\end{aligned} e , o ∑ ( E e C o ) † ( E e C o ) = o ∑ C o † ( I A ℓ out Q ℓ out ⊗ E ( ℓ − 1 ) ) C o = ⋯ = o 1 ∑ C o 1 † ( I A 1 out Q 1 out ⊗ E ( 0 ) ) C o 1 = C ∅ † ( Tr Q 0 in E ( 0 ) ) C ∅ = I Q 0 ext . (180)
The first equality uses (A15), while the last uses C ∅ = I Q 0 e x t C_{\varnothing}=I_{\mathcal{Q}^{\mathrm{ext}}_{0}} C ∅ = I Q 0 ext and (A13). Hence the connected map is CPTP. Identity noise gives the ideal contraction as a special case.
18-qubit instance of the Hastings–Haah honeycomb Floquet code
Consider an 18-qubit instance of the Hastings–Haah honeycomb floquet code [26 ] . The corresponding measurement schedule matrix is given by
M = [ ( M ( 0 ) ) T ( M ( 1 ) ) T ( M ( 2 ) ) T ( M ( 0 ) ) T ( M ( 1 ) ) T ( M ( 2 ) ) T ( M ( 0 ) ) T ] T ∈ F 2 63 × 36 . (181) M=\left[\left(M^{(0)}\right)^{\mathsf{T}}\ \left(M^{(1)}\right)^{\mathsf{T}}\ \left(M^{(2)}\right)^{\mathsf{T}}\ \left(M^{(0)}\right)^{\mathsf{T}}\ \left(M^{(1)}\right)^{\mathsf{T}}\ \left(M^{(2)}\right)^{\mathsf{T}}\ \left(M^{(0)}\right)^{\mathsf{T}}\right]^{\mathsf{T}}\in\mathbb{F}_{2}^{63\times36}. \tag*{(181)} M = [ ( M ( 0 ) ) T ( M ( 1 ) ) T ( M ( 2 ) ) T ( M ( 0 ) ) T ( M ( 1 ) ) T ( M ( 2 ) ) T ( M ( 0 ) ) T ] T ∈ F 2 63 × 36 . (181)
For a ∈ { 0 , 1 , 2 } a\in\{0,1,2\} a ∈ { 0 , 1 , 2 } , the rows of M ( a ) ∈ F 2 9 × 36 M^{(a)}\in\mathbb{F}_{2}^{9\times36} M ( a ) ∈ F 2 9 × 36 encode the nine Pauli checks listed in column M ( a ) M^{(a)} M ( a ) of Figure 4 . Specifically, a check on qubits i , j i,j i , j is encoded by
Figure 4. Complete measurement schedule. Left: Pauli checks specifying rows of the three binary blocks of M M M . Right: Honeycomb lattice with opposite sides identified. Circles denote qubit numbers. Edge numbers give the round type 0, 1, 2, repeated as 0, 1, 2, 0, 1, 2, 0. Red, green, and blue edges denote X X XX X X , Y Y YY Y Y , and Z Z ZZ Z Z , respectively.
X i X j ↦ [ f i + f j , 0 ] , Y i Y j ↦ [ f i + f j , f i + f j ] , Z i Z j ↦ [ 0 , f i + f j ] . (182) X_iX_j\mapsto[f_i+f_j,0],\qquad Y_iY_j\mapsto[f_i+f_j,f_i+f_j],\qquad Z_iZ_j\mapsto[0,f_i+f_j]. \tag*{(182)} X i X j ↦ [ f i + f j , 0 ] , Y i Y j ↦ [ f i + f j , f i + f j ] , Z i Z j ↦ [ 0 , f i + f j ] . (182)
where f i f_i f i is the i i i th standard basis row vector of F 2 18 \mathbb{F}_{2}^{18} F 2 18 and 0 0 0 denotes the zero row vector of length 18. Round t ∈ { 0 , … , 6 } t\in\{0,\ldots,6\} t ∈ { 0 , … , 6 } uses block M ( t m o d 3 ) M^{(t\bmod3)} M ( t mod 3 ) , with its checks measured in row order s = 1 , … , 9 s=1,\ldots,9 s = 1 , … , 9 . Define
m 9 t + s ≔ ( M ( t m o d 3 ) ) s , : ∈ F 2 36 , M 9 t + s ≔ P ( m 9 t + s ) , (183) m_{9t+s}\coloneqq\left(M^{(t\bmod3)}\right)_{s,:}\in\mathbb{F}_{2}^{36},\qquad M_{9t+s}\coloneqq P(m_{9t+s}), \tag*{(183)} m 9 t + s : = ( M ( t mod 3 ) ) s , : ∈ F 2 36 , M 9 t + s : = P ( m 9 t + s ) , (183)
where ( ⋅ ) s , : (\cdot)_{s,:} ( ⋅ ) s , : denotes the s s s th row. Thus m r m_r m r is the binary Pauli label of the r r r th measurement, with r = 9 t + s r=9t+s r = 9 t + s . From
Theorem III.34 it follows,
Q = M Ω 18 , T r s = { ⟨ m s , m r ⟩ s , s < r , 0 , s ≥ r , rank T = 36 , rank [ T M ] = rank [ T T M ] = 52. (184) Q=M\Omega_{18},\qquad T_{rs}=\begin{cases}\langle m_s,m_r\rangle_s,&s<r,\\0,&s\ge r,\end{cases}\qquad\operatorname{rank}T=36,\qquad\operatorname{rank}[T\ M]=\operatorname{rank}[T^{\mathsf{T}}\ M]=52. \tag*{(184)} Q = M Ω 18 , T r s = { ⟨ m s , m r ⟩ s , 0 , s < r , s ≥ r , rank T = 36 , rank [ T M ] = rank [ T T M ] = 52. (184)
Proposition B.1 (Common relations and preserved logical qubits). For C e n c = I C_{\mathrm{enc}}=I C enc = I , the circuit satisfies
dim W d e t = 11 , dim W o b s = dim W o u t = 27 , dim W C = 47 , \dim\mathcal{W}_{\mathrm{det}}=11,\qquad\dim\mathcal{W}_{\mathrm{obs}}=\dim\mathcal{W}_{\mathrm{out}}=27,\qquad\dim\mathcal{W}_{C}=47, dim W det = 11 , dim W obs = dim W out = 27 , dim W C = 47 , V i n = V o u t , dim V i n = 16 , dim L P O P = 4 , k p r e s = 2. (185) V_{\mathrm{in}}=V_{\mathrm{out}},\qquad\dim V_{\mathrm{in}}=16,\qquad\dim\mathcal{L}_{\mathrm{POP}}=4,\qquad k_{\mathrm{pres}}=2. \tag*{(185)} V in = V out , dim V in = 16 , dim L POP = 4 , k pres = 2. (185) All detector parities vanish, and
Ω C = D C ⊥ , ∣ Ω C ∣ = 2 52 . (186) \Omega_C=\mathcal{D}_C^{\perp},\qquad|\Omega_C|=2^{52}. \tag*{(186)} Ω C = D C ⊥ , ∣ Ω C ∣ = 2 52 . (186) A symplectic basis of the preserved logical classes is represented by
X ‾ 1 = X 1 X 2 X 7 X 8 X 13 X 14 , Z ‾ 1 = Y 1 Y 3 X 4 Z 6 , \overline{X}_1=X_1X_2X_7X_8X_{13}X_{14},\qquad\overline{Z}_1=Y_1Y_3X_4Z_6, X 1 = X 1 X 2 X 7 X 8 X 13 X 14 , Z 1 = Y 1 Y 3 X 4 Z 6 , X ‾ 2 = X 2 X 7 X 8 X 10 X 11 X 12 X 15 , Z ‾ 2 = Y 1 Y 2 Y 3 Y 4 Y 5 Y 6 . (187) \overline{X}_2=X_2X_7X_8X_{10}X_{11}X_{12}X_{15},\qquad\overline{Z}_2=Y_1Y_2Y_3Y_4Y_5Y_6. \tag*{(187)} X 2 = X 2 X 7 X 8 X 10 X 11 X 12 X 15 , Z 2 = Y 1 Y 2 Y 3 Y 4 Y 5 Y 6 . (187) A choice of their record-vector representatives is given by
b X ‾ 1 = b Z ‾ 2 = 0 , b Z ‾ 1 = ∑ r ∈ J Z ϵ r , b X ‾ 2 = ∑ r ∈ J X ϵ r , b_{\overline{X}_1}=b_{\overline{Z}_2}=0,\qquad b_{\overline{Z}_1}=\sum_{r\in J_Z}\epsilon_r,\qquad b_{\overline{X}_2}=\sum_{r\in J_X}\epsilon_r, b X 1 = b Z 2 = 0 , b Z 1 = r ∈ J Z ∑ ϵ r , b X 2 = r ∈ J X ∑ ϵ r , J Z = { 2 , 11 , 12 , 19 , 21 , 28 , 29 , 38 , 39 , 46 , 48 , 55 } , J_Z=\{2,11,12,19,21,28,29,38,39,46,48,55\}, J Z = { 2 , 11 , 12 , 19 , 21 , 28 , 29 , 38 , 39 , 46 , 48 , 55 } , J X = { 2 , 4 , 5 , 9 , 12 , 18 , 19 , 20 , 21 , 22 , 28 , 29 , 31 , 36 , 39 , 45 , 46 , 47 , 48 , 49 , 55 , 59 } . (188) J_X=\{2,4,5,9,12,18,19,20,21,22,28,29,31,36,39,45,46,47,48,49,55,59\}. \tag*{(188)} J X = { 2 , 4 , 5 , 9 , 12 , 18 , 19 , 20 , 21 , 22 , 28 , 29 , 31 , 36 , 39 , 45 , 46 , 47 , 48 , 49 , 55 , 59 } . (188) where ϵ r \epsilon_r ϵ r is the r r r th standard basis row vector of F 2 63 \mathbb{F}_2^{63} F 2 63 . For each displayed P ‾ \overline{P} P in Equation (187) ,
( Z A b P ‾ ⊗ P ‾ ) C o = C o P ‾ . (189) \left(Z_A^{b_{\overline{P}}}\otimes\overline{P}\right)C_o=C_o\overline{P}. \tag*{(189)} ( Z A b P ⊗ P ) C o = C o P . (189)
Proof. By Theorem III.35, the common relations ω = [ b , p , p ′ ] \omega=[b,p,p'] ω = [ b , p , p ′ ] are obtained by solving the linear system
p Q T + b T T = 0 , p ′ = p + b M , (190) pQ^{\mathsf T}+bT^{\mathsf T}=0,\qquad p'=p+bM, \tag*{(190)} p Q T + b T T = 0 , p ′ = p + b M , (190)
with c ω = Θ ( p , b ) c_\omega=\Theta(p,b) c ω = Θ ( p , b ) . By Theorem III.36, and by setting p = 0 p=0 p = 0 in Equation (190) for output checks, we obtain
Detectors: d T = 0 , d M = 0 , Input observables: v T = 0 , v M = p , Output checks: u T = 0 , u M = p ′ . (191) \begin{aligned}
\text{Detectors:}\quad&dT=0,\qquad dM=0,\\
\text{Input observables:}\quad&vT=0,\qquad vM=p,\\
\text{Output checks:}\quad&uT=0,\qquad uM=p'. \tag*{(191)}
\end{aligned} Detectors: Input observables: Output checks: d T = 0 , d M = 0 , v T = 0 , v M = p , u T = 0 , u M = p ′ . (191)
Gaussian elimination over F 2 \mathbb{F}_2 F 2 yields V i n = V o u t V_{\mathrm{in}}=V_{\mathrm{out}} V in = V out . The ranks in Equation (184) give detector dimension 63 − 52 = 11 63-52=11 63 − 52 = 11 and observable and output-check dimensions 63 − 36 = 27 63-36=27 63 − 36 = 27 . Hence dim V i n = 27 − 11 = 16 \dim V_{\mathrm{in}}=27-11=16 dim V in = 27 − 11 = 16 , while Theorem III.36 gives k p r e s = 18 − 52 + 36 = 2 k_{\mathrm{pres}}=18-52+36=2 k pres = 18 − 52 + 36 = 2 . By Theorem III.27, dim L P O P = 4 \dim\mathcal{L}_{\mathrm{POP}}=4 dim L POP = 4 and dim W C = 11 + 16 + 16 + 4 = 47 \dim\mathcal{W}_C=11+16+16+4=47 dim W C = 11 + 16 + 16 + 4 = 47 . Phase evaluation gives Θ ( 0 , d ) = 0 \Theta(0,d)=0 Θ ( 0 , d ) = 0 on a detector basis, proving Equation (186) . The binary labels x ‾ i , z ‾ i \overline{x}_i,\overline{z}_i x i , z i of the operators in Equation (187) satisfy
x ‾ i , z ‾ i ∈ V i n ⊥ s , ⟨ x ‾ i , z ‾ j ⟩ s = δ i j , \overline{x}_i,\overline{z}_i\in V_{\mathrm{in}}^{\perp_s},\qquad\langle\overline{x}_i,\overline{z}_j\rangle_s=\delta_{ij}, x i , z i ∈ V in ⊥ s , ⟨ x i , z j ⟩ s = δ ij ,
⟨ x ‾ i , x ‾ j ⟩ s = ⟨ z ‾ i , z ‾ j ⟩ s = 0 , i , j ∈ { 1 , 2 } . (192) \langle\overline{x}_i,\overline{x}_j\rangle_s=\langle\overline{z}_i,\overline{z}_j\rangle_s=0,\qquad i,j\in\{1,2\}. \tag*{(192)} ⟨ x i , x j ⟩ s = ⟨ z i , z j ⟩ s = 0 , i , j ∈ { 1 , 2 } . (192)
Since dim ( V i n ⊥ s / V i n ) = 4 \dim(V_{\mathrm{in}}^{\perp_s}/V_{\mathrm{in}})=4 dim ( V in ⊥ s / V in ) = 4 , their classes form a symplectic basis. Solving Equation (190) with p = p ′ = p ‾ p=p'=\overline{p} p = p ′ = p yields the representatives in Equation (188) , which satisfy
b P ‾ M = 0 , p ‾ Q T + b P ‾ T T = 0 , Θ ( p ‾ , b P ‾ ) = 0. (193) b_{\overline{P}}M=0,\qquad\overline{p}Q^{\mathsf T}+b_{\overline{P}}T^{\mathsf T}=0,\qquad\Theta(\overline{p},b_{\overline{P}})=0. \tag*{(193)} b P M = 0 , p Q T + b P T T = 0 , Θ ( p , b P ) = 0. (193)
These identities establish Equation (189) .
Corollary B.2 (Code-conditioned honeycomb circuit). Let C e n c C_{\mathrm{enc}} C enc encode two qubits into the common + 1 +1 + 1 eigenspace of the rank-16 stabilizer group
S = { ( − 1 ) Θ ( v M , v ) P ( v M ) : v T = 0 } , C ~ o ≔ C o C e n c . (194) S=\{(-1)^{\Theta(v_M,v)}P(v_M):vT=0\},\qquad\widetilde{C}_o\coloneqq C_oC_{\mathrm{enc}}. \tag*{(194)} S = {( − 1 ) Θ ( v M , v ) P ( v M ) : v T = 0 } , C o : = C o C enc . (194) For C ~ \widetilde{C} C ,
D C ~ = ker T , dim D C ~ = 27 , W o b s = W d e t , \mathcal{D}_{\widetilde{C}}=\ker T,\qquad\dim\mathcal{D}_{\widetilde{C}}=27,\qquad\mathcal{W}_{\mathrm{obs}}=\mathcal{W}_{\mathrm{det}}, D C = ker T , dim D C = 27 , W obs = W det , Ω C ~ = ( ker T ) ⊥ , ∣ Ω C ~ ∣ = 2 36 , \Omega_{\widetilde{C}}=(\ker T)^{\perp},\qquad|\Omega_{\widetilde{C}}|=2^{36}, Ω C = ( ker T ) ⊥ , ∣ Ω C ∣ = 2 36 , dim V o u t = 16 , k p r e s = 2 , dim W C ~ = 47. (195) \dim V_{\mathrm{out}}=16,\qquad k_{\mathrm{pres}}=2,\qquad\dim\mathcal{W}_{\widetilde{C}}=47. \tag*{(195)} dim V out = 16 , k pres = 2 , dim W C = 47. (195) All detector parities vanish. Conditioning leaves M , Q , T M,Q,T M , Q , T unchanged.
Proof. By Theorem III.35, an observable relation [ v , p , 0 ] [v,p,0] [ v , p , 0 ] requires ν = v M \nu=vM ν = v M and v T = 0 v^{\mathsf{T}}=0 v T = 0 . Thus ν \nu ν is an encoder stabilizer label, so p = 0 p=0 p = 0 . Conversely, every v ∈ ker T v\in\ker T v ∈ ker T gives a detector whose parity vanishes by the choice of S \mathcal{S} S . This proves the detector and observable claims; rank T = 36 \operatorname{rank}T=36 rank T = 36 gives the dimensions and outcome count. The sixteen output-check labels and four logical classes in Theorem B.1 remain the same after code-conditioning. Hence Theorem III.27 gives k p r e s = 2 k_{\mathrm{pres}}=2 k pres = 2 and dim W C ~ = 27 + 16 + 4 = 47 \dim\mathcal{W}_{\widetilde{\mathcal{C}}}=27+16+4=47 dim W C = 27 + 16 + 4 = 47 .
Circuit distance
Let V ( 1 ) ⊆ E ( 1 ) \mathcal{V}^{(1)}\subseteq\mathcal{E}^{(1)} V ( 1 ) ⊆ E ( 1 ) allow arbitrary Pauli faults on each data qubit immediately after each individual measurement r = 1 , … , 62 r=1,\ldots,62 r = 1 , … , 62 , and on each ancilla measurement qubit immediately after its creation. All other coordinates vanish. There are 18 ⋅ 62 + 63 = 1179 18\cdot62+63=1179 18 ⋅ 62 + 63 = 1179 locations and 2358 binary coordinates. The encoder and both data boundaries are noiseless; all records are retained, and output checks and recovery are noiseless. Record Z Z Z faults have zero signature.
Proposition B.3 (Distance). For the conditioned circuit and fault space V ( 1 ) \mathcal{V}^{(1)} V ( 1 ) , d c i r c , 1 = 4 d_{\mathrm{circ},1}=4 d circ , 1 = 4 .
Proof. Using Theorems V.6 and V.9, construct H 1 H_1 H 1 from the 27 detectors and 16 additional output checks of Theorem B.2, and L 1 L_1 L 1 from the logical relations in Equation (189) , ordered as X ‾ 1 , Z ‾ 1 , X ‾ 2 , Z ‾ 2 \overline{X}_1,\overline{Z}_1,\overline{X}_2,\overline{Z}_2 X 1 , Z 1 , X 2 , Z 2 . Define
F 1 ≔ { e ∈ V ( 1 ) : wt S T ( e ) ≤ 1 } , F 1 + F 1 ≔ { a + b : a , b ∈ F 1 } . (196) \mathcal{F}_1\coloneqq\{e\in\mathcal{V}^{(1)}:\operatorname{wt}_{\mathrm{ST}}(e)\leq1\},\qquad\mathcal{F}_1+\mathcal{F}_1\coloneqq\{a+b:a,b\in\mathcal{F}_1\}. \tag*{(196)} F 1 : = { e ∈ V ( 1 ) : wt ST ( e ) ≤ 1 } , F 1 + F 1 : = { a + b : a , b ∈ F 1 } . (196)
By construction, F 1 + F 1 \mathcal{F}_1+\mathcal{F}_1 F 1 + F 1 is exactly the set of allowed spacetime fault patterns of weight at most two. Computing ( H 1 e T , L 1 e T ) (H_1e^{\mathsf{T}},L_1e^{\mathsf{T}}) ( H 1 e T , L 1 e T ) for e ∈ F 1 e\in\mathcal{F}_1 e ∈ F 1 gives 299 distinct signatures. By linearity, adding every pair of these signatures gives the 40472 distinct signatures of F 1 + F 1 \mathcal{F}_1+\mathcal{F}_1 F 1 + F 1 . Exact binary comparison verifies
H 1 a T = H 1 b T ⟹ L 1 a T = L 1 b T , a ∈ F 1 , b ∈ F 1 + F 1 . (197) H_1a^{\mathsf{T}}=H_1b^{\mathsf{T}}\Longrightarrow L_1a^{\mathsf{T}}=L_1b^{\mathsf{T}},\qquad a\in\mathcal{F}_1,\quad b\in\mathcal{F}_1+\mathcal{F}_1. \tag*{(197)} H 1 a T = H 1 b T ⟹ L 1 a T = L 1 b T , a ∈ F 1 , b ∈ F 1 + F 1 . (197)
Every allowed pattern e e e of weight at most three splits as e = a + b e=a+b e = a + b , with a ∈ F 1 a\in\mathcal{F}_1 a ∈ F 1 and b ∈ F 1 + F 1 b\in\mathcal{F}_1+\mathcal{F}_1 b ∈ F 1 + F 1 . If H 1 e T = 0 H_1e^{\mathsf{T}}=0 H 1 e T = 0 , then H 1 a T = H 1 b T H_1a^{\mathsf{T}}=H_1b^{\mathsf{T}} H 1 a T = H 1 b T , so Equation (197) gives
L 1 e T = L 1 a T + L 1 b T = 0. L_1e^{\mathsf{T}}=L_1a^{\mathsf{T}}+L_1b^{\mathsf{T}}=0. L 1 e T = L 1 a T + L 1 b T = 0.
Hence no allowed fault of weight at most three has zero syndrome and nonzero logical signature. The circuit distance (Theorem V.14) therefore gives d c i r c , 1 ≥ 4 d_{\mathrm{circ},1}\geq4 d circ , 1 ≥ 4 . Conversely, apply Y 1 X 2 Z 7 Y_1X_2Z_7 Y 1 X 2 Z 7 immediately after measurement 1 and X 18 X_{18} X 18 immediately after measurement 3. This allowed pattern e ∗ e^\ast e ∗ has weight four and satisfies
H 1 e ∗ T = 0 , L 1 e ∗ T = ( 0 , 0 , 1 , 1 ) T ≠ 0. H_1e_\ast^{\mathsf{T}}=0,\qquad L_1e_\ast^{\mathsf{T}}=(0,0,1,1)^{\mathsf{T}}\ne0. H 1 e ∗ T = 0 , L 1 e ∗ T = ( 0 , 0 , 1 , 1 ) T = 0.
Thus d c i r c , 1 ≤ 4 d_{\mathrm{circ},1}\leq4 d circ , 1 ≤ 4 , proving
d c i r c , 1 = 4. (198) d_{\mathrm{circ},1}=4. \tag*{(198)} d circ , 1 = 4. (198)
We apply the fault signature formalism of § 1.2 and the LP bounds of § 1.2 E to a family of flag circuits prescribed by their CNOT orderings for measuring a fixed Z Z Z -type stabilizer of a CSS code [17 , 27 , 29 , 54 ] . The analysis extends to a chosen X X X -type stabilizer measurement by using its support, reversing all CNOT directions, and interchanging ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ with ∣ + ⟩ \lvert+\rangle ∣ + ⟩ in ancilla preparations and Z Z Z with X X X in ancilla measurements, with the corresponding changes to the fault-propagation and signature matrices. The t t t -flag condition [17 ] supplies additional constraints to the distance bound LP through vanishing fault counts. Finally, we analytically benchmark the LP distance bound for CSS Hamming codes and verify that it is attained by the one-flag construction of Chao and Reichardt [29 ] in Section C3.
Z-measurement flag circuit family, signature matrices and fault weight profiles
Definition C.1 (Flag-circuit family for Z Z Z -type stabilizer measurement). Fix an [ [ n , k L , d c o d e ] ] [[n,k_L,d_{\mathrm{code}}]] [[ n , k L , d code ]] CSS code with an isometric stabilizer encoder C e n c : Q L → Q ≅ ⨂ j = 1 n Q j C_{\mathrm{enc}}:Q_L\to Q\cong\bigotimes_{j=1}^{n}Q_j C enc : Q L → Q ≅ ⨂ j = 1 n Q j , where Q L ≅ C 2 k L Q_L\cong\mathbb{C}^{2^{k_L}} Q L ≅ C 2 k L and Q j ≅ C 2 Q_j\cong\mathbb{C}^2 Q j ≅ C 2 , and let P Z = ∏ j = 1 w Z Q j P_Z=\prod_{j=1}^{w}Z_{Q_j} P Z = ∏ j = 1 w Z Q j be the measured weight-w w w stabilizer, supported on Q 1 , … , Q w Q_1,\ldots,Q_w Q 1 , … , Q w , with 1 ≤ w ≤ n 1\leq w\leq n 1 ≤ w ≤ n and P Z C e n c = C e n c P_ZC_{\mathrm{enc}}=C_{\mathrm{enc}} P Z C enc = C enc . Let A ≅ C 2 A\cong\mathbb{C}^2 A ≅ C 2 be the syndrome ancilla and F = ⨂ a = 1 f F a F=\bigotimes_{a=1}^{f}F_a F = ⨂ a = 1 f F a the flag register, where F a ≅ C 2 F_a\cong\mathbb{C}^2 F a ≅ C 2 and f ≥ 1 f\geq1 f ≥ 1 . Write Q ≠ j ≔ ⨂ r ∈ Z n + ∖ { j } Q r Q_{\ne j}\coloneqq\bigotimes_{r\in\mathbb{Z}_n^+\setminus\{j\}}Q_r Q = j : = ⨂ r ∈ Z n + ∖ { j } Q r and F ≠ a ≔ ⨂ b ∈ Z f + ∖ { a } F b F_{\ne a}\coloneqq\bigotimes_{b\in\mathbb{Z}_f^+\setminus\{a\}}F_b F = a : = ⨂ b ∈ Z f + ∖ { a } F b . Put g = w + 2 f g=w+2f g = w + 2 f and define linear operators
G j ≔ CNOT Q j → A ⊗ I F ⊗ Q ≠ j , j ∈ Z w + , G_j\coloneqq\operatorname{CNOT}_{Q_j\to A}\otimes I_{F\otimes Q_{\ne j}},\qquad j\in\mathbb{Z}_w^+, G j : = CNOT Q j → A ⊗ I F ⊗ Q = j , j ∈ Z w + , G w + 2 a − 1 = G w + 2 a ≔ CNOT F a → A ⊗ I F ≠ a ⊗ Q , a ∈ Z f + . (199) G_{w+2a-1}=G_{w+2a}\coloneqq\operatorname{CNOT}_{F_a\to A}\otimes I_{F_{\ne a}\otimes Q},\qquad a\in\mathbb{Z}_f^+. \tag*{(199)} G w + 2 a − 1 = G w + 2 a : = CNOT F a → A ⊗ I F = a ⊗ Q , a ∈ Z f + . (199) The preparation and measurement components, common to every ordering, are defined as
C p r e p ≔ ∣ 0 ⟩ A ⊗ ( ⨂ a = 1 f ∣ + ⟩ F a ) ⊗ C e n c , and C s , α m e a s ≔ ∣ s ⟩ ⟨ s ∣ A ⊗ ( ∣ α ⟩ ⟨ α ∣ F H ⊗ f ) ⊗ I Q , (200) C^{\mathrm{prep}}\coloneqq|0\rangle_A\otimes\left(\bigotimes_{a=1}^{f}|+\rangle_{F_a}\right)\otimes C_{\mathrm{enc}},\qquad\text{and}\qquad C^{\mathrm{meas}}_{s,\alpha}\coloneqq|s\rangle\langle s|_A\otimes\left(|\alpha\rangle\langle\alpha|F H^{\otimes f}\right)\otimes I_Q, \tag*{(200)} C prep : = ∣0 ⟩ A ⊗ ( a = 1 ⨂ f ∣ + ⟩ F a ) ⊗ C enc , and C s , α meas : = ∣ s ⟩ ⟨ s ∣ A ⊗ ( ∣ α ⟩ ⟨ α ∣ F H ⊗ f ) ⊗ I Q , (200) for s ∈ F 2 s\in\mathbb{F}_2 s ∈ F 2 and α ∈ F 2 f \alpha\in\mathbb{F}_2^f α ∈ F 2 f , respectively. Let P \mathcal{P} P be a nonempty set of permutations π : Z g + → Z g + \pi:\mathbb{Z}_g^+\to\mathbb{Z}_g^+ π : Z g + → Z g + , with π ( i ) \pi(i) π ( i ) specifying the gate at time step i i i . Define the family { C π : π ∈ P } \{\mathcal{C}_\pi:\pi\in\mathcal{P}\} { C π : π ∈ P } by
C π ≔ { C p r e p , G π ( 1 ) , … , G π ( g ) , { C s , α m e a s } s , α } , with U π ≔ G π ( g ) ⋯ G π ( 1 ) ∈ Cliff ( A ⊗ F ⊗ Q ) . (201) \mathcal{C}_\pi\coloneqq\{C^{\mathrm{prep}},G_{\pi(1)},\ldots,G_{\pi(g)},\{C^{\mathrm{meas}}_{s,\alpha}\}_{s,\alpha}\},\qquad\text{with}\qquad U_\pi\coloneqq G_{\pi(g)}\cdots G_{\pi(1)}\in\operatorname{Cliff}(A\otimes F\otimes Q). \tag*{(201)} C π : = { C prep , G π ( 1 ) , … , G π ( g ) , { C s , α meas } s , α } , with U π : = G π ( g ) ⋯ G π ( 1 ) ∈ Cliff ( A ⊗ F ⊗ Q ) . (201) Its ideal realization C i d , π C_{\mathrm{id},\pi} C id , π has Kraus operators { C s , α π : Q L → A ⊗ F ⊗ Q } s , α \{C^\pi_{s,\alpha}:Q_L\to A\otimes F\otimes Q\}_{s,\alpha} { C s , α π : Q L → A ⊗ F ⊗ Q } s , α given by
C s , α π ≔ C s , α m e a s U π C p r e p = ∣ + ⟩ F ⊗ f H ⊗ f α Q L C e n c Q . (202) C^\pi_{s,\alpha}\coloneqq C^{\mathrm{meas}}_{s,\alpha}U_\pi C^{\mathrm{prep}}=|+\rangle_F^{\otimes f}H^{\otimes f}\alpha\;Q_L\;C_{\mathrm{enc}}\;Q. \tag*{(202)} C s , α π : = C s , α meas U π C prep = ∣ + ⟩ F ⊗ f H ⊗ f α Q L C enc Q . (202)
Definition C.2 (Fault locations and fault model). Put n ∗ = n + f + 1 n_*=n+f+1 n ∗ = n + f + 1 . For each π ∈ P \pi\in\mathcal{P} π ∈ P , write the component domains and codomains as
C p r e p : R 0 → R 1 , G π ( r ) : R r → R r + 1 ( r ∈ Z g + ) , C s , α m e a s : R g + 1 → R g + 2 . (203) C^{\mathrm{prep}}:R_0\to R_1,\qquad G_{\pi(r)}:R_r\to R_{r+1}\quad(r\in\mathbb{Z}_g^+),\qquad C^{\mathrm{meas}}_{s,\alpha}:R_{g+1}\to R_{g+2}. \tag*{(203)} C prep : R 0 → R 1 , G π ( r ) : R r → R r + 1 ( r ∈ Z g + ) , C s , α meas : R g + 1 → R g + 2 . (203)
where R 0 = Q L R_0 = Q_L R 0 = Q L and R t ≅ A ⊗ F ⊗ Q R_t \cong A \otimes F \otimes Q R t ≅ A ⊗ F ⊗ Q for t ∈ Z g + 2 + t \in\mathbb{Z}_{g+2}^{+} t ∈ Z g + 2 + . Let n 0 = k L n_0 = k_L n 0 = k L and n t = n ∗ n_t = n_* n t = n ∗ for t ∈ Z g + 2 + t \in\mathbb{Z}_{g+2}^{+} t ∈ Z g + 2 + . Label the logical input qubits by j ∈ Z k L + j \in\mathbb{Z}_{k_L}^{+} j ∈ Z k L + . For t ∈ Z g + 2 + t \in\mathbb{Z}_{g+2}^{+} t ∈ Z g + 2 + , label the qubits of R t R_t R t by j ∈ Z n ∗ + j \in\mathbb{Z}_{n_*}^{+} j ∈ Z n ∗ + in the order A , F 1 , … , F f , Q 1 , … , Q n A,F_1,\ldots,F_f,Q_1,\ldots,Q_n A , F 1 , … , F f , Q 1 , … , Q n , namely system A A A has label 1, F 1 F_1 F 1 has label 2, and so on. Following the spacetime-location convention of Theorem V.1, define the spacetime locations, spacetime fault space, and permitted fault subspace respectively by
Λ π ( 0 ) ≜ { ( j , t ) : t ∈ [ g + 2 ] , j ∈ Z n ∗ + } , E π ( 0 ) ≜ { e = [ e j , t ] ( j , t ) ∈ Λ π ( 0 ) : e j , t ∈ F 2 2 } , \Lambda_{\pi}^{(0)} \triangleq\{(j,t):t \in[g+2],\ j \in\mathbb{Z}_{n_*}^{+}\},\qquad\mathcal{E}_{\pi}^{(0)} \triangleq\{e=[e_{j,t}]_{(j,t)\in\Lambda_{\pi}^{(0)}}:e_{j,t}\in\mathbb{F}_2^2\}, Λ π ( 0 ) ≜ {( j , t ) : t ∈ [ g + 2 ] , j ∈ Z n ∗ + } , E π ( 0 ) ≜ { e = [ e j , t ] ( j , t ) ∈ Λ π ( 0 ) : e j , t ∈ F 2 2 } ,
V π ( 0 ) ≜ { e ∈ E π ( 0 ) : e j , t = [ 0 , 0 ] whenever t ∈ { 0 , g + 2 } } . (204) \mathcal{V}_{\pi}^{(0)} \triangleq\{e\in\mathcal{E}_{\pi}^{(0)}:e_{j,t}=[0,0]\ \text{whenever}\ t\in\{0,g+2\}\}. \tag*{(204)} V π ( 0 ) ≜ { e ∈ E π ( 0 ) : e j , t = [ 0 , 0 ] whenever t ∈ { 0 , g + 2 }} . (204)
The actual locations Λ π , a c t ( 0 ) \Lambda_{\pi,\mathrm{act}}^{(0)} Λ π , act ( 0 ) (see Figure 5 (b)) on which V π ( 0 ) \mathcal{V}_{\pi}^{(0)} V π ( 0 ) permits nontrivial faults are given by
Figure 5. Chao–Reichardt one-flag circuit and operation partition. (a) Steane-code (i.e., the μ = 3 \mu=3 μ = 3 specialization of the CSS Hamming code) example [29 ] , with measured support relabeled Q 1 , … , Q 4 Q_1,\ldots,Q_4 Q 1 , … , Q 4 and ordering π ∗ = ( 1 , 5 , 2 , 3 , 6 , 4 ) \pi_*=(1,5,2,3,6,4) π ∗ = ( 1 , 5 , 2 , 3 , 6 , 4 ) . Vertical guides mark the registers R t R_t R t . Each marked location carries an arbitrary Pauli label in E π ∗ ( 0 ) \mathcal{E}_{\pi_*}^{(0)} E π ∗ ( 0 ) . In V π ∗ ( 0 ) \mathcal{V}_{\pi_*}^{(0)} V π ∗ ( 0 ) , gray labels vanish and all other labels remain unrestricted, including both data boundaries. (b) The red block groups the two outputs of the second CNOT; each blue block is a separate idle-qubit operation location. A nonzero block label counts as one faulty operation. Applying this grouping at every step, with singleton blocks at t = 1 t=1 t = 1 , partitions Λ π ∗ , a c t ( 0 ) \Lambda_{\pi_*,\mathrm{act}}^{(0)} Λ π ∗ , act ( 0 ) .
Λ π , a c t ( 0 ) ≜ Z n ∗ + × Z g + 1 + , N ≜ ∣ Λ π , a c t ( 0 ) ∣ = ( g + 1 ) n ∗ , (205) \Lambda_{\pi,\mathrm{act}}^{(0)}\triangleq\mathbb{Z}_{n_*}^{+}\times\mathbb{Z}_{g+1}^{+},\qquad N\triangleq|\Lambda_{\pi,\mathrm{act}}^{(0)}|=(g+1)n_*, \tag*{(205)} Λ π , act ( 0 ) ≜ Z n ∗ + × Z g + 1 + , N ≜ ∣ Λ π , act ( 0 ) ∣ = ( g + 1 ) n ∗ , (205)
with input and output data locations, immediately after encoding and immediately before readout, respectively,
I i n ≜ { ( f + 1 + j , 1 ) : j ∈ Z n + } , I o u t ≜ { ( f + 1 + j , g + 1 ) : j ∈ Z n + } . (206) I_{\mathrm{in}}\triangleq\{(f+1+j,1):j\in\mathbb{Z}_{n}^{+}\},\qquad I_{\mathrm{out}}\triangleq\{(f+1+j,g+1):j\in\mathbb{Z}_{n}^{+}\}. \tag*{(206)} I in ≜ {( f + 1 + j , 1 ) : j ∈ Z n + } , I out ≜ {( f + 1 + j , g + 1 ) : j ∈ Z n + } . (206)
In circuit-level fault counting, a nonidentity two-qubit Pauli associated with one CNOT counts as one fault, even when both qubits are affected [17 Sec. 2.1] . Spacetime weight instead counts the affected qubit locations. We therefore group the two output locations of each CNOT and use the resulting operation-wise weight and weight profiles throughout the remainder of this section. The philosophy is to count the number of failed operations in a circuit rather than counting the number of failed locations .
Definition C.3 (Faulty operations and operation-wise weight profiles). For r ∈ Z g + r\in\mathbb{Z}_{g}^{+} r ∈ Z g + , let c π , r ∈ Z n ∗ + ∖ { 1 } c_{\pi,r}\in\mathbb{Z}_{n_*}^{+}\setminus\{1\} c π , r ∈ Z n ∗ + ∖ { 1 } label the control qubit of G π ( r ) G_{\pi(r)} G π ( r ) , whose target has label 1. Define
B π , r ≜ { ( c π , r , r + 1 ) , ( 1 , r + 1 ) } , B_{\pi,r}\triangleq\{(c_{\pi,r},r+1),(1,r+1)\}, B π , r ≜ {( c π , r , r + 1 ) , ( 1 , r + 1 )} , B π , r ⊆ Λ π , a c t ( 0 ) , ∣ B π , r ∣ = 2 , B_{\pi,r}\subseteq\Lambda_{\pi,\mathrm{act}}^{(0)},\qquad|B_{\pi,r}|=2, B π , r ⊆ Λ π , act ( 0 ) , ∣ B π , r ∣ = 2 , I π , 2 ≜ { B π , r : r ∈ Z g + } , I_{\pi,2}\triangleq\{B_{\pi,r}:r\in\mathbb{Z}_{g}^{+}\}, I π , 2 ≜ { B π , r : r ∈ Z g + } , I π , 1 ≜ { { ℓ } : ℓ ∈ Λ π , a c t ( 0 ) ∖ ⋃ B ∈ I π , 2 B } . (207) I_{\pi,1}\triangleq\{\{\ell\}:\ell\in\Lambda_{\pi,\mathrm{act}}^{(0)}\setminus\bigcup_{B\in I_{\pi,2}}B\}. \tag*{(207)} I π , 1 ≜ {{ ℓ } : ℓ ∈ Λ π , act ( 0 ) ∖ B ∈ I π , 2 ⋃ B } . (207)
The operation-wise location set O π ≜ I π , 1 ⊔ I π , 2 O_\pi\triangleq I_{\pi,1}\sqcup I_{\pi,2} O π ≜ I π , 1 ⊔ I π , 2 partitions the actual spacetime locations in Theorem C.2 as
Λ π , a c t ( 0 ) = ⨆ B ∈ O π B . \Lambda_{\pi,\mathrm{act}}^{(0)}=\bigsqcup_{B\in O_\pi}B. Λ π , act ( 0 ) = B ∈ O π ⨆ B .
Its single-qubit and CNOT blocks form the partition Π π ≜ { I π , 1 , I π , 2 } \Pi_\pi\triangleq\{I_{\pi,1},I_{\pi,2}\} Π π ≜ { I π , 1 , I π , 2 } , with
N 1 ≜ ∣ I π , 1 ∣ = N − 2 g = n ∗ + g ( n ∗ − 2 ) , N_1\triangleq|I_{\pi,1}|=N-2g=n_*+g(n_*-2), N 1 ≜ ∣ I π , 1 ∣ = N − 2 g = n ∗ + g ( n ∗ − 2 ) ,
N 2 ≜ ∣ I π , 2 ∣ = g . (208) N_2\triangleq|I_{\pi,2}|=g. \tag*{(208)} N 2 ≜ ∣ I π , 2 ∣ = g . (208)
For e ∈ V π ( 0 ) e\in\mathcal{V}_{\pi}^{(0)} e ∈ V π ( 0 ) and B ∈ O π B\in O_\pi B ∈ O π , write e B = ( e j , t ) ( j , t ) ∈ B ∈ F 2 2 ∣ B ∣ e_B=(e_{j,t})_{(j,t)\in B}\in\mathbb{F}_2^{2|B|} e B = ( e j , t ) ( j , t ) ∈ B ∈ F 2 2∣ B ∣ , with qubit indices ordered increasingly within each block; while operation B B B is faulty when e B ≠ 0 e_B\ne0 e B = 0 . The operation-wise weight profile and total operation weight (see Figure 5 (b)) are
a ≜ ∣ { B ∈ I π , 1 : e B ≠ 0 } ∣ , b ≜ ∣ { B ∈ I π , 2 : e B ≠ 0 } ∣ , a\triangleq|\{B\in I_{\pi,1}:e_B\ne0\}|,\qquad b\triangleq|\{B\in I_{\pi,2}:e_B\ne0\}|, a ≜ ∣ { B ∈ I π , 1 : e B = 0 } ∣ , b ≜ ∣ { B ∈ I π , 2 : e B = 0 } ∣ ,
w π ( e ) ≜ ( a , b ) ∈ J ≜ [ N 1 ] × [ N 2 ] , wt l o c , π ( e ) ≜ a + b . (209) w_\pi(e)\triangleq(a,b)\in\mathcal{J}\triangleq[N_1]\times[N_2],\qquad\operatorname{wt}_{\mathrm{loc},\pi}(e)\triangleq a+b. \tag*{(209)} w π ( e ) ≜ ( a , b ) ∈ J ≜ [ N 1 ] × [ N 2 ] , wt loc , π ( e ) ≜ a + b . (209)
Remark C.4. Hereafter, for the remainder of this section, omit the coordinates fixed to zero in Equation (204) , identifying V π ( 0 ) ≅ ( F 2 2 ) N 1 ⊕ ( F 2 4 ) N 2 ≅ F 2 2 N \mathcal{V}_{\pi}^{(0)}\cong(\mathbb{F}_2^2)^{N_1}\oplus(\mathbb{F}_2^4)^{N_2}\cong\mathbb{F}_2^{2N} V π ( 0 ) ≅ ( F 2 2 ) N 1 ⊕ ( F 2 4 ) N 2 ≅ F 2 2 N . Write e = ( e 0 , … , e g ) e=(e_0,\ldots,e_g) e = ( e 0 , … , e g ) , where e r = [ x r , z r ] ∈ F 2 2 n ∗ e_r=[x_r,z_r]\in\mathbb{F}_2^{2n_*} e r = [ x r , z r ] ∈ F 2 2 n ∗ contains the labels at time t = r + 1 t=r+1 t = r + 1 in the stated qubit order. All subsequent matrices use these coordinates, and character duals are taken in this reduced ambient space F 2 2 N \mathbb{F}_2^{2N} F 2 2 N . Accordingly, the enumerator and LP formulas below use d 0 , π = 2 N d_{0,\pi}=2N d 0 , π = 2 N .
Proposition C.5 (Common ideal action). Every ordering π ∈ P \pi\in\mathcal{P} π ∈ P has the same ideal branches,
C s , α π = δ α , 0 ∣ s ⟩ A ⊗ ∣ 0 f ⟩ F ⊗ I Q + ( − 1 ) s P Z 2 C e n c C_{s,\alpha}^{\pi}=\delta_{\alpha,0}|s\rangle_A\otimes|0^f\rangle_F\otimes\frac{I_Q+(-1)^sP_Z}{2}C_{\mathrm{enc}} C s , α π = δ α , 0 ∣ s ⟩ A ⊗ ∣ 0 f ⟩ F ⊗ 2 I Q + ( − 1 ) s P Z C enc = δ s , 0 δ α , 0 ∣ 0 ⟩ A ⊗ ∣ 0 f ⟩ F ⊗ C e n c . (210) =\delta_{s,0}\delta_{\alpha,0}|0\rangle_A\otimes|0^f\rangle_F\otimes C_{\mathrm{enc}}. \tag*{(210)} = δ s , 0 δ α , 0 ∣0 ⟩ A ⊗ ∣ 0 f ⟩ F ⊗ C enc . (210)
Proof. The CNOTs commute and square to the identity, so the flag CNOT pairs can be brought together by commuting them through the other CNOTs which makes them identity, hence leaving a measurement of P Z P_Z P Z , with P Z C e n c = C e n c P_ZC_{\mathrm{enc}}=C_{\mathrm{enc}} P Z C enc = C enc .
Proposition C.6 (Fault propagation). Let ε j \varepsilon_j ε j denote the j j j th standard basis row of F 2 n ∗ \mathbb{F}_2^{n_*} F 2 n ∗ , with ε A = ε 1 \varepsilon_A=\varepsilon_1 ε A = ε 1 . For 0 ≤ r ≤ g 0\le r\le g 0 ≤ r ≤ g , put v π , r = ∑ j = r + 1 g ε c π , j v_{\pi,r}=\sum_{j=r+1}^{g}\varepsilon_{c_{\pi,j}} v π , r = ∑ j = r + 1 g ε c π , j . The CNOTs applied at steps r + 1 , … , g r+1,\ldots,g r + 1 , … , g have combined unitary G π ( g ) ⋯ G π ( r + 1 ) G_{\pi(g)}\cdots G_{\pi(r+1)} G π ( g ) ⋯ G π ( r + 1 ) . Denote the symplectic matrix of their combined unitary by F π , r F_{\pi,r} F π , r and define the propagation matrix L ⃗ π \vec{L}_{\pi} L π by stacking them. Explicitly, the symplectic matrices have a closed form
F π , r = [ I n ∗ + v π , r T ε A 0 0 I n ∗ + ε A T v π , r ] , where F π , g = I 2 n ∗ , L ⃗ π ≔ [ F π , 0 ⋮ F π , g ] ∈ F 2 2 N × 2 n ∗ . (211) F_{\pi,r}=
\begin{bmatrix}
I_{n_*}+v_{\pi,r}^{\mathsf T}\varepsilon_A & 0\\
0 & I_{n_*}+\varepsilon_A^{\mathsf T}v_{\pi,r}
\end{bmatrix},
\qquad\text{where}\quad F_{\pi,g}=I_{2n_*},
\qquad
\vec{L}_{\pi}\coloneqq
\begin{bmatrix}
F_{\pi,0}\\
\vdots\\
F_{\pi,g}
\end{bmatrix}\in\mathbb{F}_2^{2N\times2n_*}. \tag*{(211)} F π , r = [ I n ∗ + v π , r T ε A 0 0 I n ∗ + ε A T v π , r ] , where F π , g = I 2 n ∗ , L π : = F π , 0 ⋮ F π , g ∈ F 2 2 N × 2 n ∗ . (211) For every e ∈ V π ( 0 ) e\in\mathcal{V}_{\pi}^{(0)} e ∈ V π ( 0 ) , the propagated Pauli label immediately before readout is e L ⃗ π e\vec{L}_{\pi} e L π . Define the coordinate selection matrices J A ∈ F 2 2 n ∗ × 1 J_A\in\mathbb{F}_2^{2n_*\times1} J A ∈ F 2 2 n ∗ × 1 , J F ∈ F 2 2 n ∗ × f J_F\in\mathbb{F}_2^{2n_*\times f} J F ∈ F 2 2 n ∗ × f , and J Q ∈ F 2 2 n ∗ × 2 n J_Q\in\mathbb{F}_2^{2n_*\times2n} J Q ∈ F 2 2 n ∗ × 2 n by p J A = x A pJ_A=x_A p J A = x A , p J F = z F pJ_F=z_F p J F = z F , and p J Q = [ x Q , z Q ] pJ_Q=[x_Q,z_Q] p J Q = [ x Q , z Q ] for p = [ x A , x F , x Q , z A , z F , z Q ] ∈ F 2 2 n ∗ p=[x_A,x_F,x_Q,z_A,z_F,z_Q]\in\mathbb{F}_2^{2n_*} p = [ x A , x F , x Q , z A , z F , z Q ] ∈ F 2 2 n ∗ . The data label and record flips are then
q π ( e ) ≔ e L ⃗ π J Q , s π ( e ) ≔ e L ⃗ π J A , α π ( e ) ≔ e L ⃗ π J F . (212) q_{\pi}(e)\coloneqq e\vec{L}_{\pi}J_Q,\qquad
s_{\pi}(e)\coloneqq e\vec{L}_{\pi}J_A,\qquad
\alpha_{\pi}(e)\coloneqq e\vec{L}_{\pi}J_F. \tag*{(212)} q π ( e ) : = e L π J Q , s π ( e ) : = e L π J A , α π ( e ) : = e L π J F . (212) The unique nonzero Kraus operator of the noisy realization up to phase, is given by,
∣ s π ( e ) ⟩ A ⊗ ∣ α π ( e ) ⟩ F ⊗ P ( q π ( e ) ) C e n c . \lvert s_{\pi}(e)\rangle_A\otimes\lvert\alpha_{\pi}(e)\rangle_F\otimes P(q_{\pi}(e))C_{\mathrm{enc}}. ∣ s π ( e ) ⟩ A ⊗ ∣ α π ( e ) ⟩ F ⊗ P ( q π ( e )) C enc .
Proof. The CNOT updates x A ↦ x A + x c x_A\mapsto x_A+x_c x A ↦ x A + x c and z c ↦ z c + z A z_c\mapsto z_c+z_A z c ↦ z c + z A , together with Theorems Theorems II.3 and V.5, give the propagation formulas. The branch expression follows from Equation (C12).
Following Theorem III.20, write V ≔ V e n c o u t = { q ∈ F 2 2 n : P ( q ) C e n c = ± C e n c } \mathcal{V}\coloneqq\mathcal{V}_{\mathrm{enc}}^{\mathrm{out}}=\{q\in\mathbb{F}_2^{2n}:P(q)C_{\mathrm{enc}}=\pm C_{\mathrm{enc}}\} V : = V enc out = { q ∈ F 2 2 n : P ( q ) C enc = ± C enc } . Choose matrices S ∈ F 2 ( n − k L ) × 2 n S\in\mathbb{F}_2^{(n-k_L)\times2n} S ∈ F 2 ( n − k L ) × 2 n , G ∈ F 2 2 k L × 2 n G\in\mathbb{F}_2^{2k_L\times2n} G ∈ F 2 2 k L × 2 n whose rows are, respectively, a basis of V \mathcal{V} V and representatives of a basis of V ⊥ s / V \mathcal{V}^{\perp_s}/\mathcal{V} V ⊥ s / V . Thus S S S contains stabilizer labels, G G G contains logical Pauli labels, and the rows of [ S ; G ] [S;G] [ S ; G ] form a basis of V ⊥ s \mathcal{V}^{\perp_s} V ⊥ s .
Proposition C.7 (Signature matrices). Valid level-0 signature matrices in the sense of Theorem V.9 are
H π = [ J A T J F T S Ω n J Q T ] , L π = G Ω n J Q T L ⃗ π T , M π = [ H π L π ] . (213) H_{\pi}=
\begin{bmatrix}
J_A^{\mathsf T}\\
J_F^{\mathsf T}\\
S\Omega_nJ_Q^{\mathsf T}
\end{bmatrix},
\qquad
L_{\pi}=G\Omega_nJ_Q^{\mathsf T}\vec{L}_{\pi}^{\mathsf T},
\qquad
M_{\pi}=
\begin{bmatrix}
H_{\pi}\\
L_{\pi}
\end{bmatrix}. \tag*{(213)} H π = J A T J F T S Ω n J Q T , L π = G Ω n J Q T L π T , M π = [ H π L π ] . (213) Their action on a permitted fault e ∈ V π ( 0 ) e\in\mathcal{V}_{\pi}^{(0)} e ∈ V π ( 0 ) is
H π e T = [ s π ( e ) α π ( e ) S Ω n q π ( e ) ] , L π e T = G Ω n q π ( e ) T . H_{\pi}e^{\mathsf T}=
\begin{bmatrix}
s_{\pi}(e)\\
\alpha_{\pi}(e)\\
S\Omega_nq_{\pi}(e)
\end{bmatrix},
\qquad
L_{\pi}e^{\mathsf T}=G\Omega_nq_{\pi}(e)^{\mathsf T}. H π e T = s π ( e ) α π ( e ) S Ω n q π ( e ) , L π e T = G Ω n q π ( e ) T . Consequently,
H π e T = 0 ⟺ s π ( e ) = 0 , α π ( e ) = 0 , q π ( e ) ∈ V ⊥ s , H_{\pi}e^{\mathsf T}=0\Longleftrightarrow s_{\pi}(e)=0,\ \alpha_{\pi}(e)=0,\ q_{\pi}(e)\in\mathcal{V}^{\perp_s}, H π e T = 0 ⟺ s π ( e ) = 0 , α π ( e ) = 0 , q π ( e ) ∈ V ⊥ s , M π e T = 0 ⟺ s π ( e ) = 0 , α π ( e ) = 0 , q π ( e ) ∈ V . M_{\pi}e^{\mathsf T}=0\Longleftrightarrow s_{\pi}(e)=0,\ \alpha_{\pi}(e)=0,\ q_{\pi}(e)\in\mathcal{V}. M π e T = 0 ⟺ s π ( e ) = 0 , α π ( e ) = 0 , q π ( e ) ∈ V . The ranks are independent of the ordering π \pi π , namely,
h ≔ rank H π = f + 1 + n − k L , rank L π = 2 k L , m ≔ rank M π = f + 1 + n + k L . (214) h\coloneqq\operatorname{rank}H_{\pi}=f+1+n-k_L,\qquad
\operatorname{rank}L_{\pi}=2k_L,\qquad
m\coloneqq\operatorname{rank}M_{\pi}=f+1+n+k_L. \tag*{(214)} h : = rank H π = f + 1 + n − k L , rank L π = 2 k L , m : = rank M π = f + 1 + n + k L . (214)
Proof. Apply Theorem V.9 to the propagated branch, using symplectic commutation and ( V ⊥ s ) ⊥ s = V (\mathcal{V}^{\perp_s})^{\perp_s}=\mathcal{V} ( V ⊥ s ) ⊥ s = V . Since F π , g = I 2 n ∗ F_{\pi,g}=I_{2n_*} F π , g = I 2 n ∗ , propagation is surjective, so the independent boundary checks give the stated ranks.
Write p = e L ⃗ π = [ x A , x F , x Q , z A , z F , z Q ] p=e\vec{L}_{\pi}=[x_A,x_F,x_Q,z_A,z_F,z_Q] p = e L π = [ x A , x F , x Q , z A , z F , z Q ] . By the selector matrix definitions in Theorem C.6, the first two blocks of H π e T H_{\pi}e^{\mathsf T} H π e T are
[ J A T J F T ] L ⃗ π T e T = [ ( p J A ) T ( p J F ) T ] = [ x A z F ] . \begin{bmatrix}
J_A^{\mathsf T}\\
J_F^{\mathsf T}
\end{bmatrix}
\vec{L}_{\pi}^{\mathsf T}e^{\mathsf T}
=
\begin{bmatrix}
(pJ_A)^{\mathsf T}\\
(pJ_F)^{\mathsf T}
\end{bmatrix}
=
\begin{bmatrix}
x_A\\
z_F
\end{bmatrix}. [ J A T J F T ] L π T e T = [ ( p J A ) T ( p J F ) T ] = [ x A z F ] .
These are precisely the record-flip bits because
Z A P ( p ) = ( − 1 ) x A P ( p ) Z A , X F a P ( p ) = ( − 1 ) z F a P ( p ) X F a . Z_A P(p) = (-1)^{x_A}P(p)Z_A,
\qquad
X_{F_a}P(p) = (-1)^{z_{F_a}}P(p)X_{F_a}. Z A P ( p ) = ( − 1 ) x A P ( p ) Z A , X F a P ( p ) = ( − 1 ) z F a P ( p ) X F a .
Since in the noiseless case, measurement outcomes are zero by Equation (210) , the noisy records are s π ( e ) = x A s_\pi(e)=x_A s π ( e ) = x A and α π ( e ) = z F \alpha_\pi(e)=z_{F} α π ( e ) = z F . Similarly, the third block S Ω n q π ( e ) T S\Omega_n q_\pi(e)^{\mathsf T} S Ω n q π ( e ) T gives the commutation parities with the code stabilizer generators, which define the ideal output checks. These checks are available to the ideal recovery in the distance criterion; while the circuit’s retained measurement record is ( s , α ) (s,\alpha) ( s , α ) . Following, [17 Definition 6] we now define the t t t -flag criteria as follows.
Definition C.8 (t t t -flag condition). Let p Z ∈ V p_Z\in V p Z ∈ V be the binary label of P Z P_Z P Z , and define
wt P Z ( q ) ≔ min { wt P ( q ) , wt P ( q + p Z ) } . \operatorname{wt}_{P_Z}(q)\coloneqq\min\{\operatorname{wt}P(q),\operatorname{wt}P(q+p_Z)\}. wt P Z ( q ) : = min { wt P ( q ) , wt P ( q + p Z )} . For an integer t ≥ 1 t\ge1 t ≥ 1 , an ordering π \pi π is t t t -flag if every e ∈ V π ( 0 ) e\in\mathcal{V}_{\pi}^{(0)} e ∈ V π ( 0 ) satisfies
\begin{aligned}
1\le\operatorname{wt}_{\mathrm{loc},\pi}(e)&\le t,\\
\alpha_\pi(e)&=0
\end{aligned}
\qquad\Longrightarrow\qquad
\operatorname{wt}_{P_Z}(q_\pi(e))\le\operatorname{wt}_{\mathrm{loc},\pi}(e). \tag*{(215)}\end{aligned}
Flag-LP distance bound
Use the spaces K 0 , π K_{0,\pi} K 0 , π , T 0 , π T_{0,\pi} T 0 , π and the four distributions U π , T π , U ^ π , T ^ π U^\pi,T^\pi,\widehat{U}^\pi,\widehat{T}^\pi U π , T π , U π , T π of Equations (125) and (127) , with operation profiles w π w_\pi w π and character duals in the reduced space F 2 2 N \mathbb{F}_2^{2N} F 2 2 N .
Definition C.9 (Operation-wise distance). For π ∈ P \pi\in\mathfrak{P} π ∈ P , the operation-wise distance of C π C_\pi C π is defined as
d π ≔ min e ∈ V π ( 0 ) H π e T = 0 , L π e T ≠ 0 wt l o c , π ( e ) , min ∅ = ∞ . (216) d_\pi\coloneqq
\min_{\substack{e\in\mathcal{V}_\pi^{(0)}\\ H_\pi e^{\mathsf T}=0,\ L_\pi e^{\mathsf T}\ne0}}
\operatorname{wt}_{\mathrm{loc},\pi}(e),
\qquad\min\varnothing=\infty. \tag*{(216)} d π : = e ∈ V π ( 0 ) H π e T = 0 , L π e T = 0 min wt loc , π ( e ) , min ∅ = ∞. (216)
Each faulty operation affects one or two spacetime locations, so wt l o c , π ( e ) ≤ wt S T ( e ) ≤ 2 wt l o c , π ( e ) \operatorname{wt}_{\mathrm{loc},\pi}(e)\le\operatorname{wt}_{\mathrm{ST}}(e)\le2\operatorname{wt}_{\mathrm{loc},\pi}(e) wt loc , π ( e ) ≤ wt ST ( e ) ≤ 2 wt loc , π ( e ) and hence d π ≤ d c i r c , 0 ( π ) ≤ 2 d π d_\pi\le d_{\mathrm{circ},0}(\pi)\le2d_\pi d π ≤ d circ , 0 ( π ) ≤ 2 d π . For each π ∈ P \pi\in\mathfrak{P} π ∈ P , the distributions U π , T π , U ^ π , T ^ π U^\pi,T^\pi,\widehat{U}^\pi,\widehat{T}^\pi U π , T π , U π , T π satisfy the counting and MacWilliams constraints Equations (135) and (140) to (142) with the substitutions
Γ a , b = 3 a 15 b ( N 1 a ) ( N 2 b ) , K i , j ( a , b ) = K i ( 4 ) ( a ; N 1 ) K j ( 16 ) ( b ; N 2 ) , d 0 , π = 2 N = 2 N 1 + 4 N 2 , ∣ K 0 , π ∣ = 2 2 N − h , ∣ T 0 , π ∣ = 2 2 N − m . (217) \begin{aligned}
\Gamma_{a,b}&=3^{a}15^{b}\binom{N_1}{a}\binom{N_2}{b},\\
K_{i,j}(a,b)&=K_i^{(4)}(a;N_1)K_j^{(16)}(b;N_2),\\
d_{0,\pi}&=2N=2N_1+4N_2,\\
|K_{0,\pi}|&=2^{2N-h},\qquad|\mathcal{T}_{0,\pi}|=2^{2N-m}. \tag*{(217)}
\end{aligned} Γ a , b K i , j ( a , b ) d 0 , π ∣ K 0 , π ∣ = 3 a 1 5 b ( a N 1 ) ( b N 2 ) , = K i ( 4 ) ( a ; N 1 ) K j ( 16 ) ( b ; N 2 ) , = 2 N = 2 N 1 + 4 N 2 , = 2 2 N − h , ∣ T 0 , π ∣ = 2 2 N − m . (217)
Here K j ( q ) K_j^{(q)} K j ( q ) is defined in Equation (133) . Indeed, the character sum in Equation (137) over a nonzero CNOT label in F 2 4 \mathbb{F}_2^4 F 2 4 equals 15 15 15 for the trivial character and − 1 -1 − 1 otherwise; the proof of Theorem V.21 therefore applies with local alphabet sizes 4 and 16. To express the flag condition, retain the complete data label. For y = ( s , α , q ) ∈ F 2 × F 2 f × F 2 2 n y=(s,\alpha,q)\in\mathbb{F}_2\times\mathbb{F}_2^f\times\mathbb{F}_2^{2n} y = ( s , α , q ) ∈ F 2 × F 2 f × F 2 2 n , define
C a , b π ( y ) ≔ ∣ { e ∈ V π ( 0 ) : w π ( e ) = ( a , b ) , ( s π ( e ) , α π ( e ) , q π ( e ) ) = y } ∣ . (218) C_{a,b}^{\pi}(y)\coloneqq
\left|
\left\{
e\in\mathcal{V}_{\pi}^{(0)}:
\begin{array}{c}
w_\pi(e)=(a,b),\\
(s_\pi(e),\alpha_\pi(e),q_\pi(e))=y
\end{array}
\right\}
\right|. \tag*{(218)} C a , b π ( y ) : = { e ∈ V π ( 0 ) : w π ( e ) = ( a , b ) , ( s π ( e ) , α π ( e ) , q π ( e )) = y } . (218)
These counts refine the signature counts, namely, the logical signature alone does not determine wt P Z ( q ) \operatorname{wt}_{P_Z}(q) wt P Z ( q ) .
Proposition C.10 (Resolved counts and vanishing conditions). Put β = 1 + f + 2 n \beta=1+f+2n β = 1 + f + 2 n . For every π ∈ P \pi\in\mathfrak{P} π ∈ P , C a , b π ( y ) ≥ 0 C_{a,b}^{\pi}(y)\ge0 C a , b π ( y ) ≥ 0 and
C 0 , 0 π ( y ) = 1 { y = 0 } , ∑ y C a , b π ( y ) = Γ a , b , C_{0,0}^{\pi}(y)=1_{\{y=0\}},
\qquad
\sum_y C_{a,b}^{\pi}(y)=\Gamma_{a,b}, C 0 , 0 π ( y ) = 1 { y = 0 } , y ∑ C a , b π ( y ) = Γ a , b , ∑ ( a , b ) ∈ J C a , b π ( y ) = 2 2 N − β , \sum_{(a,b)\in\mathcal{J}}C_{a,b}^{\pi}(y)=2^{2N-\beta}, ( a , b ) ∈ J ∑ C a , b π ( y ) = 2 2 N − β , U a , b π = ∑ q ∈ V ⊥ C a , b π ( 0 , 0 , q ) , T a , b π = ∑ q ∈ V C a , b π ( 0 , 0 , q ) . (219) U_{a,b}^{\pi}=\sum_{q\in V^\perp}C_{a,b}^{\pi}(0,0,q),
\qquad
T_{a,b}^{\pi}=\sum_{q\in V}C_{a,b}^{\pi}(0,0,q). \tag*{(219)} U a , b π = q ∈ V ⊥ ∑ C a , b π ( 0 , 0 , q ) , T a , b π = q ∈ V ∑ C a , b π ( 0 , 0 , q ) . (219)
The ordering π \pi π is t t t -flag if and only if
C a , b π ( s , 0 , q ) = 0 ( s ∈ F 2 ) , C^{\pi}_{a,b}(s,0,q)=0 \qquad(s\in\mathbb{F}_2), C a , b π ( s , 0 , q ) = 0 ( s ∈ F 2 ) ,
whenever 1 ≤ a + b ≤ t , wt P Z ( q ) > a + b . (220) \text{whenever }1\le a+b\le t,\qquad\operatorname{wt}_{P_Z}(q)>a+b. \tag*{(220)} whenever 1 ≤ a + b ≤ t , wt P Z ( q ) > a + b . (220)
For an integer D ≥ 1 D\ge1 D ≥ 1 , its operation distance satisfies d π ≥ D d_\pi\ge D d π ≥ D if and only if
U a , b π = T a , b π ( ( a , b ) ∈ J , 0 < a + b < D ) . (221) U^\pi_{a,b}=T^\pi_{a,b}\qquad((a,b)\in\mathcal{J},\ 0<a+b<D). \tag*{(221)} U a , b π = T a , b π (( a , b ) ∈ J , 0 < a + b < D ) . (221)
Proof. All coefficients are nonnegative because they count fault patterns. The zero fault is the only pattern with profile ( 0 , 0 ) (0,0) ( 0 , 0 ) . Grouping all faults with profile ( a , b ) (a,b) ( a , b ) according to their values of y y y gives
C 0 , 0 π ( y ) = 1 { y = 0 } , ∑ y C a , b π ( y ) = Γ a , b . C^\pi_{0,0}(y)=\mathbf{1}_{\{y=0\}},\qquad\sum_y C^\pi_{a,b}(y)=\Gamma_{a,b}. C 0 , 0 π ( y ) = 1 { y = 0 } , y ∑ C a , b π ( y ) = Γ a , b .
Fix y = ( s , α , q ) y=(s,\alpha,q) y = ( s , α , q ) and choose the faults at times t = 1 , … , g t=1,\ldots,g t = 1 , … , g arbitrarily. To obtain this prescribed y y y , the final fault at t = g + 1 t=g+1 t = g + 1 must have specific values of its x A , z F , x Q , z Q x_A,z_F,x_Q,z_Q x A , z F , x Q , z Q bits. Its remaining z A , x F z_A,x_F z A , x F bits are unrestricted. There are therefore
2 2 g n ∗ 2 f + 1 = 2 2 N − β 2^{2gn_*}2^{f+1}=2^{2N-\beta} 2 2 g n ∗ 2 f + 1 = 2 2 N − β
fault patterns giving each y y y . Summing over their profiles proves the third equality in Equation (219) . By Theorem C.7, the faults counted by U a , b π U^\pi_{a,b} U a , b π have s = α = 0 s=\alpha=0 s = α = 0 and q ∈ V ⊥ s q\in V^{\perp_s} q ∈ V ⊥ s , while those counted by T a , b π T^\pi_{a,b} T a , b π additionally have q ∈ V q\in V q ∈ V . This proves the remaining two equalities. The counts in Equation (220) vanish exactly when no unflagged fault of operation weight between 1 and t t t violates Theorem C.8. Finally, U a , b π − T a , b π U^\pi_{a,b}-T^\pi_{a,b} U a , b π − T a , b π counts the faults with operation-wise weight profile ( a , b ) (a,b) ( a , b ) that have zero syndrome and nontrivial logical effect. Thus d π ≥ D d_\pi\ge D d π ≥ D exactly when this difference vanishes for every 0 < a + b < D 0<a+b<D 0 < a + b < D , proving Equation (221) .
Let A j , B j A_j,B_j A j , B j be the prescribed weight distributions of V , V ⊥ s V,V^{\perp_s} V , V ⊥ s , respectively, as in Theorem V.23. Because the weight profile does not distinguish data-boundary locations from other operation locations, we use the following total-weight constraint.
Proposition C.11 (Boundary constraint). Every ordering π ∈ P \pi\in\mathcal{P} π ∈ P satisfies
∑ ( a , b ) ∈ J a + b = j ( U a , b π − T a , b π ) ≥ 2 ( B j − A j ) , 1 ≤ j ≤ n . (222) \sum_{\substack{(a,b)\in\mathcal{J}\\a+b=j}}\left(U^\pi_{a,b}-T^\pi_{a,b}\right)\ge2(B_j-A_j),\qquad1\le j\le n. \tag*{(222)} ( a , b ) ∈ J a + b = j ∑ ( U a , b π − T a , b π ) ≥ 2 ( B j − A j ) , 1 ≤ j ≤ n . (222)
For k L > 0 k_L>0 k L > 0 , it follows that d π ≤ d c o d e d_\pi\le d_{\mathrm{code}} d π ≤ d code and 2 ( d π − 1 ) ≤ n − k L 2(d_\pi-1)\le n-k_L 2 ( d π − 1 ) ≤ n − k L .
Proof. Each weight-j j j label q ∈ V ⊥ s ∖ V q\in V^{\perp_s}\setminus V q ∈ V ⊥ s ∖ V gives distinct input-only and output-only faults, both with zero records since ⟨ p Z , q ⟩ s = 0 \langle p_Z,q\rangle_s=0 ⟨ p Z , q ⟩ s = 0 and with nontrivial logical effect. Their data labels remain q q q as input data faults propagate only an additional syndrome-ancilla X X X label ⟨ p Z , q ⟩ s = 0 \langle p_Z,q\rangle_s=0 ⟨ p Z , q ⟩ s = 0 . Both faults have operation weight j j j , since each operation block contains at most one data-qubit location. Counting gives Equation (222) ; the first j j j with B j > A j B_j>A_j B j > A j gives the distance bound, and the code Singleton bound, as in Theorem V.24, gives the last inequality.
Definition C.12 (Flag-circuit distance LP). For integers t , D ≥ 1 t,D\ge1 t , D ≥ 1 , let FlagLP P ( t , D ) \operatorname{FlagLP}_{\mathcal{P}}(t,D) FlagLP P ( t , D ) be the feasibility LP in real arrays U , T , U ^ , T ^ , C U,T,\widehat{U},\widehat{T},C U , T , U , T , C , indexed by ( a , b ) ∈ J (a,b)\in\mathcal{J} ( a , b ) ∈ J and, for C C C , by y y y . Require Equations (135) and (140) to (142) *with the substitutions in* {xref}(217) , *together with* $C\ge 0$ *and Equations* {xref}(C21) *to* {xref}(C24)`. In these constraints, replace U π , T π , U ^ π , T ^ π , C π U^\pi,T^\pi,\widehat{U}^\pi,\widehat{T}^\pi,C^\pi U π , T π , U π , T π , C π by U , T , U ^ , T ^ , C U,T,\widehat{U},\widehat{T},C U , T , U , T , C , respectively. For k L > 0 k_L>0 k L > 0 , also require 2 ( D − 1 ) ≤ n − k L 2(D-1)\le n-k_L 2 ( D − 1 ) ≤ n − k L . Additional linear constraints A P A_{\mathcal{P}} A P may be imposed provided they hold for ( U π , T π , U ^ π , T ^ π , C π ) (U^\pi,T^\pi,\widehat{U}^\pi,\widehat{T}^\pi,C^\pi) ( U π , T π , U π , T π , C π ) for every π ∈ P \pi\in\mathcal{P} π ∈ P . All data and additional constraints remain fixed as D D D varies.
This specializes Theorem V.27 to one class with common parameters, operation weights, and the additional resolved counts. Without A P A_{\mathcal{P}} A P , the LP uses only the shared code and circuit parameters.
Theorem C.13 (LP distance bound). Every t t t -flag ordering π ∈ P \pi\in\mathcal{P} π ∈ P with d π ≥ D d_\pi\ge D d π ≥ D supplies a feasible point of FlagLP P ( t , D ) \operatorname{FlagLP}_{\mathcal{P}}(t,D) FlagLP P ( t , D ) . Consequently, infeasibility implies d π ≤ D − 1 d_\pi\le D-1 d π ≤ D − 1 for every t t t -flag ordering in the prescribed family. If $k_L>0 and this subfamily is nonempty, then, for every t t t -flag ordering π ∈ P \pi\in\mathcal{P} π ∈ P ,
d L P ≔ min D ∈ Z ≥ 1 { D − 1 : FlagLP P ( t , D ) is infeasible } , d_{\mathrm{LP}}\coloneqq\min_{D\in\mathbb{Z}_{\ge1}}\{D-1:\operatorname{FlagLP}_{\mathcal{P}}(t,D)\text{ is infeasible}\}, d LP : = D ∈ Z ≥ 1 min { D − 1 : FlagLP P ( t , D ) is infeasible } , d π ≤ d L P ≤ d c o d e . (223) d_\pi\le d_{\mathrm{LP}}\le d_{\mathrm{code}}. \tag*{(223)} d π ≤ d LP ≤ d code . (223)
Feasibility alone does not imply realization by an ordering.
Proof. Assign the LP variables by
( U , T , U ^ , T ^ , C ^ ) = ( U π , T π , U ^ π , T ^ π , C π ) . (U,T,\widehat{U},\widehat{T},\widehat{C})=(U^\pi,T^\pi,\widehat{U}^\pi,\widehat{T}^\pi,C^\pi). ( U , T , U , T , C ) = ( U π , T π , U π , T π , C π ) .
These actual counts from an actual circuit satisfy all constraints by Theorems C.10 and C.11 and the general enumerator identities, together with the assumed validity of A P \mathcal{A}_{\mathcal{P}} A P . They therefore give a feasible real point. The contrapositive proves the obstruction; Equation (222) excludes D = d c o d e + 1 D=d_{\mathrm{code}}+1 D = d code + 1 , ensuring the stated minimum exists.
CSS Hamming-code analytical benchmark
Definition C.14 (CSS Hamming code encoder). Fix an integer μ ≥ 3 \mu\ge3 μ ≥ 3 and put n = 2 μ − 1 n=2^\mu-1 n = 2 μ − 1 , k L = n − 2 μ k_L=n-2\mu k L = n − 2 μ , and w = 2 μ − 1 w=2^{\mu-1} w = 2 μ − 1 . Let H ∈ F 2 μ × n H\in\mathbb{F}_2^{\mu\times n} H ∈ F 2 μ × n contain every nonzero column c ∈ F 2 μ c\in\mathbb{F}_2^\mu c ∈ F 2 μ exactly once. The binary Hamming code with parity-check matrix H H H is { x ∈ F 2 n : H x T = 0 } \{x\in\mathbb{F}_2^n:Hx^{\mathsf T}=0\} { x ∈ F 2 n : H x T = 0 } . Let Q L ≅ C 2 k L Q_L\cong\mathbb{C}^{2^{k_L}} Q L ≅ C 2 k L and Q = ⨂ c ≠ 0 Q c Q=\bigotimes_{c\ne0}Q_c Q = ⨂ c = 0 Q c , with Q c ≅ C 2 Q_c\cong\mathbb{C}^2 Q c ≅ C 2 ordered by the columns of H H H . An encoder of the CSS Hamming code [29 ] is an isometric stabilizer circuit satisfying, for every i ∈ Z + μ i\in\mathbb{Z}_+^\mu i ∈ Z + μ ,
C e n c : Q L ⟶ Q , C e n c † C e n c = I Q L , C_{\mathrm{enc}}:Q_L\longrightarrow Q,\qquad C_{\mathrm{enc}}^\dagger C_{\mathrm{enc}}=I_{Q_L}, C enc : Q L ⟶ Q , C enc † C enc = I Q L , ( ∏ c : c i = 1 X Q c ) C e n c = C e n c , \left(\prod_{c:c_i=1}X_{Q_c}\right)C_{\mathrm{enc}}=C_{\mathrm{enc}}, ( c : c i = 1 ∏ X Q c ) C enc = C enc , ( ∏ c : c i = 1 Z Q c ) C e n c = C e n c . (224) \left(\prod_{c:c_i=1}Z_{Q_c}\right)C_{\mathrm{enc}}=C_{\mathrm{enc}}. \tag*{(224)} ( c : c i = 1 ∏ Z Q c ) C enc = C enc . (224) The code is im ( C e n c ) \operatorname{im}(C_{\mathrm{enc}}) im ( C enc ) . Each generating check has weight w w w , and, in the notation of Theorem III.20, its output stabilizer space is
V = V e n c o u t = { [ u H , v H ] : u , v ∈ F 2 μ } . (225) V=V_{\mathrm{enc}}^{\mathrm{out}}=\{[uH,vH]:u,v\in\mathbb{F}_2^\mu\}. \tag*{(225)} V = V enc out = {[ u H , v H ] : u , v ∈ F 2 μ } . (225)
Proposition C.15 (Analytic boundary obstruction). The code has parameters [ [ n , k L , 3 ] ] [[n,k_L,3]] [[ n , k L , 3 ]] , and, for j ∈ [ n ] j\in[n] j ∈ [ n ] ,
A j = δ j , 0 + 3 n δ j , w + n ( n − 1 ) δ j , 3 w / 2 , A_j=\delta_{j,0}+3n\delta_{j,w}+n(n-1)\delta_{j,3w/2}, A j = δ j , 0 + 3 n δ j , w + n ( n − 1 ) δ j , 3 w /2 , B j = 2 − 2 μ [ K j ( 4 ) ( 0 ; n ) + 3 n K j ( 4 ) ( w ; n ) + n ( n − 1 ) K j ( 4 ) ( 3 w / 2 ; n ) ] . (226) B_j=2^{-2\mu}\left[\mathop{\mathrm{K}}\nolimits_j^{(4)}(0;n)+3n\mathop{\mathrm{K}}\nolimits_j^{(4)}(w;n)+n(n-1)\mathop{\mathrm{K}}\nolimits_j^{(4)}(3w/2;n)\right]. \tag*{(226)} B j = 2 − 2 μ [ K j ( 4 ) ( 0 ; n ) + 3 n K j ( 4 ) ( w ; n ) + n ( n − 1 ) K j ( 4 ) ( 3 w /2 ; n ) ] . (226) In particular, B 1 = B 2 = A 3 = 0 B_1=B_2=A_3=0 B 1 = B 2 = A 3 = 0 and B 3 = n ( n − 1 ) / 2 B_3=n(n-1)/2 B 3 = n ( n − 1 ) /2 . For every flag count and ordering family, FlagLP F ( t , D ) \operatorname{FlagLP}_{\mathcal{F}}(t,D) FlagLP F ( t , D ) is infeasible for D ≥ 4 D\ge4 D ≥ 4 .
Proof. Rows of H H H have weight w w w and distinct rows overlap on w / 2 w/2 w /2 columns, both even. Hence H H T = 0 HH^{\mathsf T}=0 H H T = 0 ; its rank μ \mu μ gives k L k_L k L . For u , v ∈ F 2 μ u,v\in\mathbb{F}_2^\mu u , v ∈ F 2 μ , if the 2 × μ 2\times\mu 2 × μ matrix [ u ; v ] [u;v] [ u ; v ] has rank r r r , then [ u H , v H ] [uH,vH] [ u H , v H ] has weight 2 μ − 2 μ − r 2^\mu-2^{\mu-r} 2 μ − 2 μ − r . Ranks 0 , 1 , 2 0,1,2 0 , 1 , 2 occur 1 , 3 n , n ( n − 1 ) 1,3n,n(n-1) 1 , 3 n , n ( n − 1 ) times, respectively, giving A j A_j A j ; Equation (142) gives B j B_j B j . The distinct nonzero columns exclude nonzero normalizer labels of weight one or two. Each triple { c , d , c + d } \{c,d,c+d\} { c , d , c + d } supports exactly the weight-three labels X X X , Y Y Y , Z Z Z XXX,YYY,ZZZ X X X , Y Y Y , Z Z Z ; there are n ( n − 1 ) / 6 n(n-1)/6 n ( n − 1 ) /6 such triples and w ≥ 4 w\ge4 w ≥ 4 , proving B 3 = n ( n − 1 ) / 2 B_3=n(n-1)/2 B 3 = n ( n − 1 ) /2 , A 3 = 0 A_3=0 A 3 = 0 , and distance three. Finally, at any feasible LP point, the boundary constraint Equation (222) requires
∑ ( a , b ) ∈ J a + b = 3 ( U a , b − T a , b ) ≥ n ( n − 1 ) > 0. (227) \sum_{\substack{(a,b)\in\mathcal{J}\\a+b=3}}(U_{a,b}-T_{a,b})\ge n(n-1)>0. \tag*{(227)} ( a , b ) ∈ J a + b = 3 ∑ ( U a , b − T a , b ) ≥ n ( n − 1 ) > 0. (227) whereas the distance constraints Equation (221) make the left-hand side zero for D ≥ 4 D\ge4 D ≥ 4 .
Definition C.16 (Chao–Reichardt one-flag construction). For the CSS Hamming-code encoder of Theorem C.14, take f = 1 f=1 f = 1 . Fix a binary basis of F 2 μ − 1 \mathbb{F}_2^{\mu-1} F 2 μ − 1 and write the column labels as c ∈ F 2 × F 2 μ − 1 c\in\mathbb{F}_2\times\mathbb{F}_2^{\mu-1} c ∈ F 2 × F 2 μ − 1 . Choose ξ ∈ F 2 μ − 1 \xi\in\mathbb{F}_{2^{\mu-1}} ξ ∈ F 2 μ − 1 of multiplicative order w − 1 w-1 w − 1 and enumerate the columns of H H H with first coordinate one by
c 1 = ( 1 , 0 ) , c j + 2 = ( 1 , ξ j ) ( 0 ≤ j ≤ w − 2 ) . (228) c_1=(1,0),\qquad c_{j+2}=(1,\xi^j)\quad(0\le j\le w-2). \tag*{(228)} c 1 = ( 1 , 0 ) , c j + 2 = ( 1 , ξ j ) ( 0 ≤ j ≤ w − 2 ) . (228) Relabel Q c i Q_{c_i} Q c i as Q i Q_i Q i for i ∈ Z + w i\in\mathbb{Z}_+^w i ∈ Z + w and set P Z = ∏ i = 1 w Z Q i P_Z=\prod_{i=1}^w Z_{Q_i} P Z = ∏ i = 1 w Z Q i . The Chao–Reichardt construction [29 arXiv version, Sec. III C, Claim 1] is the circuit C π ∗ C_{\pi_*} C π ∗ of Theorem C.1 with ordering
( π ∗ ( 1 ) , … , π ∗ ( w + 2 ) ) = ( 1 , w + 1 , 2 , … , w − 1 , w + 2 , w ) . (229) (\pi_*(1),\ldots,\pi_*(w+2))=(1,w+1,2,\ldots,w-1,w+2,w). \tag*{(229)} ( π ∗ ( 1 ) , … , π ∗ ( w + 2 )) = ( 1 , w + 1 , 2 , … , w − 1 , w + 2 , w ) . (229) The two flag CNOTs occur immediately after the first and immediately before the last data CNOT, respectively; see Figure 5 for $\mu=3.
For the benchmark LP, let P H a m \mathcal{P}_{\mathrm{Ham}} P Ham be the set of all permutations of Z w + 2 + \mathbb{Z}_{w+2}^{+} Z w + 2 + and take A P H a m = ∅ \mathcal{A}_{\mathcal{P}_{\mathrm{Ham}}} = \varnothing A P Ham = ∅ . The common parameters are
g = w + 2 , N 1 = n ( w + 3 ) + 2 , N 2 = w + 2 , h = 2 μ + 2 , m = 2 n − 2 μ + 2. (230) \begin{aligned}
g &= w + 2, & N_1 &= n(w + 3) + 2, & N_2 &= w + 2,\\
h &= 2\mu+ 2, & m &= 2n - 2\mu+ 2. \tag*{(230)}
\end{aligned} g h = w + 2 , = 2 μ + 2 , N 1 m = n ( w + 3 ) + 2 , = 2 n − 2 μ + 2. N 2 = w + 2 , (230)
Theorem C.17 (Attainment of the CSS Hamming LP bound). Under Theorems C.2 and C.3, π ∗ \pi_* π ∗ is 1-flag, its distributions give a feasible point of FlagLP P H a m ( 1 , 3 ) \operatorname{FlagLP}_{\mathcal{P}_{\mathrm{Ham}}}(1, 3) FlagLP P Ham ( 1 , 3 ) , and
d π ∗ = max π ∈ P H a m π is 1-flag d π = d L P = 3. (231) d_{\pi_*} = \max_{\substack{\pi\in\mathcal{P}_{\mathrm{Ham}}\\ \pi\text{ is 1-flag}}} d_\pi= d_{\mathrm{LP}} = 3. \tag*{(231)} d π ∗ = π ∈ P Ham π is 1-flag max d π = d LP = 3. (231)
Proof. For single CNOT faults, Chao and Reichardt’s analysis [29 arXiv version, Sec. III C, Claim 1] establishes that unflagged data errors have weight at most one modulo P Z P_Z P Z . For flagged faults, the Z Z Z components are determined modulo P Z P_Z P Z by the X X X -check syndrome. The X X X component has weight at most one, so the distinct nonzero columns of H H H determine it from the Z Z Z -check syndrome. Thus the full output-code syndrome determines every flagged data error modulo stabilizers. The additional singleton locations preserve these properties: data faults, including both boundaries, remain unflagged single-qubit data errors; flag faults give no data error, and I Q I_Q I Q is already among the flagged CNOT possibilities; and the sole singleton A A A -location, at t = 1 t = 1 t = 1 , gives I Q I_Q I Q or P Z P_Z P Z without a flag. Thus π ∗ \pi_* π ∗ is 1-flag.
Write any undetected fault of operation weight at most two as e = e 1 + e 2 e = e_1 + e_2 e = e 1 + e 2 , by splitting its occupied operation blocks, with each e i e_i e i of operation weight at most one and allowing a zero summand. Linearity and H π ∗ e T = 0 H_{\pi_*}e^{\mathsf T} = 0 H π ∗ e T = 0 imply that their H π ∗ H_{\pi_*} H π ∗ signatures agree, so their flag outcomes and output-code syndromes coincide. If the common flag is zero, reducing both data errors modulo P Z P_Z P Z gives a zero-syndrome error of weight at most two, which is a stabilizer because d c o d e = 3 d_{\mathrm{code}} = 3 d code = 3 . If the common flag is one, the cited distinguishability property gives the same conclusion. Hence q π ∗ ( e ) ∈ V q_{\pi_*}(e) \in V q π ∗ ( e ) ∈ V and d π ∗ ≥ 3 d_{\pi_*} \ge3 d π ∗ ≥ 3 . The boundary bound in Theorem C.11 gives d π ∗ ≤ 3 d_{\pi_*} \le3 d π ∗ ≤ 3 . Finally, Theorems C.13 and C.15 give LP feasibility at D = 3 D = 3 D = 3 and infeasibility at D = 4 D = 4 D = 4 , proving Equation (231) .
References