qat.interop.qiskit.AsyncBackendToQPU

class qat.interop.qiskit.AsyncBackendToQPU(backend=None, token=None, ibmq_backend='ibmq_qasm_simulator')

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 ibmq_backend (the default backend is "ibmq_qasm_simulator")

  • 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 IBMQ login token. If not supplied, loaded from the environment variable QISKIT_TOKEN

  • ibmq_backend (str) – name of the backend. Defaults to ‘ibmq_qasm_simulator’.

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