Skip to content

Commit

Permalink
Merge pull request #1150 from qiboteam/qm-cluster-0.1
Browse files Browse the repository at this point in the history
[0.1] Specify QM cluster name
  • Loading branch information
stavros11 authored Feb 19, 2025
2 parents bfb48cc + 62a09ee commit bad4b6c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/qibolab/instruments/qm/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ class QMController(Controller):
"""Dictionary containing the :class:`qibolab.instruments.qm.devices.Octave`
instruments being used."""

cluster_name: Optional[str] = None
"""Name of the Quantum Machines clusters to use.
Needs to be specified only when more than one clusters are connected
to the same router. See
https://docs.quantum-machines.co/1.1.5/qm-qua-sdk/docs/Hardware/opx%2Binstallation/?h=cluster_name#network-overview-and-configuration
for more details.
"""

time_of_flight: int = 0
"""Time of flight used for hardware signal integration."""
smearing: int = 0
Expand Down Expand Up @@ -249,7 +258,11 @@ def connect(self):
if self.cloud:
credentials = create_credentials()
self.manager = QuantumMachinesManager(
host=host, port=int(port), octave=octave, credentials=credentials
host=host,
port=int(port),
octave=octave,
credentials=credentials,
cluster_name=self.cluster_name,
)
self.is_connected = True

Expand Down

0 comments on commit bad4b6c

Please sign in to comment.