qat.interop.qiskit.BackendToQPU

class qat.interop.qiskit.BackendToQPU(backend=None, plugins=None, token=None, ibmq_backend='ibmq_qasm_simulator', optimization_level=0)

Wrapper around any Qiskit simulator / quantum chip connection. Despite the asynchronous nature of Qiskit’s backends, this class defines a synchronous QPU. If you need an asynchronous, please use AsyncBackendToQPU.

This 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

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

  • plugins (list) – linked plugins

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

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

  • optimization_level (int, optional) – 0: No optimization (Default). 1: Light optimization. 2: Heavy optimization. 3: Highest optimization.

submit(batch: Batch, meta_data: Optional[dict] = None) BatchResult

Executes a batch of jobs and returns the corresponding list of Results.

Parameters

batch (Batch) – a batch of jobs. If a single job is provided, the job is embedded into a Batch, executed, and the first result is returned.

Returns

a batch result

Return type

(BatchResult)