Documentation

LeanPool.SingleCopyStabilizer.InstructionSemantics

Elementary gate semantics of the recorded learning circuit #

The instruction lists counted in ExactResources denote exactly the complex-linear Clifford operations in Circuit. In particular the counted individual CNOTs implement the simultaneous target-mask operation.

Elementary physical gate interpretation. A malformed self-target CNOT is totalized as the identity; generated instruction lists never use that case.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem LeanPool.SingleCopyStabilizer.InstructionSemantics.cnotEquiv_trans {ι : Type u_1} (i : ι) (w v : Measurement.Bits ι) (hw : w i = 0) (hv : v i = 0) :

    CNOT masks sharing a control add under composition.

    Mask obtained from a list of CNOT targets, counting repeated targets modulo two.

    Equations
    Instances For
      theorem LeanPool.SingleCopyStabilizer.InstructionSemantics.targetMask_control_zero {ι : Type u_1} [DecidableEq ι] (i : ι) (targets : List ι) (hi : i ∉ targets) :
      targetMask targets i = 0

      A list of single-target CNOTs realizes its simultaneous target mask.

      For a pivot bit equal to one, the elementary target list is exactly the paper's mask u - eᵢ.

      The counted elementary instructions implement exactly one physical learning round, including its zero-difference branch.

      The complete counted elementary circuit implements exactly the same operation as the recorded outcome circuit used by the decoder.

      The learned amplitude is exactly the inverse of the counted elementary instruction circuit, applied to the final computational basis string.