Quantum Error Correction and Dynamical Decoupling: Better Together or Apart? Victor Kasatkin, Mario Morford-Oberst, Arian Vezvaee, Daniel A. Lidar Abstract Quantum error correction (QEC) and dynamical decoupling (DD) are widely used tools for protecting quantum information, and a natural goal is to combine them to outperform either approach alone. Such a benefit is not automatic: physical DD pulses can conflict with an encoded subspace, and QEC performance is determined by the errors that survive decoding, which need not be those suppressed by DD. We analyze a hybrid memory cycle in which DD is implemented logically (LDD) using elements of the normalizer of an [ [ n , k , d ] ] [[n,k,d]] stabilizer code and is followed by a round of syndrome measurement and recovery (or, in the detection setting, postselection on a trivial syndrome). In an effective Pauli model with physical error probability p p , LDD suppression factor p DD p_{\rm DD} , and recovery imperfection rate p QEC p_{\rm QEC} (or p QED p_{\rm QED} ), we derive closed-form entanglement-fidelity expressions for QEC-only, LDD-only, physical DD (as a baseline), and the hybrid LDD+QEC protocol. The formulas are expressed via a small set of code-dependent weight enumerator polynomials, making the role of the decoder and the LDD group explicit. For ideal recovery we obtain a necessary-and-sufficient criterion for when LDD+QEC outperforms QEC-only: the conditional fraction of uncorrectable Pauli errors is larger in the LDD-suppressed sector than in the unsuppressed sector. In the low-noise regime we give a simple sufficient design rule guaranteeing hybrid advantage, namely that LDD suppresses at least one minimum-weight uncorrectable Pauli error for the chosen recovery map, and we show how stabilizer-equivalent choices of LDD generators can be used to enforce this condition. We supplement our analysis with numerical results for the [ [ 7 , 1 , 3 ] ] [[7,1,3]] Steane code and a [ [ 13 , 1 , 3 ] ] [[13,1,3]] code, mapping regions of hybrid-protocol advantage in parameter space beyond the small- p p regime. Our work illustrates the need for co-design of the code, decoder, and logical decoupling group, and clarifies the conditions under which the hybrid LDD+QEC protocol is advantageous. I Introduction Protecting quantum information against noise is essential for long-lived quantum memories and for fault-tolerant quantum computation Gottesman 2010 ; Lidar and Brun 2013 ; Terhal 2015 . Two widely used approaches are quantum error correction (QEC), which actively diagnoses and corrects errors using redundancy and measurements Shor 1995 ; Steane 1996 ; Gottesman 1997 ; Knill and Laflamme 1997 ; Calderbank et al. 1998 ; Knill et al. 2000 ; Kribs et al. 2005 , and dynamical decoupling (DD), which uses open-loop control to average out certain error mechanisms Viola and Lloyd 1998 ; Viola et al. 1999 ; Zanardi 1999 ; Vitali and Tombesi 1999 ; Khodjasteh and Lidar 2005 ; Uhrig 2007 ; Genov et al. 2017 . It is natural to try to combine QEC and DD in order to improve overall performance. However, because these techniques have different noise and operating assumptions, it is not a priori clear when they are complementary and when they compete. In particular, given a fixed hardware noise environment and a fixed code, when does adding DD improve the performance of a QEC cycle, and when does it provide little benefit, or even degrade performance once imperfections are included? This problem was analyzed in terms of resource overhead and the fault-tolerance accuracy threshold in a hybrid DD-QEC setting, where DD pulses are implemented at the physical level Ng et al. 2011 . An alternative approach is to apply DD as the logical operations of a code (encoded DD Viola 2002 ), in particular as logical dynamical decoupling (LDD), in which the decoupling operations are chosen to preserve the codespace (e.g., by using elements of the code normalizer) while averaging away errors that do not commute with a specified logical decoupling group Lidar 2008 ; Paz-Silva and Lidar 2013 ; Vezvaee et al. 2025a . It is an open question whether a hybrid LDD+QEC protocol is always better than either approach in isolation. In this work, we analyze a hybrid strategy in which LDD or any other Pauli-group-based DD sequence is implemented on an encoded block and is followed by stabilizer syndrome measurement and recovery. More specifically, we focus on a single “encode-wait-decode” cycle for an [[n,k,d]] stabilizer code and compare four strategies: QEC-only, LDD-only, physical DD on k unencoded qubits (as a baseline), and the hybrid protocol LDD+QEC (LDD followed by one round of syndrome measurement and recovery). The noise during the waiting time is modeled as an effective Pauli channel parameterized by a physical Pauli error probability p and a DD suppression parameter p_{\rm DD} that rescales the contribution of errors that do not commute with the chosen decoupling group (followed by renormalization). Imperfections in syndrome extraction and/or recovery are captured by a phenomenological recovery-failure parameter p_{\rm QEC} ; we also treat an error-detection setting with an analogous parameter p_{\rm QED} . We quantify performance using the entanglement fidelity F , equivalently the probability of no net logical fault after the protocol. Our main goal is to extract checkable criteria for when LDD+QEC improves upon QEC-only (and when it does not), as well as to compare both protocols to LDD-only and physical DD. To do so, we derive the dependence of F (and hence the logical failure probability 1-F ) on the code, the decoder, and the LDD group. Due to the generality of our approach, many results we initially developed for LDD apply, in fact, to any nontrivial Pauli decoupling group (even if it does not consist of logical operators). We summarize our main results and takeaways as follows. 1. Analytical fidelity formulas. We derive closed-form expressions for the entanglement fidelity of all four strategies in terms of a small set of weight enumerator polynomials (WEPs) that count Pauli errors by weight within subsets defined by the stabilizer code, the recovery map, and the (L)DD group (see 1 and 1 ). These results quantify how performance depends on specific design choices. 2. An exact criterion for hybrid-protocol advantage under perfect recovery. In the idealized perfect recovery setting ( p_{\rm QEC}=0 ), we give a necessary and sufficient condition for when LDD+QEC outperforms QEC-only ( 2 ): the hybrid protocol helps precisely when the fraction of uncorrectable errors is larger among errors suppressed by LDD than among errors it leaves unsuppressed. Intuitively, LDD must target the errors that survive decoding. 3. A low-noise criterion for hybrid-protocol advantage. In the limit p\to 0 , we prove a simple sufficient condition guaranteeing that LDD+QEC outperforms QEC-only for all sufficiently small p (for any fixed p_{\rm DD}<1 ): it suffices that LDD suppress at least one minimum-weight uncorrectable Pauli error ( 3 ). Moreover, when the sufficient condition fails ( \beta>\alpha ) but there exists a minimum-weight uncorrectable error with nontrivial syndrome (a condition that holds, for example, whenever d\geq 2 ), dressing an LDD generator by a stabilizer can modify the suppressed sector (without changing the logical action) so as to enforce \beta^{\prime}=\alpha and thereby recover the sufficient-condition regime ( 3 , part 2). 4. Robustness to imperfect recovery If there is a strict hybrid-protocol advantage at p_{\rm QEC}=0 , then the advantage persists for sufficiently small p_{\rm QEC}>0 by continuity ( 1 ). 5. Extension to error detection. We also derive analogous WEP-based expressions and comparison criteria for an error-detection setting that trades acceptance probability against conditional fidelity ( 4 and 2 ). 6. Numerical corroboration. We perform numerical case studies (including the [[7,1,3]] and [[13,1,3]] codes) that map regions of advantage in the (p_{\rm DD},p_{\rm QEC}) plane beyond the low- p theorem regimes, and illustrate that the hybrid protocol’s advantage depends on whether the chosen LDD group suppresses the decoder’s dominant uncorrectable errors ( Section V ). The main take-home message of this work is the following: DD and QEC are “better together” when logical decoupling is chosen to suppress the Pauli errors that result in logical failure after decoding and the probability of physical errors is low enough for QEC to be effective. Our WEP formulas and comparison theorems make this criterion explicit and checkable. The remainder of the manuscript is organized as follows. In Section II we present the model and define the protocols we analyze. In Section III we give the main results for each protocol in the error-correction setting. In Section IV we give the corresponding expressions for the error-detection setting. In Section V we numerically evaluate the formulas for representative codes and illustrate the resulting regions of advantage in the (p_{\rm DD},p_{\rm QEC}) plane. Section VI summarizes the conclusions, with technical derivations and the decoding map used in the numerics collected in the appendices. II Setup We assume the following setup for QEC and (L)DD. II.1 QEC • There is a natural projection \pi\colon\mathcal{P}_{n}\to\tilde{\mathcal{P}}_{n} which removes the global phase of a Pauli operator. We call elements of \tilde{\mathcal{P}}_{n} phase-stripped Paulis. Equivalently, \tilde{\mathcal{P}}_{n}\cong\mathcal{P}_{n}/\langle iI\rangle and we may represent each class by its unique Hermitian representative of the form P_{1}\otimes\dots\otimes P_{n} with P_{j}\in\{I,X,Y,Z\} . In examples we write such Pauli strings by concatenating the letters from \{\texttt{I},\texttt{X},\texttt{Y},\texttt{Z}\} , (i.e., omitting \otimes ): e.g., XXIZZY . • Two elements of \mathcal{P}_{n} either commute or anticommute. If E_{1}^{\prime},E_{2}^{\prime}\in\tilde{\mathcal{P}}_{n} , we say that E_{1}^{\prime} and E_{2}^{\prime} commute (resp. anticommute) if their representatives E_{1},E_{2} (s.t. E_{j}^{\prime}=\pi(E_{j}) ) commute (resp. anticommute), i.e., E_{1}E_{2}E_{1}^{-1}E_{2}^{-1}=I (1) (resp. =-I ), and write [E_{1}^{\prime},E_{2}^{\prime}]=0 (resp. [E_{1}^{\prime},E_{2}^{\prime}]\neq 0 ). In other words, when we use the terms “commute” and “anticommute”, we always refer to multiplication in \mathcal{P}_{n} and not in \tilde{\mathcal{P}}_{n} (otherwise these notions would be trivial because \tilde{\mathcal{P}}_{n} is Abelian). Note that this is well defined because another choice of E_{1} , E_{2} will differ by phase factors which will cancel in Eq. 1 . • 1\leq k\leq n . • \mathcal{S} is a subgroup of \mathcal{P}_{n} with 2^{n-k} elements that does not contain -I . • From the above it follows that \mathcal{S} is Abelian and all elements of \mathcal{S} square to the identity. Indeed, if P,Q\in\mathcal{S} anticommute, then (PQ)^{2}=-I\in\mathcal{S} , a contradiction. Also, any Pauli with phase \pm i squares to -I , so \mathcal{S} contains only Hermitian Paulis (phases \pm 1 ). Therefore, \mathcal{S} is an elementary Abelian 2 -group and can be viewed as a vector space over \mathbb{F}_{2} . • Let \mathcal{S}^{*} be the dual of \mathcal{S} , i.e., the set of \mathbb{F}_{2} -linear functionals \mathcal{S}\to\mathbb{F}_{2} . We interpret \mathcal{S}^{*} as the space of syndrome outcomes (stabilizer measurement results, in \{0,1\} form). For every E\in\mathcal{P}_{n} we let \syn(E)\in\mathcal{S}^{*} be the corresponding syndrome given by \syn(E)(S)=1 iff E anticommutes with S . Since commutation/anticommutation does not depend on phase factors, \syn(E) depends on E only through \pi(E) , and we define \syn(E^{\prime})=\syn(E) for E^{\prime}=\pi(E) . • Let D\colon\mathcal{S}^{*}\to\tilde{\mathcal{P}}_{n} be any map satisfying D(0)=\pi(I) and \forall\sigma\in\mathcal{S}^{*}\;\syn(D(\sigma))=\sigma . This map can be interpreted as a decoding (recovery) map: it maps a syndrome \sigma\in\mathcal{S}^{*} to a chosen Pauli recovery D(\sigma) with that syndrome. • Let C(\mathcal{S})\subset\mathcal{P}_{n} denote the (Pauli) centralizer of \mathcal{S} , i.e., the set of all P\in\mathcal{P}_{n} commuting with all elements of \mathcal{S} . We choose a subgroup \mathcal{L}\subseteq C(\mathcal{S}) such that C(\mathcal{S})=\mathcal{S}\mathcal{L},\quad\pi(\mathcal{S})\cap\pi(\mathcal{L})=\{\pi(I)\}. (2) Equivalently, the standard quotient map q\colon C(\mathcal{S})\to C(\mathcal{S})/\mathcal{S} restricts to an isomorphism q|_{\mathcal{L}}\colon\mathcal{L}\xrightarrow{\sim}C(\mathcal{S})/\mathcal{S} . \pi(\mathcal{L})\cong\pi(C(\mathcal{S}))/\pi(\mathcal{S}) is the logical Pauli group (phase-stripped, modulo stabilizers). Many results we present below do not impose any additional restrictions on the code. For example, they are applicable even to codes with d=1 which fail to correct some distance-1 errors. Some results require additional assumptions on the code, in which case we state those assumptions explicitly. II.2 (L)DD We assume that \tilde{G}\subset\tilde{\mathcal{P}}_{n} is a nontrivial decoupling group, and we define G=\pi^{-1}(\tilde{G}) . For E\in\mathcal{P}_{n} we say that E anticommutes with G iff E anticommutes with at least one element of G . In that case (since \tilde{G} is an \mathbb{F}_{2} -vector space under multiplication), E anticommutes with exactly half of the elements of G . Similarly, we say that E\in\mathcal{P}_{n} commutes with G if it commutes with all its elements. We define the set of phase-stripped Paulis commuting with \tilde{G} (equivalently, with G ) as the symplectic orthogonal complement \tilde{G}^{\perp}\coloneqq\bigl\{E^{\prime}\in\tilde{\mathcal{P}}_{n}\big|[E^{\prime},g^{\prime}]=0\ \ \forall g^{\prime}\in\tilde{G}\bigr\} (3) The errors in Eq. 3 are unsuppressed by DD using \tilde{G} in our model, whereas errors in the complement \tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp} are suppressed. II.3 Protocol and Error model Throughout, we assume the following protocol. 1. A state is encoded into some code (trivial code or QEC). 2. We wait for some time during which we do or do not apply (L)DD. 3. We decode the state, possibly correcting it using QEC. We assume that the encoding is perfect, so there are only two types of errors: those happening during the waiting time and errors due to imperfect error correction. More specifically, we assume a simplified Pauli error model in which the state \rho transforms as \rho\ \longmapsto\ \sum_{E^{\prime}\in\tilde{\mathcal{P}}_{n}}\Pr(E^{\prime})E^{\prime}\rho(E^{\prime})^{\dagger}, (4) where \Pr(\bullet) is a probability distribution on \tilde{\mathcal{P}}_{n} . The right hand side E^{\prime}\rho(E^{\prime})^{\dagger} is defined as E\rho E^{\dagger} for E\in E^{\prime} . This is unambiguous because replacing E with e^{i\phi}E leaves E\rho E^{\dagger} unchanged because the global phase cancels. We introduce an effective “DD inverse-strength” parameter p_{\rm DD}\in[0,1] , which scales the probabilities of DD-suppressed errors to capture the residual error strength after applying DD. We assume that the DD sequence does not introduce additional error mechanisms beyond those already absorbed into this effective p_{\rm DD} ; this is best interpreted as either using pulse-robust DD sequences Quiroz and Lidar 2013 ; Genov et al. 2017 or having independently characterized control imperfections and folded them into the fitted value of p_{\rm DD} . The ideal limit p_{\rm DD}=0 corresponds to perfect error suppression (of the DD-suppressed sector) and is used only as a formal benchmark; in any realistic implementation one expects p_{\rm DD}>0 due to finite pulse widths, calibration errors, and finite-bandwidth filtering. With this in mind, we assume the following error model for the waiting time. In the absence of DD (equivalently, p_{\rm DD}=1 , i.e., no suppression via DD), the probability of error E^{\prime}\in\tilde{\mathcal{P}}_{n} is \Pr(E^{\prime})=(1-p)^{n-w}\Bigl(\frac{p}{3}\Bigr)^{w}, (5) where w=\wt(E^{\prime}) is the number of non-identity single-qubit factors in the canonical representative of E^{\prime} . When DD is applied, the probabilities of errors E^{\prime} that anticommute with \tilde{G} (i.e., E^{\prime}\notin\tilde{G}^{\perp} ) are multiplied by p_{\rm DD} , and then all probabilities are renormalized so that they still sum to 1 . For the QEC case, we assume that with probability 1-p_{\rm QEC} error correction applies the recovery D(\sigma) corresponding to the measured syndrome \sigma , and with probability p_{\rm QEC} it applies a uniformly random Pauli recovery consistent with that syndrome, but only when a nontrivial syndrome is measured; if the measured syndrome is trivial, the state is left unchanged. Conditioned on a fixed nonzero syndrome, any two syndrome-consistent recoveries differ by a zero-syndrome operator, i.e., by an element of \pi(C(\mathcal{S})) , and hence (modulo \pi(\mathcal{S}) ) by a logical Pauli in \pi(C(\mathcal{S}))/\pi(\mathcal{S})\cong\pi(\mathcal{L}) . Therefore, under our assumption that the recovery in the case of decoder failure is chosen uniformly at random among syndrome-consistent recoveries, the induced logical Pauli is uniform over the 4^{k} logical classes and the probability of the trivial logical class is 4^{-k} . Thus, after this step the state lies in the codespace and the remaining effective errors are logical Paulis. We call this whole procedure (regardless of whether D(\sigma) or a random recovery was applied) a decoder. 1 1 1 We remark that in experimental QEC work, “decoder” often denotes the classical post-processing algorithm used to infer the logical correction from syndrome data under an assumed noise model. In contrast, in this work “decoder” means the effective single-round syndrome-to-recovery rule (equivalently, a Pauli-frame update rule) together with the associated recovery operation. Under this model, p_{\rm DD}=0 corresponds to perfect suppression of all errors that anticommute with \tilde{G} , and p_{\rm QEC}=0 corresponds to ideal recovery given the measured syndrome. We treat the case when a QEC code is used but its recovery step is skipped as p_{\rm QEC}=1 , i.e., whenever a nontrivial syndrome is detected we apply a uniformly random syndrome-consistent recovery. Conditioned on detecting a nontrivial syndrome, such a random recovery yields the correct logical frame with probability 4^{-k} (and hence induces a logical error with probability 1-4^{-k} ). II.4 Faults vs errors We distinguish between faults, which are stochastic malfunction events in the implementation, and errors, which denote the resulting effective operators acting on the data. In the effective-Pauli model used throughout this work, the cumulative effect of all faults during the memory (waiting) interval is represented by a single random phase-stripped Pauli error E^{\prime}\in\tilde{\mathcal{P}}_{n} ; its weight is \wt(E^{\prime}) , the number of qubits on which it acts nontrivially. Imperfections in syndrome extraction and/or recovery are modeled at the event level by a recovery fault: when a nontrivial syndrome is measured, the ideal recovery D(\sigma) is applied with probability 1-p_{\rm QEC} , while with probability p_{\rm QEC} a uniformly random syndrome-consistent Pauli recovery is applied (and if the measured syndrome is trivial, the state is left unchanged). Given a fixed recovery map D , we call a Pauli error E^{\prime} correctable if D(\syn(E^{\prime}))E^{\prime}\in\pi(\mathcal{S}) , i.e., if ideal decoding returns the state to the codespace without inducing a nontrivial logical action. Otherwise E^{\prime} is uncorrectable. A logical error (or logical fault) refers to the induced action on the encoded subspace (equivalently, the coset of the residual operator modulo the stabilizer, an element of \pi(C(\mathcal{S}))/\pi(\mathcal{S})\simeq\pi(\mathcal{L}) ). A logical failure event occurs when the net operator after the full protocol has a nontrivial logical component; its probability is 1-F . II.5 Strategies We compare the following four strategies: 1. DD-phys : DD on k physical qubits (no QEC encoding or recovery); 2. QEC-only : QEC recovery alone (without LDD); 3. LDD-only : LDD alone on a QEC code (measuring the syndrome but skipping deterministic recovery; see p_{\rm QEC}=1 above); 4. LDD+QEC : Hybrid LDD and QEC recovery. While LDD typically refers to DD with \tilde{G}=\pi(\mathcal{L}) , most arguments presented in this work do not depend on any specific choice of G and apply equally well to any nontrivial subgroup \tilde{G}\subset\tilde{\mathcal{P}}_{n} . We note that another commonly used strategy is to directly embed DD-phys in the idle gaps of a quantum circuit. This approach, which has been successfully used to boost algorithmic performance Pokharel and Lidar 2023 ; Mundada et al. 2023 ; Bäumer et al. 2024 ; Singkanipa et al. 2025 and QEC fidelities Acharya et al. 2025 ; Bluvstein et al. 2026 ; Vezvaee et al. 2025b , has been rigorously analyzed in the context of a hybrid DD fault-tolerant-QEC strategy Ng et al. 2011 . II.6 Fidelity After physical noise during the waiting time, (L)DD, and (optionally) QEC, the effective CPTP map on the code space \mathcal{C}(\simeq\mathbb{C}^{2^{k}}) can be written as \Lambda(\rho)=\sum_{L\in\pi(C(\mathcal{S}))/\pi(\mathcal{S})}p_{L}L\rho L^{\dagger},\quad\sum_{L\in\pi(C(\mathcal{S}))/\pi(\mathcal{S})}p_{L}=1. (6) Here \rho is a density matrix on \mathcal{C} , L is an equivalence class of logical operators defined up to phase and multiplication by stabilizers, and p_{L} is the renormalized probability of the logical Pauli L , after any DD rescaling has been applied and the final probabilities have been rescaled to sum to one. Note that L\rho L^{\dagger} is well-defined. That is, if L_{1},L_{2}\in C(\mathcal{S}) are two representatives of the same equivalence class L , then L_{1}\rho L_{1}^{\dagger}=L_{2}\rho L_{2}^{\dagger} . Indeed, since L_{1},L_{2} belong to the same class, we have L_{2}=sSL_{1} where s\in\mathbb{C} , \left|s\right|=1 , and S\in\mathcal{S} . Since \rho is supported on \mathcal{C} , we have S\rho=\rho S^{\dagger}=\rho . Since L_{1}\in C(\mathcal{S}) , S commutes with L_{1} . Combining these observations, we obtain L_{2}\rho L_{2}^{\dagger}=sSL_{1}\rho L_{1}^{\dagger}S^{\dagger}s^{*}=L_{1}\rho L_{1}^{\dagger}. (7) We quantify the performance of each strategy using the same fidelity measure F : \displaystyle F \displaystyle\coloneqq\text{probability of no logical errors after the protocol} (8a) \displaystyle=p_{I}. (8b) We show in Appendix A that this is identical to the standard entanglement fidelity. We denote the corresponding fidelities as F_{\rm DD} , F_{\rm QEC} , F_{\rm LDD} , F_{\rm Hyb} . When comparing these fidelities, we often focus on the limit p\to 0 , while keeping p_{\rm DD}>0 constant and p_{\rm QEC}=0 or p_{\rm QEC}=o(1) . This asymptotic regime isolates the leading dependence on the physical error rate p while treating p_{\rm DD} as a fixed “DD floor” parameter: in practice, DD has a nonzero residual imperfection due to finite pulse widths, control errors, and spectral components outside the DD filter bandwidth, so p_{\rm DD} need not vanish as p\to 0 . We also focus on p_{\rm QEC}=0 or p_{\rm QEC}=o(1) to capture the idealized setting where syndrome extraction and recovery become increasingly reliable in the same small- p limit. Finally, we focus on p_{\rm DD}>0 to avoid the degenerate perfect-decoupling limit; the endpoint p_{\rm DD}=0 corresponds to complete suppression (followed by renormalization) of all errors outside \tilde{G}^{\perp} . In particular, for DD-phys with \tilde{G}=\tilde{\mathcal{P}}_{k} (so that \tilde{G}^{\perp}=\{\pi(I)\} ), this limit yields F=1 for any p<1 . We first derive explicit expressions for each of the fidelities and then compare them. For this comparison, we assume that k in all cases is the same and that the QEC code (and hence n ) used in QEC-only, LDD-only, and LDD+QEC is the same. For DD-phys, the code is trivial: n=k , \mathcal{S}=\{I\} , \mathcal{L}=\mathcal{P}_{k} . To make the comparison fair, we assume that the order of the DD group is the same in all three cases where DD is used: 4^{k} . In the LDD-only case, since n>k and we need to project the n -qubit state into the codespace, we assume that the syndrome is measured and (upon detecting a nontrivial syndrome) a uniformly random syndrome-consistent recovery is applied so that the output state lies in the codespace. III Analysis of the four strategies III.1 DD-phys In DD-phys, contrary to the other three strategies, we set n=k . In this case, we have k physical qubits and apply DD with a group that contains 4^{k} elements. That means that the DD group \tilde{G}=\tilde{\mathcal{P}}_{k} and \tilde{G}^{\perp}=\{\pi(I)\} . Lemma 1 . With no DD (i.e., p_{\rm DD}=1 ), the probability of no error is F_{\rm DD}=(1-p)^{k} . With DD, the probability of no error is \displaystyle F_{\rm DD} \displaystyle=\frac{(1-p)^{k}}{(1-p)^{k}+p_{\rm DD}\bigl[1-(1-p)^{k}\bigr]} (9a) \displaystyle=1-kpp_{\rm DD}+O(p^{2}) (9b) as p\to 0 (uniformly in p_{\rm DD} ). Proof. Recall that without DD, we have Eq. 5 . The probability of no error ( w=0 ) is then F_{\rm DD}=\Pr[\pi(I)]=(1-p)^{k} . In the DD-phys case, all Pauli errors not in \tilde{G}^{\perp}=\{\pi(I)\} anticommute with at least one element of \tilde{G} and therefore have their probabilities multiplied by p_{\rm DD}\in[0,1] . Thus, the renormalized probability of no error, i.e., the fidelity F_{\rm DD} , is F_{\rm DD}=\frac{\Pr[\pi(I)]}{\Pr[\pi(I)]+p_{\rm DD}\bigl(1-\Pr[\pi(I)]\bigr)}, (10) which is Eq. 9a . Factoring (1-p)^{k} out of the denominator yields F_{\rm DD}=[1+p_{\rm DD}((1-p)^{-k}-1)]^{-1} . For p\ll 1 we have (1-p)^{-k}=1+kp+O(p^{2}) . Hence, F_{\rm DD}=\bigl[1+kpp_{\rm DD}+O(p^{2})\bigr]^{-1}=1-kpp_{\rm DD}+O(p^{2}), (11) which is Eq. 9b . ∎ III.2 Weight enumerators To derive the fidelities in the other three cases, we need to correctly aggregate probabilities over different classes of physical errors (e.g., stabilizers vs. logical operators, suppressed vs. unsuppressed, correctable vs. uncorrectable). We do this using weight enumerator polynomials Shor and Laflamme 1997 ; Rains 1999 . For any subset A\subset\tilde{\mathcal{P}}_{n} , its weight-enumerator polynomial (WEP) is defined as W(A;z)\coloneqq\sum_{E^{\prime}\in A}z^{\wt(E^{\prime})}=\sum_{w=0}^{n}W_{w}(A)z^{w}, (12) where W_{w}(A) is the number of elements of A of weight w , i.e., W_{w}(A)=\#\bigl\{E^{\prime}\in A\bigl|\wt(E^{\prime})=w\bigr\} . For example, \wt(\pi(I))=0 , hence W(\{\pi(I)\};z)=1 ; for a single qubit, \wt(X)=\wt(Y)=\wt(Z)=1 , so W(\tilde{\mathcal{P}}_{1};z)=(1+3z) ; for n qubits, W(\tilde{\mathcal{P}}_{n};z)=\sum_{w=0}^{n}\binom{n}{w}(3z)^{w}=(1+3z)^{n}. (13) In our depolarizing waiting-time model [ Eq. 5 ], errors of the same weight have the same probability. Writing (1-p)^{n-w}\Bigl(\frac{p}{3}\Bigr)^{w}=(1-p)^{n}\Bigl(\frac{p}{3-3p}\Bigr)^{w}, (14) we see that for any subset A\subset\tilde{\mathcal{P}}_{n} , \sum_{E^{\prime}\in A}\Pr(E^{\prime})=(1-p)^{n}W\left(A;z\right),\quad z\coloneqq\frac{p}{3-3p}. (15) Hence, when forming conditional probabilities after DD renormalization, it is sufficient to evaluate WEPs at z=p/(3-3p) ; common prefactors cancel. Similarly, W\bigl(\tilde{G}^{\perp};z\bigr) is the WEP of errors unsuppressed by the decoupling group \tilde{G} , while W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp};z\bigr) is the WEP of errors suppressed (rescaled) by \tilde{G} . To handle the protocols that use QEC, we introduce the set {\tilde{\mathcal{E}}_{c}} of correctable physical errors, i.e., the errors that are corrected to the trivial logical class by the chosen decoding map D : {\tilde{\mathcal{E}}_{c}}\coloneqq\left\{E^{\prime}\in\tilde{\mathcal{P}}_{n}\ \middle|\ D(\syn(E^{\prime}))E^{\prime}\in\pi(\mathcal{S})\right\}. (16) This set splits into (trivial) stabilizer errors \pi(\mathcal{S}) with zero syndrome, and nontrivial correctable errors {\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}) with nonzero syndrome. Conversely, the set of uncorrectable errors is \tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}} , which splits into (i) nontrivial logical errors \pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S}) with zero syndrome, and (ii) detectable but uncorrectable errors \tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}\mathcal{L}) with nonzero syndrome. Considering DD, we obtain additional sets of physical significance. For example, ({\tilde{\mathcal{E}}_{c}}\cap\tilde{G}^{\perp})\setminus\pi(\mathcal{S}) is the set of correctable errors that are unsuppressed and have nonzero syndrome, and (\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp})\setminus\pi(\mathcal{S}\mathcal{L}) is the set of suppressed errors that are detectable. Table 1 summarizes all the different error sets that appear in our fidelity expressions below. It also introduces a compact tag notation for the corresponding weight enumerators. tag weight enumerator set description A W\bigl(\tilde{\mathcal{P}}_{n};z\bigr)=(1+3z)^{n} all St W\bigl(\pi(\mathcal{S});z\bigr) stabilizers \not{\mathrm{St}} W\bigl(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S});z\bigr) non-stabilizers S W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp};z\bigr) suppressed \not\!\mathrm{S} W\bigl(\tilde{G}^{\perp};z\bigr) unsuppressed C W\bigl({\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S});z\bigr) corrected (nontrivial syndrome) \not\!\mathrm{C} W\bigl(\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}};z\bigr) uncorrected D W\bigl(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S}\mathcal{L});z\bigr) detected (nonzero syndrome) L W\bigl(\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S});z\bigr) nontrivial logical \not\!\mathrm{S} -St W\bigl(\pi(\mathcal{S})\cap\tilde{G}^{\perp};z\bigr) unsuppressed stabilizers S-St W\bigl(\pi(\mathcal{S})\setminus\tilde{G}^{\perp};z\bigr) suppressed stabilizers \not\!\mathrm{S} -​ \not\!\mathrm{C} W\bigl(\tilde{G}^{\perp}\setminus{\tilde{\mathcal{E}}_{c}};z\bigr) unsuppressed uncorrected \not\!\mathrm{S} -C W\bigl(({\tilde{\mathcal{E}}_{c}}\cap\tilde{G}^{\perp})\setminus\pi(\mathcal{S});z\bigr) unsuppressed corrected S-​ \not\!\mathrm{C} W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus{\tilde{\mathcal{E}}_{c}};z\bigr) suppressed uncorrected S-C W\bigl({\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S})\setminus\tilde{G}^{\perp};z\bigr) suppressed corrected \not\!\mathrm{S} -D W\bigl(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}\mathcal{L});z\bigr) unsuppressed detected S-D W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus\pi(\mathcal{S}\mathcal{L});z\bigr) suppressed detected \not\!\mathrm{C} -D W\bigl(\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}\mathcal{L});z\bigr) uncorrected detected S- \not{\mathrm{St}} W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus\pi(\mathcal{S});z\bigr) suppressed non-stabilizers \not\!\mathrm{S} - \not{\mathrm{St}} W\bigl(\tilde{G}^{\perp}\setminus\pi(\mathcal{S});z\bigr) unsuppressed non-stabilizers Table 1: List of all WEPs that appear in the fidelity expressions. Each error set (middle column) is described in terms of its relation to DD and QEC (right column) and is given a corresponding acronym tag (left column) aligned with the set description. We always evaluate each WEP at z=p/(3-3p) . We proceed to reexpress the DD-phys fidelity in terms of WEPs. III.3 DD-phys again Lemma 2 . In the DD-phys strategy, the fidelity can be written as F_{\rm DD}=\frac{\textup{$\not\!\mathrm{S}$-{St}}+p_{\rm DD}\textup{S-St}}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}, (17) and for \tilde{G}=\tilde{\mathcal{P}}_{k} (so that \tilde{G}^{\perp}=\{\pi(I)\} ) this reduces to Eq. 9a . Proof. For any E^{\prime}\in\tilde{\mathcal{P}}_{n} of weight w=\wt(E^{\prime}) , Eq. 5 can be rewritten as \Pr(E^{\prime})=(1-p)^{n}\Bigl(\frac{p}{3-3p}\Bigr)^{w}. (18) Thus, evaluating all WEPs at z=\frac{p}{3-3p} , the common prefactor (1-p)^{n} cancels between numerator and denominator after DD renormalization. In our DD model, errors in \tilde{G}^{\perp} are left unchanged (they are unsuppressed, with WEP denoted \not\!\mathrm{S} in Table 1 ), while errors in \tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp} have their probabilities rescaled by a factor p_{\rm DD} (suppressed, denoted S ). Therefore, the total unnormalized probability mass after rescaling is proportional to W\bigl(\tilde{G}^{\perp};z\bigr)+p_{\rm DD}W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp};z\bigr)=\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}, (19) which gives the fidelity (normalization) denominator. The “no-logical-error” events are precisely stabilizer errors, i.e., elements of \pi(\mathcal{S}) . These split into an unsuppressed subset \pi(\mathcal{S})\cap\tilde{G}^{\perp} (unsuppressed stabilizer, denoted \not\!\mathrm{S} -St ) and a suppressed subset \pi(\mathcal{S})\setminus\tilde{G}^{\perp} (suppressed stabilizer, denoted S-St ). Hence the corresponding unnormalized probability mass is proportional to W\bigl(\pi(\mathcal{S})\cap\tilde{G}^{\perp};z\bigr)+p_{\rm DD}W\bigl(\pi(\mathcal{S})\setminus\tilde{G}^{\perp};z\bigr)=\textup{$\not\!\mathrm{S}$-{St}}+p_{\rm DD}\textup{S-St}, (20) which gives us the fidelity numerator. Together, this yields Eq. 17 . To recover Eq. 9a , note that in the DD-phys case n=k , \pi(\mathcal{S})=\{\pi(I)\} , and for a 4^{k} -element DD group we have \tilde{G}=\tilde{\mathcal{P}}_{k} and thus \tilde{G}^{\perp}=\{\pi(I)\} . Then W(\{\pi(I)\};z)=1 , W(\tilde{\mathcal{P}}_{k}\setminus\{\pi(I)\};z)=(1+3z)^{k}-1 , and W(\pi(\mathcal{S})\setminus\tilde{G}^{\perp};z)=0 . Substituting into Eq. 17 gives F_{\rm DD}=\frac{1}{1+p_{\rm DD}\bigl[(1+3z)^{k}-1\bigr]}, (21) which becomes Eq. 9a after setting z=p/(3-3p) and simplifying. ∎ III.4 LDD+QEC We are now prepared to state our first main technical result. Theorem 1 (Hybrid LDD+QEC: infidelity under an effective Pauli noise model with DD suppression and decoder failure) . Consider an [[n,k,d]] stabilizer code with stabilizer group \mathcal{S} and logical Pauli group \mathcal{L} (so \pi(\mathcal{S})\subseteq\pi(\mathcal{S}\mathcal{L})\subseteq\tilde{\mathcal{P}}_{n} ). Fix a (logical) dynamical-decoupling group \tilde{G} and let \tilde{G}^{\perp}\subseteq\tilde{\mathcal{P}}_{n} denote the set of Pauli errors that are not suppressed by the chosen (L)DD procedure (with suppressed sector \tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp} ). Assume the following effective Pauli noise model. Writing z\coloneqq p/(3-3p) , each Pauli E^{\prime}\in\tilde{\mathcal{P}}_{n} of weight \wt(E^{\prime}) contributes a factor z^{\wt(E^{\prime})} . In addition, if E^{\prime} lies in the suppressed sector ( E^{\prime}\notin\tilde{G}^{\perp} ), its contribution is rescaled by a multiplicative suppression factor p_{\rm DD} (with p_{\rm DD}=1 meaning no DD suppression). After the (L)DD step we perform one round of QEC: we measure the stabilizer syndrome \sigma and apply a recovery. If the measured syndrome is trivial, we apply no recovery. If the measured syndrome is nontrivial, then with probability 1-p_{\rm QEC} we apply a fixed (ideal) recovery D(\sigma) , while with probability p_{\rm QEC} we instead apply a uniformly random Pauli recovery consistent with the measured syndrome. Under this decoder-failure model, conditioned on any fixed nonzero syndrome, the induced logical Pauli is uniform over the 4^{k} logical classes, so the probability of the trivial logical class is 4^{-k} . Let {\tilde{\mathcal{E}}_{c}}\subseteq\tilde{\mathcal{P}}_{n} denote the set of Pauli errors that are corrected to the stabilizer (no logical fault) by the ideal decoder, i.e., those E^{\prime} such that D(\syn(E^{\prime}))E^{\prime}\in\pi(\mathcal{S}) . Then the entanglement infidelity of the resulting logical channel under the hybrid LDD+QEC protocol is \displaystyle 1-F_{\rm Hyb}=\frac{1}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}\bigl( \displaystyle[\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+p_{\rm QEC}(\textup{$\not\!\mathrm{S}$-C}-4^{-k}\textup{$\not\!\mathrm{S}$-D})] \displaystyle+p_{\rm DD} \displaystyle[\textup{S-\!$\not\!\mathrm{C}$}+p_{\rm QEC}(\textup{S-C}-4^{-k}\textup{S-D})]\bigr). (22) All WEP tags are as in Table 1 . This result includes DD-phys, QEC-only, and LDD-only as special cases. We give independent derivations of the latter two in Appendices B and C ; these derivations go into more detail for each specific case than the unified proof we give here. Proof. Just as in the DD-phys case [ Eq. 19 ], after DD rescaling, the (unnormalized) total probability weight is proportional to W(\tilde{G}^{\perp};z)+p_{\rm DD}W(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp};z)=\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}, (23) which yields the denominator in 1 after renormalization. However, the sets involved are different from the DD-phys case, since now n>k . For the numerator, we count (via WEPs) the total weight of physical Pauli errors E^{\prime} that produce a nontrivial residual logical Pauli after the protocol. This gives the infidelity (rather than the fidelity) in 1 . Recall that in our model, decoder failure occurs only when the measured syndrome is nontrivial. Conditioned on any fixed nonzero syndrome, the (failed) decoder applies a uniformly random syndrome-consistent Pauli recovery, so the induced logical Pauli is uniform over the 4^{k} logical classes. Hence, under decoder failure, the probability of landing in the trivial logical class is 4^{-k} . With this in mind, we now split errors into the two sectors used throughout, i.e., unsuppressed vs. suppressed by LDD. 1. Unsuppressed sector ( E^{\prime}\in\tilde{G}^{\perp} ; no factor of p_{\rm DD} ). Using the Table 1 notation, \not\!\mathrm{S} -​ \not\!\mathrm{C} = WEP of unsuppressed uncorrectable errors; \not\!\mathrm{S} -C = WEP of unsuppressed correctable detected errors (nonzero syndrome); \not\!\mathrm{S} -D = WEP of all unsuppressed detected errors (nonzero syndrome), so in particular \textup{$\not\!\mathrm{S}$-C}\subset\textup{$\not\!\mathrm{S}$-D} . We now do a three-step inclusion-exclusion count: (i) Baseline: count all uncorrectable errors as logical faults. Any error counted by \not\!\mathrm{S} -​ \not\!\mathrm{C} produces a nontrivial logical Pauli under ideal decoding (or is an undetected logical operator, for which no recovery is ever applied), so we start with a baseline contribution \not\!\mathrm{S} -​ \not\!\mathrm{C} . (ii) Add: correctable detected errors matter only if the decoder fails. Errors counted by \not\!\mathrm{S} -C produce no logical fault under ideal decoding, but when the decoder fails (probability p_{\rm QEC} ) we initially count them as contributing a logical fault. This gives an additive term p_{\rm QEC}\textup{$\not\!\mathrm{S}$-C} . (iii) Subtract: when the decoder fails, a detected error is accidentally harmless with probability 4^{-k} . Under decoder failure, for any detected error (correctable or uncorrectable) the resulting logical Pauli is uniform, so with probability 4^{-k} we land in the trivial logical class and should not count a logical fault. Since \not\!\mathrm{S} -D counts all detected errors in the unsuppressed sector, we subtract the overcount p_{\rm QEC}4^{-k}\textup{$\not\!\mathrm{S}$-D} . Summing these three contributions, the unsuppressed-sector logical-fault weight is \textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+p_{\rm QEC}\bigl(\textup{$\not\!\mathrm{S}$-C}-4^{-k}\textup{$\not\!\mathrm{S}$-D}\bigr) . 2. Suppressed sector ( E^{\prime}\in\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp} ; overall factor of p_{\rm DD} ). The identical bookkeeping applies with the suppressed-sector Table 1 quantities \textup{S-\!$\not\!\mathrm{C}$},\textup{S-C},\textup{S-D} , and we multiply by p_{\rm DD} because these errors are suppressed by LDD. Hence this sector contributes p_{\rm DD}\Bigl[\textup{S-\!$\not\!\mathrm{C}$}+p_{\rm QEC}\bigl(\textup{S-C}-4^{-k}\textup{S-D}\bigr)\Bigr] . Summing the two sector contributions yields the stated numerator, and dividing by the normalization \textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S} yields 1 . ∎ III.5 Reductions We now reduce LDD+QEC to QEC-only, LDD-only, and DD-phys. III.5.1 Reduction to QEC-only LDD+QEC reduces to QEC-only in the limit p_{\rm DD}=1 , when DD produces no rescaling. Because every Pauli either lies in \tilde{G}^{\perp} or in its complement, each relevant set splits into unsuppressed and suppressed parts. In particular, \textup{$\not\!\mathrm{S}$}+\textup{S}=\textup{A} , \textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+\textup{S-\!$\not\!\mathrm{C}$}=\textup{$\not\!\mathrm{C}$} , \textup{$\not\!\mathrm{S}$-C}+\textup{S-C}=\textup{C} , and \textup{$\not\!\mathrm{S}$-D}+\textup{S-D}=\textup{D} . Using 1 we therefore have \displaystyle 1-F_{\rm QEC} \displaystyle=1-F_{\rm Hyb}\bigr|_{p_{\rm DD}=1} (24a) \displaystyle=\frac{1}{\textup{$\not\!\mathrm{S}$}+\textup{S}}\Bigl([\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+p_{\rm QEC}(\textup{$\not\!\mathrm{S}$-C}-4^{-k}\textup{$\not\!\mathrm{S}$-D})] \displaystyle\quad\quad+[\textup{S-\!$\not\!\mathrm{C}$}+p_{\rm QEC}(\textup{S-C}-4^{-k}\textup{S-D})]\Bigr) (24b) \displaystyle=\frac{1}{\textup{A}}\Bigl(\textup{$\not\!\mathrm{C}$}+p_{\rm QEC}\bigl(\textup{C}-4^{-k}\textup{D}\bigr)\Bigr). (24c) III.5.2 Reduction to LDD-only LDD+QEC reduces to LDD-only in the limit p_{\rm QEC}=1 (decoder always applies a uniformly random syndrome-consistent recovery when a nontrivial syndrome is detected). We first note that in each DD sector, the non-stabilizer errors split disjointly into those decoded to the trivial logical class ( {\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}) ) and those not ( \tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}} ), which yields the following identities. Since \displaystyle(\tilde{G}^{\perp}\setminus{\tilde{\mathcal{E}}_{c}})\ \dot{\cup}\ \bigl[({\tilde{\mathcal{E}}_{c}}\cap\tilde{G}^{\perp})\setminus\pi(\mathcal{S})\bigr]=\tilde{G}^{\perp}\setminus\pi(\mathcal{S}) (25a) \displaystyle\quad\Rightarrow\quad\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+\textup{$\not\!\mathrm{S}$-C}=\textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}, (25b) and \displaystyle(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus{\tilde{\mathcal{E}}_{c}})\ \dot{\cup}\ \bigl[({\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}))\setminus\tilde{G}^{\perp}\bigr]=\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus\pi(\mathcal{S}) (26a) \displaystyle\quad\Rightarrow\quad\textup{S-\!$\not\!\mathrm{C}$}+\textup{S-C}=\textup{S-$\not{\mathrm{St}}$}, (26b) we have, using 1 : \displaystyle 1-F_{\rm LDD} \displaystyle=1-F_{\rm Hyb}\bigr|_{p_{\rm QEC}=1} (27a) \displaystyle=\frac{1}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}\Bigl([\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+\textup{$\not\!\mathrm{S}$-C}-4^{-k}\textup{$\not\!\mathrm{S}$-D}] \displaystyle\quad\quad+p_{\rm DD}[\textup{S-\!$\not\!\mathrm{C}$}+\textup{S-C}-4^{-k}\textup{S-D}]\Bigr) (27b) \displaystyle=\frac{1}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}\Bigl((\textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}-4^{-k}\textup{$\not\!\mathrm{S}$-D}) \displaystyle\quad\quad+p_{\rm DD}(\textup{S-$\not{\mathrm{St}}$}-4^{-k}\textup{S-D})\Bigr). (27c) III.5.3 Reduction to DD-phys LDD-only reduces to DD-phys when there is no encoding/decoding ( n=k and \pi(\mathcal{S})=\{\pi(I)\} ), and when the DD group has order 4^{k} (so \tilde{G}=\tilde{\mathcal{P}}_{k} and \tilde{G}^{\perp}=\{\pi(I)\} ). In this case \pi(\mathcal{S}\mathcal{L})=\tilde{\mathcal{P}}_{k} , so there are no detected errors ( \textup{D}=\textup{$\not\!\mathrm{S}$-D}=\textup{S-D}=0 ), and {\tilde{\mathcal{E}}_{c}}=\pi(\mathcal{S})=\{\pi(I)\} so there are no correctable non-stabilizer errors ( \textup{C}=\textup{$\not\!\mathrm{S}$-C}=\textup{S-C}=0 ). All non-identity Paulis are uncorrectable, and all are suppressed: \textup{$\not\!\mathrm{C}$}=\textup{$\not{\mathrm{St}}$}=(1+3z)^{n}-1 , \textup{S-\!$\not\!\mathrm{C}$}=\textup{S-$\not{\mathrm{St}}$}=(1+3z)^{n}-1 , \textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}=\textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}=0 . Therefore, Eq. 27 reduces to \displaystyle 1-F_{\rm LDD}\bigr|_{n=k} \displaystyle=\frac{1}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}\bigl(\textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}+p_{\rm DD}\textup{S-$\not{\mathrm{St}}$}\bigr) (28a) \displaystyle=1-F_{\rm DD}, (28b) in agreement with Eq. 17 . III.6 Comparison of LDD+QEC and QEC-only We next show that in order to decide which of F_{\rm Hyb} and F_{\rm QEC} is larger when p_{\rm QEC}=0 (ideal recovery), it suffices to compare two sector-wise fractions, and the conclusion is independent of the value of p_{\rm DD}\in[0,1) . Theorem 2 . Assume p_{\rm QEC}=0 and p_{\rm DD}\in[0,1) . Then, for any fixed z>0 , F_{\rm Hyb}>F_{\rm QEC}\iff\frac{\textup{S-\!$\not\!\mathrm{C}$}}{\textup{S}}>\frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}}. (29) We prove this using the following lemma: Lemma 3 . Let A,B,C,D be real numbers with C,D>0 , and define f(t)=\frac{A+tB}{C+tD} for t\in[0,1] . Then, for any t\in[0,1) , f(t)>f(1)\iff\frac{A}{C}>\frac{B}{D}. (30) Proof. Expanding (A+tB)(C+D)>(A+B)(C+tD) and canceling the common terms, we see that f(t)>f(1) is equivalent to (1-t)AD>(1-t)BC , which is equivalent to A/C>B/D (since 1-t>0 ). ∎ Proof of 2 . With p_{\rm QEC}=0 , 1 gives 1-F_{\rm Hyb}=\frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+p_{\rm DD}\textup{S-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}. (31) QEC-only corresponds to p_{\rm DD}=1 , i.e. 1-F_{\rm QEC}=\frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+\textup{S-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}+\textup{S}} . Applying 3 to f(t)=\frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}+t\textup{S-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}+t\textup{S}} yields 1-F_{\rm Hyb}<1-F_{\rm QEC}\ \iff\ \frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}}<\frac{\textup{S-\!$\not\!\mathrm{C}$}}{\textup{S}}, (32) which is equivalent to Eq. 29 . ∎ We now come to our central QEC-LDD result: a sufficient condition for when the hybrid protocol outperforms QEC alone: Corollary 1 . Assume \frac{\textup{S-\!$\not\!\mathrm{C}$}}{\textup{S}}>\frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}}. (33) Then F_{\rm Hyb}>F_{\rm QEC} for any fixed z>0 , any p_{\rm DD}\in[0,1) , and all sufficiently small p_{\rm QEC} (with the neighborhood size depending on z and p_{\rm DD} ). Proof. Fix z>0 and p_{\rm DD}\in[0,1) . Under the assumption Eq. 33 , 2 implies the strict inequality F_{\rm Hyb}\big|_{p_{\rm QEC}=0}>F_{\rm QEC}\big|_{p_{\rm QEC}=0}. (34) Now view F_{\rm Hyb} and F_{\rm QEC} as functions of the decoder-failure parameter p_{\rm QEC} (with z,p_{\rm DD} held fixed). By the closed-form expressions for F_{\rm Hyb} and F_{\rm QEC} , each is a rational function of p_{\rm QEC} with denominator strictly positive at p_{\rm QEC}=0 ; in particular, both are continuous at p_{\rm QEC}=0 . Therefore, the difference \Delta(p_{\rm QEC})\coloneqq F_{\rm Hyb}(p_{\rm QEC})-F_{\rm QEC}(p_{\rm QEC}) (35) is continuous at p_{\rm QEC}=0 and satisfies \Delta(0)>0 , so there exists \varepsilon>0 (depending on z and p_{\rm DD} ) such that \Delta(p_{\rm QEC})>0 for all p_{\rm QEC}\in[0,\varepsilon) . ∎ To interpret Eq. 33 , recall that \not\!\mathrm{S} and S are the total WEP weights of the unsuppressed and suppressed sectors, respectively, while \not\!\mathrm{S} -​ \not\!\mathrm{C} and S-​ \not\!\mathrm{C} are the WEP weights of the uncorrectable subsets within the respective sectors under ideal recovery. Thus, the ratio \textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}/\textup{$\not\!\mathrm{S}$} is the conditional probability (under the WEP weighting) that an error drawn from the unsuppressed sector is uncorrectable, and \textup{S-\!$\not\!\mathrm{C}$}/\textup{S} is the analogous conditional probability in the suppressed sector. The inequality Eq. 33 is therefore the assumption that the suppressed sector is, in this sense, more harmful: it contains a higher fraction of errors that would cause a logical fault even under ideal decoding. Since LDD multiplies the suppressed-sector contribution by the suppression factor p_{\rm DD}<1 while leaving the unsuppressed sector unchanged, it preferentially rescales (down-weights) the sector with the higher uncorrectable-error density. When decoder failures are sufficiently rare ( p_{\rm QEC} small), the logical infidelity is dominated by these ideal-decoding considerations, and this bias in what becomes suppressed yields the strict advantage F_{\rm Hyb}>F_{\rm QEC} . III.7 The limit of small p The general fidelity expressions we derived above are amenable to analysis in the limit of small error probability p . In this section we perform this analysis and establish the resulting hierarchy of fidelities of the different protocols. III.7.1 QEC-only Lemma 4 . Let \alpha\geq 1 be the minimal weight of an uncorrectable error (with respect to the fixed decoding map D ), and let a be the number of such errors of weight \alpha . Then asymptotically, as p\to 0 , Eq. 24 can be written as 1-F_{\rm QEC}=a(p/3)^{\alpha}+O(p^{\alpha+1})+p_{\rm QEC}\bigl(b(p/3)+O(p^{2})\bigr). (36) When \alpha\geq 2 (i.e., the decoder corrects all weight- 1 errors), the coefficient b satisfies \displaystyle b \displaystyle=(1-4^{-k})\bigl[3n-W_{1}\bigl(\pi(\mathcal{S})\bigr)\bigr] (37a) \displaystyle\geq 3k+15/4. (37b) Proof. For small p , we have z=\frac{p}{3-3p}=\frac{p}{3}\bigl(1+O(p)\bigr) . Write the WEPs from Eq. 24 as in Eq. 12 . Let \alpha=\min\bigl\{w\geq 0\big|W_{w}\bigl(\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}}\bigr)\neq 0\bigr\}\geq 1 (38) be the smallest weight of an uncorrectable error, and let a\coloneqq W_{\alpha}(\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}}) be the number of such weight- \alpha Paulis. Keeping only the leading-order term, \textup{$\not\!\mathrm{C}$}=W(\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}};z)=az^{\alpha}+O(z^{\alpha+1})=a(p/3)^{\alpha}+O(p^{\alpha+1}). (39) Next, note that \textup{A}=W(\tilde{\mathcal{P}}_{n};z)=(1+3z)^{n} , so \frac{1}{\textup{A}}=(1+3z)^{-n}=(1-p)^{n}=1+O(p). (40) Hence the prefactor 1/\textup{A} in Eq. 24 does not change the leading p^{\alpha} scaling. Since \textup{C}-4^{-k}\textup{D} is a polynomial in z with no constant term, we can write \textup{C}-4^{-k}\textup{D}=bz+O(z^{2}) (41) for some coefficient b . Substituting these observations into Eq. 24 yields Eq. 36 . Now assume \alpha\geq 2 . Then all weight- 1 Paulis are corrected to the trivial logical class, and the set {\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}) contains all weight- 1 Paulis that are not stabilizers. There are 3n weight- 1 Paulis in \tilde{\mathcal{P}}_{n} , so W_{1}({\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}))=3n-W_{1}(\pi(\mathcal{S})). (42) Also, \alpha\geq 2 implies there are no weight- 1 logical Paulis, so the weight- 1 part of \pi(\mathcal{S}\mathcal{L}) equals that of \pi(\mathcal{S}) : W_{1}(\pi(\mathcal{S}\mathcal{L}))=W_{1}(\pi(\mathcal{S})), (43) and therefore W_{1}(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S}\mathcal{L}))=3n-W_{1}(\pi(\mathcal{S})). (44) Using Eqs. 42 and 44 , we have C \displaystyle=W\bigl({\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S});z\bigr)=\bigl(3n-W_{1}(\pi(\mathcal{S}))\bigr)z+O(z^{2}), (45a) D \displaystyle=W\bigl(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S}\mathcal{L});z\bigr)=\bigl(3n-W_{1}(\pi(\mathcal{S}))\bigr)z+O(z^{2}). (45b) Combining with Eq. 41 gives Eq. 37a . To show Eq. 37b , first note that each weight- 1 stabilizer acts on a distinct physical qubit and hence contributes an independent stabilizer constraint, so W_{1}(\pi(\mathcal{S}))\leq n-k. (46) Therefore 3n-W_{1}(\pi(\mathcal{S}))\geq 3n-(n-k)=2n+k . Since \alpha\geq 2 implies the code can correct all weight- 1 errors, its distance satisfies d\geq 3 , and by the quantum Singleton bound n-k\geq 2(d-1)\geq 4 , i.e., n\geq k+4 . Hence 2n+k\geq 2(k+4)+k=3k+8 , so \displaystyle b \displaystyle=(1-4^{-k})\bigl[3n-W_{1}(\pi(\mathcal{S}))\bigr] (47a) \displaystyle\geq(1-4^{-k})(3k+8)\geq 3k+\frac{15}{4}, (47b) where the last inequality holds because 4^{-k}(3k+8)\leq 11/4 for all integers k\geq 1 . ∎ We can now compare the DD-phys and QEC-only strategies using Eqs. 9b and 36 . When both p_{\rm DD} and p_{\rm QEC} have fixed values in (0,1) , whether F_{\rm QEC} is larger or smaller than F_{\rm DD} , even in the limit p\to 0 , depends on the code and on the values of p_{\rm DD} and p_{\rm QEC} (through k and the coefficient b ). E.g., for p_{\rm DD}=p_{\rm QEC} , we have F_{\rm QEC}3k by Eq. 37b ]. One can also check that the order- p coefficient of \textup{$\not\!\mathrm{C}$}+\textup{C}-4^{-k}\textup{D} exceeds 3k even when \alpha=1 by a computation similar to the one at the end of the proof of 4 . On the other hand, if we assume that (1) p_{\rm QEC}=o(1) as p\to 0 , while p_{\rm DD}>0 is fixed; and (2) the decoder corrects all weight- 1 errors, i.e., \alpha\geq 2 , then F_{\rm QEC}>F_{\rm DD}\quad\text{for sufficiently small $p$}, (48) because 1-F_{\rm QEC}=o(p) , while 1-F_{\rm DD}=kpp_{\rm DD}+O(p^{2}) . III.7.2 LDD-only Lemma 5 . Asymptotically, as p\to 0 , Eq. 27 can be written as 1-F_{\rm LDD}=\bigl(a(1-p_{\rm DD})+bp_{\rm DD}\bigr)\frac{p}{3}+O(p^{2}), (49) where \displaystyle a \displaystyle=W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}))-4^{-k}W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}\mathcal{L}))\geq 0, (50a) \displaystyle b \displaystyle=\bigl(3n-W_{1}(\pi(\mathcal{S}))\bigr)-4^{-k}\bigl(3n-W_{1}(\pi(\mathcal{S}\mathcal{L}))\bigr). (50b) For the trivial code ( n=k , \pi(\mathcal{S})=\{\pi(I)\} , \pi(\mathcal{S}\mathcal{L})=\tilde{\mathcal{P}}_{k} ), one has b=3k . For any nontrivial code ( n>k and k\geq 1 ), one has b\geq 3k+\frac{3}{2}. (51) If the code distance satisfies d\geq 2 (equivalently, there are no weight- 1 logical Paulis), then \displaystyle a \displaystyle=(1-4^{-k})W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}))\geq 0, (52a) \displaystyle b \displaystyle=(1-4^{-k})\bigl(3n-W_{1}(\pi(\mathcal{S}))\bigr). (52b) Proof. We write WEPs from Eq. 27 as series in z [as in Eq. 12 ] and keep only the z^{1} order in the numerator and the z^{0} order in the denominator of Eq. 27 . After substituting z=\frac{p}{3-3p}=\frac{p}{3}+O(p^{2}) , only these terms are needed to evaluate 1-F_{\rm LDD} up to O(p^{2}) . The denominator terms are \not\!\mathrm{S} \displaystyle=W(\tilde{G}^{\perp};z)=1+W_{1}(\tilde{G}^{\perp})z+O(z^{2}), (53a) S \displaystyle=W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp};z\bigr)=\bigl[3n-W_{1}\bigl(\tilde{G}^{\perp}\bigr)\bigr]z+O(z^{2}), (53b) while the numerator terms are \not\!\mathrm{S} - \not{\mathrm{St}} \displaystyle=W(\tilde{G}^{\perp}\setminus\pi(\mathcal{S});z)=W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}))z+O(z^{2}), (54a) \not\!\mathrm{S} -D \displaystyle=W(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}\mathcal{L});z)=W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}\mathcal{L}))z+O(z^{2}), (54b) S- \not{\mathrm{St}} \displaystyle=W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus\pi(\mathcal{S});z\bigr) (54c) \displaystyle=\bigl[3n-W_{1}(\tilde{G}^{\perp}\cup\pi(\mathcal{S}))\bigr]z+O(z^{2}), (54d) S-D \displaystyle=W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus\pi(\mathcal{S}\mathcal{L});z\bigr) (54e) \displaystyle=\bigl[3n-W_{1}(\tilde{G}^{\perp}\cup\pi(\mathcal{S}\mathcal{L}))\bigr]z+O(z^{2}). (54f) Note that \displaystyle W_{1}(\tilde{G}^{\perp}\cup\pi(\mathcal{S}))-W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S})) \displaystyle=W_{1}(\pi(\mathcal{S})), (55) \displaystyle W_{1}(\tilde{G}^{\perp}\cup\pi(\mathcal{S}\mathcal{L}))-W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}\mathcal{L})) \displaystyle=W_{1}(\pi(\mathcal{S}\mathcal{L})). (56) Inserting the expansions into the numerator of Eq. 27 , we obtain \displaystyle{\rm numerator}= \displaystyle\quad z(1-p_{\rm DD})\bigl(W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}))-4^{-k}W_{1}(\tilde{G}^{\perp}\setminus\pi(\mathcal{S}\mathcal{L}))\bigr) \displaystyle\quad+zp_{\rm DD}\bigl(3n-W_{1}(\pi(\mathcal{S}))-4^{-k}(3n-W_{1}(\pi(\mathcal{S}\mathcal{L})))\bigr) \displaystyle\quad+O(z^{2}). (57) The denominator equals 1+O(z) and does not affect the linear coefficient in z . Comparing Section III.7.2 with Eq. 50 , we get 1-F_{\rm LDD}=\bigl(a(1-p_{\rm DD})+bp_{\rm DD}\bigr)z+O(z^{2}), (58) and substituting z=\frac{p}{3}+O(p^{2}) yields Eq. 49 . To show Eq. 51 for nontrivial codes, let l_{1}\coloneqq W_{1}(\pi(\mathcal{S})). (59) Case 1: l_{1}=0 . Then, since W_{1}(\pi(\mathcal{S}\mathcal{L}))\geq 0 , from Eq. 50 we have \displaystyle b \displaystyle=3n-4^{-k}\bigl(3n-W_{1}(\pi(\mathcal{S}\mathcal{L}))\bigr)\geq 3n-4^{-k}(3n) (60a) \displaystyle=(1-4^{-k})3n. (60b) For a nontrivial code n\geq k+1 , and therefore b\geq(1-4^{-k})3(k+1)=3k+3-\frac{3(k+1)}{4^{k}}. (61) For all integers k\geq 1 one has 4^{k}\geq 2(k+1) , hence 3-\frac{3(k+1)}{4^{k}}\geq 3-\frac{3}{2}=\frac{3}{2}, (62) which gives b\geq 3k+\frac{3}{2} . Case 2: l_{1}>0 . Any weight- 1 stabilizer acts nontrivially on a distinct physical qubit, and such stabilizers are independent. Remove the l_{1} qubits on which these weight- 1 stabilizers act, along with the corresponding l_{1} independent stabilizer generators; this yields a reduced code on n^{\prime}=n-l_{1} qubits encoding the same k logical qubits, and for the reduced code one has W_{1}(\pi(\mathcal{S}^{\prime}))=0 . Let b^{\prime} denote the coefficient b for the reduced code. For each removed qubit, the quantity 3n-W_{1}(\pi(\mathcal{S})) decreases by 3-1=2 (since n decreases by 1 and exactly one weight- 1 stabilizer element is removed). Moreover, on such a qubit the only weight- 1 element of \pi(\mathcal{S}\mathcal{L}) is that stabilizer itself (any other nontrivial single-qubit Pauli would anticommute with it), so W_{1}(\pi(\mathcal{S}\mathcal{L})) also decreases by 1 per removed qubit, and hence 3n-W_{1}(\pi(\mathcal{S}\mathcal{L})) decreases by 2 per removed qubit as well. Therefore b=b^{\prime}+\bigl(2-4^{-k}\cdot 2\bigr)l_{1}=b^{\prime}+(1-4^{-k})2l_{1}. (63) If the reduced code is trivial, then b^{\prime}=3k and b\geq 3k+(1-4^{-k})2l_{1}\geq 3k+\frac{3}{2}, (64) since l_{1}\geq 1 and k\geq 1 imply (1-4^{-k})2l_{1}\geq(1-\tfrac{1}{4})\cdot 2=\tfrac{3}{2} . If the reduced code is nontrivial, then by Case 1 we have b^{\prime}\geq 3k+\frac{3}{2} , hence b>3k+\frac{3}{2} . This proves Eq. 51 . Finally, when d\geq 2 there are no weight- 1 logical Paulis, so W_{1}(\pi(\mathcal{S}\mathcal{L}))=W_{1}(\pi(\mathcal{S})) . Substituting this into Eq. 50 yields the simplified expressions Eq. 52 . ∎ Comparing Eq. 49 with Eq. 9b , we have F_{\rm DD}-F_{\rm LDD}=\frac{p}{3}\Bigl[p_{\rm DD}(b-3k)+a(1-p_{\rm DD})\Bigr]+O(p^{2}). (65) By 5 , a\geq 0 , and moreover b=3k for the trivial code while for any nontrivial code one has b\geq 3k+\frac{3}{2} . Therefore, for any fixed p_{\rm DD}>0 and any nontrivial code the coefficient of p is strictly positive, so F_{\rm DD}>F_{\rm LDD}\quad\text{for sufficiently small $p$}, (66) with equality only in the trivial-code case. III.7.3 LDD+QEC Let us compare the asymptotic behavior of F_{\rm Hyb} with F_{\rm DD},F_{\rm LDD},F_{\rm QEC} when p\to 0 , p_{\rm QEC}=0 , and fixed p_{\rm DD}\in(0,1) . We already determined [ Eqs. 48 and 66 ] that in this case F_{\rm QEC}>F_{\rm DD}>F_{\rm LDD} for any code correcting single-qubit errors. The main tool for comparing F_{\rm Hyb} with F_{\rm QEC} is 2 . Theorem 3 . Assume p_{\rm QEC}=0 and p_{\rm DD}\in[0,1) . Let \alpha be the minimal weight of uncorrectable errors (i.e., the smallest w such that W_{w}(\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}})\neq 0 ), and let \beta\geq\alpha be the minimal weight of suppressed uncorrectable errors (i.e., the smallest w such that W_{w}\bigl((\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp})\setminus{\tilde{\mathcal{E}}_{c}}\bigr)\neq 0 ). Then: 1. If \beta=\alpha (equivalently, at least one minimal-weight uncorrectable error lies in the suppressed sector), then there exists p_{0}>0 such that for all p\in(0,p_{0}) we have F_{\rm Hyb}>F_{\rm QEC} . 2. Suppose \beta>\alpha and, among the weight- \alpha uncorrectable errors, there exists at least one error E^{\prime} with nonzero syndrome (equivalently, \syn(E^{\prime})\neq 0 ). Fix a decomposition \tilde{G}=\{I,g\}\tilde{G}_{1} with \tilde{G}_{1}\subsetneq\tilde{G} (such a decomposition always exists since \tilde{G} is a nontrivial \mathbb{F}_{2} -vector space under multiplication). Then there exists a stabilizer element S\in\pi(\mathcal{S}) such that, for \tilde{G}^{\prime}=\{I,gS\}\tilde{G}_{1} , the corresponding minimal suppressed-uncorrectable weight satisfies \beta^{\prime}=\alpha . In particular, \tilde{G}^{\prime} satisfies the condition of part 1. 3. Suppose the code distance d is at least 2 . Then \alpha\leq\left\lceil d/2\right\rceil\alpha and \tilde{G}=\pi(\mathcal{L}) . Then precondition \syn(E^{\prime})\neq 0 in 2 holds for any weight- \alpha uncorrectable error. Proof. We start by showing that \beta in the statement of the theorem is always well defined, i.e. that \tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus{\tilde{\mathcal{E}}_{c}}\neq\varnothing . Fix a deterministic Pauli decoder D(\sigma) . An error E^{\prime}\in\tilde{\mathcal{P}}_{n} is correctable iff D(\syn(E^{\prime}))E^{\prime}\in\pi(\mathcal{S}) . Thus, for each syndrome \sigma , the set of correctable errors is exactly the coset D(\sigma)\,\pi(\mathcal{S}) , which has |\pi(\mathcal{S})|=2^{n-k} elements. Since there are 2^{n-k} syndromes, |{\tilde{\mathcal{E}}_{c}}|=2^{n-k}\cdot 2^{n-k}=4^{n-k} and hence |\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}}|\;=\;4^{n}-4^{n-k}\;=\;4^{n}(1-4^{-k}). For a nontrivial code ( k\geq 1 ), this satisfies |\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}}|>4^{n}/2 . On the other hand, since \tilde{G} is nontrivial, \tilde{G}^{\perp}\subsetneq\tilde{\mathcal{P}}_{n} and in fact |\tilde{G}^{\perp}|\leq 4^{n}/2 (it is contained in the commutant of any fixed nonidentity element of \tilde{G} ). Therefore (\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}})\setminus\tilde{G}^{\perp} is nonempty, and hence \beta is well defined. We analyze the WEP ratios in the condition Eq. 29 from 2 in the limit z\to 0 (equivalently p\to 0 ). Eq. 53 gives \not\!\mathrm{S} \displaystyle=1+O(z),\quad\textup{S}=cz+O(z^{2}) (67a) \displaystyle c \displaystyle\coloneqq W_{1}(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp})=3n-W_{1}(\tilde{G}^{\perp})>0. (67b) Let A\coloneqq W_{\alpha}\bigl(\tilde{G}^{\perp}\setminus{\tilde{\mathcal{E}}_{c}}\bigr)\geq 0,\quad B\coloneqq W_{\beta}\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus{\tilde{\mathcal{E}}_{c}}\bigr)>0. (68) Then \textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}=Az^{\alpha}+O(z^{\alpha+1}),\quad\textup{S-\!$\not\!\mathrm{C}$}=Bz^{\beta}+O(z^{\beta+1}), (69) and therefore \frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}}=Az^{\alpha}+O(z^{\alpha+1}),\quad\frac{\textup{S-\!$\not\!\mathrm{C}$}}{\textup{S}}=\frac{B}{c}z^{\beta-1}+O(z^{\beta}). (70) If \beta=\alpha , then \frac{\textup{S-\!$\not\!\mathrm{C}$}}{\textup{S}}=\Theta(z^{\alpha-1}) while \frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}}=O(z^{\alpha}) , so for sufficiently small z>0 we have \frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}}<\frac{\textup{S-\!$\not\!\mathrm{C}$}}{\textup{S}} , and hence F_{\rm Hyb}>F_{\rm QEC} by 2 . This proves part 1. For part 2, assume \beta>\alpha and choose a weight- \alpha uncorrectable error E^{\prime} with nonzero syndrome. Since \beta>\alpha , all weight- \alpha suppressed-uncorrectable coefficients vanish, so such an E^{\prime} must lie in the unsuppressed sector \tilde{G}^{\perp} and therefore commutes with every element of \tilde{G} , in particular with g . Nonzero syndrome means there exists a stabilizer element S\in\pi(\mathcal{S}) such that E^{\prime} anticommutes with S . Then E^{\prime} anticommutes with gS (because it commutes with g and anticommutes with S ), so E^{\prime}\notin(\tilde{G}^{\prime})^{\perp} . Therefore E^{\prime} becomes a suppressed uncorrectable error of weight \alpha for \tilde{G}^{\prime} , implying \beta^{\prime}=\alpha . For part 3, note that uncorrectable errors E^{\prime} satisfying \syn(E^{\prime})=0 are known as nontrivial (i.e., non-stabilizer) logical operators, and recall that the code distance d is defined as the minimal distance of such operators. Let L^{\prime}\in\tilde{\mathcal{P}}_{n} be a weight- d nontrivial logical operator. Then L^{\prime}=E_{1}^{\prime}E_{2}^{\prime} for E_{1}^{\prime},E_{2}^{\prime} of weights \left\lfloor d/2\right\rfloor and \left\lceil d/2\right\rceil , respectively. Since \syn(L^{\prime})=0 , we have \syn(E_{1}^{\prime})=\syn(E_{2}^{\prime}) . Let \sigma\coloneqq\syn(E_{1}^{\prime})=\syn(E_{2}^{\prime}) . If both E_{1}^{\prime} and E_{2}^{\prime} were correctable, then D(\sigma)E_{1}^{\prime},D(\sigma)E_{2}^{\prime}\in\pi(\mathcal{S}) . Writing E_{i}^{\prime}=D(\sigma)^{-1}S_{i} with S_{i}\in\pi(\mathcal{S}) , we obtain L^{\prime}\;=\;E_{1}^{\prime}E_{2}^{\prime}\;=\;D(\sigma)^{-2}S_{1}S_{2}\;\in\;\pi(\mathcal{S}), (71) (using D(\sigma)^{2}=I in the phase-stripped Pauli group), which contradicts that L^{\prime} is a nontrivial logical operator. Therefore at least one of E_{1}^{\prime},E_{2}^{\prime} is uncorrectable. By definition, \alpha is the minimal weight of an uncorrectable error, hence \alpha\leq\max\bigl(\wt(E_{1}^{\prime}),\wt(E_{2}^{\prime})\bigr)=\left\lceil d/2\right\rceil. (72) Since d\geq 2 , we have \alpha\leq\left\lceil d/2\right\rceil\alpha , but \syn(E^{\prime})=0 for some weight- \alpha uncorrectable error E^{\prime} . Since \syn(E^{\prime})=0 , E^{\prime} is a logical operator. Since \beta>\alpha , we have W_{\alpha}(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp}\setminus{\tilde{\mathcal{E}}_{c}})=0 . Hence every weight- \alpha uncorrectable error lies in \tilde{G}^{\perp} and therefore commutes with all elements of \tilde{G} . With \tilde{G}=\pi(\mathcal{L}) , this means that the logical class of E^{\prime} commutes with all logical Paulis. For k\geq 1 , the center of the logical Pauli group is trivial, so E^{\prime} acts as the identity on the codespace. Together with \syn(E^{\prime})=0 , this implies E^{\prime}\in\pi(\mathcal{S}) , contradicting that E^{\prime} is uncorrectable. ∎ We can now describe an explicit “stabilizer-dressing” procedure to modify \tilde{G} when it does not satisfy the condition of part 1 of 3 , provided there exists a minimal-weight uncorrectable error with nonzero syndrome: (1) pick any generator list for \tilde{G} and let g be one generator; (2) pick any uncorrectable error E^{\prime} of minimal weight \alpha with \syn(E^{\prime})\neq 0 ; (3) find a stabilizer generator (or any stabilizer element) S\in\pi(\mathcal{S}) that anticommutes with E^{\prime} ; (4) replace g by gS and rebuild the decoupling group. The resulting group \tilde{G}^{\prime} has \beta^{\prime}=\alpha and therefore satisfies the condition of part 1, implying F_{\rm Hyb}>F_{\rm QEC} for sufficiently small p (with p_{\rm QEC}=0 ). Note that if all weight- \alpha uncorrectable errors have zero syndrome, i.e., are undetected logical errors, then multiplying DD generators by stabilizers cannot change their commutation relations with those errors; achieving \beta^{\prime}=\alpha then requires changing the logical decoupling group itself rather than only its stabilizer dressing. III.7.4 LDD+QEC vs QEC-only: examples when \beta>\alpha A clean sufficient condition for an asymptotic hybrid-protocol advantage is given by part 1 of 3 : if the leading uncorrectable weight in the unsuppressed sector and in the suppressed sector coincide ( \beta=\alpha ), then for sufficiently small p the hybrid protocol satisfies F_{\rm Hyb}>F_{\rm QEC} (for any fixed 0\leq p_{\rm DD}<1 ). An interesting question is what happens when this condition is violated. When \beta>\alpha , the theorem is generally inconclusive: the hybrid and QEC-only protocols share the same leading O(p^{\alpha}) scaling, and the ordering can depend on subleading terms that are sensitive to how uncorrectable errors are distributed between the suppressed and unsuppressed sectors. We give two examples below that are chosen to illustrate two qualitatively different mechanisms by which \beta=\alpha can fail. Our first example exhibits a structural mismatch between the chosen LDD group and the recovery map, so that the earliest suppressed uncorrectable events occur at a different weight than the earliest unsuppressed uncorrectable events; this places the hybrid-vs-QEC comparison in the delicate \beta>\alpha regime where an asymptotic advantage is not automatic. Our second example shows that \beta>\alpha can also be an artifact of the recovery/decoder choice: for simplicity, we use canonical syndrome representatives and a decoder that is convenient to describe analytically, but such a choice can be suboptimal once the effective noise has been modified by LDD. In particular, a decoder tailored to the original physical noise need not be optimal for the LDD-modified channel, and a suboptimal choice can mask an intrinsic hybrid-protocol advantage. Part 2 of 3 provides a concrete “way out” when the sufficient condition \beta=\alpha fails: under its hypotheses, one may dress an LDD generator by a stabilizer, which changes the suppressed/unsuppressed partition without changing the logical action of the decoupling cycle, and can enforce \beta^{\prime}=\alpha so that part 1 applies. In the examples below we keep the recovery map fixed and use the exact criterion of 2 to determine whether F_{\rm Hyb} exceeds F_{\rm QEC} when \beta>\alpha . Thus, the examples should be read not only as demonstrations that the \beta>\alpha regime can arise in natural and analytically tractable settings, but also as illustrations of why decoder choice can matter in this regime. Example 1: F_{\rm Hyb}\alpha and condition 1 of 3 is violated. Thus, 3 does not directly resolve the comparison of F_{\rm Hyb} and F_{\rm QEC} , and we instead rely on 2 . We have \frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}}=z^{2}+O(z^{3}), (73) since there is exactly one weight- 2 uncorrectable error and it is unsuppressed, and \frac{\textup{S-\!$\not\!\mathrm{C}$}}{\textup{S}}=\frac{b}{c}z^{3}+O(z^{4}), (74) where b is the number of suppressed uncorrectable weight- 4 errors and c=W_{1}(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp})=3n-W_{1}(\tilde{G}^{\perp}) is the number of suppressed weight- 1 Paulis (by assumption b,c>0 ). Thus, for sufficiently small z (equivalently, p ), \frac{\textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}}{\textup{$\not\!\mathrm{S}$}}>\frac{\textup{S-\!$\not\!\mathrm{C}$}}{\textup{S}} and, applying 2 , we conclude that F_{\rm Hyb}F_{\rm QEC} . Consider the following set of stabilizer generators and logical operators that define a [[13,1,3]] code: \displaystyle S_{0} \displaystyle={\rm\texttt{IIIIZIZXXZIXI}} (75) \displaystyle S_{1} \displaystyle={\rm\texttt{IIIXIIIYZYYYI}} \displaystyle S_{2} \displaystyle={\rm\texttt{IIIZYIYYIXIIY}} \displaystyle S_{3} \displaystyle={\rm\texttt{IXXXYZYIZZYZI}} \displaystyle S_{4} \displaystyle={\rm\texttt{IXXXZIXZXZZIX}} \displaystyle S_{5} \displaystyle={\rm\texttt{IXYZZXZXXXXZX}} \displaystyle S_{6} \displaystyle={\rm\texttt{IZZZIIZZYIIXY}} \displaystyle S_{7} \displaystyle={\rm\texttt{XXIZZIYZIIYIY}} \displaystyle S_{8} \displaystyle={\rm\texttt{XYZYYYXXYYZIY}} \displaystyle S_{9} \displaystyle={\rm\texttt{YXZZIYZZXZZZZ}} \displaystyle S_{10} \displaystyle={\rm\texttt{ZIZZXIZZZZXYI}} \displaystyle S_{11} \displaystyle={\rm\texttt{ZYYZIXIZZYIYY}} \displaystyle\bar{Z} \displaystyle={\rm\texttt{IIIYYYYZIXYXY}} \displaystyle\bar{X} \displaystyle={\rm\texttt{XXXXXXXXXIIII}} We pick \tilde{G}=\pi(\{I,\bar{X},\bar{Z},\bar{Y}\}) , where \bar{Y}=i\bar{X}\bar{Z} . We pick a decoding map D which is able to correct all weight- 1 errors and the following set of weight- 2 errors on the first 3 qubits: \{\texttt{IXZ},\texttt{IZX},\texttt{ZIX},\texttt{XIZ},\texttt{XZI},\texttt{ZXI}\} . This forces it to fail to correct the weight- 2 errors \{\texttt{ZYI},\texttt{ZIY},\texttt{IZY},\texttt{YZI},\texttt{YIZ},\texttt{IYZ}\} , because they differ from the previous set by ZZZ (on the first 3 qubits), which is a nontrivial logical operator (equivalent to \bar{Z} up to a stabilizer and phase). The errors ZZI , ZIZ , and IZZ are also uncorrectable because they produce the same syndrome as IIZ , IZI , and ZII respectively. All uncorrectable weight- 2 errors commute with \tilde{G} , so \alpha=2 . There are suppressed uncorrectable weight- 3 errors (e.g., ZZZ on the first 3 qubits), so \beta=3>\alpha . Thus, condition 1 of 3 is violated and we again rely on 2 to compare F_{\rm Hyb} and F_{\rm QEC} . Computing the relevant WEPs using a computer program (see Section V.1 ), we find \not\!\mathrm{S} -​ \not\!\mathrm{C} \displaystyle=9z^{2}+843z^{3}+O(z^{4}), (76a) \not\!\mathrm{S} \displaystyle=1+8z+186z^{2}+O(z^{3}), (76b) S-​ \not\!\mathrm{C} \displaystyle=2544z^{3}+O(z^{4}), (76c) S \displaystyle=31z+516z^{2}+O(z^{3}). (76d) In this case, \textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}/\textup{$\not\!\mathrm{S}$}=9z^{2}+O(z^{3}) and \textup{S-\!$\not\!\mathrm{C}$}/\textup{S}=(2544/31)z^{2}+O(z^{3}) , so \textup{$\not\!\mathrm{S}$-\!$\not\!\mathrm{C}$}/\textup{$\not\!\mathrm{S}$}<\textup{S-\!$\not\!\mathrm{C}$}/\textup{S} for sufficiently small z and, from 2 , we conclude that F_{\rm Hyb}>F_{\rm QEC} . Thus, in this case, despite \beta>\alpha , F_{\rm Hyb}>F_{\rm QEC} for small z . Indeed, evaluating 1-F_{\rm Hyb} and 1-F_{\rm QEC} directly using 1 and 24 , we find \displaystyle 1-F_{\rm Hyb} \displaystyle=9z^{2}+(771+2265p_{\rm DD})z^{3}+O(z^{4}), (77a) \displaystyle 1-F_{\rm QEC} \displaystyle=9z^{2}+3036z^{3}+O(z^{4}). (77b) Alternatively, one could obtain Eq. 77b by substituting p_{\rm DD}=1 into Eq. 77a . The conclusion is that, in this example, F_{\rm Hyb} is larger than F_{\rm QEC} by 2265(1-p_{\rm DD})z^{3}+O(z^{4}) . IV Error Detection IV.1 Setup The QEC results of Section III can be extended to the case of quantum error detection (QED). In QED, instead of correcting errors we discard the result whenever a nontrivial syndrome is detected. In particular, there is no decoding operation D . Thus, we are interested in two quantities: (1) the probability P_{A} of acceptance (i.e., the probability of measuring the trivial syndrome), (2) the fidelity of the post-selected output state conditioned on acceptance; throughout this section we use F to denote this quantity. The error model is similar to the QEC case: DD behaves the same; with probability (1-p_{\rm QED}) the syndrome is measured perfectly, otherwise the syndrome measurement outcome is completely random (uniform over the 2^{n-k} syndromes, so the probability of the trivial outcome is 2^{-(n-k)} ). Similarly to Table 1 for the QEC case, we list all WEPs that appear in this section in Table 2 . We emphasize that the distinction between QED in this section and QEC in the previous section refers to how the code is used, rather than the distance of the code: in principle, one can use a d=2 code in a QEC protocol (with the understanding that some weight- 1 errors will remain uncorrected), and, on the other hand, one can use a d\geq 3 code in a QED protocol (discarding the state whenever a nontrivial syndrome is detected instead of attempting to correct the state). tag weight enumerator set description A W\bigl(\tilde{\mathcal{P}}_{n};z\bigr)=(1+3z)^{n} all S W\bigl(\tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp};z\bigr) suppressed \not\!\mathrm{S} W\bigl(\tilde{G}^{\perp};z\bigr) unsuppressed St W\bigl(\pi(\mathcal{S});z\bigr) stabilizers L W\bigl(\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S});z\bigr) nontrivial logical StL W\bigl(\pi(\mathcal{S}\mathcal{L});z\bigr) all undetected (zero-syndrome) D W\bigl(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S}\mathcal{L});z\bigr) detected (nonzero syndrome) \not{\mathrm{St}} W\bigl(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S});z\bigr) non-stabilizers S-St W\bigl(\pi(\mathcal{S})\setminus\tilde{G}^{\perp};z\bigr) suppressed stabilizers \not\!\mathrm{S} -St W\bigl(\pi(\mathcal{S})\cap\tilde{G}^{\perp};z\bigr) unsuppressed stabilizers S-L W\bigl(\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S})\setminus\tilde{G}^{\perp};z\bigr) suppressed non-St logical \not\!\mathrm{S} -L W\bigl(\tilde{G}^{\perp}\cap\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S});z\bigr) unsuppressed non-St logical S-StL W\bigl(\pi(\mathcal{S}\mathcal{L})\setminus\tilde{G}^{\perp};z\bigr) suppressed all undetected \not\!\mathrm{S} -StL W\bigl(\pi(\mathcal{S}\mathcal{L})\cap\tilde{G}^{\perp};z\bigr) unsuppressed all undetected S-D W\bigl(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S}\mathcal{L})\setminus\tilde{G}^{\perp};z\bigr) suppressed detected \not\!\mathrm{S} -D W\bigl(\tilde{G}^{\perp}\cap\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S}\mathcal{L});z\bigr) unsuppressed detected S- \not{\mathrm{St}} W\bigl(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S})\setminus\tilde{G}^{\perp};z\bigr) suppressed non-stabilizers \not\!\mathrm{S} - \not{\mathrm{St}} W\bigl(\tilde{G}^{\perp}\setminus\pi(\mathcal{S});z\bigr) unsuppressed non-stabilizers Table 2: List of all WEPs that appear in the QED fidelity expressions. Each error set (middle column) is described in terms of its relation to DD and QED (right column) and is given a corresponding acronym tag (left column) aligned with the set description. We always evaluate each WEP at z=p/(3-3p) . We again consider four strategies: (1) DD on k physical qubits (no QEC encoding or postselection), (2) QED-only, (3) LDD-only, (4) hybrid LDD+QED. Here LDD-only means that we are using the same code as in “QED-only” and “LDD+QED”, but we are not using any postselection (so the acceptance probability is 1 by definition). Instead, states outside the code space are randomly projected back to the code space (equivalently, the projection of the state onto the orthogonal complement of the code space is replaced by a fully mixed state in the code space). DD and LDD-only cases are the same as in the QEC case. To avoid confusion with F_{\rm Hyb} from the previous section, we use the notation F_{\rm HybD} to denote the fidelity of the hybrid LDD+QED protocol. Lemma 6 (Hybrid LDD+QED: conditional fidelity and acceptance probability) . Consider the hybrid protocol in the error-detection setting described above: an encoded block undergoes (L)DD, followed by stabilizer syndrome measurement, and we accept iff the measured syndrome is trivial. Assume the effective Pauli noise model with parameter z=p/(3-3p) and the QED readout model in which the syndrome is reported correctly with probability 1-p_{\rm QED} and is otherwise uniformly random over the 2^{n-k} possible syndromes. If a detected (nonzero-syndrome) error is nevertheless accepted due to readout failure, we model the resulting logical operation as a uniformly random logical Pauli (equivalently, the output is maximally mixed on the codespace), so the probability of the trivial logical class is 4^{-k} . Then the entanglement infidelity conditioned on acceptance is 1-F_{\rm HybD}=\\ Q_{{\rm Hyb}}^{-1}\bigl((1-p_{\rm QED}(1-2^{k-n}))(\textup{$\not\!\mathrm{S}$-L}+p_{\rm DD}\textup{S-L})\\ +(1-4^{-k})2^{k-n}p_{\rm QED}(\textup{$\not\!\mathrm{S}$-D}+p_{\rm DD}\textup{S-D})\bigr), (78) and the acceptance probability is P_{A,{\rm Hyb}}=\frac{Q_{{\rm Hyb}}}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}, (79) where Q_{{\rm Hyb}}=\bigl((1-p_{\rm QED})(\textup{$\not\!\mathrm{S}$-StL}+p_{\rm DD}\textup{S-StL})\\ +2^{k-n}p_{\rm QED}(\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S})\bigr). (80) All WEP tags are as in Table 2 . Proof. Let E^{\prime}\in\tilde{\mathcal{P}}_{n} denote the effective Pauli error after the waiting/(L)DD step. As in the QEC setting, under our Pauli model the (unnormalized) probability weight of a subset A\subseteq\tilde{\mathcal{P}}_{n} is proportional to its WEP W(A;z) , with the additional DD factor p_{\rm DD} for suppressed errors. Hence the total weight of all errors is \textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S} . Acceptance probability. There are 2^{n-k} stabilizer syndromes, so if the readout is uniformly random then the probability to report the trivial syndrome is 2^{-(n-k)} . We consider the two readout branches. 1. Ideal readout (probability 1-p_{\rm QED} ). Acceptance occurs iff the true syndrome is trivial, i.e., iff E^{\prime}\in\pi(\mathcal{S}\mathcal{L}) . The corresponding acceptance weight is \textup{$\not\!\mathrm{S}$-StL}+p_{\rm DD}\textup{S-StL} . 2. Random readout (probability p_{\rm QED} ). Independently of E^{\prime} , the protocol accepts with probability 2^{k-n} , so the corresponding acceptance weight is 2^{k-n}(\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}) . Multiplying by the respective branch probabilities and adding yields Eq. 80 . Dividing by the total weight \textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S} gives Eq. 79 . Conditional logical infidelity. We now count accepted events that produce a nontrivial logical Pauli on the k -qubit logical subsystem, and then condition on acceptance. Again we split into the two readout branches. 1. Ideal readout (probability 1-p_{\rm QED} ). Conditioned on acceptance, we necessarily have E^{\prime}\in\pi(\mathcal{S}\mathcal{L}) . Such an accepted error produces a logical fault iff it is a non-stabilizer logical Pauli, i.e., iff E^{\prime}\in\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S}) , whose WEP contribution is \textup{$\not\!\mathrm{S}$-L}+p_{\rm DD}\textup{S-L} . Thus the ideal-readout branch contributes the logical-fault weight (1-p_{\rm QED})(\textup{$\not\!\mathrm{S}$-L}+p_{\rm DD}\textup{S-L}). (81) 2. Random readout (probability p_{\rm QED} ). Acceptance occurs with probability 2^{k-n} irrespective of E^{\prime} . (i) If E^{\prime}\in\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S}) (non-stabilizer logical), then whenever we accept we keep a state with a nontrivial logical Pauli applied, so this contributes 2^{k-n}p_{\rm QED}(\textup{$\not\!\mathrm{S}$-L}+p_{\rm DD}\textup{S-L}). (82) (ii) If E^{\prime}\notin\pi(\mathcal{S}\mathcal{L}) (detected error), then an acceptance event corresponds to a readout failure. By assumption, in this case the induced logical Pauli is uniform over the 4^{k} logical classes, so the probability of the trivial class is 4^{-k} and the probability of a logical fault is 1-4^{-k} . The accepted detected errors have WEP weight \textup{$\not\!\mathrm{S}$-D}+p_{\rm DD}\textup{S-D} , hence this contributes (1-4^{-k})2^{k-n}p_{\rm QED}(\textup{$\not\!\mathrm{S}$-D}+p_{\rm DD}\textup{S-D}). (83) Combining Eqs. 81 and 82 yields the total coefficient (1-p_{\rm QED})+2^{k-n}p_{\rm QED}=1-p_{\rm QED}(1-2^{k-n}) in front of (\textup{$\not\!\mathrm{S}$-L}+p_{\rm DD}\textup{S-L}) . Adding Eq. 83 gives the numerator in Eq. 78 . Conditioning on acceptance divides by the acceptance weight Q_{\rm Hyb} , completing the proof of Eq. 78 . ∎ Corollary 2 (QED-only) . Setting p_{\rm DD}=1 in 6 yields the QED-only expressions 1-F_{\rm QED}=Q_{{\rm QED}}^{-1}\bigl((1-p_{\rm QED}(1-2^{k-n}))\textup{L}\\ +(1-4^{-k})2^{k-n}p_{\rm QED}\textup{D}\bigr) (84) and P_{A,{\rm QED}}=\frac{Q_{{\rm QED}}}{\textup{A}}, (85) where Q_{{\rm QED}}=(1-p_{\rm QED})\textup{StL}+2^{k-n}p_{\rm QED}\textup{A}. (86) Proof. When p_{\rm DD}=1 , the suppressed/unsuppressed split recombines as follows: \textup{$\not\!\mathrm{S}$}+\textup{S}=\textup{A} , \textup{$\not\!\mathrm{S}$-StL}+\textup{S-StL}=\textup{StL} , \textup{$\not\!\mathrm{S}$-L}+\textup{S-L}=\textup{L} , and \textup{$\not\!\mathrm{S}$-D}+\textup{S-D}=\textup{D} . Substituting these identities and p_{\rm DD}=1 into Eqs. 80 , 78 and 79 gives Eqs. 86 , 84 and 85 . ∎ Corollary 3 (LDD-only) . In the LDD-only strategy (no postselection), one has P_{A,{\rm LDD}}=1 and 1-F_{\rm LDD}=\\ \frac{\textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}+p_{\rm DD}\textup{S-$\not{\mathrm{St}}$}-4^{-k}(\textup{$\not\!\mathrm{S}$-D}+p_{\rm DD}\textup{S-D})}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}. (87) Proof. By definition of LDD-only in this section, the output is always mapped back to the codespace by replacing any out-of-codespace component with the maximally mixed codespace state. Thus stabilizer errors contribute no logical fault, non-stabilizer logical errors contribute with full weight, and detected errors contribute a logical fault with probability 1-4^{-k} . Using the decompositions \textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}=\textup{$\not\!\mathrm{S}$-L}+\textup{$\not\!\mathrm{S}$-D} and \textup{S-$\not{\mathrm{St}}$}=\textup{S-L}+\textup{S-D} , the logical-fault weight is (\textup{$\not\!\mathrm{S}$-L}+p_{\rm DD}\textup{S-L})+(1-4^{-k})(\textup{$\not\!\mathrm{S}$-D}+p_{\rm DD}\textup{S-D})=(\textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}+p_{\rm DD}\textup{S-$\not{\mathrm{St}}$})-4^{-k}(\textup{$\not\!\mathrm{S}$-D}+p_{\rm DD}\textup{S-D}) , and dividing by the total weight \textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S} yields Eq. 87 . ∎ Note that LDD-only is inequivalent to setting p_{\rm QED}=1 (or any other value) in the hybrid LDD+QED expressions, because p_{\rm QED} models imperfect syndrome readout and postselection, whereas LDD-only omits the postselection step entirely. Corollary 4 (DD-only) . For DD applied to k physical qubits (no encoding, no postselection), the fidelity is F_{\rm DD}=\bigl(1+p_{\rm DD}\bigl((1+3z)^{k}-1\bigr)\bigr)^{-1}, (88) and P_{A,{\rm DD}}=1 . Proof. This is identical to the DD-only case in the QEC setting [ Eq. 9b ], since it depends only on the single-qubit Pauli error model and not on whether one later performs correction or detection. ∎ IV.2 Modified protocol based on partial order We define a partial order on pairs (F,P_{A}) by writing (F_{1},P_{A,1})\succeq(F_{2},P_{A,2}) iff F_{1}\geq F_{2} and P_{A,1}(F_{1}-4^{-k})\geq P_{A,2}(F_{2}-4^{-k}) , where F-4^{-k} is the fidelity excess above the maximally mixed k -qubit state. These conditions ensure that scenario 1 is at least as good as scenario 2 in the following operational sense: we can simulate scenario 2 using scenario 1 by optionally discarding accepted runs (to reduce acceptance) and, if P_{A,1}F_{\rm QED} and \bigl(F_{\rm HybD},P_{A,{\rm Hyb}}\bigr)\succ\bigl(F_{\rm QED},P_{A,{\rm QED}}\bigr) for any z>0 . Proof. When \tilde{G}=\pi(\mathcal{L}) , any nontrivial logical Pauli anticommutes with some element of \tilde{G} , while all stabilizers commute with \tilde{G} . Hence \textup{$\not\!\mathrm{S}$-L}=0 and \textup{S-St}=0 , while \textup{$\not\!\mathrm{S}$-StL}=\textup{$\not\!\mathrm{S}$-{St}}=\textup{St} . Substituting these into Eqs. 89 and 90 shows that both inequalities hold (strictly for any z>0 ). ∎ Similarly to 1 , by continuity, if there is a strict inequality for p_{\rm QED}=0 , then it also holds for sufficiently small p_{\rm QED}>0 . IV.4 The limit of small p Similarly to Section III.7 , we can analyze the asymptotic behavior of 1-F and P_{A} in the limit z\to 0 (which corresponds to p\to 0 ). This leads to the following result: Lemma 7 . Let d\geq 2 be the distance of the code (i.e., the minimum weight of an element in \pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S}) ), and let a\coloneqq W_{d}\bigl(\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S})\bigr) be the number of weight- d nontrivial logical Paulis (as counted in the WEP). Then, in the limit z\to 0 (with any dependence of p_{\rm QED} on z ), the infidelity and rejection probability have the following asymptotic behavior: \displaystyle 1-F_{\rm QED} \displaystyle=\frac{az^{d}+(1-4^{-k})2^{k-n}(3n-W_{1}(\pi(\mathcal{S})))p_{\rm QED}z+O(z^{d+1}+p_{\rm QED}z^{2})}{1-(1-2^{k-n})p_{\rm QED}} (105a) \displaystyle=az^{d}+(1-4^{-k})2^{k-n}(3n-W_{1}(\pi(\mathcal{S})))p_{\rm QED}z+O(z^{d+1}+p_{\rm QED}z^{2}+p_{\rm QED}^{2}z) (105b) \displaystyle 1-P_{A,{\rm QED}} \displaystyle=(1-2^{k-n})p_{\rm QED}+(3n-W_{1}(\pi(\mathcal{S})))z+O(z^{2}+zp_{\rm QED}). (105c) The expansion for 1-F_{\rm QED} separates two conceptually different contributions. The term az^{d} is the “ideal QED” contribution: conditioned on accepting the trivial syndrome, the leading logical faults come from undetected logical Paulis of minimum weight d . The linear-in- z term proportional to p_{\rm QED} is instead induced by QED failure: when the syndrome-extraction step fails, a detected physical error can be accepted, and for small z the dominant such contribution comes from weight- 1 detected Paulis. The coefficient 3n-W_{1}(\pi(\mathcal{S})) is exactly the number of weight- 1 Paulis that are not stabilizers (and hence would be rejected under ideal detection). Similarly, the rejection probability has a constant term (1-2^{k-n})p_{\rm QED} coming from QED failure even when z=0 : upon failure we model the syndrome as random, so acceptance occurs only with probability 2^{k-n} . The linear term (3n-W_{1}(\pi(\mathcal{S})))z is the physical-noise contribution to rejection under ideal detection, again dominated by weight- 1 detected Paulis. Let us now prove 7 . Proof. We expand Eqs. 86 , 84 and 85 in the limit z\to 0 . First, \textup{A}=W(\tilde{\mathcal{P}}_{n};z)=(1+3z)^{n}=1+3nz+O(z^{2}). (106) Next, since \pi(\mathcal{S}\mathcal{L}) contains the identity, \textup{StL}\equiv W(\pi(\mathcal{S}\mathcal{L});z)=1+W_{1}(\pi(\mathcal{S}\mathcal{L}))z+O(z^{2}). (107) Also, by definition \textup{D}\equiv W(\tilde{\mathcal{P}}_{n}\setminus\pi(\mathcal{S}\mathcal{L});z)=\textup{A}-\textup{StL} , so \textup{D}=\bigl(3n-W_{1}(\pi(\mathcal{S}\mathcal{L}))\bigr)z+O(z^{2}). (108) For \textup{L}\equiv W(\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S});z) , the code distance assumption implies that W_{w}(\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S}))=0 for all w0 one has 1-F_{\rm DD}=\Theta(z) , while 5 implies that for any nontrivial code the linear coefficient of 1-F_{\rm LDD} is strictly larger than that of 1-F_{\rm DD} , so the conclusion Eq. 66 continues to hold in the QED setting: F_{\rm DD}>F_{\rm LDD} for all sufficiently small p and any nontrivial code. By contrast, 7 shows that for a distance- d code with d\geq 2 , 1-F_{\rm QED}=az^{d}+O(p_{\rm QED}z), (115) so if p_{\rm QED}=o(1) as z\to 0 then 1-F_{\rm QED}=o(z) . Since 1-F_{\rm DD}=\Theta(z) for fixed p_{\rm DD}>0 , it follows that F_{\rm QED}>F_{\rm DD}>F_{\rm LDD} (116) for all sufficiently small p and any nontrivial code with d\geq 2 and p_{\rm QED}=o(1) . Finally, the hybrid LDD+QED protocol reduces to QED-only when p_{\rm DD}=1 , and for p_{\rm DD}\in[0,1) it is compared to QED-only by 4 : depending on the code and the chosen logical decoupling group, LDD can either improve or degrade the conditional fidelity relative to QED-only. In particular, whenever the fidelity condition in 4 holds (so that F_{\rm HybD}\geq F_{\rm QED} ), we obtain the sharpened low- p hierarchy F_{\rm HybD}\geq F_{\rm QED}>F_{\rm DD}>F_{\rm LDD} (117) for all sufficiently small p (under the same assumptions as above). V Numerical Simulations This section numerically evaluates the closed-form fidelity expressions derived in Sections III and IV and uses the resulting plots to (i) illustrate the theorem regimes and (ii) explore parameter settings beyond the small- p assumptions that underlie parts of the asymptotic analysis. Throughout, we compare four memory strategies: (i) physical DD applied to k unencoded qubits (here k=1 ), (ii) LDD-only (as defined in Section II , i.e., LDD followed by syndrome extraction but with deterministic recovery skipped, corresponding to p_{\rm QEC}=1 in our model), (iii) QEC without LDD, and (iv) the hybrid protocol LDD+QEC. V.1 Methodology All plots are generated by direct numerical evaluation of the analytic formulas for the entanglement fidelities F_{\rm DD} , F_{\rm LDD} , F_{\rm QEC} , and F_{\rm Hyb} [see Eqs. 17 , 27 , 24 and 1 ]. We implement the relevant weight enumerator polynomials for the tagged Pauli subsets defined in Tables 1 and 2 and evaluate the resulting polynomial expressions as functions of the physical error probability p , the DD suppression parameter p_{\rm DD} , and the phenomenological recovery (or detection) failure rate p_{\rm QEC} (or p_{\rm QED} ). The polynomial arithmetic is handled using NumPy’s Polynomial class NumPy Developers 2025 . To compare strategies in the (p_{\rm DD},p_{\rm QEC}) plane we use the logical failure probability \epsilon\coloneqq 1-F, (118) and plot the relative improvement of the hybrid method over a comparator strategy, R\coloneqq\log_{10}\frac{\epsilon_{\mathrm{comp}}}{\epsilon_{\mathrm{hyb}}}. (119) Here R>0 indicates that LDD+QEC has lower logical failure probability than the comparator, while R<0 indicates the opposite. Figure 1: Logical failure probability for our four strategies using the [[7,1,3]] code and the decoding map of Appendix D , shown as a function of the physical Pauli error probability p for (a) p_{\rm DD}=0.1 , (b) p_{\rm DD}=0.01 , (c) p_{\rm DD}=0.001 , with perfect recovery ( p_{\rm QEC}=0 ). For sufficiently small- p , LDD+QEC achieves the lowest logical failure probability among the encoded strategies, in agreement with 3 . V.2 Steane [[7,1,3]] code We first use the [[7,1,3]] Steane code with the recovery map specified in Appendix D . This recovery corrects all single-qubit Pauli errors and additionally corrects a subset of weight-2 errors (42 nontrivial weight-2 Pauli errors for the chosen decoding map). Unless stated otherwise, the “standard” LDD group is generated by the conventional logical operators \langle X_{L},Z_{L}\rangle=\langle\texttt{XXXXXXX},\texttt{ZZZZZZZ}\rangle . V.2.1 Ideal recovery regime ( p_{\rm QEC}=0 ) Figure 1 shows the logical failure probability as a function of the physical Pauli error probability p for three suppression strengths p_{\rm DD}\in\{0.1,0.01,0.001\} in the ideal-recovery setting p_{\rm QEC}=0 . Each panel compares four strategies: physical DD on a single unencoded qubit (DD-phys), LDD-only on the encoded block, QEC-only, and the hybrid LDD+QEC protocol. Two qualitative features are apparent. First, in the low-noise regime the encoded strategies (QEC-only and LDD+QEC) eventually outperform the uncorrected strategies (DD-phys and LDD-only) as p decreases. This is because with p_{\rm QEC}=0 the recovery map removes all errors in the correctable set exactly, so both QEC-only and LDD+QEC fail only due to uncorrectable errors; consequently, their small- p behavior is governed by the minimum weight of an uncorrectable error for the chosen recovery map, leading to a higher-order power-law scaling in p . By contrast, DD-phys and LDD-only do not include an active correction step, so their logical failure probabilities remain dominated by lower-weight errors and scale more like O(p) (up to p_{\rm DD} -dependent prefactors). The resulting separation in slopes on the log-log plots explains why the encoded strategies dominate as p\to 0 in every panel. Second, within the encoded strategies, the hybrid protocol consistently improves upon QEC-only in the plotted range. Importantly, this ordering is not a small- p statement: 2 provides an exact criterion at p_{\rm QEC}=0 for each fixed p , given by Eq. 29 . Recall that this criterion means that LDD+QEC is advantageous precisely when the suppressed sector contains a larger fraction of uncorrectable errors than the unsuppressed sector, so that suppressing that sector preferentially targets the errors that survive perfect recovery. In the present Steane-code example (with the specified recovery map and LDD choice), this mechanism manifests visually as the blue curve lying below the red curve throughout the displayed p range. In the small- p limit, the same mechanism reduces to a constant-factor (prefactor) improvement: QEC-only and LDD+QEC share the same leading power of p set by the minimum uncorrectable weight, but LDD reduces the coefficient by suppressing a subset of the uncorrectable contributions. Finally, the comparison with DD-phys highlights the role of p_{\rm DD} . At larger physical error rates, DD-phys can yield a lower logical failure probability than the encoded strategies, because it directly suppresses the physical error channel while the finite-distance code and recovery map admit many higher-weight uncorrectable errors whose total probability grows rapidly with p . Decreasing p_{\rm DD} strengthens DD suppression and therefore shifts the orange DD-phys curve downward, pushing the crossover with the encoded curves to smaller values of p (and, in the formal limit p_{\rm DD}\to 0 of perfect suppression in this effective model, favoring DD-phys over an increasingly wide p range). The LDD-only strategy remains uncompetitive in these plots because, without an error-correction step, encoding alone does not prevent low-weight errors from producing logical failure. Low- p regime Index \mathbf{X_{L}} \mathbf{Z_{L}} 2084 YXYXYXY XZXZXZX 2308 ZXZXZXZ YZYZYZY 2605 YXYYXYX XZXXZXZ 2885 ZXZZXZX YZYYZYZ 3126 YYXXYYX XXZZXXZ 3462 ZZXXZZX YYZZYYZ 3647 YYXYXXY XXZXZZX 4039 ZZXZXXZ YYZYZZY Intermediate- p regime Index \mathbf{X_{L}} \mathbf{Z_{L}} 665 XIIYYZZ ZIIXXYY 721 XIIZZYY ZIIYYXX High- p regime Index \mathbf{X_{L}} \mathbf{Z_{L}} 72 XXXIIII ZZZIIII Table 3: Representative LDD generating sets that minimize (or nearly minimize) the logical failure probability of LDD+QEC in different p regimes for the imperfect-recovery setting p_{\rm QEC}>0 in Fig. 2 (left). Figure 2: Panels (a) and (b): comparison of LDD+QEC performance for different choices of LDD generators using the [[7,1,3]] code at fixed p_{\rm DD}=0.01 . (a) Imperfect recovery p_{\rm QEC}=0.01 . (b) Perfect recovery p_{\rm QEC}=0 . The generating sets shown are: LDD group 2084 generated by \langle\texttt{YXYXYXY},\texttt{XZXZXZX}\rangle ; LDD group 665 generated by \langle\texttt{XIIYYZZ},\texttt{ZIIXXYY}\rangle ; LDD group 72 generated by \langle\texttt{XXXIIII},\texttt{ZZZIIII}\rangle ; and the standard choice \langle\texttt{XXXXXXX},\texttt{ZZZZZZZ}\rangle . The identity of the best-performing LDD group depends on both p and p_{\rm QEC} , illustrating that LDD should be co-designed with the recovery map and the expected recovery imperfection level. (c) Protocol comparison for p_{\rm QEC}=\sqrt{p} . Although p_{\rm QEC}=\sqrt{p} is outside the perfect-recovery setting of 2 , the hybrid LDD+QEC protocol remains favorable in the small- p regime for the parameters shown. V.2.2 Dependence on the LDD generating set The performance of LDD+QEC depends not only on the code and the recovery map, but also on the specific representatives chosen for the logical generators that define the LDD group. For a single-logical-qubit stabilizer code, an LDD group is specified by a choice of (X_{L},Z_{L}) in the normalizer. Multiplying either representative by an element of the stabilizer yields an equivalent logical action, but it can change the physical support of the applied pulses and therefore change which physical Pauli errors commute with the decoupling group (and hence which faults lie in the suppressed vs unsuppressed sectors in our effective model). For the [[7,1,3]] code, the stabilizer has size 2^{n-k}=64 , so there are 64^{2}=4096 stabilizer-equivalent choices of (X_{L},Z_{L}) and thus many distinct candidate LDD groups to consider. Figure 2 illustrates this dependence by comparing several representative LDD choices at fixed p_{\rm DD}=0.01 . The plotted generating sets (defined in the caption) are selected to be optimal or near-optimal in different noise regimes among the 4096 possibilities. The left panel uses imperfect recovery ( p_{\rm QEC}=0.01 ), whereas the right panel uses perfect recovery ( p_{\rm QEC}=0 ). The qualitative difference between the two panels can be understood by identifying which errors mechanisms dominate the logical failure probability in each setting. Figure 3: Relative improvement R=\log_{10}(\epsilon_{\mathrm{comp}}/\epsilon_{\mathrm{hyb}}) for the [[7,1,3]] code at fixed p=10^{-3} , comparing LDD+QEC against (a) DD-phys, (b) LDD-only, and (c) QEC-only. Green (red) indicates parameter regions where LDD+QEC has lower (higher) logical failure probability than the comparator. Contours mark the boundary R=0 for several values of p (as labeled), illustrating how the advantage region evolves as p decreases. In (c), LDD+QEC is dominant in the entire (p_{\rm DD},p_{\rm QEC}) plane for all values of p\in[10^{-6},0.1] . In the left panel of Fig. 2 , recovery is imperfect, so even correctable physical errors can lead to logical failure with probability proportional to p_{\rm QEC} . In particular, for small p the dominant contribution can come from events in which a low-weight (typically weight- 1 ) Pauli error occurs during the memory interval and the recovery step fails; schematically, these contributions scale like p_{\rm QEC}p and can dominate uncorrectable-error contributions that scale like p^{2} when p\ll p_{\rm QEC} . In this low- p regime, the best-performing LDD choices are therefore those that most strongly suppress the most likely low-weight errors and (to the extent possible) also suppress the subset of low-weight uncorrectable faults induced by the particular decoding map. This is the role played by LDD group 2084 (defined in Table 3 ) in Fig. 2 (a). As p increases into an intermediate regime, multi-qubit errors become more probable and the logical failure probability becomes increasingly influenced by higher-weight uncorrectable contributions rather than by recovery failures on otherwise correctable faults. Accordingly, the optimal LDD choice shifts toward groups that suppress a larger share of the uncorrectable (and typically higher-weight) errors relevant to the chosen recovery map, even if they do not prioritize suppressing every single-qubit error. This shift is exemplified by the emergence of LDD group 665 as the best performer over much of the intermediate- p range in the left panel. At still larger p , additional groups can become optimal within LDD+QEC (see Table 3 ), although in that regime the encoded strategies may cease to be competitive with DD-phys (see Fig. 1 ), so the optimal choice of LDD group is less operationally relevant. The right panel of Fig. 2 concerns the opposite limit: perfect recovery ( p_{\rm QEC}=0 ). In this case all correctable errors contribute zero logical failure probability, and the dominant contributions come from uncorrectable errors (beginning at the minimum uncorrectable weight for the chosen recovery map). Consequently, LDD groups that primarily suppress errors that are already correctable provide little benefit, whereas groups that preferentially suppress the uncorrectable sector yield the largest improvement. This explains why a single LDD choice (here, group 665) can dominate over nearly the entire p range in Fig. 2 (b). In other words, the best LDD generators depend on p_{\rm QEC} because p_{\rm QEC} changes which error classes are most responsible for logical failure. Finally, Table 3 summarizes this behavior for the imperfect-recovery setting by listing representative LDD choices that minimize (or nearly minimize) the logical failure probability within the low-, intermediate-, and high- p regimes of Fig. 2 (a). In our scan over the 4096 stabilizer-equivalent possibilities, these regimes typically contain small families of near-degenerate optima; the table reports representative members of those families rather than an exhaustive list. Overall, these results reinforce that the best LDD group is the one that suppresses the errors that actually dominate logical failure for the chosen recovery map and the given (or expected) recovery imperfection level. V.2.3 Imperfect recovery Realistic implementations of QEC are imperfect, and even phenomenologically small recovery failure rates can qualitatively change which error mechanisms dominate the logical failure probability. When p_{\rm QEC}>0 , an error that would otherwise be correctable can still lead to logical failure if the recovery step fails. Consequently, the logical failure probability can receive contributions of order p_{\rm QEC}p from single-qubit errors followed by recovery failure, in addition to the purely uncorrectable-fault contributions that scale as p^{\alpha} in the perfect-recovery model. This motivates exploring hybrid performance outside the idealized p_{\rm QEC}=0 setting of 2 , and more broadly, understanding how the interplay between (p,p_{\rm DD},p_{\rm QEC}) shapes the relative ordering of strategies. As a representative example, Fig. 2 (c) sets p_{\rm QEC}=\sqrt{p} to deliberately model a regime in which recovery faults vanish with p but do not become negligible fast enough for the perfect-recovery asymptotics to apply. In particular, for the present decoding map the perfect-recovery logical failure probability is governed by uncorrectable errors beginning at weight \alpha (leading to O(p^{\alpha}) behavior), whereas the p_{\rm QEC}p contribution scales as p^{3/2} under p_{\rm QEC}=\sqrt{p} and can dominate the small- p behavior when \alpha\geq 2 . Figure 2 (c) shows that, even in this imperfect-recovery setting, LDD+QEC remains favorable in the low-noise regime for the parameters shown. Intuitively, the hybrid protocol benefits from both mechanisms: QEC removes errors in the correctable set when recovery succeeds, while LDD reduces the rate at which errors (including low-weight ones that become harmful when recovery fails) occur in the first place. Figure 4: Logical failure probability for our protocols using a [[13,1,3]] code with perfect recovery ( p_{\rm QEC}=0 ) and (a) p_{\rm DD}=0.1 , (b) p_{\rm DD}=0.01 , (c) p_{\rm DD}=0.001 . For the LDD generators used here, we have \beta>\alpha in the notation of 3 (no minimal-weight uncorrectable error lies in the suppressed sector), i.e., the sufficient low- p condition \beta=\alpha is not satisfied, and correspondingly the LDD+QEC and QEC-only curves approach one another as p\to 0 . In all other respects the protocol ordering and overall scaling behavior is qualitatively similar to that of the Steane code shown in Fig. 1 . To map where this advantage persists, Figure 3 sweeps the parameters (p_{\rm DD},p_{\rm QEC}) at fixed p=10^{-3} and compares LDD+QEC pairwise against DD-phys, LDD-only, and QEC-only using the relative-improvement metric R defined in Eq. 119 . Green regions ( R>0 ) indicate parameter settings where the hybrid method has lower logical failure probability than the comparator, while red regions ( R<0 ) indicate the opposite. The contour lines mark the boundary R=0 for several other values of p (as labeled) and therefore summarize how the advantage region (always to the right of the contour line) evolves as the physical noise strength decreases. Two trends are particularly relevant. First, at fixed p there can be a region in which DD-phys outperforms encoded strategies when DD is sufficiently effective (small p_{\rm DD} ), reflecting the fact that strong physical suppression can be more valuable than a finite-distance encoding when the physical error rate is not yet in the regime where the code distance yields a large separation in logical failure. Second, as p decreases, the R=0 contours shift toward smaller p_{\rm DD} and/or smaller p_{\rm QEC} , indicating that the region in which LDD+QEC outperforms the comparator expands in the low-noise regime. This behavior is consistent with the design principle emphasized throughout this work: hybrid-protocol benefit becomes most pronounced when logical decoupling suppresses the error classes that dominate logical failure for the chosen recovery map, including the low-weight errors that become relevant when recovery is imperfect. V.3 [[13,1,3]] code We repeat the same numerical analysis for a [[13,1,3]] stabilizer code to emphasize that the benefit of combining LDD with QEC depends on the compatibility between (i) the code and recovery map (which determine which Pauli errors are correctable vs. uncorrectable) and (ii) the chosen LDD generating set (which determines which Pauli errors are placed in the suppressed sector of the effective noise model). In the notation of 3 , let \alpha denote the minimum weight of an uncorrectable Pauli error for the chosen recovery map, and let \beta denote the minimum weight among uncorrectable Pauli errors that are suppressed by LDD (i.e., anticommute with at least one element of the logical decoupling group \tilde{G} ). In the plots below we take \tilde{G} to be generated by the logical operators \langle\texttt{IIIYYYYZIXYXY},\texttt{XXXXXXXXXIIII}\rangle . For this choice (together with the fixed recovery map used in our numerics), the minimum-weight uncorrectable errors commute with \tilde{G} and therefore remain unsuppressed, so \beta>\alpha . As we discuss next, this directly impacts the small- p relationship between LDD+QEC and QEC-only. V.3.1 Ideal recovery regime ( p_{\rm QEC}=0 ) Figure 4 shows the logical failure probability as a function of p for representative suppression strengths p_{\rm DD}\in\{0.1,0.01,0.001\} with perfect recovery ( p_{\rm QEC}=0 ). As in the Steane-code example, both QEC-only and LDD+QEC exhibit the higher-order small- p scaling associated with a finite-distance code and ideal recovery: in this regime logical failure is driven by uncorrectable errors rather than by correctable single-qubit errors. However, in contrast to the [[7,1,3]] case, the LDD+QEC and QEC-only curves approach one another as p\to 0 . This convergence is expected given that \beta>\alpha for the chosen LDD generators, as mentioned above. Since no minimum-weight uncorrectable error lies in the suppressed sector, LDD cannot reduce the leading uncorrectable contribution that sets the QEC-only logical failure rate at small p ; it can only suppress higher-weight uncorrectable errors and therefore modifies subleading corrections. As a result, the hybrid protocol’s improvement is most visible at intermediate p , before the asymptotic small- p regime is fully dominated by the weight- \alpha uncorrectable errors. Varying p_{\rm DD} changes the overall strength of suppression and therefore shifts the crossovers with DD-phys and LDD-only, but it does not alter the qualitative small- p conclusion in this example: when \beta>\alpha , decreasing p_{\rm DD} cannot produce a leading-order separation between LDD+QEC and QEC-only because the dominant minimum-weight uncorrectable errors remain unsuppressed for this LDD choice. This [[13,1,3]] case therefore provides a concrete illustration of the co-design message: hybrid advantage is not automatic and can depend critically on whether the chosen LDD generators suppress the errors that control logical failure for the specific code and recovery map. V.3.2 Imperfect recovery As we did for the Steane code in Fig. 2 (c), we now examine the regime in which p_{\rm QEC} is not negligible relative to p . Figure 5 illustrates this regime by again setting p_{\rm QEC}=\sqrt{p} . Recall that in this case, the p_{\rm QEC}p contribution scales as p^{3/2} and can compete with (or dominate over) the uncorrectable-error contribution p^{\alpha} when \alpha\geq 2 . In this imperfect-recovery setting, LDD can improve performance not only by suppressing uncorrectable errors, but also by reducing the rate of low-weight errors whose impact is amplified by recovery failures. Consequently, LDD+QEC is again favorable in the low- p regime even though the sufficient condition in 3 does not hold for the chosen LDD generators. This setting illustrates that imperfect recovery can change which errors dominate logical failure and can qualitatively modify the comparison between strategies, restoring the hybrid protocol’s advantage for sufficiently small p . In analogy to Fig. 3 , the relative-improvement metric R is plotted in Fig. 6 in the (p_{\rm DD},p_{\rm QEC}) plane at fixed p=10^{-3} ; recall that R>0 indicates that LDD+QEC has lower logical failure probability than the comparator protocol. In the plotted domain, LDD+QEC dominates both QEC-only and LDD-only across the full (p_{\rm DD},p_{\rm QEC}) range shown, indicating that adding LDD to the encoded cycle is beneficial once recovery imperfections are included for these parameters. The comparison with DD-phys, however, exhibits a qualitatively different feature: the hybrid advantage region is separated from a DD-phys-dominant region by a boundary that persists as p decreases, rather than sweeping monotonically across the entire plane as in the Steane code case [ Fig. 3 ]. This boundary is captured by the contour lines (which mark R=0 for several values of p ): as p is reduced, the contours move but approach an apparent limiting curve, indicating that there remains a portion of the (p_{\rm DD},p_{\rm QEC}) plane where DD-phys outperforms the encoded hybrid strategy. In contrast to the [[7,1,3]] example, this behavior signals that for the present [[13,1,3]] code, recovery map, and LDD generators, strengthening DD suppression (smaller p_{\rm DD} ) does not translate into an ever-expanding region of hybrid-protocol dominance relative to DD-phys. The boundary observed when comparing LDD+QEC to DD-phys can be understood by inspecting the low-weight structure of the commutant \tilde{G}^{\perp} . Recall that in our model, DD/LDD suppresses precisely those Pauli errors that anticommute with the decoupling group (their probabilities are multiplied by p_{\rm DD} , followed by renormalization), whereas errors in \tilde{G}^{\perp} are left unsuppressed (up to the overall renormalization). For the Steane-code choice \tilde{G}=\langle X^{\otimes 7},Z^{\otimes 7}\rangle , every single-qubit Pauli error anticommutes with at least one generator, so all weight- 1 Pauli errors are suppressed by LDD. In contrast, for the [[13,1,3]] choice \tilde{G}=\langle\texttt{IIIYYYYZIXYXY},\,\texttt{XXXXXXXXXIIII}\rangle , the commutant contains several weight- 1 Paulis (e.g., X_{1},X_{2},X_{3},X_{9},X_{10},X_{12},Y_{11},Y_{13}\in\tilde{G}^{\perp} ), which therefore remain essentially unsuppressed by LDD. This matters in the imperfect-recovery regime. When p_{\rm QEC}>0 , a weight- 1 error that produces a nontrivial syndrome can contribute to logical failure through a recovery fault: conditioned on a nontrivial syndrome, a decoder failure occurs with probability p_{\rm QEC} and induces a uniformly random logical Pauli, so the probability of a nontrivial logical fault is 1-4^{-k} (equal to 3/4 for k=1 ). Consequently, any unsuppressed weight- 1 errors in \tilde{G}^{\perp} generate an O(p_{\rm QEC}\,p) contribution to the hybrid logical failure probability that is only weakly dependent on p_{\rm DD} . By comparison, DD-phys on a single qubit suppresses all nontrivial single-qubit Pauli errors (in this effective model), leading to a logical failure probability that scales as O(p_{\rm DD}\,p) at small p . Therefore, for sufficiently small p_{\rm DD} , DD-phys can outperform LDD+QEC in a region determined by the relative coefficients of these linear-in- p contributions, yielding a limiting boundary in the (p_{\rm DD},p_{\rm QEC}) plane as p decreases, rather than an advantage region that expands without bound. Overall, these results reinforce that hybrid benefit is not automatic; it depends on whether the chosen LDD group suppresses the error classes that dominate logical failure for the specific code and recovery model, including how recovery imperfections determine which errors are most consequential. Figure 5: Logical failure probability for a [[13,1,3]] code with p_{\rm QEC}=\sqrt{p} , comparing physical DD, LDD-only, QEC-only, and the hybrid LDD+QEC protocol. The results are qualitatively similar to those for the Steane code [see Fig. 2 (c)]. Figure 6: Relative improvement metric R , as in Fig. 3 . In contrast to the [[7,1,3]] example, the LDD+QEC advantage region relative to physical DD approaches a limiting boundary as p decreases, reflecting sensitivity to the choice of code and LDD generators. VI Summary This work considers several complementary strategies for protecting quantum information: DD, LDD, QEC, and LDD+QEC. QEC suppresses errors by encoding information into a stabilizer code and performing syndrome measurement and recovery, while DD uses open-loop control to average away parts of the noise. Combining these ideas is not automatic: applying dynamical decoupling pulses at the physical level can conflict with the structure of an encoded subspace, whereas logical dynamical decoupling uses operations that preserve the codespace (e.g., elements of the normalizer) and can therefore be interleaved with an encoded memory. We study a three-step memory cycle: (i) encode into an [[n,k,d]] stabilizer code, (ii) wait for a fixed duration while optionally applying DD/LDD, (iii) decode, optionally performing QEC (or, in the detection setting, postselecting on a trivial syndrome). The physical noise during the waiting time is modeled as an effective Pauli channel with physical Pauli error probability p ; DD is captured by a suppression parameter p_{\rm DD}\in[0,1] that rescales (down-weights) the probabilities of errors that anticommute with the chosen decoupling group prior to renormalization ( p_{\rm DD}=1 corresponds to no DD suppression, while p_{\rm DD}=0 corresponds to ideal suppression of the DD-suppressed sector); and imperfections in the QEC (or QED) step are modeled by phenomenological parameters p_{\rm QEC} (or p_{\rm QED} ) that randomize the recovery (or syndrome outcome) with the stated probability. We quantify performance by the probability of no logical error after the full protocol, F in Eq. 8 , which (as we show in Appendix A ) coincides with the standard entanglement fidelity. Our main technical contribution is a unified, code- and control-dependent description of the logical fidelity for four strategies: (i) physical DD on k qubits (DD-phys), (ii) QEC-only, (iii) LDD-only, and (iv) the hybrid LDD+QEC protocol. For each strategy, the fidelity can be written in closed form in terms of a small collection of weight-enumerator polynomials (WEPs) W(A;z) evaluated at z=p/(3-3p) . The relevant subsets A are defined by how Pauli errors relate to (a) the decoupling group (suppressed vs unsuppressed), (b) the code structure (stabilizers vs nontrivial logical operators), and (c) the chosen decoding map (corrected vs uncorrected). This representation isolates where performance depends on the code, the decoder, and the LDD generating set, and it turns fidelity evaluation into counting problems over well-defined Pauli subsets (see the tag tables in Tables 1 and 2 ). Beyond providing explicit expressions [e.g., the hybrid protocol’s infidelity in 1 ], the WEP formulation yields transparent comparison criteria. In the idealized limit of perfect QEC ( p_{\rm QEC}=0 ), 2 gives an if-and-only-if condition for when LDD+QEC improves upon QEC-only: the hybrid protocol wins precisely when the fraction of uncorrectable errors is larger in the suppressed sector than in the unsuppressed sector. In other words, LDD is beneficial when it preferentially suppresses the Pauli errors that QEC fails to correct. The low- p analysis in Section III.7 gives further insight: 3 shows that if the LDD group suppresses at least one minimum-weight uncorrectable error, then for sufficiently small p the hybrid protocol necessarily outperforms QEC-only (for any fixed p_{\rm DD}<1 ). Moreover, because LDD generators can be modified by stabilizers without changing their logical action, 3 identifies a simple design principle that can be used to ensure suppression of a lowest-weight uncorrectable error. We also extend the framework from error correction to quantum error detection (QED) in Section IV . In the detection setting the natural figure of merit is two-dimensional: the logical fidelity conditioned on acceptance and the acceptance probability P_{A} (probability of measuring a trivial syndrome). We derive closed-form expressions for both quantities under QED-only and the hybrid LDD+QED protocol, and we introduce a partial order on pairs (F,P_{A}) to formalize when one strategy dominates another. In direct analogy with the QEC case, 4 provides a comparison criterion (and 5 gives a useful sufficient condition) for when LDD improves QED performance. Finally, in Section V we evaluate the analytic formulas for representative codes and LDD choices to illustrate the theory and to probe regimes beyond the clean asymptotic assumptions. For the [[7,1,3]] Steane code with the decoding map specified in Appendix D , we find that in the 3 regime ( p_{\rm QEC}=0 ) the hybrid LDD+QEC strategy outperforms QEC-only, LDD-only, and physical DD as p\to 0 for the tested suppression values, consistent with the small- p ordering results. When p_{\rm QEC} is allowed to vary (including settings that violate p_{\rm QEC}=o(p^{\alpha-1}) ), heat-map comparisons in the (p_{\rm DD},p_{\rm QEC}) plane show that the region where LDD+QEC has a lower logical failure probability than competing strategies expands as p decreases, but also that very strong physical DD can remain competitive when p_{\rm DD} is extremely small. The numerics additionally highlight that the best LDD generating set depends on both the physical noise strength and the QEC imperfection level. When QEC is imperfect, suppressing low-weight errors can significantly improve performance, while in the near-perfect-QEC regime most gains come from suppressing the higher-weight uncorrectable errors. The [[13,1,3]] code example is deliberately constructed so that the assumptions guaranteeing strict hybrid-protocol advantage are violated (LDD does not suppress some minimum-weight uncorrectable errors), and we observe that then LDD+QEC can indeed lose its clear separation from QEC-only as p\to 0 . In the (p_{\rm DD},p_{\rm QEC}) plane, LDD+QEC remains advantageous over QEC-only and LDD-only across the displayed parameter range, but its advantage relative to physical DD-phys exhibits a boundary rather than expanding to the full plane as p\to 0 , unlike the Steane code case. This too is due to the deliberate suboptimal choice of LDD generators we make in the [[13,1,3]] case. These results can be summarized as the statement that DD and QEC are “better together” as long as one carefully co-designs the code, the decoding map, and the LDD group so that suppression is concentrated on the errors that actually result in logical failure. There are several natural directions to build on this work. First, it would be valuable to connect microscopic noise models (including biased noise and coherent/non-Pauli components) to the effective parameters (p,p_{\rm DD},p_{\rm QEC}/p_{\rm QED}) used here, and to incorporate control-induced errors so that p_{\rm DD} reflects both suppression and pulse imperfections. Second, the WEP-based formulas provide a fast evaluation tool that can be used to optimize over LDD generating sets and decoding choices for a given hardware noise profile. Finally, extending the analysis from a single memory cycle to multi-round fault-tolerant protocols (where syndrome extraction and control must be interleaved repeatedly) would clarify how the advantages identified here translate into end-to-end logical performance and resource tradeoffs in realistic architectures. Acknowledgements. This material is based upon work supported by, or in part by, the Intelligence Advanced Research Projects Activity (IARPA), under the Entangled Logical Qubits program through Cooperative Agreement Number W911NF23-2-0216. This material is also based upon work supported by, or in part by, the U. S. Army Research Laboratory and the U. S. Army Research Office under contract/grant number W911NF2310255. Appendix A Equivalence of our fidelity measure to the entanglement fidelity Recall the standard definition of the entanglement fidelity F_{\rm e} for a CPTP map \Lambda(\rho)=\sum_{\alpha}K_{\alpha}\rho K_{\alpha}^{\dagger} acting on a d -dimensional system: \displaystyle F_{\rm e}(\Lambda) \displaystyle\coloneqq\bra{\Phi}(\Lambda\otimes\operatorname{id})\bigl(|{\Phi}\rangle\!\langle\Phi|\bigr)\ket{\Phi} (120a) \displaystyle=\frac{1}{d^{2}}\sum_{\alpha}\Bigl|\Tr\bigl(K_{\alpha}\bigr)\Bigr|^{2}, (120b) where \ket{\Phi}=\frac{1}{\sqrt{d}}\sum_{j=1}^{d}\ket{j}\otimes\ket{j} is a maximally entangled state. In our setting, d=2^{k} . The set of Kraus operators for the logical Pauli channel Eq. 6 can be taken as \{K_{\alpha}\}=\{\sqrt{p_{L}}L\} (choosing an arbitrary representative L of each logical Pauli class acting on the code space). Thus, F_{\rm e}(\Lambda)=\sum_{L}p_{L}\frac{|\Tr(L)|^{2}}{d^{2}}. (121) For any nontrivial logical Pauli (i.e., any Pauli operator on k qubits not proportional to the identity), we have \Tr(L)=0 , while \Tr(I)=d . Therefore, F_{\rm e}(\Lambda)=p_{I}=F, (122) where F is defined in Eq. 8 . Appendix B QEC-only In this appendix, we give an independent derivation of the QEC-only fidelity expression. The phase-stripped Pauli group \tilde{\mathcal{P}}_{n} splits into the following four disjoint subsets. For each subset, we state the logical outcome of QEC recovery on an error E^{\prime}\in\tilde{\mathcal{P}}_{n} , referring to the notation in Table 1 . 1. E^{\prime}\in\pi(\mathcal{S}) : E^{\prime} is a stabilizer element, so \syn(E^{\prime})=0 . This never results in a logical error (independent of p_{\rm QEC} ). Because D(0)=\pi(I) , every stabilizer is trivially correctable, so \pi(\mathcal{S})\subset{\tilde{\mathcal{E}}_{c}} . 2. E^{\prime}\in{\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}) : E^{\prime} is a correctable (non-stabilizer) error, so \syn(E^{\prime})\neq 0 , and its WEP contribution is C . There are two cases: (a) With probability 1-p_{\rm QEC} the decoder applies D(\syn(E^{\prime})) and the error is corrected to the trivial logical class. (b) With probability p_{\rm QEC} the decoder fails and applies a uniformly random syndrome-consistent recovery; this yields a logical error with probability 1-4^{-k} . 3. E^{\prime}\in\pi(\mathcal{S}\mathcal{L})\setminus\pi(\mathcal{S}) : E^{\prime} is an undetectable nontrivial logical operator, so \syn(E^{\prime})=0 , and its WEP contribution is L . This always produces a logical error (since decoder failure only affects nontrivial syndromes in our model). 4. E^{\prime}\in\tilde{\mathcal{P}}_{n}\setminus{\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}\mathcal{L}) : E^{\prime} is an uncorrectable but detectable error, so \syn(E^{\prime})\neq 0 , and its WEP contribution is \not\!\mathrm{C} -D . There are two cases: (a) With probability 1-p_{\rm QEC} the decoder applies D(\syn(E^{\prime})) and mis-corrects, resulting in a logical error. (b) With probability p_{\rm QEC} the decoder fails and applies a uniformly random syndrome-consistent recovery, which yields a logical error with probability 1-4^{-k} . Lemma 8 . The infidelity under QEC is \displaystyle 1-F_{\rm QEC} \displaystyle=\frac{1}{\textup{A}}\Big[\textup{L}+\textup{$\not\!\mathrm{C}$-D}+p_{\rm QEC}\bigl[\textup{C}-4^{-k}(\textup{$\not\!\mathrm{C}$-D}+\textup{C})\bigr]\Big] (123a) \displaystyle=\frac{1}{\textup{A}}\Big[\textup{$\not\!\mathrm{C}$}+p_{\rm QEC}(\textup{C}-4^{-k}\textup{D})\Big], (123b) in agreement with Eq. 24 . Proof. The fidelity F_{\rm QEC} is the probability that after one round of the QEC-only strategy, the logical state is unchanged. Thus, 1-F_{\rm QEC} is the probability of logical failure. Of the subsets enumerated above, only \pi(\mathcal{S}) (subset 1) and properly corrected errors in {\tilde{\mathcal{E}}_{c}}\setminus\pi(\mathcal{S}) (subset 2a) do not contribute to logical failures. Let us consider the remaining branches: 3. Nontrivial logical errors occur whether or not the decoder acts. Thus, this branch contributes with weight L . 4.(a) The uncorrectable but detectable errors have weight \not\!\mathrm{C} -D and are converted into logical errors with probability 1-p_{\rm QEC} . 2.(b) The correctable errors have weight C ; the decoder fails with probability p_{\rm QEC} and then yields a logical error with probability 1-4^{-k} . 4.(b) The same happens with the uncorrectable but detectable errors, again with weight \not\!\mathrm{C} -D . Adding these four branches and dividing by the total phase-stripped Pauli group weight W(\tilde{\mathcal{P}}_{n};z)=\textup{A} yields \begin{split}1-F_{\rm QEC}&=\frac{1}{\textup{A}}\Big[\textup{L}+(1-p_{\rm QEC})\textup{$\not\!\mathrm{C}$-D}\\ &\quad\quad+p_{\rm QEC}(1-4^{-k})\big(\textup{C}+\textup{$\not\!\mathrm{C}$-D}\big)\Big],\end{split} (124) which rearranges into Eq. 123a . Eq. 123b follows since \textup{L}\dot{\cup}\textup{$\not\!\mathrm{C}$-D}=\textup{$\not\!\mathrm{C}$} and \textup{C}\dot{\cup}\textup{$\not\!\mathrm{C}$-D}=\textup{D} . ∎ Appendix C LDD-only In this appendix, we give an independent derivation of the LDD-only fidelity expression. We now have an [[n,k,d]] code and a DD group \tilde{G} , which is a subgroup of \tilde{\mathcal{P}}_{n} (in our comparisons we take |\tilde{G}|=4^{k} ). The recovery step is skipped, but the syndrome measurement still acts, which means that detected errors (i.e., errors with a nonzero syndrome) have a probability 4^{-k} of being mapped back to the correct logical class by a random projection. Thus, relative to pure DD, the contribution of detected errors to logical failure is reduced by a factor 4^{-k} . Lemma 9 . The infidelity under LDD is \displaystyle 1-F_{\rm LDD}=\frac{1}{\textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S}}\bigl( \displaystyle(\textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}-4^{-k}\textup{$\not\!\mathrm{S}$-D}) (125a) \displaystyle+p_{\rm DD} \displaystyle(\textup{S-$\not{\mathrm{St}}$}-4^{-k}\textup{S-D})\bigr), (125b) in agreement with Eq. 27 . Proof. The denominator is unchanged relative to the DD-phys case ( Section III.1 ): the weight of the total number of errors is the sum of the unsuppressed errors ( \not\!\mathrm{S} ), which keep their probability, and the suppressed errors ( S ), which acquire a factor p_{\rm DD} . In the numerator, we count the total weight of logical failures, split into unsuppressed-sector terms (no p_{\rm DD} ) and suppressed-sector terms (with p_{\rm DD} ). The term \not\!\mathrm{S} - \not{\mathrm{St}} accounts for unsuppressed non-stabilizer errors (all of which would cause a logical failure were it not for the random projection), while \not\!\mathrm{S} -D accounts for unsuppressed detected errors, which are corrected to the trivial logical class with probability 4^{-k} after a random projection. Hence the net unsuppressed contribution is \textup{$\not\!\mathrm{S}$-$\not{\mathrm{St}}$}-4^{-k}\textup{$\not\!\mathrm{S}$-D} . The suppressed-sector contribution is identical, but restricted to errors in \tilde{\mathcal{P}}_{n}\setminus\tilde{G}^{\perp} , yielding \textup{S-$\not{\mathrm{St}}$}-4^{-k}\textup{S-D} , and multiplied by the DD rescaling factor p_{\rm DD} . Combining these contributions and dividing by the normalization \textup{$\not\!\mathrm{S}$}+p_{\rm DD}\textup{S} gives the stated infidelity formula. ∎ Appendix D [[7, 1, 3]] Decoding Map Syndrome Recovery Op. Syndrome Recovery Op. 000000 IIIIIII 101111 IIIIXIZ 111000 IIIIIIX 101010 IIIIYIZ 111111 IIIIIIY 110001 IIIYIIX 000111 IIIIIIZ 111001 IIIZIIX 011000 IIIIIXI 110111 IIIXIIY 011011 IIIIIYI 111110 IIIZIIY 000011 IIIIIZI 001111 IIIXIIZ 101000 IIIIXII 001110 IIIYIIZ 101101 IIIIYII 110101 IIIIYXI 000101 IIIIZII 011101 IIIIZXI 001000 IIIXIII 110011 IIIIXYI 001001 IIIYIII 011110 IIIIZYI 000001 IIIZIII 101011 IIIIXZI 110000 IIXIIII 101110 IIIIYZI 110110 IIYIIII 010001 IIIYIXI 000110 IIZIIII 011001 IIIZIXI 010000 IXIIIII 010011 IIIXIYI 010010 IYIIIII 011010 IIIZIYI 000010 IZIIIII 001011 IIIXIZI 100000 XIIIIII 001010 IIIYIZI 100100 YIIIIII 100001 IIIYXII 000100 ZIIIIII 101001 IIIZXII 100011 IIIIIYX 100101 IIIXYII 111011 IIIIIZX 101100 IIIZYII 100111 IIIIIXY 001101 IIIXZII 111100 IIIIIZY 001100 IIIYZII 011111 IIIIIXZ 100010 IYXIIII 011100 IIIIIYZ 110010 IZXIIII 010101 IIIIYIX 100110 IXYIIII 111101 IIIIZIX 110100 IZYIIII 010111 IIIIXIY 010110 IXZIIII 111010 IIIIZIY 010100 IYZIIII Table 4: Decoding map of the [[7,1,3]] code. In the following, we define the decoding map used for the numerical simulations of the [[7,1,3]] code. Table 4 specifies which recovery operation is applied when a given syndrome is generated. The total number of unique syndromes is |\mathcal{S}^{*}|=2^{n-k}=2^{6}=64 , where 000000 is the trivial syndrome. With this decoding map, the set of phase-stripped Pauli errors corrected to the trivial logical class is {\tilde{\mathcal{E}}_{c}}=\bigcup_{\sigma\in\mathcal{S}^{*}}D(\sigma)\pi(\mathcal{S}) , which has size |\mathcal{S}^{*}||\pi(\mathcal{S})|=2^{2(n-k)}=4096 . Equivalently, for each syndrome the decoder corrects exactly one stabilizer coset. Each corrected error is stabilizer-equivalent to one of the 64 weight- 0 through weight- 2 Pauli strings listed below as recovery operations (one per syndrome).