From 01248d954b0406facdeedac7d2f38a1a81946442 Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 29 Nov 2023 08:54:18 +0100 Subject: [PATCH 1/2] Fix dispersive shift plot --- src/qibocal/protocols/characterization/dispersive_shift.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qibocal/protocols/characterization/dispersive_shift.py b/src/qibocal/protocols/characterization/dispersive_shift.py index 6c77cf647..588c07e42 100644 --- a/src/qibocal/protocols/characterization/dispersive_shift.py +++ b/src/qibocal/protocols/characterization/dispersive_shift.py @@ -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))), @@ -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, From c136ab41d2dd3a7f83abc2762262d9bfe962259d Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 29 Nov 2023 09:38:12 +0100 Subject: [PATCH 2/2] Best Chi -> Chi --- src/qibocal/protocols/characterization/dispersive_shift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qibocal/protocols/characterization/dispersive_shift.py b/src/qibocal/protocols/characterization/dispersive_shift.py index 588c07e42..1bb7aac4c 100644 --- a/src/qibocal/protocols/characterization/dispersive_shift.py +++ b/src/qibocal/protocols/characterization/dispersive_shift.py @@ -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(