Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

ExperimentData.add_jobs

ExperimentData.add_jobs(jobs, timeout=None)[source]

Add experiment data.

Parameters:
  • jobs (Union[Job, List[Job]]) – The Job or list of Jobs to add result data from.

  • timeout (Optional[float]) – Optional, time in seconds to wait for all jobs to finish before cancelling them.

Raises:

TypeError – If the input data type is invalid.

Return type:

None

Note

If a timeout is specified the cancel_jobs() method will be called after timing out to attempt to cancel any unfinished jobs.

If you want to wait for jobs without cancelling, use the timeout kwarg of block_for_results() instead.