-
Notifications
You must be signed in to change notification settings - Fork 624
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
Deprecate QauntumScript.output_dim
#6577
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6577 +/- ##
=======================================
Coverage 99.29% 99.29%
=======================================
Files 454 454
Lines 43262 43264 +2
=======================================
+ Hits 42959 42961 +2
Misses 303 303 ☔ View full report in Codecov by Sentry. |
Co-authored-by: lillian542 <[email protected]>
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:** The property `output_dim` of `QuantumScript` has been deprecated in previous round, [sc-74594] #6577. Now we would love to remove it entirely. **Description of the Change:** - Remove property `output_dim` along with its tests, warnings, etc. - Remove the detached attribute `_output_dim` after previous removal. - Remove the detached private method `_update_output_dim` which used to be strictly only helping update property `output_dim`. **Benefits:** Cleaner codebase with less redundancies. **Possible Drawbacks:** Not known. Perhaps some nuances hidden in some uncovered cornercase tests. Anyways potential drawback won't affect any current feature in principle. **Related GitHub Issues:** [sc-82150] --------- Co-authored-by: lillian542 <[email protected]>
**Context:** The property `output_dim` of `QuantumScript` has been deprecated in previous round, [sc-74594] #6577. Now we would love to remove it entirely. **Description of the Change:** - Remove property `output_dim` along with its tests, warnings, etc. - Remove the detached attribute `_output_dim` after previous removal. - Remove the detached private method `_update_output_dim` which used to be strictly only helping update property `output_dim`. **Benefits:** Cleaner codebase with less redundancies. **Possible Drawbacks:** Not known. Perhaps some nuances hidden in some uncovered cornercase tests. Anyways potential drawback won't affect any current feature in principle. **Related GitHub Issues:** [sc-82150] --------- Co-authored-by: lillian542 <[email protected]>
Context:
This property is now slightly wrong, and is only used by
parameter_shift_cv.py
.Description of the Change:
qml.tape.qscript.py::QuantumScript
test_qscript.py
test_tape.py
andtest_legacy_device.py
qml.gradients.parameter_shift_cv.py
which is the only module using this propertyBenefits:
Possible Drawbacks:
Potential uncovered usecases of this property inside or outside PL
Related GitHub Issues:
Related Shortcut Stories:
[sc-74594]