Skip to content

Commit

Permalink
Merge pull request #220 from qiboteam/qblox-time-of-flight
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido authored Feb 25, 2025
2 parents a0e555e + ecd539a commit 25839c5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,17 @@ def qm(conf: dict, instruments: dict, instrument_channels: dict) -> dict:
return conf


def qblox(configs: dict, instruments: dict) -> dict:
def qblox(configs: dict, instruments: dict, channels: dict) -> dict:
MODS = {"qcm_bb", "qcm_rf", "qrm_rf"}
return (
configs
| {
f"{q}/acquisition": configs[f"{q}/acquisition"]
| {"delay": ports["i1"]["acquisition_hold_off"]}
for inst, ports in instruments.items()
if "qrm_rf" in inst
for q in [q[1:] for q in channels[inst]["1"]]
}
| {
f"{inst}/{port}/lo": {
"kind": "oscillator",
Expand Down Expand Up @@ -264,7 +271,7 @@ def device_specific(
qm(configs, o["instruments"], connections["channels"])
if connections["kind"] == "qm"
else (
qblox(configs, o["instruments"])
qblox(configs, o["instruments"], connections["channels"])
if connections["kind"] == "qblox"
else NONSERIAL
)
Expand Down

0 comments on commit 25839c5

Please sign in to comment.