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 Jun 4, 2024
1 parent 20407c9 commit 01b8373
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qibo/models/dbi/double_bracket.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ def __call__(
if d is None:
d = self.diagonal_h_matrix
operator = (
self.h.exp(-step*(np.sqrt(5)-1)/2)
@ self.backend.calculate_matrix_exp(-step*(np.sqrt(5)-1)/2, d)
self.h.exp(-step * (np.sqrt(5) - 1) / 2)
@ self.backend.calculate_matrix_exp(-step * (np.sqrt(5) - 1) / 2, d)
@ self.h.exp(step)
@ self.backend.calculate_matrix_exp(step*(np.sqrt(5)+1)/2, d)
@ self.h.exp(-step*(3-np.sqrt(5))/2)
@ self.backend.calculate_matrix_exp(step * (np.sqrt(5) + 1) / 2, d)
@ self.h.exp(-step * (3 - np.sqrt(5)) / 2)
@ self.backend.calculate_matrix_exp(-step, d)
)
operator_dagger = self.backend.cast(
Expand Down

0 comments on commit 01b8373

Please sign in to comment.