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 mistaken QPY custom-instructions documentation (backport #12216) #12223

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 19, 2024

Summary

num_custom_gates is not actually part of the CIRCUIT_HEADER structs in any version of QPY. The number of custom-instruction objects is instead stored as a uint64_t inline in the CUSTOM_DEFINITIONS part of the file, so separately to the rest of the header.

Details and comments

It's always been this way, ever since #5578, and in fact even in the commit within that PR introduced custom gates: 733d32b.


This is an automatic backport of pull request #12216 done by [Mergify](https://mergify.com).

`num_custom_gates` is not actually part of the `CIRCUIT_HEADER` structs
in any version of QPY.  The number of custom-instruction objects is
instead stored as a `uint64_t` inline in the `CUSTOM_DEFINITIONS` part
of the file, so separately to the rest of the header.

(cherry picked from commit 5dbc0c0)
@mergify mergify bot requested a review from a team as a code owner April 19, 2024 08:43
@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
  • @mtreinish
  • @nkanazawa1989

@github-actions github-actions bot added documentation Something is not clear or an error documentation Changelog: None Do not include in changelog labels Apr 19, 2024
@github-actions github-actions bot added this to the 1.0.3 milestone Apr 19, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8750879017

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 12 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.01%) to 86.862%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 6 91.86%
crates/qasm2/src/parse.rs 6 97.61%
Totals Coverage Status
Change from base Build 8677277896: 0.01%
Covered Lines: 74998
Relevant Lines: 86342

💛 - Coveralls

@jakelishman jakelishman added this pull request to the merge queue Apr 19, 2024
Merged via the queue into stable/0.46 with commit 90dc5cb Apr 19, 2024
12 of 14 checks passed
@mergify mergify bot deleted the mergify/bp/stable/0.46/pr-12216 branch April 19, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog documentation Something is not clear or an error documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants