autoqasm.operators.typecast module

Operators for int cast statements.

autoqasm.operators.typecast.int_(argument: Any, *args, **kwargs) IntVar | int[source]

Functional form of “int”.

Parameters:

argument (Any) – object to be converted into an int.

Returns:

IntVar | int – IntVar object if argument is QASM type, else int.