-
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 input arg control wires
of MultiControlledX
#6832
Remove input arg control wires
of MultiControlledX
#6832
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 #6832 +/- ##
==========================================
- Coverage 99.60% 99.60% -0.01%
==========================================
Files 476 476
Lines 45183 45177 -6
==========================================
- Hits 45006 45000 -6
Misses 177 177 ☔ View full report in Codecov by Sentry. |
control wires
of multi controlled xcontrol wires
of multi controlled x
control wires
of multi controlled xcontrol wires
of multi controlled x
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.
🚀
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
Spotted deprecated usages in lightning https://github.com/PennyLaneAI/pennylane-lightning/pull/1040/files |
Another open PR from qml used deprecated interface, although it seems long time unmaintained. PennyLaneAI/qml#386 (comment) |
control wires
of multi controlled xcontrol wires
of MultiControlledX
Lightning fix merged. We set this removal as auto-merge now. |
**Context:** The input argument `control_wires` was recently removed from [`qml.MultiControlledX`](https://docs.pennylane.ai/en/stable/code/api/pennylane.MultiControlledX.html) in PennyLaneAI/pennylane#6832. This API change resulted in a failure in the Catalyst test `TestGateAliases.test_control_aliases` in the "Check CPL latest/latest/latest" workflow. For reference, the call signature of `qml.MultiControlledX` changed from ```python qml.MultiControlledX(control_wires, wires, control_values, work_wires) ``` to ```python qml.MultiControlledX(wires, control_values, work_wires) ``` **Description of the Change:** Update the failing test to use the new call signature of `qml.MultiControlledX`. Also, prefer to explicitly pass in the wire index or list of wire indices by keyword argument with `wires=...`, rather than as positional arguments, to hopefully avoid similar issues in the future.
Context:
Years ago we deprecated some features inside
MultiControlledX
but they were forgotten for a while, among which we have the argumentcontrol_wires
to remove today.Description of the Change:
Remove the input
control_wires
along with testsBenefits:
Possible Drawbacks:
Related GitHub Issues:
[sc-81795]