-
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:** Now, we technically allow something like `LinearCombination([1,2], qml.X(0)@qml.Y(1))`, but that's probabably doesn't do what the user was actually expecting, and this syntax could lead to some very difficult to diagnose bugs. **Description of the Change:** Explicitly forbid the above syntax. **Benefits:** Preventing people from doing weird things accidentally. **Possible Drawbacks:** More validation. Maybe someone actually does want the strange behaviour. **Related GitHub Issues:** [sc-62162]
- Loading branch information
Showing
4 changed files
with
37 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
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