MerLean-example

30 Def 11: Spacetime Logical Fault

A spacetime logical fault is a collection of space-faults and time-faults (Def 7) that:

  1. Does not violate any detector (i.e., the syndrome (Def 9) is empty), AND

  2. Changes the outcome of the fault-tolerant gauging measurement procedure (Def 10).

A spacetime stabilizer is a collection of space-faults and time-faults that:

  1. Does not violate any detector, AND

  2. Does NOT change the outcome of the procedure.

Every syndrome-free fault collection is either a spacetime logical fault or a spacetime stabilizer.

Definition 797 Syndrome-Free Fault

A spacetime fault \(F\) is syndrome-free with respect to a collection of detectors \((\delta _i)_{i \in I}\) if the syndrome is empty, i.e.,

\[ \operatorname {syndromeFault}(\delta , F) = \emptyset . \]

Equivalently, no detector is violated by the time-faults of \(F\).

Theorem 798 Syndrome-Free iff All Detectors Not Violated

A fault \(F\) is syndrome-free if and only if for every detector index \(i \in I\), the detector \(\delta _i\) is not violated by \(F\)’s time-faults:

\[ \operatorname {IsSyndromeFree}(\delta , F) \iff \forall \, i \in I,\; \neg \, \delta _i.\! \operatorname {isViolated}(F.\! \operatorname {timeFaults}). \]
Proof

Unfolding the definitions of \(\operatorname {IsSyndromeFree}\) and \(\operatorname {syndromeFault}\), the condition that the filter of violated detectors equals the empty set is equivalent, by simplification using the universal membership and true-implies rules, to the statement that no detector is violated.

Theorem 799 Syndrome-Free iff Syndrome Vector is Zero

A fault \(F\) is syndrome-free if and only if the syndrome vector is identically zero:

\[ \operatorname {IsSyndromeFree}(\delta , F) \iff \operatorname {syndromeVec}(\delta , F) = 0. \]
Proof

We rewrite using the characterization that syndrome-free means every detector is not violated. For the forward direction, assume every detector is not violated. By extensionality, for each index \(i\), the syndrome vector at \(i\) is defined by an if-then-else on whether \(\delta _i\) is violated; since it is not, the value is \(0\), so the entire vector is \(0\). For the reverse direction, assume the syndrome vector equals \(0\). For any index \(i\), we extract the component at \(i\), which equals \(0\). Suppose for contradiction that \(\delta _i\) is violated; then the if-branch gives value \(1\), contradicting \(1 \neq 0\).

Definition 800 Outcome-Preserving Fault

A spacetime fault \(F\) is outcome-preserving with respect to a predicate \(\operatorname {outcomePreserving}\) if \(\operatorname {outcomePreserving}(F)\) holds. This means the net effect of \(F\) on the procedure is trivial: it preserves both the measurement sign and the logical information in the post-measurement state.

Definition 801 Outcome-Changing Fault
#

A spacetime fault \(F\) changes the outcome if it is not outcome-preserving:

\[ \operatorname {IsOutcomeChanging}(F) \; \coloneqq \; \neg \, \operatorname {outcomePreserving}(F). \]
Definition 802 Spacetime Logical Fault

A spacetime logical fault is a spacetime fault \(F\) satisfying:

  1. \(\operatorname {IsSyndromeFree}(\delta , F)\): No detector is violated (syndrome is empty).

  2. \(\operatorname {IsOutcomeChanging}(F)\): The fault changes the measurement result or applies a non-trivial logical operator to the post-measurement state.

Definition 803 Spacetime Stabilizer

A spacetime stabilizer is a spacetime fault \(F\) satisfying:

  1. \(\operatorname {IsSyndromeFree}(\delta , F)\): No detector is violated (syndrome is empty).

  2. \(\operatorname {IsOutcomePreserving}(F)\): The fault preserves both the measurement result and the logical information in the post-measurement state.

Theorem 804 Syndrome-Free Dichotomy

Every syndrome-free fault is either a spacetime logical fault or a spacetime stabilizer: if \(\operatorname {IsSyndromeFree}(\delta , F)\) holds, then

\[ \operatorname {IsSpacetimeLogicalFault}(\delta , F) \; \lor \; \operatorname {IsSpacetimeStabilizer}(\delta , F). \]
Proof

We consider two cases on whether \(\operatorname {outcomePreserving}(F)\) holds. If it does, then \(F\) is a spacetime stabilizer (the right disjunct), constructed from the syndrome-free hypothesis and the outcome-preserving property. If it does not, then \(F\) is a spacetime logical fault (the left disjunct), constructed from the syndrome-free hypothesis and the negation of outcome-preserving.

Theorem 805 Logical Fault Not Stabilizer

The dichotomy is exclusive: if \(F\) is a spacetime logical fault, then it is not a spacetime stabilizer.

Proof

Assume \(F\) is a spacetime logical fault and suppose for contradiction it is also a stabilizer. Then \(F\) is outcome-preserving (from the stabilizer condition), but \(F\) is also outcome-changing (from the logical fault condition). The outcome-changing condition is the negation of outcome-preserving, giving a contradiction.

Theorem 806 Stabilizer Not Logical Fault

Conversely, if \(F\) is a spacetime stabilizer, then it is not a spacetime logical fault.

Proof

Assume \(F\) is a stabilizer and suppose for contradiction it is also a logical fault. Then the logical fault’s outcome-changing condition contradicts the stabilizer’s outcome-preserving condition.

Lemma 807 Logical Fault is Syndrome-Free

A spacetime logical fault is syndrome-free.

Proof

This is the first component of the conjunction defining a spacetime logical fault.

Lemma 808 Logical Fault Changes Outcome

A spacetime logical fault changes the outcome.

Proof

This is the second component of the conjunction defining a spacetime logical fault.

Lemma 809 Stabilizer is Syndrome-Free

A spacetime stabilizer is syndrome-free.

Proof

This is the first component of the conjunction defining a spacetime stabilizer.

Lemma 810 Stabilizer Preserves Outcome

A spacetime stabilizer preserves the outcome.

Proof

This is the second component of the conjunction defining a spacetime stabilizer.

Theorem 811 Empty Fault is Syndrome-Free

The empty spacetime fault has empty syndrome: no faults means no detector violations.

Proof

Unfolding the definition of \(\operatorname {IsSyndromeFree}\), we rewrite using the fact that the syndrome of the empty fault is empty (\(\operatorname {syndromeFault\_ empty}\)).

Theorem 812 Empty Fault is a Spacetime Stabilizer

The empty fault is a spacetime stabilizer, provided it is outcome-preserving (the natural requirement that no fault means no change).

Proof

The proof constructs the pair: the first component is \(\operatorname {empty\_ isSyndromeFree}\) applied to the detectors, and the second component is the hypothesis that the empty fault is outcome-preserving.

Theorem 813 Syndrome-Free Fault of Weight Zero is Empty

A syndrome-free fault of weight \(0\) equals the empty fault.

Proof

Rewriting the hypothesis \(F.\! \operatorname {weight} = 0\) using the lemma \(\operatorname {weight\_ zero\_ iff\_ empty}\), the result follows directly.

Theorem 814 Spacetime Logical Fault Has Positive Weight

A spacetime logical fault must have positive weight: \(0 {\lt} F.\! \operatorname {weight}\). It cannot be the empty fault.

Proof

Suppose for contradiction that \(F.\! \operatorname {weight} \leq 0\). Pushing the negation, we get \(F.\! \operatorname {weight} = 0\) (since weight is a natural number). By the theorem \(\operatorname {syndromeFree\_ weight\_ zero\_ eq\_ empty}\) applied to \(F\)’s syndrome-free property, we conclude \(F = \operatorname {empty}\). Substituting, the logical fault condition requires \(\neg \, \operatorname {outcomePreserving}(\operatorname {empty})\), which contradicts the hypothesis that the empty fault is outcome-preserving.

Theorem 815 Logical Fault Has Zero Syndrome Vector

A spacetime logical fault has zero syndrome vector: \(\operatorname {syndromeVec}(\delta , F) = 0\).

Proof

This follows by applying the forward direction of \(\operatorname {isSyndromeFree\_ iff\_ syndromeVec}\) to the syndrome-free component of the logical fault hypothesis.

Theorem 816 Stabilizer Has Zero Syndrome Vector

A spacetime stabilizer has zero syndrome vector: \(\operatorname {syndromeVec}(\delta , F) = 0\).

Proof

This follows by applying the forward direction of \(\operatorname {isSyndromeFree\_ iff\_ syndromeVec}\) to the syndrome-free component of the stabilizer hypothesis.

Theorem 817 Syndrome-Free iff Logical Fault or Stabilizer

The set of all syndrome-free faults partitions into logical faults and stabilizers:

\[ \operatorname {IsSyndromeFree}(\delta , F) \iff \operatorname {IsSpacetimeLogicalFault}(\delta , F) \lor \operatorname {IsSpacetimeStabilizer}(\delta , F). \]
Proof

For the forward direction, we apply \(\operatorname {syndromeFree\_ dichotomy}\). For the reverse direction, we case-split on whether \(F\) is a logical fault or a stabilizer; in either case, the first component of the conjunction gives syndrome-freeness.

Theorem 818 Syndrome-Free: Logical Fault iff Not Stabilizer

A syndrome-free fault is a logical fault if and only if it is not a stabilizer:

\[ \operatorname {IsSyndromeFree}(\delta , F) \; \Longrightarrow \; \bigl(\operatorname {IsSpacetimeLogicalFault}(\delta , F) \iff \neg \, \operatorname {IsSpacetimeStabilizer}(\delta , F)\bigr). \]
Proof

For the forward direction, we apply \(\operatorname {logicalFault\_ not\_ stabilizer}\). For the reverse direction, assume \(F\) is not a stabilizer. We construct the logical fault: the first component is the syndrome-free hypothesis. For the second component (outcome-changing), assume for contradiction that \(F\) is outcome-preserving. Then \(F\) would be a stabilizer (pairing syndrome-free with outcome-preserving), contradicting the hypothesis.

Theorem 819 Syndrome-Free: Stabilizer iff Not Logical Fault

A syndrome-free fault is a stabilizer if and only if it is not a logical fault:

\[ \operatorname {IsSyndromeFree}(\delta , F) \; \Longrightarrow \; \bigl(\operatorname {IsSpacetimeStabilizer}(\delta , F) \iff \neg \, \operatorname {IsSpacetimeLogicalFault}(\delta , F)\bigr). \]
Proof

For the forward direction, assume \(F\) is a stabilizer and suppose \(F\) is also a logical fault; we apply \(\operatorname {logicalFault\_ not\_ stabilizer}\) to derive a contradiction. For the reverse direction, assume \(F\) is not a logical fault. We construct the stabilizer: the first component is syndrome-freeness. For the second (outcome-preserving), suppose for contradiction that \(F\) is not outcome-preserving; then \(F\) would be a logical fault, contradicting the hypothesis.

Definition 820 Gauss Sign Flip Indicator

The sign flip indicator for the fault-tolerant gauging procedure is defined as the parity of time-faults that affect Gauss’s law measurements:

\[ \operatorname {gaussSignFlip}(F) \; =\; \sum _{v \in V} \sum _{r=0}^{d-1} \begin{cases} 1 & \text{if the time-fault for Gauss's law measurement $(v, r)$ in phase~ 2 is in } F.\! \operatorname {timeFaults}, \\ 0 & \text{otherwise,} \end{cases} \]

computed in \(\mathbb {Z}/2\mathbb {Z}\). The gauging sign \(\sigma = \sum _v \varepsilon _v\), and a time-fault on a Gauss measurement flips one \(\varepsilon _v\).

Definition 821 Flips Gauging Sign

A fault flips the gauging sign if the sign flip indicator equals \(1\):

\[ \operatorname {FlipsGaugingSign}(F) \; \coloneqq \; \operatorname {gaussSignFlip}(F) = 1. \]
Definition 822 Preserves Gauging Sign

A fault preserves the gauging sign if the sign flip indicator equals \(0\):

\[ \operatorname {PreservesGaugingSign}(F) \; \coloneqq \; \operatorname {gaussSignFlip}(F) = 0. \]
Theorem 823 Sign Flip is Zero or One

The sign flip indicator is always \(0\) or \(1\) in \(\mathbb {Z}/2\mathbb {Z}\):

\[ \operatorname {gaussSignFlip}(F) = 0 \; \lor \; \operatorname {gaussSignFlip}(F) = 1. \]
Proof

Every element \(x \in \mathbb {Z}/2\mathbb {Z}\) satisfies \(x = 0 \lor x = 1\). This is verified by case analysis on the two elements of \(\mathbb {Z}/2\mathbb {Z}\) followed by simplification. The result then follows by applying this fact to \(\operatorname {gaussSignFlip}(F)\).

Theorem 824 Flips or Preserves Dichotomy

A fault either flips or preserves the gauging sign:

\[ \operatorname {FlipsGaugingSign}(F) \; \lor \; \operatorname {PreservesGaugingSign}(F). \]
Proof

We case-split on whether \(\operatorname {gaussSignFlip}(F)\) is \(0\) or \(1\) using \(\operatorname {gaussSignFlip\_ zero\_ or\_ one}\). If it is \(0\), then \(F\) preserves the gauging sign (the right disjunct). If it is \(1\), then \(F\) flips the gauging sign (the left disjunct).

Theorem 825 Flipping Excludes Preserving

If a fault flips the gauging sign, then it does not preserve it.

Proof

Assume \(F\) flips the gauging sign, so \(\operatorname {gaussSignFlip}(F) = 1\). Suppose for contradiction that \(F\) also preserves the gauging sign, so \(\operatorname {gaussSignFlip}(F) = 0\). Rewriting, we get \(0 = 1\), which contradicts \(0 \neq 1\).

Theorem 826 Preserving Excludes Flipping

If a fault preserves the gauging sign, then it does not flip it.

Proof

Assume \(F\) preserves the gauging sign and suppose for contradiction that \(F\) flips it. By \(\operatorname {flipsGaugingSign\_ not\_ preserves}\), flipping implies not preserving, contradicting our assumption.

Definition 827 Syndrome-Free in Gauging Procedure

A spacetime fault \(F\) is syndrome-free in the gauging procedure if no detector from the spacetime code is violated:

\[ \forall \, \operatorname {idx} : \operatorname {DetectorIndex},\; \neg \, (\delta _{\operatorname {idx}}).\! \operatorname {isViolated}(F.\! \operatorname {timeFaults}). \]

Here the detector index type is the specialized \(\operatorname {DetectorIndex}\; V\; C\; J\; G.\! \operatorname {edgeSet}\; d\) from the fault-tolerant gauging procedure.

Definition 828 Gauging Logical Fault

A gauging logical fault is a spacetime fault in the gauging procedure that is syndrome-free AND changes the outcome:

\[ \operatorname {IsGaugingLogicalFault}(F) \; \coloneqq \; \operatorname {IsSyndromeFreeGauging}(F) \; \land \; \neg \, \operatorname {outcomePreserving}(F). \]
Definition 829 Gauging Stabilizer

A gauging stabilizer is a spacetime fault in the gauging procedure that is syndrome-free AND preserves the outcome:

\[ \operatorname {IsGaugingStabilizer}(F) \; \coloneqq \; \operatorname {IsSyndromeFreeGauging}(F) \; \land \; \operatorname {outcomePreserving}(F). \]

Every syndrome-free fault in the gauging procedure is either a gauging logical fault or a gauging stabilizer.

Proof

We case-split on whether \(\operatorname {outcomePreserving}(F)\) holds. If yes, \(F\) is a gauging stabilizer (right disjunct). If no, \(F\) is a gauging logical fault (left disjunct).

Theorem 831 Gauging Logical Fault Not Stabilizer

The gauging dichotomy is exclusive: a gauging logical fault is not a gauging stabilizer.

Proof

Assume \(F\) is a gauging logical fault and suppose it is also a stabilizer. The logical fault condition gives \(\neg \, \operatorname {outcomePreserving}(F)\), while the stabilizer condition gives \(\operatorname {outcomePreserving}(F)\), a contradiction.

Theorem 832 Gauging Stabilizer Not Logical Fault

A gauging stabilizer is not a gauging logical fault.

Proof

Assume \(F\) is a gauging stabilizer and suppose it is also a logical fault. The logical fault’s outcome-changing condition contradicts the stabilizer’s outcome-preserving condition.

Theorem 833 Gauging: Logical Fault iff Not Stabilizer

A syndrome-free gauging fault is a logical fault if and only if it is not a stabilizer.

Proof

For the forward direction, apply \(\operatorname {gaugingLogicalFault\_ not\_ stabilizer}\). For the reverse direction, assume \(F\) is syndrome-free but not a stabilizer. We construct the logical fault: the first component is syndrome-freeness. For the second, assume for contradiction that \(F\) is outcome-preserving; then pairing with syndrome-freeness gives a stabilizer, contradicting the hypothesis.

Theorem 834 Gauging: Stabilizer iff Not Logical Fault

A syndrome-free gauging fault is a stabilizer if and only if it is not a logical fault.

Proof

For the forward direction, assume \(F\) is a stabilizer and suppose it is also a logical fault; we apply \(\operatorname {gaugingLogicalFault\_ not\_ stabilizer}\) to derive a contradiction. For the reverse direction, assume \(F\) is syndrome-free but not a logical fault. We construct the stabilizer: the first component is syndrome-freeness. For the second, suppose for contradiction that \(F\) is not outcome-preserving; then pairing with syndrome-freeness gives a logical fault, contradicting the hypothesis.