-
Notifications
You must be signed in to change notification settings - Fork 35
Fix xy angle sign #232
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 xy angle sign #232
Conversation
The cases where the tests are failing seem to be because of fairly small differences in the resulting optimal parameters for various optimisations/calibrations (except for maybe |
In general, failing tests should not be modified to get them to pass. Do you possibly have some insight on why the optimal parameters changed? If however the change in the test optimal parameters is expected as a result of the code change in the PR, then feel free to just modify the parameters and move on. Make sure to note in your commit message the reasoning behind why the test was modified. |
With optimization results, it can be tricky when the convention changed. An alternative to what Anurag suggested would be to change the gate definitions in those tests from |
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.
Looks good and can be approved when the discussed problems are resolved.
Codecov Report
@@ Coverage Diff @@
## dev #232 +/- ##
=======================================
Coverage 74.82% 74.82%
=======================================
Files 38 38
Lines 5534 5534
=======================================
Hits 4141 4141
Misses 1393 1393
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
What
This PR fixes the wrong sign that was used for the
xy_angle
in thephase
in theInstruction
class.Why
Makes rotations on the bloch sphere be in the correct direction. Closes #231
How
Removed minus sign.
Remarks
None
Checklist
Please include and complete the following checklist. Your Pull Request is (in most cases) not ready for review until the following have been completed. You can create a draft PR while you are still completing the checklist. Check the Contribution Guidelines for more details. You can mark an item as complete with the
- [x]
prefixblack
andflake8
have been used to ensure styling guidelines are metnumpydoc
style