Skip to content

Commit

Permalink
fix: Mixers update when multiple pulses are used
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Feb 15, 2024
1 parent 6a0d292 commit 7711fe9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/qibolab/instruments/qm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ def register_drive_element(self, qubit, intermediate_frequency=0):
self.elements[f"drive{qubit.name}"][
"intermediate_frequency"
] = intermediate_frequency
self.mixers[f"mixer_drive{qubit.name}"][0][
"intermediate_frequency"
] = intermediate_frequency
if isinstance(qubit.drive.port, OPXIQ):
self.mixers[f"mixer_drive{qubit.name}"][0][
"intermediate_frequency"
] = intermediate_frequency

def register_readout_element(
self, qubit, intermediate_frequency=0, time_of_flight=0, smearing=0
Expand Down Expand Up @@ -183,9 +184,10 @@ def register_readout_element(
self.elements[f"readout{qubit.name}"][
"intermediate_frequency"
] = intermediate_frequency
self.mixers[f"mixer_readout{qubit.name}"][0][
"intermediate_frequency"
] = intermediate_frequency
if isinstance(qubit.readout.port, OPXIQ):
self.mixers[f"mixer_readout{qubit.name}"][0][
"intermediate_frequency"
] = intermediate_frequency

def register_flux_element(self, qubit, intermediate_frequency=0):
"""Register qubit flux elements and controllers in the QM config.
Expand Down

0 comments on commit 7711fe9

Please sign in to comment.