iq_readout.utils.rotate_data#

rotate_data(x, theta)[source]#

Counterclock-wise rotation of x by an angle theta.

Parameters:
x: np.ndarray(…, 2)

Input data to rotate

theta: float

Angle used to rotate the data. Must be following counterclockwise sign.

Returns:
output: np.ndarray(…, 2)

Rotated data.