Tuple¶
- class hugr.val.Tuple(*vals: Value)[source]¶
Bases:
SumTuple or product value, defined by a list of values. Internally a
Sumwith a single variant row.Example
>>> tup = Tuple(TRUE, FALSE) >>> tup Tuple(TRUE, FALSE) >>> tup.type_() Tuple(Bool, Bool)
Methods
to_modelReport the type of the value.
Attributes
n_variantsTag identifying the variant.
defines all possible variants.
The values of this variant row.