Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkoham committed Oct 26, 2020
1 parent ce2ce74 commit 57ec26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/aqua/operators/legacy/weighted_pauli_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def to_opflow(self, reverse_endianness=False):
pauli = Pauli.from_label(str(p)[::-1]) if reverse_endianness else p
# Adding the imaginary is necessary to handle the imaginary coefficients in UCCSD.
# TODO fix these or add support for them in Terra.
pauli_ops += [PrimitiveOp(pauli, coeff=np.real(w) + np.imag(w))]
pauli_ops += [PrimitiveOp(pauli, coeff=w)]
return sum(pauli_ops)

@property
Expand Down

0 comments on commit 57ec26a

Please sign in to comment.