Skip to content

Commit

Permalink
fix: Introduce los in test platform
Browse files Browse the repository at this point in the history
For real...
  • Loading branch information
alecandido committed Feb 20, 2025
1 parent 2c7bf8b commit b0ba823
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
15 changes: 15 additions & 0 deletions qblox-test/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@
"threshold": null,
"iq_angle": null,
"kernel": null
},
"qrm_rf/o1/lo": {
"kind": "oscillator",
"frequency": 5e9,
"power": 28
},
"qrm_rf_lo/o1/lo": {
"kind": "oscillator",
"frequency": 5e9,
"power": 26
},
"qcm_rf/o1/lo": {
"kind": "oscillator",
"frequency": 4e9,
"power": 26
}
},
"native_gates": {
Expand Down
19 changes: 18 additions & 1 deletion qblox-test/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from qibolab import Hardware, Qubit
from qibolab._core.instruments.qblox.cluster import Cluster
from qibolab._core.instruments.qblox.platform import map_ports
from qibolab._core.instruments.qblox.platform import infer_los, map_ports

NAME = "qblox-test"
ADDRESS = "192.168.0.21"
Expand All @@ -24,6 +24,23 @@ def create():

# Create channels and connect to instrument ports
channels = map_ports(CLUSTER, qubits)
los = infer_los(CLUSTER)

# update channel information beyond connections
for i, q in qubits.items():
if q.acquisition is not None:
channels[q.acquisition] = channels[q.acquisition].model_copy(
update={"twpa_pump": "twpa"}
)
if q.probe is not None:
channels[q.probe] = channels[q.probe].model_copy(
update={"lo": los[i, True]}
)
if q.drive is not None:
channels[q.drive] = channels[q.drive].model_copy(
update={"lo": los[i, False]}
)

controller = Cluster(name=NAME, address=ADDRESS, channels=channels)

return Hardware(instruments={"qblox": controller}, qubits=qubits)

0 comments on commit b0ba823

Please sign in to comment.