Skip to navigation
Usage

Use a simulated OPX

Use a lab configured for simulation with a Quantum Machines OPX row. These instructions are for the simulated instrument, not a physical OPX.

  1. Connect your computer and leave the user profile running. In the connections list, find the entry whose driver is qm. Note its proxy_host and proxy_port.
  2. In the lab’s Instruments table, select Download QM configuration beside the OPX name. The tooltip identifies the seed configuration or the calibrated configuration saved by a job.
  3. In the environment for your QUA program, use qm-qua 1.4.1 and NumPy. Give QuantumMachinesManager the listed host and proxy port, not the OPX’s own port. Load the downloaded JSON and pass it to open_qm.
  4. Run your program against that quantum machine. Open the resulting QUA Program job in Control to inspect its saved files.

For example, in an existing Python program where port is the listed proxy port and config is the downloaded configuration dictionary:

from qm import QuantumMachinesManager
manager = QuantumMachinesManager(host="127.0.0.1", port=port, timeout=120)
machine = manager.open_qm(config)
Quantum Machines OPX row with an available local endpoint. The download icon beside the instrument name shows a tooltip identifying the seed configuration.
The seed configuration download in Cryogenic Readout Lab (Simulator).

The longer connection timeout allows Control to start the simulated OPX after an idle period. Close the quantum machine with machine.close() when your program finishes. If the OPX or its download is missing, ask your lab manager to check the lab configuration.