-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Context:** In #1162 the mlir pass for merging rotation was added, and the pattern included `qml.Rot` (and `CRot`). However, it was then realized that these two kinds of rotations should not be merged, as [the rotation is specified via ](https://docs.pennylane.ai/en/stable/code/api/pennylane.Rot.html) `rot(a, b, c) = rz(c) ry(b) rz(a)` This means `rot(a, b, c) rot(d, e, f) != rot(a+d, b+e, c+f)` since y and z rotations do not commute. **Description of the Change:** Remove `qml.Rot` (and `CRot`) from merge rotation pass patterns **Benefits:** No numerical errors
- Loading branch information
Showing
5 changed files
with
34 additions
and
34 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