iqm.pulse.utils.normalize_angle

iqm.pulse.utils.normalize_angle#

iqm.pulse.utils.normalize_angle(angle)#

Normalize the given angle to (-pi, pi].

Parameters:

angle (float) – angle to normalize (in radians)

Returns:

angle normalized to (-pi, pi]

Return type:

float