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 already "removed" FakeBackendV2 #11997

Merged
merged 3 commits into from
Apr 23, 2024

Conversation

ElePT
Copy link
Contributor

@ElePT ElePT commented Mar 12, 2024

Summary

This PR fixes an oversight from #11376 where the FakeBackendV2 base class was removed from the documentation and reported as removed without actually removing the source code for the class (the fact that there were two FakeBackendV2 classes probably didn't help). I'm labeling it as changelog:None because this change doesn't affect the public API.

Details and comments

On hold until a qiskit-experiments release that includes qiskit-community/qiskit-experiments@428c9bc. This allow the corresponding qiskit-neko tests to pass.

@ElePT ElePT added the Changelog: None Do not include in changelog label Mar 12, 2024
@ElePT ElePT requested review from jyu00 and a team as code owners March 12, 2024 15:11
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Mar 12, 2024

Pull Request Test Coverage Report for Build 8702630119

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 14 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.2%) to 89.535%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 2 92.37%
crates/qasm2/src/parse.rs 12 97.15%
Totals Coverage Status
Change from base Build 8689749566: 0.2%
Covered Lines: 60122
Relevant Lines: 67149

💛 - Coveralls

@ElePT ElePT changed the title Remove already undocumented FakeBackendV2 Remove already "removed" FakeBackendV2 Mar 12, 2024
@kevinhartman kevinhartman added the on hold Can not fix yet label Mar 12, 2024
github-merge-queue bot pushed a commit to qiskit-community/qiskit-experiments that referenced this pull request Mar 12, 2024
### 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.
mergify bot pushed a commit to qiskit-community/qiskit-experiments that referenced this pull request Mar 12, 2024
### 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)
@1ucian0
Copy link
Member

1ucian0 commented Apr 5, 2024

With qiskit-community/qiskit-experiments#1420 merged, an on hold be removed?

@ElePT
Copy link
Contributor Author

ElePT commented Apr 5, 2024

With Qiskit-Extensions/qiskit-experiments#1420 merged, an on hold be removed?

We would need qiskit-experiments to do a bugfix/patch release so that neko can pull the fix for its test. I'll ping them about it.

@ElePT ElePT removed the on hold Can not fix yet label Apr 16, 2024
@ElePT
Copy link
Contributor Author

ElePT commented Apr 16, 2024

The patch release of qiskit-experiments is out! The PR can now be merged.

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed this is not in the docs anywhere and was just an oversight for removal in 1.0. Heh, but you really like to test the stability policy between this and #12042 (review)

@mtreinish mtreinish added this pull request to the merge queue Apr 23, 2024
Merged via the queue into Qiskit:main with commit 291fa09 Apr 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants