forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output arrays in QASM 3 alias concatenations (Qiskit#7221)
* Output arrays in QASM 3 alias concatenations The concatenation `||` operator in OpenQASM 3 is currently supposed to operate only on arrays, but the exporter had been using it on single qubits. This changes the logic so that all the elements of a catenation are arrays, and attempts to make each run as long as possible. A new node to represent a `Range` was necessary to achieve this. This also meant reorganising the split between `IndexIdentifier`, `IndexIdentifier2` and the builder-internal `indexIdentifierList`. These names were originally taken from the OpenQASM 3 reference ANTLR grammar, but the grammar has changed somewhat since then, and there are also more descriptive names available. * Fix typo Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
- Loading branch information
1 parent
49110f9
commit aac9917
Showing
4 changed files
with
139 additions
and
88 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.