Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix escaping of identifiers in OQ3 output #9660

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

jakelishman
Copy link
Member

Summary

Since gh-9100 relaxed the naming restrictions on registers, it is now necessary to manually escape register names during the export process.

Details and comments

Fix #9658

Since Qiskitgh-9100 relaxed the naming restrictions on registers, it is now
necessary to manually escape register names during the export process.
@jakelishman jakelishman added stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: Bugfix Include in the "Fixed" section of the changelog mod: qasm2 Relating to OpenQASM 2 import or export labels Feb 24, 2023
@jakelishman jakelishman requested a review from a team as a code owner February 24, 2023 23:03
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4266949156

  • 9 of 9 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 85.343%

Totals Coverage Status
Change from base Build 4265299946: 0.001%
Covered Lines: 67526
Relevant Lines: 79123

💛 - Coveralls

Copy link
Member

@1ucian0 1ucian0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@mergify mergify bot merged commit c29886d into Qiskit:main Feb 27, 2023
mergify bot pushed a commit that referenced this pull request Feb 27, 2023
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)
@jakelishman jakelishman deleted the fix-qasm3-creg-name-escape branch February 27, 2023 14:03
mergify bot added a commit that referenced this pull request Feb 27, 2023
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)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
king-p3nguin pushed a commit to king-p3nguin/qiskit-terra that referenced this pull request May 22, 2023
Since Qiskitgh-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>
@jakelishman jakelishman added mod: qasm3 Related to OpenQASM 3 import or export and removed mod: qasm2 Relating to OpenQASM 2 import or export labels Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog mod: qasm3 Related to OpenQASM 3 import or export stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QASM exporter producing invalid QASM
4 participants