-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qml.matrix accept single-wire operator class with no wire_order (#5359)
**Context:** An error is raised when the user calls `qml.matrix(qml.Hadamard)(wires=[0])` for not providing `wire_order`. **Description of the Change:** `qml.matrix` will not raise an error if the callable is an Operator class with `num_wires=1` **Benefits:** Fixes test case failure in lightning. **Related GitHub Issues:** #5328
- Loading branch information
Showing
3 changed files
with
13 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
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