qiskit_rng.GeneratorJob

class GeneratorJob(initial_wsr: List[int], wsr: List[List], job: Union[qiskit.providers.basejob.BaseJob, qiskit.providers.ibmq.managed.managedjobset.ManagedJobSet], shots: int, saved_fn: Optional[str] = None)[source]

Representation of a job that executes on a backend that can generate random numbers.

GeneratorJob constructor.

Parameters
  • initial_wsr – Initial raw WSRs.

  • wsr – Processed WSRs used to generate circuits.

  • job – Circuit job(s).

  • shots – Number of shots.

  • saved_fn – Name of the file used to save context information.

__init__(initial_wsr: List[int], wsr: List[List], job: Union[qiskit.providers.basejob.BaseJob, qiskit.providers.ibmq.managed.managedjobset.ManagedJobSet], shots: int, saved_fn: Optional[str] = None) → None[source]

GeneratorJob constructor.

Parameters
  • initial_wsr – Initial raw WSRs.

  • wsr – Processed WSRs used to generate circuits.

  • job – Circuit job(s).

  • shots – Number of shots.

  • saved_fn – Name of the file used to save context information.

Methods

__init__(initial_wsr, wsr, job, shots[, …])

GeneratorJob constructor.

block_until_ready()

Block until result data is ready.

block_until_ready() → qiskit_rng.generator_result.GeneratorResult[source]

Block until result data is ready.

Returns

A GeneratorResult instance that contains information needed to run the extractor.