English

HofstadterTools: A Python package for analyzing the Hofstadter model

Mesoscale and Nanoscale Physics 2024-03-28 v2 Strongly Correlated Electrons Mathematical Physics math.MP

Abstract

The Hofstadter model successfully describes the behavior of non-interacting quantum particles hopping on a lattice coupled to a gauge field, and hence is ubiquitous in many fields of research, including condensed matter, optical, and atomic physics. Motivated by this, we introduce HofstadterTools (https://hofstadter.tools), a Python package that can be used to analyze the energy spectrum of a generalized Hofstadter model, with any combination of hoppings on any regular Euclidean lattice. The package can be applied to compute key properties of the band structure, such as quantum geometry and topology, as well as plot Hofstadter butterflies and Wannier diagrams that are colored according to their Chern numbers.

Keywords

Cite

@article{arxiv.2311.18726,
  title  = {HofstadterTools: A Python package for analyzing the Hofstadter model},
  author = {Bartholomew Andrews},
  journal= {arXiv preprint arXiv:2311.18726},
  year   = {2024}
}

Comments

7 pages, 4 figures

R2 v1 2026-06-28T13:37:17.085Z