-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
qml.QutritBasisStatePreparation
JIT compatible (#6308)
This PR makes `qml.QutritBasisStatePreparation` JIT compatible. Previously, the template used the `qml.TShift` operator in the decomposition. However, this approach requires non-jittable control flow on the input. To make the template jittable the decomposition is changed to return a `qml.ops.QutritUnitary` representing a `TShift` operator raised to some power. This change requires adding `matrix_power` and `eigh` to the multi dispatch. This PR addresses sc-70863. --------- Co-authored-by: Guillermo Alonso-Linaje <[email protected]>
- Loading branch information
Showing
3 changed files
with
95 additions
and
25 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