qiskit-ibm-runtime icon indicating copy to clipboard operation
qiskit-ibm-runtime copied to clipboard

service.job() doesn't know about job version

Open jyu00 opened this issue 11 months ago • 2 comments

Describe the bug

If I submit a primitive V2 job then do service.job(), it will return a V1 RuntimeJob instead of RuntimeJobV2. This applies to service.jobs() as well.

Steps to reproduce

Expected behavior

Suggested solutions

Unfortunately there is no good solution since the version number is only in inputs and results, which means potentially download the entire circuit inputs.

Additional Information

  • qiskit-ibm-runtime version: main
  • Python version:
  • Operating system:

jyu00 avatar Mar 05 '24 23:03 jyu00

Created issue on the ntc side - 3938

kt474 avatar Mar 13 '24 19:03 kt474

I think for now we can just query the job inputs until the ntc issue is fixed. If the job has completed, the version number is also in the results.

jyu00 avatar Mar 27 '24 18:03 jyu00