Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Provider as a parent class #1589

Closed
jyu00 opened this issue Apr 8, 2024 · 0 comments · Fixed by #1689
Closed

Remove Provider as a parent class #1589

jyu00 opened this issue Apr 8, 2024 · 0 comments · Fixed by #1689
Assignees
Labels
enhancement New feature or request

Comments

@jyu00
Copy link
Collaborator

jyu00 commented Apr 8, 2024

What is the expected feature or enhancement?

Qiskit is deprecating the Provider interface (see Qiskit/qiskit#12145). QiskitRuntimeService still inherits from Provider, and it wouldn't be a very good experience if everyone starts getting a deprecation warning every time they use Qiskit Runtime until the release of 2.0, especially since there is nothing they can do about it.

Provider today only has 3 methods:

  • get_backend() - we can deprecate this in favor of backend()
  • backends() - we already overwrite this
  • __eq__() - we should define this method with a proper comparison (e.g. including channel, credential, instance, and channel_strategy)

Acceptance criteria

  • Stop inheriting from Provider
  • Update the Provider related methods as described above
  • Update docstrings as needed, related to Replace get_backend with backend in the README #1261
  • If possible, issue a deprecation warning if isinstance(QiskitRuntimeService, Provider) is used.

cc @1ucian0

@jyu00 jyu00 added the enhancement New feature or request label Apr 8, 2024
@kt474 kt474 self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants