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.
A CNOT's control and target must be distinct.
Equations
- LeanPool.SingleCopyStabilizer.InstructionSemantics.WellFormed (LeanPool.SingleCopyStabilizer.ExactResources.Instruction.cnot i j) = (i ≠ j)
- LeanPool.SingleCopyStabilizer.InstructionSemantics.WellFormed (LeanPool.SingleCopyStabilizer.ExactResources.Instruction.phase site) = True
- LeanPool.SingleCopyStabilizer.InstructionSemantics.WellFormed (LeanPool.SingleCopyStabilizer.ExactResources.Instruction.hadamard site) = True
Instances For
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
Chronological composition of elementary instructions.
Equations
- One or more equations did not get rendered due to their size.
- LeanPool.SingleCopyStabilizer.InstructionSemantics.instructionsEquiv [] = LinearEquiv.refl ℂ (LeanPool.SingleCopyStabilizer.Measurement.Amplitude ι)
Instances For
CNOT masks sharing a control add under composition.
Mask obtained from a list of CNOT targets, counting repeated targets modulo two.
Equations
- LeanPool.SingleCopyStabilizer.InstructionSemantics.targetMask targets = (List.map (fun (j : ι) => Pi.single j 1) targets).sum
Instances For
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.