- Notifications
You must be signed in to change notification settings - Fork1.2k
Support custom gate defintions in QASM parser#6917
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedJan 4, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #6917 +/- ##======================================== Coverage 97.87% 97.87% ======================================== Files 1084 1084 Lines 94420 94791 +371 ========================================+ Hits 92409 92780 +371 Misses 2011 2011 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dstrain115 left a comment
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 is a really cool enhancement to qasm parsing!!!
Just some doc comments, and then I think we are good to go.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
2b49589Uh oh!
There was an error while loading.Please reload this page.
daxfohl commentedApr 18, 2025
Adding BREAKING CHANGE because unit tests were changed. Very minor change that removes unexpected trailing spaces from QASM output. No effective change in the QASM logic itself. |
Resolvesquantumlib#3560* Tests verify parsed vs expected, for unparameterized, parameterized,and for broadcasted qregs.* They also use `assert_qiskit_parsed_qasm_consistent_with_unitary` toensure consistency of parsed circuit (and sanity check that the providedQASM definition is actually valid).* Several tests for invalid gate definitions or invocations and verifysimilar error message for Cirq and qiskit parsers.* One odd instance where qiskit does not throw an error on an invalidQASM circuit, even though simulating it in qiskit fails; chalking it upto a qiskit bug.
Uh oh!
There was an error while loading.Please reload this page.
Resolves#3560
assert_qiskit_parsed_qasm_consistent_with_unitaryto ensure consistency of parsed circuit (and sanity check that the provided QASM definition is actually valid).