-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Hamiltonian data storing and result of ExpvalCost for trivial …
…Hamiltonians (#1082) * convert coeffs and ops to lists internally, add edge cases with different typed args * remove test arg * comment update * changelog * zero Hamiltonian cases for subtraction and scalar mul * Hamiltonian simplify to zero * ExpvalCost zero Ham * Comments, docstring * zero Ham simplified is zero Ham * coeffs * revert modifying simplify() * Hamiltonian with no coeffs or ops produces 0 expval with ExpvalCost * changelog * Update tests/test_vqe.py * fix Co-authored-by: Josh Izaac <josh146@gmail.com>
- Loading branch information
1 parent
6ecd027
commit 12ba516
Showing
3 changed files
with
123 additions
and
5 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