Module deep_copy

Source

Traits§

NameMapper
A trait used to return names for input and output gates when creating copies of circuits.

Functions§

deep_copy
Creates a deep / independent copy of the given circuit. The name_mapper is responsible for returning new names for the inputs and outputs. If the name_mapper returns existing names for inputs, these gates will still be shared, since input nodes are identified by their names.
deep_copy_of_gate