set up Hubbard Holstein model

Hello,

I am new to iTensor and trying to implement the Hubbard-Holstein model,

H=-t\sum_{i,\sigma}[c^{\dagger}_{i,\sigma}c_{i+1,\sigma}+H.C]+U\sum_{i}n_{i,\uparrow}n_{i,\downarrow}+\omega_{0}\sum_{i}b_{i}^{\dagger}b_{i}+g\sum_{i}n_{i}(b_{i}+b_{i}^{\dagger}).

I am using the Julia version of iTensor.
Can anyone help me setting up the mixed site type that we need to implement the Hubbard Holstein model?

Thank you

Hi @abinitio,
Here is a previous discussion where I gave a code example of how to create a “sites” array that contains a mixture of Electron and Boson sites:
https://itensor.discourse.group/t/mixed-site-set-with-quantum-number-conservation/470/2

Does that address your question?

Thanks, Miles. This will be very helpful.