GithubHelp home page GithubHelp logo

dmrg_c's Introduction

dmrg_C

Archived programs for calculating one-dimensional models about condensed matter physics using density matrix renormalization group (DMRG) and exact diagonalization.

How to Use

First, you go enter dmrg_C/lib and do make

cd lib
make

If you use Linux systems, please comment out Mac OS clang commands

dmrg_C/lib/makefile

Lines 7 to 9 in afa53ab

# Mac OS clang
CC = gcc
CFLAGS = -Wall -Wextra -Ofast -Xpreprocessor -fopenmp -I $(INCDIR)

and then uncomment Linux command.

dmrg_C/lib/makefile

Lines 11 to 13 in afa53ab

# Linux
#CC = gcc
#CFLAGS = -Wall -Wextra -Ofast -fopenmp -I $(INCDIR)

We check the programes work on Ubuntu 20.04.5 LTS (GNU/Linux 5.15.0-56-generic x86_64)

Next, you go enter any directries under dmrg_C/main/dmrg. Here, we go enter dmrg_C/main/dmrg/xxz_vf and do make

cd dmrg_C/main/dmrg/xxz_vf
make

Again here, If you use Linux systems, please comment out Mac OS clang commands

# Mac OS clang
CC = gcc
CFLAGS = -Ofast -Xpreprocessor -fopenmp -I $(INCDIR) -I include
LFLAGS = -ldmrg -lonsite_op -lsml -llapack -lomp -L $(LIBDIR)

and then uncomment Linux command.

# Linux
#CC = gcc
#CFLAGS = -Ofast -fopenmp -I $(INCDIR) -I include
#LFLAGS = -ldmrg -lonsite_op -lsml -llapack -lm -L $(LIBDIR)

Finally, you can execute program appeared in dmrg_C/main/dmrg/xxz_vf/build/1D_XXZ_VF_DMRG.out

./build/1D_XXZ_VF_DMRG.out

Calculation log will be appeared. Screenshot 2022-12-29 at 2 00 15

Results will be written in dmrg_C/main/dmrg/xxz_vf/result and status will be written in dmrg_C/main/dmrg/xxz_vf/SML_out

Programs by DMRG

  • dmrg_C/main/dmrg/hubbard_vf: Hubbard model under the longitudinal fields.
  • dmrg_C/main/dmrg/klm_tvf: Kondo lattice model under the transeverse fields.
  • dmrg_C/main/dmrg/klm_vf: Kondo lattice model under the longitudinal fields.
  • dmrg_C/main/dmrg/tklm_vf: Two-channel Kondo lattice model under the longitudinal fields.
  • dmrg_C/main/dmrg/xxz_vf: XXZ model under the longitudinal fields.

Programs by Exact Diagonalization

This is under construction. (maybe forever)

  • dmrg_C/main/exact_diag/klm_tvf: Kondo lattice model under the transeverse fields.
  • dmrg_C/main/exact_diag/klm_vf: Kondo lattice model under the longitudinal fields.

Operation Check

  • Mac OS 13.1 on Apple M1 Max
  • Mac OS 13.1 on Intel CPU
  • Ubuntu 20.04.5 LTS on Ryzen 7950x

dmrg_c's People

Contributors

k-suzuki-jij avatar

Stargazers

 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.