MerLean-example

21 Def 11: Spacetime Fault-Distance

The spacetime fault-distance of the fault-tolerant gauging measurement procedure is defined as:

\[ d_{\mathrm{spacetime}} = \min \{ |F| : F \text{ is a spacetime logical fault}\} \]

where \(|F|\) denotes the weight of \(F\), counted as the total number of single-qubit Pauli errors, single measurement errors, and single initialization errors. Intuitively, \(d_{\mathrm{spacetime}}\) is the minimum number of independent faults required to cause a logical error without being detected.

Definition 672 Logical Fault Weights
#

Given a detector collection \(\mathit{DC}\), base outcomes, a logical effect predicate, and a set of time steps \(\mathit{times}\), the set of logical fault weights is

\[ W = \{ w \in \mathbb {N} \mid \exists \, F \text{ a spacetime fault},\; F \text{ is a spacetime logical fault} \; \land \; |F|_{\mathit{times}} = w \} . \]
Definition 673 Undetectable Non-Stabilizer Weights

The set of undetectable non-stabilizer weights is

\[ \{ w \in \mathbb {N} \mid \exists \, F,\; \mathrm{hasEmptySyndrome}(\mathit{DC}, F) \; \land \; \mathrm{affectsLogicalInfo}(F) \; \land \; |F|_{\mathit{times}} = w \} . \]
Theorem 674 Logical Fault Weights Equal Undetectable Non-Stabilizer Weights

The two weight sets are equal:

\[ \mathrm{logicalFaultWeights}(\mathit{DC}, \mathit{times}) = \mathrm{undetectableNonStabilizerWeights}(\mathit{DC}, \mathit{times}). \]
Proof

By extensionality, it suffices to show that for arbitrary \(w\), membership in the left-hand side is equivalent to membership in the right-hand side. We unfold the definitions of logicalFaultWeights, undetectableNonStabilizerWeights, and IsSpacetimeLogicalFault, and simplify the set membership. We prove both directions:

  • (\(\Rightarrow \)) Given \(\langle F, \langle h_{\mathrm{empty}}, h_{\mathrm{logical}}\rangle , h_{\mathrm{eq}}\rangle \), we obtain \(\langle F, h_{\mathrm{empty}}, h_{\mathrm{logical}}, h_{\mathrm{eq}}\rangle \) directly.

  • (\(\Leftarrow \)) Given \(\langle F, h_{\mathrm{empty}}, h_{\mathrm{logical}}, h_{\mathrm{eq}}\rangle \), we obtain \(\langle F, \langle h_{\mathrm{empty}}, h_{\mathrm{logical}}\rangle , h_{\mathrm{eq}}\rangle \) directly.

This is simply a repackaging of the conjunction.

Definition 675 Has Logical Fault
#

The predicate \(\mathrm{hasLogicalFault}(\mathit{DC}, \mathit{logicalEffect})\) holds if there exists at least one spacetime fault \(F\) such that \(F\) is a spacetime logical fault:

\[ \mathrm{hasLogicalFault} \; \iff \; \exists \, F,\; \mathrm{IsSpacetimeLogicalFault}(\mathit{DC}, F). \]
Lemma 676 Nonempty Weights Implies Logical Faults Exist

If the set \(\mathrm{logicalFaultWeights}(\mathit{DC}, \mathit{times})\) is nonempty, then \(\mathrm{hasLogicalFault}(\mathit{DC})\) holds.

Proof

From the nonemptiness hypothesis, we obtain \(\langle w, F, h_F, \_ \rangle \). Then \(\langle F, h_F \rangle \) witnesses the existential.

Lemma 677 Logical Faults Exist Implies Nonempty Weights

If \(\mathrm{hasLogicalFault}(\mathit{DC})\) holds, then \(\mathrm{logicalFaultWeights}(\mathit{DC}, \mathit{times})\) is nonempty.

Proof

From the hypothesis, we obtain \(\langle F, h_F \rangle \). Then \(\langle F.\mathrm{weight}(\mathit{times}),\, F,\, h_F,\, \mathrm{rfl}\rangle \) witnesses nonemptiness.

Definition 678 Spacetime Fault Distance
#

The spacetime fault-distance \(d_{\mathrm{ST}}\) is defined as:

\[ d_{\mathrm{ST}} = \begin{cases} \min \, W & \text{if logical faults exist}, \\ 0 & \text{otherwise}, \end{cases} \]

where \(W = \mathrm{logicalFaultWeights}(\mathit{DC}, \mathit{times})\). When logical faults exist, the minimum is computed using the well-foundedness of \({\lt}\) on \(\mathbb {N}\) (via \(\mathrm{WellFounded.min}\)). The value \(0\) serves as a sentinel when no logical faults exist.

Theorem 679 Spacetime Fault Distance Is a Lower Bound

For any spacetime logical fault \(F\),

\[ d_{\mathrm{ST}} \leq |F|_{\mathit{times}}. \]
Proof

We unfold the definition of \(\mathrm{spacetimeFaultDistance}\). Since \(F\) is a logical fault, we have \(\mathrm{hasLogicalFault}\) holds. Rewriting with \(\mathrm{dif\_ pos}\), we apply \(\mathrm{WellFounded.min\_ le}\) to the witness \(\langle F, h_F, \mathrm{rfl}\rangle \) showing \(F.\mathrm{weight}(\mathit{times}) \in W\).

Theorem 680 Weight Lower Bound (Reversed)

For any spacetime logical fault \(F\),

\[ |F|_{\mathit{times}} \geq d_{\mathrm{ST}}. \]
Proof

This follows directly from Theorem 679.

Theorem 681 Spacetime Fault Distance Is Achieved

If logical faults exist, the minimum is achieved: there exists a spacetime fault \(F\) such that \(F\) is a spacetime logical fault and \(|F|_{\mathit{times}} = d_{\mathrm{ST}}\).

Proof

We unfold the definition of \(\mathrm{spacetimeFaultDistance}\) and rewrite with \(\mathrm{dif\_ pos}\, h\). We establish that the weight set is nonempty by applying \(\mathrm{weights\_ nonempty\_ of\_ hasLogicalFault}\). By \(\mathrm{WellFounded.min\_ mem}\), the minimum is a member of the weight set. Decomposing, we obtain \(\langle F, h_{F,\mathrm{log}}, h_{F,w}\rangle \) and return \(\langle F, h_{F,\mathrm{log}}, h_{F,w}\rangle \).

Theorem 682 Distance Is Zero When No Logical Faults Exist

If \(\neg \, \mathrm{hasLogicalFault}(\mathit{DC})\), then \(d_{\mathrm{ST}} = 0\).

Proof

We unfold the definition of \(\mathrm{spacetimeFaultDistance}\) and rewrite with \(\mathrm{dif\_ neg}\, h\), which selects the sentinel branch returning \(0\).

Theorem 683 Faults Below Distance Are Not Logical

If \(|F|_{\mathit{times}} {\lt} d_{\mathrm{ST}}\), then \(F\) is not a spacetime logical fault.

Proof

Assume for contradiction that \(F\) is a spacetime logical fault. By Theorem 679, \(d_{\mathrm{ST}} \leq |F|_{\mathit{times}}\). But \(|F|_{\mathit{times}} {\lt} d_{\mathrm{ST}}\) by hypothesis. By integer arithmetic (omega), this is a contradiction.

Theorem 684 Faults Below Distance Are Detectable or Stabilizers

If \(|F|_{\mathit{times}} {\lt} d_{\mathrm{ST}}\), then either \(F\) does not have empty syndrome (it is detectable) or \(F\) does not affect logical information (it is a stabilizer):

\[ \neg \, \mathrm{hasEmptySyndrome}(\mathit{DC}, F) \; \lor \; \neg \, \mathrm{affectsLogicalInfo}(F). \]
Proof

Assume for contradiction that both \(\mathrm{hasEmptySyndrome}(\mathit{DC}, F)\) and \(\mathrm{affectsLogicalInfo}(F)\) hold (by pushing the negation inward). Then \(F\) is a spacetime logical fault by definition. This contradicts Theorem 683.

Theorem 685 Characterization of Positive Distance

We have \(d_{\mathrm{ST}} {\gt} 0\) if and only if logical faults exist and every spacetime logical fault has positive weight:

\[ 0 {\lt} d_{\mathrm{ST}} \; \iff \; \mathrm{hasLogicalFault}(\mathit{DC}) \; \land \; \forall \, F,\; \mathrm{IsSpacetimeLogicalFault}(F) \Rightarrow 0 {\lt} |F|_{\mathit{times}}. \]
Proof

We prove both directions:

  • (\(\Rightarrow \)) Assume \(d_{\mathrm{ST}} {\gt} 0\). First, logical faults must exist: otherwise, by Theorem 682, \(d_{\mathrm{ST}} = 0\), contradicting \(d_{\mathrm{ST}} {\gt} 0\) (by \(\mathrm{Nat.not\_ lt\_ zero}\)). Second, for any logical fault \(F\), by Theorem 679, \(d_{\mathrm{ST}} \leq |F|_{\mathit{times}}\), so \(0 {\lt} |F|_{\mathit{times}}\) by integer arithmetic.

  • (\(\Leftarrow \)) Assume \(\mathrm{hasLogicalFault}\) and that all logical faults have positive weight. By Theorem 681, there exists \(F\) with \(|F|_{\mathit{times}} = d_{\mathrm{ST}}\) and \(F\) a logical fault. By hypothesis, \(0 {\lt} |F|_{\mathit{times}}\), so \(0 {\lt} d_{\mathrm{ST}}\).

Theorem 686 Logical Fault Weights Bounded Below

For all \(w \in \mathrm{logicalFaultWeights}(\mathit{DC}, \mathit{times})\),

\[ d_{\mathrm{ST}} \leq w. \]
Proof

Let \(w \in W\). Then there exists \(F\) with \(h_F\) a proof that \(F\) is a logical fault and \(|F|_{\mathit{times}} = w\). Rewriting with \(h_{\mathrm{eq}}\), the result follows from Theorem 679.

Theorem 687 Spacetime Fault Distance Is a Member of Weights

If logical faults exist, then \(d_{\mathrm{ST}} \in \mathrm{logicalFaultWeights}(\mathit{DC}, \mathit{times})\).

Proof

By Theorem 681, there exists \(F\) with \(h_F\) and \(|F|_{\mathit{times}} = d_{\mathrm{ST}}\). Then \(\langle F, h_F, h_{\mathrm{eq}}\rangle \) witnesses membership.

Theorem 688 Existence of Logical Fault at Exact Distance

If logical faults exist, there exists a spacetime fault \(F\) such that \(F\) is a spacetime logical fault and \(|F|_{\mathit{times}} = d_{\mathrm{ST}}\).

Proof

This follows directly from Theorem 681.

Definition 689 Can Tolerate Faults
#

A code can tolerate weight-\(t\) faults if \(t {\lt} d_{\mathrm{ST}}\):

\[ \mathrm{canTolerateFaults}(\mathit{DC}, t) \; \iff \; t {\lt} d_{\mathrm{ST}}. \]
Theorem 690 Tolerable Implies Correctable

If the code can tolerate weight-\(t\) faults and \(|F|_{\mathit{times}} \leq t\), then either \(F\) is detectable or \(F\) is a stabilizer:

\[ \mathrm{canTolerateFaults}(t) \; \land \; |F|_{\mathit{times}} \leq t \; \implies \; \neg \, \mathrm{hasEmptySyndrome}(F) \; \lor \; \neg \, \mathrm{affectsLogicalInfo}(F). \]
Proof

We first establish that \(|F|_{\mathit{times}} {\lt} d_{\mathrm{ST}}\): unfolding \(\mathrm{canTolerateFaults}\), we have \(t {\lt} d_{\mathrm{ST}}\) and \(|F|_{\mathit{times}} \leq t\), so by integer arithmetic \(|F|_{\mathit{times}} {\lt} d_{\mathrm{ST}}\). The result then follows from Theorem 684.

Theorem 691 Maximum Tolerable Weight

If \(d_{\mathrm{ST}} {\gt} 0\), then the code can tolerate faults of weight \(d_{\mathrm{ST}} - 1\):

\[ 0 {\lt} d_{\mathrm{ST}} \; \implies \; \mathrm{canTolerateFaults}(d_{\mathrm{ST}} - 1). \]
Proof

We unfold \(\mathrm{canTolerateFaults}\). The goal \(d_{\mathrm{ST}} - 1 {\lt} d_{\mathrm{ST}}\) follows by integer arithmetic (omega) from the hypothesis \(0 {\lt} d_{\mathrm{ST}}\).

Theorem 692 Positive Distance Means Nontrivial

If \(d_{\mathrm{ST}} {\gt} 0\), then every weight-\(0\) undetectable fault must be a stabilizer: for all \(F\), if \(|F|_{\mathit{times}} = 0\) and \(\mathrm{hasEmptySyndrome}(F)\), then \(\neg \, \mathrm{affectsLogicalInfo}(F)\).

Proof

Let \(F\) be given with \(|F|_{\mathit{times}} = 0\) and \(\mathrm{hasEmptySyndrome}(F)\). Assume for contradiction that \(\mathrm{affectsLogicalInfo}(F)\) holds. Then \(F\) is a spacetime logical fault (by definition, pairing the empty syndrome and affects-logical hypotheses). By Theorem 679, \(d_{\mathrm{ST}} \leq |F|_{\mathit{times}} = 0\). But \(0 {\lt} d_{\mathrm{ST}}\) by hypothesis. By integer arithmetic, this is a contradiction.

Theorem 693 Identity Fault Is Not Logical

If the logical effect predicate is group-like and the base outcomes satisfy all detectors, then the identity fault \(\mathbf{1}\) is not a spacetime logical fault.

Proof

Assume for contradiction that \(\mathbf{1}\) is a spacetime logical fault. From the group-like property of the logical effect, we have \(\mathrm{identity\_ preserves}\), which states that the identity does not affect logical information. This contradicts \(\mathbf{1}.\mathrm{affectsLogical}\) from the logical fault hypothesis.

Theorem 694 Spacetime Fault Distance Is the Greatest Lower Bound

If logical faults exist, \(d_{\mathrm{ST}}\) is the greatest lower bound (infimum) of \(\mathrm{logicalFaultWeights}(\mathit{DC}, \mathit{times})\).

Proof

We verify the two conditions for \(\mathrm{IsGLB}\):

  • Lower bound: For any \(w \in W\), \(d_{\mathrm{ST}} \leq w\). This follows directly from Theorem 686.

  • Greatest lower bound: Let \(n\) be any lower bound of \(W\). By Theorem 681, there exists \(F\) with \(h_F\) and \(|F|_{\mathit{times}} = d_{\mathrm{ST}}\). Since \(|F|_{\mathit{times}} \in W\) (witnessed by \(\langle F, h_F, \mathrm{rfl}\rangle \)), we have \(n \leq |F|_{\mathit{times}}\) by the lower bound hypothesis. Rewriting with \(h_{\mathrm{eq}}\), we get \(n \leq d_{\mathrm{ST}}\).