DataflowOp#
- class hugr.ops.DataflowOp(*args, **kwargs)[source]#
-
Abstract dataflow operation. Can be assumed to have a signature and Value- kind ports.
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.
- 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.