Julia package for the construction of quantum lattice systems.
Welcome to QuantumLattices. Here we provide a general framework to construct the operator-formed Hamiltonian of any quantum lattice system, with the inputs as simple as its description by the natural language. This operator-formed Hamiltonian supports complete symbolic computations when combined with SymPy, and can serve as a convenient frontend of quantum many-body algorithms, such as TBA (tight-bind approximation), LSWT (linear spin wave theory), SCMF (self-consistent mean field theory), ED (exact diagonalization), CPT/VCA (cluster perturbation theory / variational cluster approach), DMRG (density matrix renormalization group), RPA (random phase approximation), etc. Generic interfaces are defined to provide a unified access to these algorithms with automatic project management.
In Julia v1.8+, please type ]
in the REPL to use the package mode, then type this command:
pkg> add QuantumLattices
The mathematical foundations of our package is that the operators in a lattice Hamiltonian:
- act on local Hilbert spaces, and
- form an algebra over the complex field.
Based on this, the package has the following features:
-
Unitcell Description Framework: the Hamiltonian can be constructed based on the unitcell of a lattice with the information of the local algebra acting on the local Hilbert space living on each point and the terms that couples different degrees of freedom on the same or different points. Such information can be input into the program as simple as describing the quantum system in a usual research paper.
-
Complete Symbolic Computation: with only this package, symbolic computation between operators is realized while the coefficient of any operator remains numeric; by integrating it with SymPy, complete symbolic computation can be achieved and no modifications need be made on the methods in this package.
-
Generic Frontend of Many-Body Algorithms: with the operator-formed Hamiltonian as the foothold, quantum many-body algorithms can be initialized in quite similar ways with only minor modifications needed. Moreover, automatic project management is realized, including that of result recording, data caching, parameter updating, information logging, dependency managing, etc.
Four common categories of quantum lattice systems in condensed matter physics are supported:
- canonical complex fermionic systems
- canonical complex and hard-core bosonic systems
- SU(2) spin systems
- Phononic systems
Furthermore, other systems can be supported easily by extending the generic protocols provided in this package.
Concrete algorithms could be considered as the "backend" of quantum lattice systems. They are developed in separate packages (still in progress):
- TBA: tight-binding approximation for complex-fermionic/complex-bosonic/phononic systems;
- LSWT: linear spin wave theory for magnetically ordered local-spin systems;
- SCMF: self-consistent mean field theory for complex fermionic systems;
- ED: exact diagonalization for complex-fermionic/hard-core-bosonic/local-spin systems;
- CPT/VCA: cluster perturbation theory and variational cluster approach for complex fermionic and local spin systems;
- DMRG: density matrix renormalization group for complex-fermionic/hard-core-bosonic/local-spin systems based on TensorKit and MPSKit;
- RPA: random phase approximation for complex fermionic systems.
- [Tutorials: unitcell description](@ref UnitcellDescriptionIntroduction)
- [Tutorials: advanced topics](@ref AdvancedTopicsIntroduction)
Due to the fast development of this package, releases with different minor version numbers are not guaranteed to be compatible with previous ones before the release of v1.0.0. Comments are welcomed in the GitHub issues.
HamiltonianPy: in fact, the authors of this Julia package worked on the python package at first and only turned to Julia later.