Math functions¶
-
abs
(x)¶ Compute the absolute value of x on hardware :param x: a QUA variable :return:
-
argmax
(x)¶ Return the index of the maximum of an array on hardware :param x: a QUA array :return: index of maximum value of array
-
argmin
(x)¶ Return the index of the minimum of an array on hardware :param x: a QUA array :return: index of minimum value of array
-
cos
(x)¶ Compute the cos of a x on hardware :param x: the angle in radians :return:
-
cos2pi
(x)¶ Compute the cos of a 2*pi*x on hardware :param x: the angle in radians :return:
-
max
(x)¶ Compute max of an array x on hardware :param x: a QUA array :return: max value of the array, has same type as x
-
min
(x)¶ Compute min of an array x on hardware :param x: a QUA array :return: min value of the array, has same type as x
-
sin
(x)¶ Compute the sin of a x on hardware :param x: the angle in radians :return:
-
sin2pi
(x)¶ Compute the sin of a 2*pi*x on hardware :param x: the angle in radians :return:
-
sum
(x)¶ Compute sum of an array x on hardware :param x: a QUA array :return: sum of the array, has same type as x