int_t

hugr.std.int.int_t(width: int) ExtType[source]

Create an integer type with a fixed log bit width.

Parameters:

width – The log bit width of the integer.

Returns:

The integer type.

Examples

>>> int_t(5).type_def.name # 32 bit integer
'int'