-
Notifications
You must be signed in to change notification settings - Fork 586
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
equal with sum and product of no wires op #5562
Conversation
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 to me!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5562 +/- ##
==========================================
- Coverage 99.69% 99.68% -0.01%
==========================================
Files 410 410
Lines 38235 37951 -284
==========================================
- Hits 38118 37833 -285
- Misses 117 118 +1 ☔ View full report in Codecov by Sentry. |
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, thanks!
Perhaps an integration test with qml.equal
and the appropriate cases?
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.
Very nice, thanks @albi3ro !
Context:
Operators that don't have any wires (
GlobalPhase
andIdentity
) are newer additions that don't have full feature coverage in all places. This can lead to some logic that is unable to handle them.Description of the Change:
Allows
Sum._sort
andProd._sort
to work with operators that don't have any wires.Benefits:
Possible Drawbacks:
Related GitHub Issues:
Fixes #5498 [sc-61115]