iq_readout.utils#
Common functions used in IQ readout.
Functions
|
Checks that x has length 2 at the last axis. |
|
The counterclockwise angle from the x-axis in the range (-pi, pi]. |
|
Runs a 2d histogram and returns the counts, xx, and yy data flattened. |
|
Flattens the output of the histogram_2d and combines the two coordinates to a single variable with shape=(nx_bins * ny_bins, 2) and counts with shape=(nx_bins * ny_bins,). |
|
Counterclock-wise rotation of x by an angle theta. |