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

Update Aer backends to BackendV2 #1681

Closed
mtreinish opened this issue Dec 8, 2022 · 0 comments · Fixed by #1875
Closed

Update Aer backends to BackendV2 #1681

mtreinish opened this issue Dec 8, 2022 · 0 comments · Fixed by #1875
Labels
enhancement New feature or request
Milestone

Comments

@mtreinish
Copy link
Member

What is the expected behavior?

The BackendV2 interface is the next version of the abstract Backend interface used for describing backends in Qiskit. It was introduced in qiskit-terra 0.19.0 and it's now the primary version used for representing backends in provider packages. We
should update Aer's backends AerSimulator, StatevectorSimulator, etc to be based on BackendV2 instead of BackendV1.

@mtreinish mtreinish added the enhancement New feature or request label Dec 8, 2022
@mtreinish mtreinish added this to the Aer 0.12.0 milestone Dec 8, 2022
@hhorii hhorii modified the milestones: Aer 0.12.0, Aer 0.13.0 Feb 28, 2023
wshanks added a commit to qiskit-community/qiskit-experiments that referenced this issue Mar 27, 2023
### Summary

This change set updates the `FakeBackend` used by some tests to derive
from `BackendV2` rather than `BackendV1`

### Details and comments

When combined with
[#900](#900) which
updates some calibration tests and
[#1040](#1040) which
updates `T2HahnBackend`, this change results in almost all the tests in
the test suite using `BackendV2`. The remaining tests using a `Backend`
that is not `BackendV2` use the `AerSimulator` which will be updated to
`BackendV2` in the future (tracked in
Qiskit/qiskit-aer#1681). The check for backend
type was performed by merging the calibration and `T2HahnBackend`
branches into this branch and running the tests with
`BaseExperiment.run()`, `BaseExperiment._set_backend()`, and
`Calibrations.from_backend()` updated to error if the `backend` argument
was not `BackendV2` or `AerSimulator` and confirming that all the tests
passed.
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