pygsti.processors.random_compilation.mod_2pi

Contents

pygsti.processors.random_compilation.mod_2pi#

mod_2pi(theta)#

Modifies an angle to be within the range of -π to π.

Parameters:

theta (float) – The angle in radians to be modified.

Returns:

The modified angle within the range of -π to π.

Return type:

float