-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for time-dependent Hamiltonians and observable evaluation in …
…``TrotterQRTE`` (#9565) * added support for t-dep Hamiltonian to algorithms.time_evolvers.trotterization.TrotterQRTE with synthesis LieTrotter * added support for t-dep Hamiltonians to TrotterQRTE, leaving ProductFormula-classes unchanged wrt main. Also added evaluation of auxiliary_operators at every time-step of TrotterQRTE * added support for t-dep Hamiltonians to TrotterQRTE, leaving ProductFormula-classes unchanged wrt main. Also added evaluation of auxiliary_operators at every time-step of TrotterQRTE * removed note that t-dep Hamiltonians are not supported * modified and added tests for t-dependent Hamiltonians in TrotterQRTE * added documentation * adapted code according to PR comments, refined tests to include manual calculation of reference values * rename new test * Update qiskit/algorithms/time_evolvers/trotterization/trotter_qrte.py Co-authored-by: Julien Gacon <[email protected]> * Update qiskit/algorithms/time_evolvers/trotterization/trotter_qrte.py Co-authored-by: Julien Gacon <[email protected]> * Update qiskit/algorithms/time_evolvers/trotterization/trotter_qrte.py Co-authored-by: Julien Gacon <[email protected]> * Update qiskit/algorithms/time_evolvers/trotterization/trotter_qrte.py Co-authored-by: Julien Gacon <[email protected]> * added inplace argument to assign_parameters._assign_parameters. If False, copies parameter array and returns new bound array leaving the passed array untouched * fixing ValueErrors in TimeEvolutionProblme and formatting * added release note * fix lint suggestions --------- Co-authored-by: Julien Gacon <[email protected]>
- Loading branch information
Showing
10 changed files
with
215 additions
and
69 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
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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/trotter-time-dep-hamiltonians-8c6c3d5f629e72fb.yaml
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
features: | ||
- | | ||
Add support for time-dependent Hamiltonians in | ||
:class:`~.time_evolvers.TrotterQRTE`. | ||
- | | ||
Add support for observable evaluations at every time-step in | ||
:class:`~.time_evolvers.TrotterQRTE`. |
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.