-
Notifications
You must be signed in to change notification settings - Fork 616
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
Remove AllWires
validation and associated tests
#6373
Conversation
AllWires
validation and associated testsAllWires
validation and associated tests
AllWires
validation and associated testsAllWires
validation and associated tests
AllWires
validation and associated testsAllWires
validation and associated tests
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6373 +/- ##
==========================================
- Coverage 99.40% 99.39% -0.01%
==========================================
Files 446 446
Lines 42366 42362 -4
==========================================
- Hits 42112 42107 -5
- Misses 254 255 +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.
❤️
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!
**Context:** Pennylane checks every operator in the initial tape such that if `op.num_wires == AllWires and op.wires and device.wires`, then `op.wires == device.wires`. This is an edge case that kinda only applies to GlobalPhase. And it really is fine if GlobalPhase has wires that are only part of the device wires. We kinda ignore global phase wires anyway. **Description of the Change:** Removes code block for validation and accompanying tests. **Benefits:** Prevents future performance issues and deals with `GlobalPhase` edge case. **Possible Drawbacks:** None [sc-72066]
**Context:** Pennylane checks every operator in the initial tape such that if `op.num_wires == AllWires and op.wires and device.wires`, then `op.wires == device.wires`. This is an edge case that kinda only applies to GlobalPhase. And it really is fine if GlobalPhase has wires that are only part of the device wires. We kinda ignore global phase wires anyway. **Description of the Change:** Removes code block for validation and accompanying tests. **Benefits:** Prevents future performance issues and deals with `GlobalPhase` edge case. **Possible Drawbacks:** None [sc-72066]
Context:
Pennylane checks every operator in the initial tape such that if
op.num_wires == AllWires and op.wires and device.wires
, thenop.wires == device.wires
.This is an edge case that kinda only applies to GlobalPhase. And it really is fine if GlobalPhase has wires that are only part of the device wires. We kinda ignore global phase wires anyway.
Description of the Change:
Removes code block for validation and accompanying tests.
Benefits: Prevents future performance issues and deals with
GlobalPhase
edge case.Possible Drawbacks: None
[sc-72066]