Skip to content

Commit

Permalink
Merge pull request #742 from qiboteam/fix_spectroscopy
Browse files Browse the repository at this point in the history
Fix bug in lorentzian plot for spectroscopies
  • Loading branch information
andrea-pasquale authored Mar 8, 2024
2 parents 80b343a + 4d86289 commit b811472
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qibocal/protocols/characterization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,10 @@ def spectroscopy_plot(data, qubit, fit: Results = None):

if fit is not None:
params = fit.fitted_parameters[qubit]

fig.add_trace(
go.Scatter(
x=freqrange,
y=lorentzian(freqrange * GHZ_TO_HZ, *params),
y=lorentzian(freqrange, *params),
name="Fit",
line=go.scatter.Line(dash="dot"),
),
Expand Down

0 comments on commit b811472

Please sign in to comment.