-
I am interested in studying Bose-Hubbard model with complex hoppings. To this end I wrote the following code for my Hamiltonian (definition of the lattice geometry is not included):
With this Hamiltonian my code crashes due to high memory cost. If I just use the usual Any ideas how to proceed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi, how many sites do you have? I am surprised this crashes |
Beta Was this translation helpful? Give feedback.
ok but then this likely crashes because your model does not fit in the memory when computing the local energy. the main issue I see, compared to standard Bose Hubbard, is that here you have all-to-all hoppings, so the off-diagonal elements on which you need to compute the value of the wave functions in the local energy are O(N^2) instead of O(N) as in the case of short range hopping. you can try to set chunk_size to a smaller value