-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add indexing and bitshift expressions (#12310)
This adds the concepts of `Index` and the binary operations `SHIFT_LEFT` and `SHIFT_RIGHT` to the `Expr` system, and threads them through all the `ExprVisitor` nodes defined in Qiskit, including OQ3 and QPY serialisation/deserialisation. (The not-new OQ3 parser is managed separately and doesn't have support for _any_ `Expr` nodes at the moment). Along with `Store`, this should close the gap between what Qiskit was able to represent with dynamic circuits, and what was supported by hardware with direct OpenQASM 3 submission, although since this remains Qiskit's fairly low-level representation, it still was potentially more ergonomic to use OpenQASM 3 strings. This remains a general point for improvement in the Qiskit API, however.
- Loading branch information
1 parent
cadc6f1
commit d6c74c2
Showing
20 changed files
with
529 additions
and
64 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.