qat.interop.qiskit.AsyncBackendToQPU

class qat.interop.qiskit.AsyncBackendToQPU(backend=None, token=None, ibm_backend='ibm_brisbane')

Wrapper around any Qiskit simulator / quantum chip connection. This class defines an asynchronous QPU. If you need a synchronous QPU, please use BackendToQPU.

This asynchronous QPU can be instantiated using:

  • a Qiskit backend: please use the keyword argument backend

  • an IBM token and the name of the backend: please the keyword arguments token and ibm_backend (the default backend is "ibm_brisbane")

  • no argument: the "aer_simulator" is used if no argment is specified

Warning

Since this QPU is asynchronous, plugins can’t be piped to this QPU

Parameters:
  • backend – The Backend Qiskit object that is supposed to execute the circuit.

  • token (str) – Qiskit ibm login token. If not supplied, loaded from the environment variable QISKIT_TOKEN

  • ibm_backend (str) – name of the backend. Defaults to ‘ibm_brisbane’.

retrieve_job(file_name)

Retrieves a QiskitJob from a binary file in which the QLM Batch object - from which the QiskitJob has been created - has been dumped.

Parameters:

file_name – Name of the binary file

Returns:

QiskitJob object

submit(qlm_batch)

Submits a QLM batch of jobs and returns the corresponding QiskitJob.

Parameters:

qlm_batchBatch or Job. If a single job is provided, a batch is created from this job.

Returns:

QiskitJob object with the same interface as a job derived from JobV1 for the user to have information on their job execution