Conversion between raw circuits and fixed-width descriptions #
Canonical zero padding makes valid fixed-width descriptions exactly equivalent to nonempty topologically ordered raw circuits within the gate bound. The two round trips preserve every gate, reference, and control bit.
A fixed-width reference word serializes to the expected little-endian bits.
Encoding a bounded topologically ordered raw circuit and converting it back preserves the exact gate list.
A bounded valid raw circuit produces a valid fixed-width description.
Canonical padding makes conversion from a description through raw syntax an exact round trip.
Valid fixed-width descriptions are exactly bounded valid raw circuits.
Equations
- Complexity.CircuitCode.FixedWidth.wellFormedEquiv inputWidth gateBound = Complexity.CircuitCode.FixedWidth.wellFormedEquivInternal inputWidth gateBound
Instances For
The forward equivalence map is the raw-circuit view of a valid fixed-width description.
The inverse equivalence map is canonical fixed-width conversion of a bounded raw circuit.
Equations
- One or more equations did not get rendered due to their size.