Hofstadter butterfly for square finite lattices
Model takes into accoun only nnn hopping
Peierls substitutions is taken into account via phase factor, where
jupyter-notebook, numpy, matplotlib
2x2 lattice with nearest neighbor hopping term:
2x2 lattice with nearest neighbor hopping term (spin-orbit coupling included):