Update the code taking into consideration the new features in the Hamiltonian class (https://github.com/qiboteam/qibo/pull/1489) and the refactor (https://github.com/qiboteam/qibo/pull/1548).
Update the code taking into consideration the new features in the Hamiltonian class (qiboteam/qibo#1489) and the refactor (qiboteam/qibo#1548).