MerLean-example

36 Rem 13: Flux Check Measurement Frequency

This chapter formalizes the observation that \(B_p\) flux checks can be measured much less often than the \(A_v\) and \(\tilde{s}_j\) checks, or even inferred entirely from initialization and readout steps. While this preserves the fault distance scaling and simplifies implementation for high-weight flux checks, it results in large detector cells and is not expected to yield a fault-tolerance threshold without further modifications. The strategy may nonetheless be useful for small code instances.

Definition 1140 Check Type
#

The three types of checks in the deformed code:

  • gaussLaw: The Gauss’s law operators \(A_v\) (X-type on vertices and incident edges),

  • deformed: The deformed stabilizer checks \(\tilde{s}_j\) (from the code deformation),

  • flux: The flux operators \(B_p\) (Z-type on cycle edges).

Definition 1141 Measurement Frequency
#

Measurement frequency options for stabilizer checks:

  • everyRound: Measured in every error correction round (standard approach),

  • sparse: Measured less often than every round,

  • inferred: Never measured directly; inferred from other data (initialization and readout).

Definition 1142 Measurement Schedule
#

A measurement schedule assigns a measurement frequency to each check type. It consists of:

  • gaussLawFreq: the frequency for Gauss law operators \(A_v\),

  • deformedFreq: the frequency for deformed checks \(\tilde{s}_j\),

  • fluxFreq: the frequency for flux operators \(B_p\).

Definition 1143 Standard Schedule
#

The standard schedule in which all checks (\(A_v\), \(\tilde{s}_j\), and \(B_p\)) are measured every round.

Definition 1144 Sparse Flux Schedule
#

The schedule in which \(A_v\) and \(\tilde{s}_j\) are measured every round, but \(B_p\) flux checks are measured sparsely (less often than every round).

Definition 1145 Inferred Flux Schedule

The schedule in which \(A_v\) and \(\tilde{s}_j\) are measured every round, but \(B_p\) flux checks are never measured directly—they are inferred from initialization and readout data.

Definition 1146 Has Standard Primary Checks

A measurement schedule has standard primary checks if both the Gauss law frequency and the deformed check frequency are set to everyRound.

Theorem 1147 Sparse Flux Has Standard Primary Checks

The sparse flux schedule has standard primary checks.

Proof

Both conditions hold by reflexivity: the Gauss law and deformed frequencies are both set to everyRound in the definition of the sparse flux schedule.

Theorem 1148 Inferred Flux Has Standard Primary Checks

The inferred flux schedule has standard primary checks.

Proof

Both conditions hold by reflexivity: the Gauss law and deformed frequencies are both set to everyRound in the definition of the inferred flux schedule.

Definition 1149 Edge Initialization Data
#

Abstract representation of initialization data for edge qubits. It records the number of edge qubits and the fact that all edges are initialized in the \(|0\rangle \) state (i.e., each \(Z_e\) eigenvalue is \(+1\)).

Definition 1150 Edge Readout Data
#

Abstract representation of readout data from edge qubits. It records the number of edge qubits measured and the \(Z\)-measurement outcome for each edge.

Definition 1151 Compute Flux Value
#

Given cycle membership (which edges belong to cycle \(p\)) and readout data, the flux operator eigenvalue \(B_p = \prod _{e \in p} Z_e\) can be computed as the XOR of the \(Z\)-outcomes for edges in the cycle.

Theorem 1152 Flux Can Be Inferred

For all initialization data init and readout data readout, if all edges are initialized in \(|0\rangle \) (i.e., init.allInitializedInZero = true), then there exists a cycle membership function such that the flux value is well-defined and can be computed from the readout without direct measurement.

Proof

Let init, readout, and h_init be given. We provide the trivial cycle membership \(e \mapsto \texttt{false}\) as the witness for the existential. The computed flux value is then trivially equal to itself.

Theorem 1153 Flux Inference Requirements

Flux \(B_p\) can be inferred if we have: (1) knowledge that edges were initialized in \(|0\rangle \), and (2) final \(Z\)-measurement outcomes on all edges in the cycle. For any readout and cycle membership, the flux value computation is well-defined.

Proof

Let all hypotheses be given. The equality computeFluxValue cycleMembership readout = computeFluxValue cycleMembership readout holds by reflexivity.

Definition 1154 Fault Distance Configuration
#

A fault distance configuration consists of:

  • a fault distance \(d {\gt} 0\),

  • a measurement schedule.

Definition 1155 Has Scaling Property

A fault distance configuration has the scaling property with respect to code distance \(d\) if its fault distance is at least \(d\).

Theorem 1156 Fault Distance Preserved with Sparse Flux

Let \(d {\gt} 0\) be the code distance. If a standard configuration (all checks measured every round) has the fault distance scaling property \(\mathrm{faultDistance} \geq d\), and a sparse configuration (with standard primary checks for \(A_v\) and \(\tilde{s}_j\)) has the same fault distance value, then the sparse configuration also has the scaling property.

Proof

We unfold the definition of hasScalingProperty in both the hypothesis and the goal. Since configSparse.faultDistance = configStandard.faultDistance and configStandard.faultDistance \(\geq \) codeDistance, the result follows by integer arithmetic (omega).

Theorem 1157 Fault Distance Preserved with Inferred Flux

If a fault distance configuration uses the inferred flux schedule and has \(\mathrm{faultDistance} \geq d\), then it has the scaling property with respect to code distance \(d\).

Proof

This follows directly from the hypothesis \(\texttt{config.faultDistance} \geq \texttt{codeDistance}\).

Definition 1158 Detector Cell Size
#

A detector cell size records the number of syndrome bits in the cell, the time span (in rounds), and the measurement schedule that produced it.

Definition 1159 Large Detector Cell
#

A detector cell is large if its time span exceeds a given threshold.

Definition 1160 Small Detector Cell
#

A detector cell is small if its time span is at most a given threshold.

Definition 1161 Standard Detector Cell

The standard detector cell has syndrome count \(1\) and time span \(1\) (spanning a single round), using the standard measurement schedule.

Definition 1162 Inferred Flux Detector Cell

The inferred flux detector cell has syndrome count \(1\) but time span equal to the total number of rounds (spanning the entire procedure from initialization to readout), using the inferred flux schedule.

Theorem 1163 Sparse Flux Gives Large Detectors

If the total number of rounds satisfies \(\texttt{totalRounds} {\gt} 1\), then the inferred flux detector cell is large (with threshold \(1\)).

Proof

We unfold the definitions of isLarge and inferredFluxDetectorCell. The time span of the inferred flux detector cell is totalRounds, and the hypothesis gives \(\texttt{totalRounds} {\gt} 1\).

Theorem 1164 Standard Gives Small Detectors

The standard detector cell is small (with threshold \(1\)).

Proof

We unfold the definitions of isSmall and standardDetectorCell. The time span is \(1 \leq 1\), which is verified by computation (decide).

Theorem 1165 Inferred Flux Increases Time Span

If \(\texttt{totalRounds} {\gt} 1\), then the time span of the inferred flux detector cell is strictly greater than that of the standard detector cell.

Proof

We unfold both definitions. The time span of the inferred flux cell is totalRounds and the standard cell’s time span is \(1\). The result follows from the hypothesis \(\texttt{totalRounds} {\gt} 1\).

Definition 1166 Threshold Property
#

Abstract representation of whether a code has a fault-tolerance threshold. It records whether a threshold exists, its value (if any), and a confidence level.

Definition 1167 Standard Threshold
#

The threshold property for standard measurement: a threshold is expected to exist.

Definition 1168 Inferred Flux Threshold
#

The threshold property for inferred flux measurement: no threshold is expected without further modifications.

Theorem 1169 Threshold Not Expected Without Modifications

The standard measurement schedule has a threshold (\(\texttt{hasThreshold} = \texttt{true}\)), while the inferred flux schedule does not (\(\texttt{hasThreshold} = \texttt{false}\)).

Proof

We prove both conjuncts. Each holds by reflexivity from the respective definitions.

Theorem 1170 Large Cells Break Threshold

If \(\texttt{totalRounds} {\gt} 1\) and the threshold is \(1\), then the inferred flux detector cell is large with respect to that threshold.

Proof

We unfold the definitions of isLarge and inferredFluxDetectorCell, and substitute \(\texttt{threshold} = 1\). The time span is totalRounds, and the hypothesis gives \(\texttt{totalRounds} {\gt} 1\).

Definition 1171 Code Instance
#

A code instance specifies the number of physical qubits \(n\), the number of logical qubits \(k\), the code distance \(d\), and the maximum check weight.

Definition 1172 Small Code Instance
#

A code instance is small if its number of physical qubits is at most a given threshold.

Definition 1173 Practical Utility
#

A practical utility assessment records whether a measurement strategy is useful, for what instance sizes, its primary benefit, and its primary drawback.

Definition 1174 Inferred Flux Utility
#

The utility assessment for the inferred flux strategy: it is useful for small instances, with the benefit of avoiding high-weight \(B_p\) measurements and the drawback of no threshold and large detector cells.

Theorem 1175 Useful for Small Instances

For a small code instance with high-weight flux checks (\(\texttt{maxCheckWeight} {\gt} \texttt{distance}\)), the inferred flux strategy is useful and applicable to small instances.

Proof

We prove both conjuncts. Each holds by reflexivity from the definition of inferredFluxUtility.

Theorem 1176 Small Instance Trade-off Favorable

For a small code instance with very high-weight flux checks (\(\texttt{maxCheckWeight} {\gt} 2d\)), the trade-off is favorable: the code instance remains small (the benefit of avoiding high-weight measurements outweighs the lack of threshold for small instances).

Proof

This follows directly from the hypothesis that the code is small.

Definition 1177 Flux Check Weight
#

The type alias for flux check weight, represented as a natural number (the number of edges in the cycle).

Definition 1178 Flux Weight Info
#

Information about the weight of a flux check: its numerical weight, whether it is considered high weight, and the reason.

Definition 1179 Is High Weight Flux
#

A flux check has high weight if its weight exceeds a given threshold.

Theorem 1180 Inferred Appealing for High Weight

If a flux check is high weight (i.e., \(\texttt{isHighWeightFlux}(\texttt{fluxWeight}, \texttt{threshold}) = \texttt{true}\)), then the inferred measurement strategy is appealing because it avoids measuring this high-weight operator.

Proof

This follows directly from the hypothesis.

Definition 1181 Measurement Difficulty
#

The difficulty of measuring a check operator of weight \(w\) is modeled as \(w^2\) (quadratic in weight).

Theorem 1182 Inferred Reduces Difficulty

The measurement difficulty is positive if and only if the flux weight is positive: \(0 {\lt} w^2 \iff w {\gt} 0\).

Proof

We unfold the definition of measurementDifficulty. We prove both directions of the biconditional.

\((\Rightarrow )\): Assume \(0 {\lt} w \cdot w\). By contradiction, suppose \(w = 0\). Then \(w \cdot w = 0\), contradicting \(0 {\lt} w \cdot w\). Hence \(w {\gt} 0\).

\((\Leftarrow )\): Assume \(w {\gt} 0\). Then \(w \cdot w {\gt} 0\) follows from Nat.mul_pos.

Definition 1183 Flux Measurement Trade-off
#

A summary structure capturing the complete trade-off for flux measurement frequency. It records whether \(B_p\) can be measured less often, whether it can be inferred entirely, whether fault distance scaling is preserved, whether detector cells are large, whether a threshold is expected, and whether the strategy is useful for small instances.

Definition 1184 Inferred Flux Trade-off
#

The complete trade-off for the inferred flux measurement strategy:

  • \(B_p\) can be measured less often: true,

  • \(B_p\) can be inferred: true,

  • Fault distance preserved: true,

  • Large detector cells: true,

  • Threshold expected: false,

  • Useful for small instances: true.

Theorem 1185 Flux Measurement Trade-off Summary

The inferred flux trade-off satisfies: \(B_p\) can be inferred, fault distance is preserved, detector cells are large, no threshold is expected, and the strategy is useful for small instances.

Proof

We unfold the definition of inferredFluxTradeoff. All five conjuncts hold by simplification, as each field matches the claimed value.

Definition 1186 Recommendation
#

Recommendations based on the trade-off:

  • useStandard: Use standard measurement for threshold guarantees,

  • useInferred: Use inferred flux for small instances with high-weight checks,

  • addModifications: Add further modifications to recover a threshold.

Definition 1187 Recommend Strategy
#

The recommendation function: if a threshold is needed, use the standard strategy; otherwise, if the instance is small (\(n \leq 100\)), use inferred flux; otherwise, add modifications.