-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7503642573Warning: 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.
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
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") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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! :-)
releasenotes/notes/deprecate-circuit-qasm-e5bbad027388e3f2.yaml
Outdated
Show resolved
Hide resolved
Co-authored-by: Jake Lishman <[email protected]>
There was a problem hiding this 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!
* 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]>
Summary
Removed the
Instruction.qasm
function and removed or changed the associated test cases to use qasm2.dumpDetails and comments