-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move contents of
pennylane.utils
to appropriate modules (#6588)
**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 to `qml.pytrees.flatten_np` and `qml.pytrees.unflatten_np` respectively. * `qml.utils._inv_dict` and `qml._get_default_args` have been removed. * `qml.utils.pauli_eigs` has been moved to `qml.pauli.utils`. * `qml.utils.expand_vector` has been moved to `qml.math.expand_vector`. **Description of the Change:** **Benefits:** Less redundancy **Possible Drawbacks:** Rare chance that some downstreaming repo might be using these funcationalities: - [x] lightning - [x] catalyst - [x] qml - [x] plugins 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] --------- Co-authored-by: lillian542 <[email protected]>
- Loading branch information
1 parent
93e9667
commit 080e5ed
Showing
24 changed files
with
385 additions
and
508 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.