iq_readout.three_state_classifiers.GaussMixClassifier.fit#

classmethod three_state_classifiers.GaussMixClassifier.fit(shots_0, shots_1, shots_2, n_bins=[100, 100])#

Fits the given data to extract the best parameters for classification.

Parameters:
shots_0: np.ndarray(N, 2)

IQ data when preparing state 0

shots_1: np.ndarray(M, 2)

IQ data when preparing state 1

shots_2: np.ndarray(P, 2)

IQ data when preparing state 2

n_bins: (nx_bins, ny_bins)

Number of bins for the first and second coordinate used in the 2d histograms

Returns:
GaussMixClassifier containing the fitted parameters