-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support custom gate defintions in QASM parser (#6917)
Resolves #3560 * Tests verify parsed vs expected, for unparameterized, parameterized, and for broadcasted qregs. * They also use `assert_qiskit_parsed_qasm_consistent_with_unitary` to ensure consistency of parsed circuit (and sanity check that the provided QASM definition is actually valid). * Several tests for invalid gate definitions or invocations and verify similar error message for Cirq and qiskit parsers. * One odd instance where qiskit does not throw an error on an invalid QASM circuit, even though simulating it in qiskit fails; chalking it up to a qiskit bug.
- Loading branch information
Showing
5 changed files
with
558 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.