TB2J interface#

Main output of TB2J is the "exchange.out" file with the exchange parameters.

Function load_tb2j_model() reads this file and construct SpinHamiltonian from it.

Import#

>>> # Exact import
>>> from radtools.io.tb2j import load_tb2j_model
>>> # Explicit import
>>> from radtools.io import load_tb2j_model
>>> # Recommended import
>>> from radtools import load_tb2j_model

Usage#

>>> hamiltonian = load_tb2j_model('exchange.out')