Session.from_id
raises ValueError if backend not specified with ibm_quantum channel
#1324
Labels
bug
Something isn't working
Describe the bug
The
backend
kwarg toSession.from_id
is deprecated:https://github.com/Qiskit/qiskit-ibm-runtime/blob/stable/0.17/qiskit_ibm_runtime/session.py#L312
But if you don't specify a backend you get a ValueError:
Steps to reproduce
This is a simple little test I wrote which I expect to raise an error but not the ValueError about a backend not being specified:
Expected behavior
The API should reject the request since the session doesn't exist with the given id.
Suggested solutions
n/a - it's confusing because the backend kwarg is deprecated so I was trying to stop using it, but when you stop using it with the ibm_quantum channel you get an error because it's actually required...
Additional Information
The text was updated successfully, but these errors were encountered: