Definition 8: Detectors #
Statement #
A detector is a collection of state initializations and measurements whose outcomes satisfy a deterministic constraint in the absence of faults (Definition 7).
A detector is specified by a set of measurement labels such that the product of all outcomes (in {+1, -1}) equals +1 when there are no faults. In ZMod 2 encoding (0 ↔ +1, 1 ↔ -1), this means the sum of ideal outcomes over the detector's measurements equals 0.
Main Results #
Detector: A detector on measurement type M with ideal outcomesDetector.detectorConstraint: The sum of ideal outcomes over detector measurements is 0Detector.isViolated: Whether a set of time-faults causes the detector to fireDetector.observedParity: The observed parity of detector measurements under faultsrepeatedMeasurementDetector: Two consecutive measurements of the same check form a detectorinitAndMeasureDetector: Initialization + later measurement forms a detector
Corollaries #
- No-fault detectors have observed parity 0
- Violation depends only on which detector measurements are faulted
- Syndrome: the set of violated detectors
Detector Definition #
A detector is a finite collection of measurement labels together with ideal outcomes, such that the sum (in ZMod 2) of the ideal outcomes over the detector's measurements is 0. In {+1, -1} encoding, this means the product of ideal outcomes equals +1.
The type parameter M labels all measurements and state initializations in the procedure (per Definition 7, initializations are treated as measurements).
- measurements : Finset M
The finset of measurement labels comprising this detector.
- idealOutcome : M → ZMod 2
The ideal outcome of each measurement (0 ↔ +1, 1 ↔ -1 in ZMod 2).
The detector constraint: in the absence of faults, the sum of ideal outcomes over the detector's measurements is 0 in ZMod 2. Equivalently, the product of {+1, -1} outcomes equals +1.
Instances For
Observed parity and violation #
The observed parity of a detector under a set of time-faults. This is the sum (in ZMod 2) of observed outcomes over the detector's measurements. In {+1, -1} encoding, 0 means the product is +1, 1 means the product is -1.
Equations
- D.observedParity faults = ∑ m ∈ D.measurements, observedOutcome D.idealOutcome faults m
Instances For
A detector is violated by a set of time-faults if the observed parity is 1 (i.e., the product of observed outcomes is -1 instead of +1).
Equations
- D.isViolated faults = (D.observedParity faults = 1)
Instances For
The flip parity: the sum in ZMod 2 of the indicator of faulted measurements in this detector. This equals the observed parity.
Equations
- D.flipParity faults = ∑ m ∈ D.measurements, if { measurement := m } ∈ faults then 1 else 0
Instances For
Basic Properties #
In the absence of faults, the observed parity equals 0 (detector is not violated).
In the absence of faults, no detector is violated.
The observed parity equals the flip parity (number of faulted measurements mod 2). This is because the ideal outcomes cancel by the detector constraint.
A detector is violated iff the flip parity is 1.
The flip parity with no faults is 0.
Violation depends only on fault-detector intersection #
The violation of a detector depends only on which of the detector's measurements appear in the fault set.
Violation is invariant if we add faults outside the detector.
Detector from a single measurement repeated twice #
Example 1: Two consecutive measurements of the same stabilizer check s at times t and t+1 form a detector. If no faults occur, both give the same outcome, so their product is +1.
A repeated measurement detector: measuring the same check at two different times. Both measurements have the same ideal outcome, so in ZMod 2 they sum to 0.
Equations
Instances For
An initialization-measurement detector: initializing a qubit and later measuring it in the same basis. Both give the same outcome (+1 for |0⟩ → Z-measurement), so the product is +1. The two labels m_init and m_meas represent the initialization (treated as a measurement per Def 7) and the actual measurement.
Equations
Instances For
Properties of example detectors #
A repeated measurement detector is violated iff exactly one of the two measurements is faulted (i.e., the two outcomes disagree).
Syndrome: the set of violated detectors #
The syndrome of a set of time-faults with respect to a collection of detectors: the set of detector indices that are violated.
Equations
- Detector.syndrome detectors faults = {i : I | (detectors i).observedParity faults = 1}
Instances For
A detector index is in the syndrome iff the detector is violated.
The syndrome is empty when there are no faults.
Disjoint union of detectors #
The union of two detectors with disjoint measurement sets forms a new detector, provided the ideal outcomes agree on any common measurements.
Equations
- D₁.disjointUnion D₂ hdisj hsame = { measurements := D₁.measurements ∪ D₂.measurements, idealOutcome := D₁.idealOutcome, detectorConstraint := ⋯ }
Instances For
Empty and single-measurement detectors #
The empty detector (no measurements) is trivially satisfied.
Equations
- Detector.emptyDetector idealOutcome = { measurements := ∅, idealOutcome := idealOutcome, detectorConstraint := Detector.emptyDetector._proof_1 }
Instances For
The empty detector is never violated.
A single-measurement detector requires the ideal outcome to be 0 (i.e., the measurement gives +1 in the absence of faults).
Equations
Instances For
A single-measurement detector with outcome 0 is violated iff the measurement is faulted.
Detector violation from spacetime faults #
The violation status of a detector under a spacetime fault is determined by the time-fault component. Space-faults change the quantum state but the detector constraint is purely about measurement outcome flips.
Detector weight #
The weight (number of measurements) in a detector.
Equations
Instances For
The repeated measurement detector has weight 2.
The init-and-measure detector has weight 2.
The empty detector has weight 0.
The single-measurement detector has weight 1.