Skip to content

Remove FakeBackendV2 import deprecated in Qiskit 0.46 (backport #1420)#1422

Merged
coruscating merged 1 commit into
stable/0.6from
mergify/bp/stable/0.6/pr-1420
Mar 12, 2024
Merged

Remove FakeBackendV2 import deprecated in Qiskit 0.46 (backport #1420)#1422
coruscating merged 1 commit into
stable/0.6from
mergify/bp/stable/0.6/pr-1420

Conversation

@mergify
Copy link
Copy Markdown

@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
@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