Some¶
- class hugr.ops.Some(*some_tys: Type)[source]¶
Bases:
TagTag operation for the Some variant of an Option type.
Example
# construct a Some variant holding a row of Bool and Unit types >>> Some(tys.Bool, tys.Unit) Some(Bool, Unit)
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
num_outtagsum_ty- outer_signature() FunctionType¶
The external signature of this operation. Defines the valid external connectivity of the node the operation belongs to.
- Raises:
IncompleteOp – If the operation’s inputs and outputs have not been set.