-
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.
Legacy device API handles Prod observables (#5475)
**Context:** The legacy device API has special handling of `Tensor` and `Sum` as observables, but `Prod` is not covered by that. **Description of the Change:** - `Prod` observables are expanded if they simplify to a `Sum` - In `check_validity`, the operands of `Prod` observables are checked. **Possible Drawbacks:** `simplify` is called on `Prod` observables many times, which might be inefficient **Related Shortcut Story:** [sc-60584] --------- Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
106 additions
and
66 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