diff --git a/qlinks/model/spin1_xy_model_1d.py b/qlinks/model/spin1_xy_model_1d.py index 1b5805c..bd28b13 100644 --- a/qlinks/model/spin1_xy_model_1d.py +++ b/qlinks/model/spin1_xy_model_1d.py @@ -68,10 +68,10 @@ def _build_h3_term(self): for site in range(self.n): self._hamiltonian += 0.5 * self.coup_j3 * kron( [s_plus, idty, idty, s_minus, *[idty] * (self.n - 4)], shift=site - ) + ) # fmt: skip self._hamiltonian += 0.5 * self.coup_j3 * kron( [s_minus, idty, idty, s_plus, *[idty] * (self.n - 4)], shift=site - ) + ) # fmt: skip if not self.periodic and site == self.n - 4: break