Skip to content

Circuit

Circuit

Circuit(context, name)

Abstract interface for a circuit.

mk_circuit

mk_circuit(put_namespace=False)

Makes the circuit, including inputs and outputs. Optionally, it inserts a namespace.

Args: put_namespace (bool=False): whether to set a namespace

mk_naked_circuit

mk_naked_circuit(inputs, namespace=False)

Makes the naked circuit, using the provided inputs. It fills out the dictionaries with the created nets. Optionally, it inserts a namespace.

Args: inputs (Dict): the inputs to use namespace (bool=False): whether to set a namespace

Returns: (Dict) the ordered dictionary of the outputs