-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qutrit mixed test differentiability (#5186)
**Context:** Measuring and applying operation functionality have been added to the `qutrit_mixed` module, these tests ensure that these operations are differentiable. Since support for qml.prod for qutrits has been implemented from [PR](#5400). It will be possible to change the method of state measurement without issue. The way expectation value measurement was done may have been overly complicated so this reducing that complication, while still allowing for product type observables. **Description of the Change:** Tests have been added that ensure that the `apply_operation` and `measure` functions retain differentiability for the new qutrit mixed-state device. Expectation value measurements have been changed to use diagonalizing gates and eigenvalues instead of trace. **Benefits:** Shows that the `apply_operation` and `measure` functions are differentiable. **Possible Drawbacks:** This PR does not remove the abstractions made in apply_operations to make the trace based measure expectation value work so there is some code left that may be overly abstract. **Related GitHub Issues:** N/A --------- Co-authored-by: Gabe PC <bottrill@student.ubc.ca> Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai> Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com> Co-authored-by: Christina Lee <chrissie.c.l@gmail.com> Co-authored-by: Olivia Di Matteo <2068515+glassnotes@users.noreply.github.com>
- Loading branch information
1 parent
e761e18
commit 46afaa5
Showing
4 changed files
with
424 additions
and
114 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
Oops, something went wrong.