autoqasm.operators.arithmetic module

Operators for arithmetic operators: //

autoqasm.operators.arithmetic.floor_div(num: IntVar | FloatVar | float, den: IntVar | FloatVar | float) int | IntVar[source]

Functional form of “//”. :param num: The numerator of the integer division :type num: IntVar | FloatVar | float :param den: The denominator of the integer division :type den: IntVar | FloatVar | float

Returns :

int | IntVar : integer division, IntVar if either numerator or denominator are QASM types, else int