From 1d7b990abbe1e4edfd6747bd2d2889b5a8f163f8 Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 25 Oct 2024 21:19:27 +0400 Subject: [PATCH] fix: Fixing #1018 --- src/qibocal/protocols/qubit_spectroscopy.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qibocal/protocols/qubit_spectroscopy.py b/src/qibocal/protocols/qubit_spectroscopy.py index 5c8aeccb4..0b6314f09 100644 --- a/src/qibocal/protocols/qubit_spectroscopy.py +++ b/src/qibocal/protocols/qubit_spectroscopy.py @@ -117,7 +117,7 @@ def _acquisition( error_phase = np.std(_phase, axis=0, ddof=1) / np.sqrt(_phase.shape[0]) _phase = np.mean(_phase, axis=0) else: - error_signal, error_phase = 0, 0 + error_signal, error_phase = None, None data.register_qubit( ResSpecType, (qubit), @@ -170,7 +170,9 @@ def _plot(data: QubitSpectroscopyData, target: QubitId, fit: QubitSpectroscopyRe def _update(results: QubitSpectroscopyResults, platform: Platform, target: QubitId): - pass + platform.calibration.single_qubits[target].qubit.frequency_01 = results.frequency[ + target + ] # update.drive_frequency(results.frequency[target], platform, target)