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

QiskitRuntimeService.getBackend should return BackendV2 (Adjust Type Hint) #1433

Closed
choerst-ibm opened this issue Feb 27, 2024 · 0 comments · Fixed by #1442
Closed

QiskitRuntimeService.getBackend should return BackendV2 (Adjust Type Hint) #1433

choerst-ibm opened this issue Feb 27, 2024 · 0 comments · Fixed by #1442
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@choerst-ibm
Copy link

What is the expected feature or enhancement?
Currently, using type hinting tooling with qiskit-ibm-runtime suggest a BackendV1 object is returned on a getBackend call.

from qiskit.providers.backend import BackendV1 as Backend

def backend(
self,
name: str = None,
instance: Optional[str] = None,
) -> Backend:

This should likely be changed to be BackendV2 by now so type hinting works nicely.

@choerst-ibm choerst-ibm added the enhancement New feature or request label Feb 27, 2024
@kt474 kt474 self-assigned this Feb 28, 2024
@kt474 kt474 added this to the 0.21.0 milestone Feb 29, 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