diff --git a/src/qibo/models/dbi/double_bracket.py b/src/qibo/models/dbi/double_bracket.py index 749b7a8b78..9b8fecfd2b 100644 --- a/src/qibo/models/dbi/double_bracket.py +++ b/src/qibo/models/dbi/double_bracket.py @@ -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(