Coder Social home page Coder Social logo

bvrstich / hubbard-gpu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wpoely86/hubbard-gpu

0.0 2.0 0.0 158 KB

Calculate the groundstate energy of 1D and 2D Fermi-Hubbard model on the GPU with Cuda.

License: GNU General Public License v3.0

hubbard-gpu's Introduction

Fermi-Hubbard on the GPU with Cuda

This program can calculate the groundstate energy of 1 dimensional and 2 dimension Fermi-Hubbard model on the GPU (and the CPU). It is based on "Exact diagonalization of the Hubbard model on graphics processing units" by Siro and Harju.

There are 2 programs: main and main2D. The former is for 1D Hubbard, the latter is for 2D Hubbard. Everything is split up in several classes to make reusing code easy:
The Hamiltonian and HubHam2D classes build the full (dense) Hamiltonian Matrix. SparseHamiltonian stores the Hubbard Hamiltonian in parts: an spin up and a spin down part. The matrix themselves are storred in the ELL format.
The SparseHamiltonian2D does the same but for 2D Hubbard. However, here we make a detour: we first store the matrices in the CRS format (the SparseHamiltonian2DCSR class) and then convert it in the ELL format. The reason is that for ELL, we need to know the maximum number of non-zero elements (nnz) of a row.

There are several branches in the git repo: the master contains only the CPU version. The branch 'GPU' constains the GPU version and the branch 'PRIMME' used the PRIMME library to find the eigenvalues and eigenvectors. You can find PRIMME at http://www.cs.wm.edu/~andreas/software/

All code is under the GPL.

hubbard-gpu's People

Contributors

wpoely86 avatar

Watchers

James Cloos avatar  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.