Expand description
Functions and traits for inverting circuits.
Traits
- An Invertable circuit builder must be able to produce a similar circuit builder with the
new_simiar
call. This subcircuit builder can be used to make circuits that Self can invert and then apply. - A trait which recursively requires that subcircuit builders also implement the traits the original circuit builders implemented. This allows passing to functions which may arbitrarily call other functions without type-tracking the depth of the stack.
Functions
- Invert the circuit made by
f
. Apply the inverted circuit to registersrs
using circuitbuildercb
. - Invert the circuit made by
f
using argumentst
. Apply the inverted circuit to registersrs
using circuitbuildercb
.