HofstadterTools: A Python package for analyzing the Hofstadter model

Bartholomew Andrews
DOI: https://doi.org/10.21105/joss.06356
2024-03-14
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.
Mesoscale and Nanoscale Physics,Strongly Correlated Electrons,Mathematical Physics
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: **Provide a unified and easy - to - use Python toolkit for analyzing the energy spectrum of the Hofstadter model and its related properties**. Specifically, the paper introduces a Python software package named HofstadterTools, aiming to solve the following problems: 1. **Fragmentation of theory and code**: Currently, research and code on the Hofstadter model are scattered across multiple fields and tools, lacking a centralized, well - documented toolkit. HofstadterTools integrates these scattered theories and codes, providing researchers with a unified platform. 2. **Complexity of calculation and visualization**: The calculation and visualization of the energy spectrum of the Hofstadter model (such as the Hofstadter butterfly diagram) and related properties (such as Chern number, quantum geometry, and topological properties) are very complex. HofstadterTools simplifies these calculation and visualization processes, enabling non - expert users to use it easily. 3. **Requirement for interdisciplinary applications**: The Hofstadter model has important applications not only in condensed - matter physics but also in optics, acoustics, cold - atom gases, etc. HofstadterTools supports multiple lattice structures (such as square, triangular, honeycomb, and Kagome lattices) and can be applied to research in different fields. 4. **Requirement for experimental implementation**: In recent years, the Hofstadter model has been experimentally realized, for example, the characteristics of the Hofstadter spectrum have been observed in moiré materials and optical flux lattices. To meet the needs of experimental groups, HofstadterTools provides a self - contained code library that can be quickly applied to benchmarking experimental data and related calculations. 5. **Research on many - body problems**: The Hofstadter model is an infinitely configurable topologically flat - band model, often used to study strongly correlated phenomena, such as the fractional quantum Hall effect and superconductivity. HofstadterTools can help theorists study quantum many - body systems and guide research through the quantum geometry and topological properties of single - particle band structures. In summary, HofstadterTools aims to provide researchers with a powerful and easy - to - use tool to promote in - depth research on the Hofstadter model and its applications.