Giter Site home page Giter Site logo

gharib85 / nrg-didactic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucasnogueiramartins/nrg-didactic

0.0 1.0 0.0 6 KB

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.

Python 100.00%

nrg-didactic's Introduction

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

nrg-didactic's People

Contributors

lucasnogueiramartins avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.