quantum_launcher.routines.qiskit_routines.v2_wrapper#

Summary#

Classes:

RuntimeJobV2Adapter

SamplerV2Adapter

V1 adapter for V2 samplers.

SamplerV2JobAdapter

Dummy data holder, returns a v1 SamplerResult from v2 sampler job.

Reference#

class quantum_launcher.routines.qiskit_routines.v2_wrapper.RuntimeJobV2Adapter(job, **kwargs)[source]#

Bases: BasePrimitiveJob

result()[source]#

Return the results of the job.

cancel()[source]#

Attempt to cancel the job.

status()[source]#

Return the status of the job.

done()[source]#

Return whether the job has successfully run.

cancelled()[source]#

Return whether the job has been cancelled.

running()[source]#

Return whether the job is actively running.

in_final_state()[source]#

Return whether the job is in a final job state such as DONE or ERROR.

class quantum_launcher.routines.qiskit_routines.v2_wrapper.SamplerV2JobAdapter(job, **kwargs)[source]#

Bases: RuntimeJobV2Adapter

Dummy data holder, returns a v1 SamplerResult from v2 sampler job.

result()[source]#

Return the results of the job.

class quantum_launcher.routines.qiskit_routines.v2_wrapper.SamplerV2Adapter(sampler_v2: BaseSamplerV2, backend=None)[source]#

Bases: BaseSamplerV1

V1 adapter for V2 samplers.