qat.qlmaas.qpus.QLMaaSQPU
Remote QPUs are managed by QLMaaSQPU objects. These objects can be
built using:
qlmaas.qpusmodule if a configuration exists on your computera
QLMaaSConnectionobject (when the connection is defined manually). Please note that, even if there is no configuration file on your computer, instantiating aQLMaaSConnectionobject enables theqlmaas.qpusmodule
- class qat.qlmaas.qpus.QLMaaSQPU(connection, name: str, constructor: SerializedArguments, description: str)
 Class describing a QPU defined on a remote server.
If a configuration file is present on your computer, you can use the module
qlmaas.qpusto instantiate a remote QPU:from qlmaas.qpus import LinAlg # Define a qpu qpu = LinAlg()
Otherwise, if no configuration file is set on your machine, you can use a
QLMaaSConnectionobject:from qat.qlmaas import QLMaaSConnection # Connect to the server conn = QLMaaSConnection() # Get remote QPU LinAlg = conn.get_qpu("qat.qpus:LinAlg") qpu = LinAlg()
- submit(batch, meta_data: dict | None = None, mem_usage: int | None = None, core_usage: int | None = None, nb_nodes: int | None = None, max_time: int | timedelta | None = None)
 Submit a batch to the server
- Parameters:
 batch (
Batch) – batch to submitmeta_data (dict, optional) – override the meta_data of the batch
mem_usage (int, optional) – override default memory usage (in MB) calculation
core_usage (int, optional) – override default core usage calculation
nb_nodes (int, optional) – override default number of nodes
max_time (int | datetime.timedelta, optional) – maximum time for the job, indicated either with a timedelta, or in minutes (this argument may not be supported by the scheduler)
- Returns:
 asynchronous result
- Return type: