Documentation

Complexitylib.Circuits.InputReindexing.Defs

Circuit input reindexing -- definitions #

This layer transports a circuit along an arbitrary map from its original primary inputs into a new positive input tuple. Internal gates keep their order and every source internal wire retains its gate index.

def Complexity.Circuit.reindexInputWire {N N' G : } (mapInput : Fin NFin N') :
Fin (N + G)Fin (N' + G)

Map an input-or-gate wire into a new primary-input namespace while preserving the internal-gate index.

Equations
Instances For
    def Complexity.Circuit.reindexInputs {B : Basis} {N N' M G : } [NeZero N] [NeZero N'] [NeZero M] (circuit : Circuit B N M G) (mapInput : Fin NFin N') :
    Circuit B N' M G

    Reindex a circuit's primary inputs without changing its gates, outputs, or resource counts.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For