You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a Session from id using Session.from_id, a deprecation warning is raised if one passes a backend argument. However, if one doesn't pass a backend, the default Session initializer (which is called from Session.from_id) would raise another deprecation warning or error.
It's not clear what's the expected behavior from the docs. Might be good to make the two initializers consistent.
If the default Session initializer now does require backend, it might be also good to update the type hints and the docs of the backend parameter.
*Steps to reproduce
Expected behavior
Suggested solutions
Additional Information
qiskit-ibm-runtime version: 0.22.0
Python version: 3.11
Operating system: macOS Sonoma
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a
Session
fromid
usingSession.from_id
, a deprecation warning is raised if one passes abackend
argument. However, if one doesn't pass abackend
, the defaultSession
initializer (which is called fromSession.from_id
) would raise another deprecation warning or error.It's not clear what's the expected behavior from the docs. Might be good to make the two initializers consistent.
If the default Session initializer now does require
backend
, it might be also good to update the type hints and the docs of thebackend
parameter.*Steps to reproduce
Expected behavior
Suggested solutions
Additional Information
The text was updated successfully, but these errors were encountered: