I have submitted Qiskit Runtime jobs. How can I retrieve the old jobs to check the status and results?
1 Answer
You can see the list of Qiskit Runtime jobs under Program jobs
tab in the Jobs
page on IBM Quantum platform.
From there you can find the job id and the corresponding provider information (in HUB_NAME/GROUP_NAME/PROJECT_NAME
format and the default provider is ibm-q/open/main
) to retrieve the job using Qiskit on IBM Quantum Lab or on your local Jupyter environment using the following code.
Note that runtime job id starts with letter c
while ordinary circuit job id start with a number, usually 6
.
from qiskit import IBMQ
IBMQ.load_account()
provider = IBMQ.get_provider(hub='HUB_NAME', group='GROUP_NAME', project='PROJECT_NAME')
job = provider.runtime.job('JOB_ID')