-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
qml.matrix
docs for wire ordering with qnodes (#4874)
**Context:** `qml.matrix` wire ordering with the new `default.qubit` was causing problems when `device.wires=None`. This is because when `device.wires=None`, the tape wires are used, the order of which is determined by which wires are used first, even with sequential integer wire labels. **Description of the Change:** * Added documentation to `qml.matrix` to provide more details on how the wire order is determined when using `qml.matrix` with a `QNode`. **Benefits:** Users may be less confused if `qml.matrix` gives a matrix with an unexpected wire order. **Possible Drawbacks:** **Related GitHub Issues:** --------- Co-authored-by: Matthew Silverman <[email protected]> Co-authored-by: lillian542 <[email protected]>
- Loading branch information
1 parent
fca89b8
commit d6a8049
Showing
2 changed files
with
48 additions
and
1 deletion.
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