-
Notifications
You must be signed in to change notification settings - Fork 42
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 unit test for applyControlledPhaseShift #1083
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1083 +/- ##
==========================================
- Coverage 97.94% 94.60% -3.34%
==========================================
Files 233 177 -56
Lines 40370 27606 -12764
==========================================
- Hits 39539 26118 -13421
- Misses 831 1488 +657 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…nnylane-lightning into fix/fix-missing-unit-test
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.
PR Overview
This PR fixes the issue where only one unit test was executed in testApplyControlledPhaseShift.
- Updated the changelog to document the bug fix.
- Incremented the version number from "0.41.0-dev30" to "0.41.0-dev31" to include the fix.
Reviewed Changes
File | Description |
---|---|
.github/CHANGELOG.md | Added changelog entry for the fix of skipped unit tests. |
pennylane_lightning/core/_version.py | Incremented the version to reflect the new bug fix. |
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
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.
Nice job!
...lightning/core/src/simulators/lightning_qubit/gates/tests/Test_GateImplementations_Param.cpp
Outdated
Show resolved
Hide resolved
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.
Great find @jzaia18 ! Just a small comment, happy to approve once updated! (and tests all pass)
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, thanks @jzaia18 ! 🥳
Context:
The unit test
testApplyControlledPhaseShift
inpennylane_lightning/core/src/simulators/lightning_qubit/gates/tests/Test_GateImplementations_Param.cpp
sets up 2 unit tests but only actually executes 1 of them.Description of the Change:
Fix
testApplyControlledPhaseShift
to run all unit tests that it constructs.Benefits:
Possible Drawbacks:
Related GitHub Issues: