Skip to content

Commit

Permalink
fix: opx digital port
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Mar 25, 2024
1 parent 84006ba commit 2914c13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/qibolab/instruments/qm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ def register_port(self, port):

if is_octave:
con = port.opx_port.i.device
number = port.opx_port.i.number
device["connectivity"] = con
self.register_port(port.opx_port)
self.controllers[con]["digital_outputs"][port.number] = {}
self.controllers[con]["digital_outputs"][number] = {}

@staticmethod
def iq_imbalance(g, phi):
Expand Down
5 changes: 2 additions & 3 deletions src/qibolab/instruments/qm/ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@ def digital_inputs(self):
Digital markers are used to switch LOs on in triggered mode.
"""
opx = self.opx_port.i.device
return {
"output_switch": {"port": (opx, self.number)} | DIGITAL_PULSE_CALIBRATION
}
number = self.opx_port.i.number
return {"output_switch": {"port": (opx, number)} | DIGITAL_PULSE_CALIBRATION}


@dataclass
Expand Down

0 comments on commit 2914c13

Please sign in to comment.