-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Context:** The root `__init__` file is bloated with device instantiation code through the `qml.device` function and its helper functions. It is also contaminating the namespace with unrelated third-part packages imports needed for its functionality. The code doesn't need to live in this file since we have a dedicated `qml.devices` module now. **Description of the Change:** The relevant code is moved to the `__init__` of the `qml.devices` module and reference in the root `__init__` file and the docs are adapted. The imports are also pushed inside the relevant functions to avoid contaminating the namespace. **Benefits:** More localized functional scopes. **Possible Drawbacks:** None [[sc-65678](https://app.shortcut.com/xanaduai/story/65678)]
- Loading branch information
1 parent
be355e0
commit a456fce
Showing
5 changed files
with
327 additions
and
275 deletions.
There are no files selected for viewing
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.