Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PiergiorgioButtarini committed Oct 6, 2023
1 parent c7e2e91 commit 14c6dec
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions qw5q_gold_qblox.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
)
from qibolab.instruments.qblox.controller import QbloxController
from qibolab.instruments.qblox.port import (
QbloxOutputPort_Settings,
QbloxInputPort_Settings,
QbloxOutputPort_Settings,
)
from qibolab.instruments.rohde_schwarz import SGS100A
from qibolab.platform import Platform
Expand Down Expand Up @@ -113,15 +113,13 @@
),
}
),
"qcm_bb0": ClusterQCM_BB_Settings(
{
"o2": QbloxOutputPort_Settings(
channel="L4-5",
gain=0.5,
qubit=0, # channel="L4-5", gain=0.5, offset=0.5544, qubit=0
)
"qcm_bb0": {
"o2": {
"channel": "L4-5",
"gain": 0.5,
"qubit": 0, # channel="L4-5", gain=0.5, offset=0.5544, qubit=0
}
),
},
"qcm_bb1": ClusterQCM_BB_Settings(
{
"o1": QbloxOutputPort_Settings(
Expand Down Expand Up @@ -158,7 +156,11 @@ def create(runcard_path=RUNCARD):

def instantiate_module(modules, cls, name, module_slot, settings):
module_settings = settings[name]
modules[name] = cls(name=name, address=ADDRESS+":"+str(module_slot), settings=module_settings)
modules[name] = cls(
name=name,
address=ADDRESS + ":" + str(module_slot),
settings=module_settings,
)
return modules[name]

modules = {}
Expand Down Expand Up @@ -201,7 +203,7 @@ def instantiate_module(modules, cls, name, module_slot, settings):
# for name in modules:
# modules[name]._debug_folder = folder

controller = QbloxController( name="first_name", cluster=cluster, modules=modules)
controller = QbloxController(name="first_name", cluster=cluster, modules=modules)
print("controller name:", controller.name)
# twpa_pump = SGS100A(name="twpa_pump", address="192.168.0.37")

Expand Down

0 comments on commit 14c6dec

Please sign in to comment.