Skip to content

Commit

Permalink
feat: Adding dispersive shift
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale authored and stavros11 committed Nov 7, 2024
1 parent 0874d71 commit b0f9aac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/qibocal/calibration/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion src/qibocal/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit b0f9aac

Please sign in to comment.