-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified
__add__
for Observable
and Hamiltonian
to support addi…
…ng `0` (#2603) * modified __add__ for Observable and Hamiltonian to support adding 0, and wrote unit tests * Update changelog-dev.md * Update doc/releases/changelog-dev.md Co-authored-by: antalszava <antalszava@gmail.com> * modified __iadd__ for Hamiltonian and added more observables for tests * modified test_hamiltonian_add_zero and test_add_zero * format Co-authored-by: antalszava <antalszava@gmail.com>
- Loading branch information
1 parent
2b07d22
commit 43fc4f6
Showing
5 changed files
with
101 additions
and
2 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