-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix decomposition of
StronglyEntanglingLayers
with broadcasting (#5716
) **Context:** The decomposition of `StronglyEntanglingLayers` "almost" takes broadcasting into account: The indexing into the `weights` tensor is fine, but the number of layers is not determined correctly, leading to flawed indexing, and in particular to #5695. **Description of the Change:** Fix the `n_layers` determined from `weights` in `compute_decomposition`. **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** Fixes #5695 [sc-63457]
- Loading branch information
Showing
3 changed files
with
32 additions
and
8 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