Skip to content

Commit 93055b7

Browse files
committed
Fix another place where terms is defaulted to 0.0
1 parent a6b893c commit 93055b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/openfermion/ops/operators/symbolic_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def __isub__(self, subtrahend):
480480
"""
481481
if isinstance(subtrahend, type(self)):
482482
for term in subtrahend.terms:
483-
self.terms[term] = self.terms.get(term, 0.0) - subtrahend.terms[term]
483+
self.terms[term] = self.terms.get(term, 0) - subtrahend.terms[term]
484484
if self._issmall(self.terms[term]):
485485
del self.terms[term]
486486
elif isinstance(subtrahend, COEFFICIENT_TYPES):

0 commit comments

Comments
 (0)