-
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.
Making
default.tensor
compatible with new opmath disabled (#5751)
**Context:** This PR makes the new `default.tensor` device compatible with 'new_opmath' disabled. **Description of the Change:** Simpy replacing the `matrix()` method with the more general function `qml.matrix`, since `matrix()` does not seem to work with `qml.ops.Hamiltonian`. **Benefits:** Now, the user does not encounter an error with this device if he/she explicitly disables the new opmath. **Possible Drawbacks:** None that I can think of. **Related GitHub Issues:** None **Related Shortcut Stories.** [sc-64197]
- Loading branch information
1 parent
5b192e6
commit e1a1ae9
Showing
5 changed files
with
10 additions
and
10 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
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