diff --git a/src/qibo/hamiltonians/models.py b/src/qibo/hamiltonians/models.py index 27a9e3c6a6..dac1c34b7f 100644 --- a/src/qibo/hamiltonians/models.py +++ b/src/qibo/hamiltonians/models.py @@ -300,7 +300,7 @@ def XXX( return Heisenberg( nqubits, - coupling_constants=[coupling_constant] * 3, + coupling_constants=coupling_constant, external_field_strengths=external_field_strengths, dense=dense, backend=backend,