iq_readout.two_state_classifiers.GaussMixLinearClassifier.fit#
- classmethod two_state_classifiers.GaussMixLinearClassifier.fit(shots_0, shots_1, n_bins=100)#
Fits the given data to extract the best parameters for classification.
- Parameters:
- shots_0: np.array(N, 2)
IQ data when preparing state 0
- shots_1: np.array(M, 2)
IQ data when preparing state 1
- n_bins:
Number of bins for the 1d histograms
- Returns:
- GaussMixLinearClassifier containing the fitted parameters