Input#
- class hugr.ops.Input(types: list[Type])[source]#
Bases:
DataflowOp
Input operation in dataflow graph. Outputs of this operation are the inputs to the graph.
Methods
Name of the operation.
The external signature of this operation.
Get the kind of the given port.
Get the type of the given dataflow port from the signature of the operation.
Attributes
The number of output ports for this operation.
types
- property num_out: int#
The number of output ports for this operation.
Example
>>> op = Const(val.TRUE) >>> op.num_out 1
- outer_signature() FunctionType [source]#
The external signature of this operation. Defines the valid external connectivity of the node the operation belongs to.