From 4e5739212302e84ed97f3995d2cdd8dd6fa4319b Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Mon, 2 Dec 2024 17:38:24 +0100 Subject: [PATCH] feat: Add qblox channels, to expose attenuation --- .../_core/instruments/qblox/channels.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/qibolab/_core/instruments/qblox/channels.py diff --git a/src/qibolab/_core/instruments/qblox/channels.py b/src/qibolab/_core/instruments/qblox/channels.py new file mode 100644 index 000000000..b509d8acb --- /dev/null +++ b/src/qibolab/_core/instruments/qblox/channels.py @@ -0,0 +1,22 @@ +from typing import Literal + +from qibolab._core.components import IqConfig + +__all__ = ["QbloxConfigs", "QbloxIq"] + + +class QbloxIq(IqConfig): + """Microwave output channel config using Qblox.""" + + kind: Literal["qblox-iq"] = "qblox-iq" + + attenuation: float = 0.0 + """Output attenuation in dB. + + For the specific case of ``out0``, cf. + + - https://docs.qblox.com/en/main/api_reference/module.html#QCM_RF.out0_att + """ + + +QbloxConfigs = QbloxIq