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

Removed Deprecated Instruction.qasm Function #11538

Merged
merged 10 commits into from
Jan 12, 2024

Conversation

sbrandhsn
Copy link
Contributor

Summary

Removed the Instruction.qasm function and removed or changed the associated test cases to use qasm2.dump

Details and comments

@sbrandhsn sbrandhsn added the Changelog: Removal Include in the Removed section of the changelog label Jan 10, 2024
@sbrandhsn sbrandhsn requested a review from a team as a code owner January 10, 2024 17:48
@qiskit-bot
Copy link
Collaborator

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

  • @Cryoris
  • @Qiskit/terra-core
  • @ajavadia

@coveralls
Copy link

coveralls commented Jan 10, 2024

Pull Request Test Coverage Report for Build 7503642573

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.8%) to 89.349%

Totals Coverage Status
Change from base Build 7476756860: 1.8%
Covered Lines: 59412
Relevant Lines: 66494

💛 - Coveralls

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 for this!

Comment on lines 294 to 298
def qasm(self):
"""
Raise an error when trying to convert a placeholder instruction to OpenQASM 2
"""
raise CircuitError("Cannot convert a placeholder instruction to OpenQASM 2")
Copy link
Member

Choose a reason for hiding this comment

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

This whole function wants removing as well - it's just an override of Instruction.qasm to catch internal logic errors. It's not decorated as "deprecated" because instances of these classes should never be accessible publicly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good to me, I removed the qasm method. Thanks for reviewing! :-)

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.

Cool, thanks for the fast changes!

@jakelishman jakelishman added this to the 1.0.0 milestone Jan 12, 2024
@jakelishman jakelishman added this pull request to the merge queue Jan 12, 2024
Merged via the queue into Qiskit:main with commit c4a9f75 Jan 12, 2024
13 checks passed
ShellyGarion pushed a commit to ShellyGarion/qiskit-terra that referenced this pull request Jan 18, 2024
* removed deprecated circuit.qasm function

* reno...

* reno.

* reno right location

* weird lint behavior

* lint fix...

* updated release note

* update release note

Co-authored-by: Jake Lishman <[email protected]>

* Update builder.py

---------

Co-authored-by: Jake Lishman <[email protected]>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants