Skip to content
LiuQH-labPublic

About

A parallel (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.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

SSG4Wann

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.

Overview

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.

Key Features

  • 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

Installation

SSG4Wann requires Python 3.12+. It is available on PyPI:

python -m pip install ssg4wann
ssg4wann --version

To include MPI support:

python -m pip install "ssg4wann[mpi]"

Quick Start

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.in

You 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.

Documentation

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

About

A parallel (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.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages