qiskit_quantuminspire.hybrid package

Submodules

qiskit_quantuminspire.hybrid.hybrid_backend module

class qiskit_quantuminspire.hybrid.hybrid_backend.QIHybridBackend(qi: QuantumInterface, **kwargs: Any)[source]

Bases: QIBaseBackend

Used as a Qiskit backend for hybrid algorithms that are fully executed on the Quantum Inspire platform.

Quantum hardware specifications are inferred from the backend type selected on submission.

run(run_input: QuantumCircuit | List[QuantumCircuit], **options: Any) QIHybridJob[source]

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 QuantumCircuit, ScheduleBlock, or Schedule 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

property status: BackendStatus

Return the backend status. Pending jobs is always 0. This information is currently not known.

Returns:

the status of the backend. Pending jobs is always 0.

Return type:

BackendStatus

qiskit_quantuminspire.hybrid.hybrid_job module

class qiskit_quantuminspire.hybrid.hybrid_job.QIHybridJob(run_input: QuantumCircuit | List[QuantumCircuit], backend: BackendV2 | None, quantum_interface: QuantumInterface, **kwargs: Any)[source]

Bases: QIBaseJob

Used internally as a Qiskit job for hybrid algorithms that are fully executed on the Quantum Inspire platform.

Not to be used in user code.

result() Result[source]

Return the results of the job.

status() JobStatus[source]

Quantum jobs in a hybrid environment are executed synchronously.

submit() None[source]

Submit the job to the backend for execution.

Module contents