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 #10996

Merged
merged 17 commits into from
Dec 19, 2023
Merged

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Oct 10, 2023

Summary

Fixes #10744

@kdk kdk added this to the 1.0.0pre1 milestone Oct 30, 2023
@1ucian0 1ucian0 marked this pull request as ready for review November 1, 2023 14:52
@1ucian0 1ucian0 requested review from a team as code owners November 1, 2023 14:52
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

As it stands, this PR hasn't done the complete job; the register and index arguments from the constructor also need removing, as do most of the actual methods from the class. It'll become almost a completely opaque object. All the private attributes of the object would be deleted as well, since they're no longer necessary.

@coveralls
Copy link

coveralls commented Nov 1, 2023

Pull Request Test Coverage Report for Build 7262608220

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 9 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.004%) to 87.518%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 1 92.42%
crates/accelerate/src/quantum_circuit/circuit_data.rs 8 90.71%
Totals Coverage Status
Change from base Build 7254198966: 0.004%
Covered Lines: 59141
Relevant Lines: 67576

💛 - Coveralls

@1ucian0
Copy link
Member Author

1ucian0 commented Nov 10, 2023

Based on how complicated cleaning (see 1ucian0#44) I think it is better to merge this before to warn others the API is changing.

@mtreinish mtreinish modified the milestones: 1.0.0b1, 1.0.0 Dec 1, 2023
Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

This needs a release note about the removal, but given we seem to be going the direction of getting rid of the public components and try to sort out the backend behaviour that we're still accidentally relying on after, the code changes seem complete.

@1ucian0
Copy link
Member Author

1ucian0 commented Dec 13, 2023

reno in 3f16114

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

Thanks!

@jakelishman jakelishman added Changelog: Removal Include in the Removed section of the changelog mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library labels Dec 13, 2023
@jakelishman
Copy link
Member

For linking purposes: the work of trying to disentangle the inner _index and _register properties has moved to #11407.

@jakelishman jakelishman added this pull request to the merge queue Dec 19, 2023
Merged via the queue into Qiskit:main with commit 9439c8f Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Removal Include in the Removed section of the changelog mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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