I don't understand properly the kind of modifications that translational_symmetry applies to the model. I tried to read the source code, but it is linked to some C++ code which is obscure to me. Does it perform some kind of Fourier transform of the Hamiltonian?