diff --git a/src/qibocal/protocols/characterization/qubit_spectroscopy.py b/src/qibocal/protocols/characterization/qubit_spectroscopy.py index e7db7844a..4b63e5e82 100644 --- a/src/qibocal/protocols/characterization/qubit_spectroscopy.py +++ b/src/qibocal/protocols/characterization/qubit_spectroscopy.py @@ -140,7 +140,7 @@ def _fit(data: QubitSpectroscopyData) -> QubitSpectroscopyResults: ) chi2[qubit] = ( chi2_reduced( - data[qubit].freq, + data[qubit].signal, lorentzian(data[qubit].freq, *fitted_parameters[qubit]), data[qubit].error_signal, ), diff --git a/src/qibocal/protocols/characterization/rabi/amplitude.py b/src/qibocal/protocols/characterization/rabi/amplitude.py index e7a11ca78..8759c7183 100644 --- a/src/qibocal/protocols/characterization/rabi/amplitude.py +++ b/src/qibocal/protocols/characterization/rabi/amplitude.py @@ -173,7 +173,6 @@ def _fit(data: RabiAmplitudeData) -> RabiAmplitudeResults: def _plot(data: RabiAmplitudeData, target: QubitId, fit: RabiAmplitudeResults = None): """Plotting function for RabiAmplitude.""" - print(fit) return utils.plot_probabilities(data, target, fit) diff --git a/src/qibocal/protocols/characterization/resonator_spectroscopy.py b/src/qibocal/protocols/characterization/resonator_spectroscopy.py index 35dd8fe60..f3bae440e 100644 --- a/src/qibocal/protocols/characterization/resonator_spectroscopy.py +++ b/src/qibocal/protocols/characterization/resonator_spectroscopy.py @@ -219,7 +219,7 @@ def _fit( bare_frequency[qubit] = frequency[qubit] chi2[qubit] = ( chi2_reduced( - data[qubit].freq, + data[qubit].signal, lorentzian(data[qubit].freq, *fitted_parameters[qubit]), data[qubit].error_signal, ),