Skip to content

Commit

Permalink
fix: Fix chi2 for spectroscopies
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Mar 4, 2024
1 parent 72873bb commit cfd1c08
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
1 change: 0 additions & 1 deletion src/qibocal/protocols/characterization/rabi/amplitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down

0 comments on commit cfd1c08

Please sign in to comment.