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

Restrict version-number output of OpenQASM 3 exporter #11418

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

jakelishman
Copy link
Member

Summary

The exporter previously claimed to simply be OPENQASM 3;, though the OpenQASM project has made it clear that they may include minor versions of the language in the future. This updates the exporter to claim to be version 3.0, so that it does not falsely imply that it matches syntax of a later version of the language specification.

Details and comments

This has a minor logical conflict with #11417; whichever of these two PRs merges second will need to update with respect to the other.

The exporter previously claimed to simply be `OPENQASM 3;`, though the
OpenQASM project has made it clear that they may include minor versions
of the language in the future.  This updates the exporter to claim to be
version `3.0`, so that it does not falsely imply that it matches syntax
of a later version of the language specification.
@jakelishman jakelishman added Changelog: Bugfix Include in the "Fixed" section of the changelog mod: qasm3 Related to OpenQASM 3 import or export labels Dec 14, 2023
@jakelishman jakelishman added this to the 1.0.0 milestone Dec 14, 2023
@jakelishman jakelishman requested a review from a team as a code owner December 14, 2023 17:23
@qiskit-bot
Copy link
Collaborator

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 7212350808

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 15 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.007%) to 87.552%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 3 92.42%
crates/qasm2/src/parse.rs 12 97.13%
Totals Coverage Status
Change from base Build 7210651326: 0.007%
Covered Lines: 59772
Relevant Lines: 68270

💛 - Coveralls

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

LGTM, given the what openqasm3 specifies should be used.

@jakelishman jakelishman added this pull request to the merge queue Jan 17, 2024
Merged via the queue into Qiskit:main with commit 3ea3111 Jan 17, 2024
13 checks passed
@jakelishman jakelishman deleted the qasm3/minor-version branch January 18, 2024 03:06
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants