Skip to content

Restore HAS_TWEEDLEDUM optional checker #13940

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

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

mtreinish
Copy link
Member

Summary

In #13815 the usage of the tweedledum library was removed from Qiskit. The classes that used this functionality was deprecated in 1.4.0, but the optional library checker was not deprecated. These optionals checkers are part of the public API and would have needed a deprecation before removal as there may be downstream users of the checker. This commit restores the checker, but alters the docstring to make it clear that tweedledum isn't used by Qiskit anymore. If we want to remove the checker in 3.0 we can deprecate it in 2.1.0 or another release in the 2.x series. Although, there is basically no real cost for keeping it around so it's probably not worth the effort.

Details and comments

In Qiskit#13815 the usage of the tweedledum library was removed from Qiskit.
The classes that used this functionality was deprecated in 1.4.0, but the
optional library checker was not deprecated. These optionals checkers
are part of the public API and would have needed a deprecation before
removal as there may be downstream users of the checker. This commit
restores the checker, but alters the docstring to make it clear that
tweedledum isn't used by Qiskit anymore. If we want to remove the
checker in 3.0 we can deprecate it in 2.1.0 or another release in the
2.x series. Although, there is basically no real cost for keeping it
around so it's probably not worth the effort.
@mtreinish mtreinish added the Changelog: None Do not include in changelog label Mar 1, 2025
@mtreinish mtreinish added this to the 2.0.0 milestone Mar 1, 2025
@mtreinish mtreinish requested a review from a team as a code owner March 1, 2025 17:59
@qiskit-bot
Copy link
Collaborator

One or more of the following people are relevant to this code:

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

we still have HAS_IGNIS haha - no hurry to get rid of them

@jakelishman jakelishman enabled auto-merge March 1, 2025 18:01
@coveralls
Copy link

Pull Request Test Coverage Report for Build 13607367731

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 86.972%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 2 92.73%
Totals Coverage Status
Change from base Build 13599804497: 0.02%
Covered Lines: 76080
Relevant Lines: 87476

💛 - Coveralls

@jakelishman jakelishman added this pull request to the merge queue Mar 1, 2025
Merged via the queue into Qiskit:main with commit 106864c Mar 1, 2025
20 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.

4 participants