Skip to content

Commit

Permalink
Merge pull request #647 from qiboteam/fix_dispersive
Browse files Browse the repository at this point in the history
Fix dispersive shift plot
  • Loading branch information
andrea-pasquale authored Nov 29, 2023
2 parents 4b28236 + c136ab4 commit 9b307a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qibocal/protocols/characterization/dispersive_shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def _plot(data: DispersiveShiftData, qubit, fit: DispersiveShiftResults):
if fit is not None:
fig.add_trace(
go.Scatter(
x=[fit.best_freq[qubit], fit.best_freq[qubit]],
x=[fit.best_freq[qubit] * HZ_TO_GHZ, fit.best_freq[qubit] * HZ_TO_GHZ],
y=[
np.min(np.concatenate((data_0.signal, data_1.signal))),
np.max(np.concatenate((data_0.signal, data_1.signal))),
Expand All @@ -306,7 +306,7 @@ def _plot(data: DispersiveShiftData, qubit, fit: DispersiveShiftResults):
)

fig.add_vline(
x=fit.best_freq[qubit],
x=fit.best_freq[qubit] * HZ_TO_GHZ,
line=dict(color="orange", width=3, dash="dash"),
row=1,
col=1,
Expand All @@ -317,7 +317,7 @@ def _plot(data: DispersiveShiftData, qubit, fit: DispersiveShiftResults):
[
"State Zero Frequency [Hz]",
"State One Frequency [Hz]",
"Chi Best [Hz]",
"Chi [Hz]",
"Best Frequency [Hz]",
],
np.round(
Expand Down

0 comments on commit 9b307a4

Please sign in to comment.