ManagedJobSet.job¶
- ManagedJobSet.job(experiment)[source]¶
Retrieve the job used to submit the specified experiment and its index.
For example, if
IBMQJobManager
is used to submit 1000 experiments, andIBMQJobManager
divides them into 2 jobs: job 1 has experiments 0-499, and job 2 has experiments 500-999. In this casejob_set.job(501)
will return(job2, 1)
.- Parameters
experiment (
Union
[str
,QuantumCircuit
,Schedule
,int
]) –Retrieve the job used to submit this experiment. Several types are accepted for convenience:
str: The name of the experiment.
QuantumCircuit: The name of the circuit instance will be used.
Schedule: The name of the schedule instance will be used.
int: The position of the experiment.
- Return type
Tuple
[Optional
[IBMQJob
],int
]- Returns
A tuple of the job used to submit the experiment, or
None
if the job submit failed, and the experiment index.- Raises
IBMQJobManagerJobNotFound – If the job for the experiment could not be found.