Skip to content

Commit

Permalink
fix: time of flight for QM platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Nov 26, 2024
1 parent 746c467 commit ea39694
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

NONSERIAL = lambda: None
"""Raise an error if survives in the final object to be serialized."""
QM_TIME_OF_FLIGHT = 224
"""Default time of flight for QM platforms (in 0.1 this was hard-coded in platform.py)."""


def channel_from_pulse(pulse: dict) -> dict:
Expand All @@ -34,7 +36,11 @@ def qm_configs(conf: dict, instruments: dict, instrument_channels: dict) -> dict
kind = conf[channel]["kind"]
if kind == "acquisition":
conf[channel].update(
{"kind": "qm-acquisition", "gain": settings.get("gain", 0)}
{
"kind": "qm-acquisition",
"delay": QM_TIME_OF_FLIGHT,
"gain": settings.get("gain", 0),
}
)
elif kind == "dc":
conf[channel].update(
Expand Down

0 comments on commit ea39694

Please sign in to comment.