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 Bit.register and Bit.index, deprecated in 0.17 (released on April 01, 2021) #10744

Closed
3 tasks
1ucian0 opened this issue Aug 31, 2023 · 4 comments · Fixed by #10996
Closed
3 tasks

Remove Bit.register and Bit.index, deprecated in 0.17 (released on April 01, 2021) #10744

1ucian0 opened this issue Aug 31, 2023 · 4 comments · Fixed by #10996
Assignees
Milestone

Comments

@1ucian0
Copy link
Member

1ucian0 commented Aug 31, 2023

There is code released 28 month ago that needs to be removed.

  • qiskit/circuit/bit.py:63 (register)
  • qiskit/circuit/bit.py:85 (index)

This includes:

  • Remove deprecated code and tests (if they only check the deprecation raise)
  • tag the PR as Changelog: Removal
  • create a release note in the category upgrade:. If you can include an example with an alternative for user to migrate to the new code, as this change might break users code.
@jakelishman
Copy link
Member

Bit.register and Bit.index aren't really ready for removal yet - there's still code in Qiskit that uses them, and we know that there's code in backends and providers that uses them (despite them having issued warnings for years).

@1ucian0 1ucian0 added the on hold Can not fix yet label Aug 31, 2023
@1ucian0
Copy link
Member Author

1ucian0 commented Aug 31, 2023

Good to know! I'm labelling this on hold. Do you know if there are issues open in those providers?

@1ucian0 1ucian0 changed the title Remove code deprecated in 0.17 (released on April 01, 2021) Remove Bit.register and Bit.index, deprecated in 0.17 (released on April 01, 2021) Sep 12, 2023
@1ucian0 1ucian0 added this to the 1.0.0 milestone Sep 16, 2023
@1ucian0
Copy link
Member Author

1ucian0 commented Sep 20, 2023

As I continue discovering instances of Bit.register and Bit.index, I think they can stay in ~=0.45 and be removed in ~=1.0. Setting that milestone for this one.

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 a pull request may close this issue.

4 participants