-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add generator fn for Exp * add parameter_frequencies fn * add docstring to generator fn * add Evolution operator * remove commented-out line * tests * update docstring * replace parameter property with data * docstring edits * label * update tests * make data setter consistent with Exp * Update args in docstring Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca> * Add Evolution to list of symbolic classes * Inherit parameter_frequencies from Operation * Overwrite inverse methods inherited from Operation * Apply docstring suggestions from code review Co-authored-by: Utkarsh <utkarshazad98@gmail.com> * Check if simplified op has generator * Add test for simplifying to find generator * test setting inverse raises error * Get parameter shift gradients with the new `Evolution` operator (#3472) * get parameter shift working with evolution operator * Fix bug in Exp.hash * Update tests * Coeff to string in hash * Update test Co-authored-by: Lillian Frederiksen <lillian542@gmail.com> * Update simplify function * Update tests * Add to default qubit supported operations * update changelog * Apply formatting and doc suggestions from code review Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca> * Update tests * Update generator function * Remove test for simplifying to get generator * Update doc/releases/changelog-dev.md Co-authored-by: Utkarsh <utkarshazad98@gmail.com> * Update docstring * codecov Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca> Co-authored-by: Utkarsh <utkarshazad98@gmail.com> Co-authored-by: Christina Lee <christina@xanadu.ai>
- Loading branch information
1 parent
2162274
commit f10ad1c
Showing
8 changed files
with
458 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,6 +168,7 @@ class DefaultQubit(QubitDevice): | |
"SProd", | ||
"Prod", | ||
"Exp", | ||
"Evolution", | ||
} | ||
|
||
def __init__( | ||
|
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
Oops, something went wrong.