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 FakeBackendV2 import deprecated in Qiskit 0.46 (backport #1420) #1422

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Mar 12, 2024

This is an automatic backport of pull request #1420 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

### Summary

In qiskit 0.46, several classes in the `qiskit.providers.fake_provider`
module were deprecated, including
`qiskit.providers.fake_provider.fake_backend.FakeBackendV2`. However,
the removal PR failed to address this particular class, so while this
particular `FakeBackendV2` was no longer part of the public API, the
import path would still work. This oversight will be addressed in
Qiskit/qiskit#11997, but in order to merge this
PR we must make sure that all the downstream libraries covered by
`qiskit-neko` are up-to-date with the change.

This change adds an alternative import path for this class in
qiskit-experiments. It follows the pattern from other 1.0 import
deprecations. The removal would roll out in the 1.1 release, but it is
indicated as a 1.0 removal because that is when it should have
technically taken place.

### Details and comments

Blocks Qiskit/qiskit#11997.

(cherry picked from commit 428c9bc)
@coruscating coruscating merged commit 0f15f0b into stable/0.6 Mar 12, 2024
11 checks passed
@mergify mergify bot deleted the mergify/bp/stable/0.6/pr-1420 branch March 12, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants