Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.1] Specify QM cluster name #1150

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading