Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 23, 2024
1 parent c05fab3 commit d9fb54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/hamiltonians/hamiltonians.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def energy_fluctuation(self, state):
energy = self.expectation(state)
h = self.matrix
h2 = Hamiltonian(nqubits=self.nqubits, matrix=h @ h, backend=self.backend)
average_h2 = h2.expectation( state, normalize=True)
average_h2 = h2.expectation(state, normalize=True)
return np.sqrt(np.abs(average_h2 - energy**2))

def __add__(self, o):
Expand Down

0 comments on commit d9fb54c

Please sign in to comment.