Skip to content

Commit

Permalink
trying to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Mar 9, 2024
1 parent ac9a0b2 commit c885bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/backends/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def calculate_matrix_exp(self, a, matrix, eigenvectors=None, eigenvalues=None):
return self.np.matmul(eigenvectors, self.np.matmul(expd, ud))

def calculate_expectation_state(self, hamiltonian, state, normalize):
statec = np.conj(state)
statec = self.np.conj(state)
hstate = hamiltonian @ state
ev = self.np.real(self.np.sum(statec * hstate))
if normalize:
Expand Down

0 comments on commit c885bfe

Please sign in to comment.