qat.core.variables.exp

qat.core.variables.exp(number)

Natural exponential function taking a (complex) number as an argument.

from math import pi
from qat.core.variables import exp

minus_1 = exp(1j * pi)

print(minus_1.real)
print(minus_1.imag)
-1.0
1.2246467991473532e-16
Parameters

number (Variable or ArithExpression or number) – a number, possibly complex

Returns

natural exponential

Return type

ArithExpression or number