-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 DiagonalGate
QPY serialisation
#10376
Conversation
Added "diagonal" in line 282
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:
|
Thanks for looking at this! Please can you add a test case and a "bug fix" release note (see the contributing guide in the repo root for information on that). |
@jakelishman I have added release notes using |
@Raghav-Bell you can do so by adding |
Thanks @rht! The |
DiagonalGate
QPY serialisation
(btw, the lint is failing with a style error - if you |
I have tested for diagonal gate test using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I fixed up the release note a little and moved the test into the regular unit tests (there's a complication with DiagonalGate
itself that will make it hard to use our QPY backwards-compatibility tests for now).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this seems straightforward enough
Pull Request Test Coverage Report for Build 5510413486
💛 - Coveralls |
* Update circuits.py Added "diagonal" in line 282 * added release notes/add-diagonal-to-DiagonalGate-c945e0f8adcd2940 * corrected reformatting using tox * Added test for diagonal gate. * Move test to regular unit tests * Fix DiagonalGate check * Fixup release note * Fix test typo --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit 20ee6ec)
* Update circuits.py Added "diagonal" in line 282 * added release notes/add-diagonal-to-DiagonalGate-c945e0f8adcd2940 * corrected reformatting using tox * Added test for diagonal gate. * Move test to regular unit tests * Fix DiagonalGate check * Fixup release note * Fix test typo --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit 20ee6ec) Co-authored-by: Raghav <83136390+Raghav-Bell@users.noreply.github.com>
Added "diagonal" in line 282
Summary
Diagonal gate is causing error as discussed in issue #10364 . This PR closes the issue #10364
Details and comments
As suggested by @jakelishman , i have added
"diagonal"
at line 282.Fix #10364.