qiskit_iqm.iqm_backend.IQMBackend
qiskit_iqm.iqm_backend.IQMBackend#
- class qiskit_iqm.iqm_backend.IQMBackend(client, **kwargs)#
Bases:
qiskit.providers.backend.BackendV2
Qiskit backend enabling the execution of quantum circuits on IQM quantum computers.
- Parameters
client (IQMClient) – IQM Cortex client used for submitting circuits for execution on an IQM server
**kwargs – optional arguments to be passed to the parent Qiskit Backend initializer
Initialize a BackendV2 based backend
- Parameters
provider – An optional backwards reference to the
Provider
object that the backend is fromname – An optional name for the backend
description – An optional description of the backend
online_date – An optional datetime the backend was brought online
backend_version – An optional backend version string. This differs from the
version
attribute asversion
is for the abstractBackend
abstract interface version of the object whilebackend_version
is for versioning the backend itself.fields – kwargs for the values to use to override the default options.
client (IQMClient) –
- Raises
AttributeError – If a field is specified that’s outside the backend’s options
Attributes
The maximum number of circuits (or Pulse schedules) that can be run in a single job.
A
qiskit.transpiler.Target
object for the backend.Methods
_default_options
()Return the default options
Close IQMClient's session with the authentication server.
retrieve_job
(job_id)Create and return an IQMJob instance associated with this backend with given job id.
run
(run_input, **options)Run on the backend.
- property target: qiskit.transpiler.target.Target#
A
qiskit.transpiler.Target
object for the backend.- Return type
Target
- property max_circuits: int#
The maximum number of circuits (or Pulse schedules) that can be run in a single job.
If there is no limit this will return None
- run(run_input, **options)#
Run on the backend.
This method returns a
Job
object that runs circuits. Depending on the backend this may be either an async or sync call. It is at the discretion of the provider to decide whether running should block until the execution is finished or not: the Job class can handle either situation.- Parameters
run_input (QuantumCircuit or Schedule or ScheduleBlock or list) – An individual or a list of
ScheduleBlock
, orSchedule
objects to run on the backend.options – Any kwarg options to pass to the backend for running the config. If a key is also present in the options attribute/object then the expectation is that the value specified will be used instead of what’s set in the options object.
- Returns
The job object for the run
- Return type
Job
- retrieve_job(job_id)#
Create and return an IQMJob instance associated with this backend with given job id.
- Parameters
job_id (str) –
- Return type
- close_client()#
Close IQMClient’s session with the authentication server. Discard the client.