A MPI-enabled tool for symmetrizing Wannier tight-binding Model
(*_hr.dat/*_tb.dat) generated from Wannier90, using the Oriented Spin
Space Group (OSSG) symmetry of the magnetic system and supporting both strong
and weak spin-orbit coupling limits.
For more details, please refer to the documentation.
SSG4Wann is designed to restore or enforce symmetry constraints on Wannier
Hamiltonians by averaging matrix elements under symmetry operations. It
supports both collinear (up/down channels) and non-collinear workflows and is
optimized for larger workloads through MPI-based parallel computation.
- Symmetrization of Wannier90 HR Hamiltonians with both MSG and SSG symmetries and support for spin channels and non-collinear settings
- MPI parallelization for efficient processing of large Hamiltonians
- Configurable behavior through
sg.in - Wannier90 HR and TB input and output
- Optional band transformation workflow controls
SSG4Wann requires Python 3.12+. It is available on PyPI:
python -m pip install ssg4wann
ssg4wann --versionTo include MPI support:
python -m pip install "ssg4wann[mpi]"Prepare a working directory containing an INCAR file, the relevant
Wannier90 .win file, and a Wannier90 *_hr.dat or *_tb.dat file.
Generate an initial configuration and run the symmetrization:
cd /path/to/calculation
ssg4wann --init
ssg4wann -c sg.inYou can also use the Python API:
import ssg4wann as sw
sw.quick_run()Warning
A run that finishes without an exception is not necessarily physically correct. The spin direction, Wannier projection order, atomic positions, and Hamiltonian basis must be mutually consistent.
- Getting Started covers installation, input files, serial execution, and output files.
- Configuration Reference
documents the
sg.intags. - Basis, Spin and Symmetry Conventions describes the conventions required for a consistent calculation.
- Troubleshooting and Compatibility collects common errors and known VASP compatibility issues.
- Examples describes the calculations included in the repository.
- MPI and HPC covers local MPI execution and cluster job scripts.
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.