From b0f9aacfddc562c02bdcbc1ccdef299800b8d7a4 Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 30 Oct 2024 20:37:17 +0400 Subject: [PATCH] feat: Adding dispersive shift --- src/qibocal/calibration/calibration.py | 7 +++++++ src/qibocal/update.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/qibocal/calibration/calibration.py b/src/qibocal/calibration/calibration.py index f7d476346..e68e19bc8 100644 --- a/src/qibocal/calibration/calibration.py +++ b/src/qibocal/calibration/calibration.py @@ -36,6 +36,13 @@ class Resonator(Model): """Dressed resonator frequency [Hz].""" depletion_time: Optional[int] = None """Depletion time [ns].""" + + @property + def dispersive_shift(self): + """Dispersive shift.""" + return self.bare_frequency - self.dressed_frequency + + # TODO: Add setter for dispersive shift as well # TODO: Add something related to resonator calibration diff --git a/src/qibocal/update.py b/src/qibocal/update.py index 82fe1a831..746dd9f32 100644 --- a/src/qibocal/update.py +++ b/src/qibocal/update.py @@ -195,7 +195,7 @@ def sweetspot(sweetspot: float, platform: Platform, qubit: QubitId): def frequency_12_transition(frequency: int, platform: Platform, qubit: QubitId): - platform.calibration.single_qubits[qubit].qubit.omega_12 = int(frequency) + platform.calibration.single_qubits[qubit].qubit.frequency_12 = int(frequency) platform.qubits[qubit].native_gates.RX12.frequency = int(frequency)