-
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.
Fix issue #1266: 'convert_observable' function raises an error for Qu…
…bitOperators containing complex coefficients (#1277) * Checks that all coefficients in the QubitOperator are real * Add unit test to 'test_convert_observable.py' * Update 'qchem/CHANGELOG.md' * Move the check of the coefficients to the 'convert_observable' function * Apply suggestions from code review Co-authored-by: zeyueN <48225584+zeyueN@users.noreply.github.com> * Minor change * Comply with CodeFactor suggestion * Update qchem/CHANGELOG.md Co-authored-by: zeyueN <48225584+zeyueN@users.noreply.github.com> Co-authored-by: Maria Schuld <mariaschuld@gmail.com>
- Loading branch information
1 parent
a8a24da
commit a839fcf
Showing
3 changed files
with
50 additions
and
12 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