-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add quir.declare_parameter, quir.load_parameter and generate quir.cir…
…cuits (#100) This PR adds two new operations to the QCS dialect, `declare_parameter` and `parameter_load`. These operations are used to support input parameters, specifically those defined in QASM as ``` input type name = value; ```` The PR also updates the `QUIRGenQASM3Visitor` to handle input parameters as well as put real time operations into `quir.circuits`. A command line option `--enable-parameters` is used as a feature flag to gate use of the new features. New tests have been added to check the new features. All existing tests should pass without the new feature flag. Enabling support for the new feature throughout the stack and removing the feature flag is reserved for a future PR. This PR does not change the handling of gate functions. That is `quir.circuits` are not inserted into the functions generated by QASM3 `gate h q { }` statements. --------- Co-authored-by: Thomas Alexander <[email protected]>
- Loading branch information
1 parent
90f688b
commit 128c937
Showing
13 changed files
with
739 additions
and
18 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
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
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.