Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Fix .add dep warning. (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongreenberg authored Apr 30, 2020
1 parent fc257c8 commit e72c590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/aqua/operators/state_fns/vector_state_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def add(self, other: OperatorBase) -> OperatorBase:
# Right now doesn't make sense to add a StateFn to a Measurement
if isinstance(other, VectorStateFn) and self.is_measurement == other.is_measurement:
# Covers MatrixOperator, Statevector and custom.
return VectorStateFn((self.coeff * self.primitive).add(other.primitive * other.coeff),
return VectorStateFn((self.coeff * self.primitive) + (other.primitive * other.coeff),
is_measurement=self._is_measurement)
# pylint: disable=cyclic-import,import-outside-toplevel
from .. import SummedOp
Expand Down

0 comments on commit e72c590

Please sign in to comment.