-
Notifications
You must be signed in to change notification settings - Fork 604
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
Move contents of pennylane.utils
to appropriate modules
#6588
base: master
Are you sure you want to change the base?
Conversation
@@ -2346,7 +2345,7 @@ def eigvals(self): | |||
standard_observables = {"PauliX", "PauliY", "PauliZ", "Hadamard"} | |||
|
|||
# observable should be Z^{\otimes n} | |||
self._eigvals_cache = pauli_eigs(len(self.wires)) | |||
self._eigvals_cache = qml.pauli.pauli_eigs(len(self.wires)) |
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.
Note that Tensor
is getting removed by @lillian542 , so there will be a merge conflict.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6588 +/- ##
==========================================
- Coverage 99.29% 99.29% -0.01%
==========================================
Files 454 453 -1
Lines 43264 43248 -16
==========================================
- Hits 42961 42945 -16
Misses 303 303 ☔ View full report in Codecov by Sentry. |
Context:
The legacy remains
qml.utils
module has been hanging around for long. Now, finally we are to delete them and move the remaining folks to wherever they're supposed to be.Specifically, the
following 4 sets of functions have been either moved or removed:
qml.utils._flatten
,qml.utils.unflatten
has been moved and renamed toqml.pytrees.flatten_np
andqml.pytrees.unflatten_np
respectively.qml.utils._inv_dict
andqml._get_default_args
have been removed.qml.utils.pauli_eigs
has been moved toqml.pauli.utils
.qml.utils.expand_vector
has been moved toqml.math.expand_vector
.Description of the Change:
Benefits:
Less redundancy
Possible Drawbacks:
Rare chance that some downstreaming repo might be using these funcationalities:
We will come back to check them one by one to make sure nothing is to break
Related GitHub Issues:
Related Shortcut Stories:
[sc-76906]