-
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.
Fix escaping of identifiers in OQ3 output (#9660)
Since gh-9100 relaxed the naming restrictions on registers, it is now necessary to manually escape register names during the export process. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit c29886d)
- Loading branch information
1 parent
f780ca8
commit 8b5ddbc
Showing
3 changed files
with
53 additions
and
10 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-qasm3-name-escape-43a8b0e5ec59a471.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
fixes: | ||
- | | ||
Register and parameter names will now be escaped during the OpenQASM 3 export | ||
(:func:`.qasm3.dumps`) if they are not already valid identifiers. Fixed `#9658 | ||
<https://github.com/Qiskit/qiskit-terra/issues/9658>`__. |
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