Skip to content

A module that runs on Python with Numpy that define a class called NRG. This class has all the attributes and method necessary to make a Numerical Renormalization Group (NRG) of fermions coupled with one impurity. There is also an toy model of coupled spins for didactic purposes.

Notifications You must be signed in to change notification settings

LucasNogueiraMartins/NRG-Didactic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NRG-Didactic

Modules that runs on Python with Numpy that define classes called NRG. This classes has all the attributes and methods necessary to make a Numerical Renormalization Group (NRG). There is two modules: 'Kondo.py' and 'Coupled-Spins.py'. The first is the NRG applied to Kondo Model and the second is an toy model of spins coupled with the neighborhood by an exponential decreasing function "$J\lambda^ n$"

#Initiating the class

The module 'Kondo.py' is initiated by the parameters

  • Lambda parameter of logarithm discretization; lambda
  • Coupling of the spin impurity with the spins of the electrons; J

The next module called 'coupled-spins.py' is initiated by the parameters

  • Base of the exponential decreasing function; lambda
  • Front constant of the exponential decreasing function; J

#Methods ofthe Class

There are three main methods: diagonalization of the hamiltonian '.diag()', iteration of the hamiltonian '.ite()' and the .cutoff(S).

  • .diag(): This method change the basis of all matrices that are important for the '.ite()', diagonalizing the hamiltonian
  • .ite(): This method apply the numerical renormalization group transformation.
  • .cutoff(S): This method cutoff the higer excited states, holding only the first S states excitate. (S is int)

There are lot of attributes that works internilly in the class. The important attribute are the hamiltonian '.H'(a two dimensional numpy array) and the energies '.val'(a one dimensional numpy array).

About

A module that runs on Python with Numpy that define a class called NRG. This class has all the attributes and method necessary to make a Numerical Renormalization Group (NRG) of fermions coupled with one impurity. There is also an toy model of coupled spins for didactic purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages