Giter VIP home page Giter VIP logo

paralleldmrg's Introduction

parallelDMRG

Real-space parallel density matrix renormalization group (DMRG) based on ITensor.

This code is based on the paper "Real-Space Parallel Density Matrix Renormalization Group", Phys. Rev. B, 87, 155137 (2013) arxiv:1301.3494. See also this paper on parallelizing time evolution of matrix product states.

Installing

To compile the sample code (pdmrg.cc), create your own local copy of the sample Makefile (Makefile.sample) provided. Edit the ITENSOR_LIBRARY_DIR variable to point to where ITensor is located on your computer. Edit MPI_CFLAGS and MPI_LFLAGS to reflect where the MPI libraries are installed on your computer as well. For the MPI flags, you can often use a command such as "mpicxx --showme" to get a printout of the correct compiler flags for your system. Once your Makefile variables are properly set, just run "make" to compile the sample code.

The main purpose of this software is to provide the header "parallel_dmrg.h" which you can include into your own driver code (modeled on pdmrg.cc) to call the parallel_dmrg routines for your own applications.

Debugging Parallel Codes

ITensor includes a helpful function called parallelDebugWait that you call by passing your MPI environment object. For optimized builds it just prints the process IDs of each of your MPI processes. But for debug builds, it pauses after printing the process IDs. At this point you can use the "attach" feature of your debugger (such as gdb or lldb) to attach to these running processes in separate terminal windows. Finally, make an empty file named GO in the same directory that your code is running in. The program will see this file and begin running. After the program starts running and a bug is encountered, you can see the backtrace in the debugger attached to whichever process encountered the bug.

Acknowledgements

Thanks to David Jansen for upgrading the code to work with version 3 of ITensor.

paralleldmrg's People

Contributors

emstoudenmire avatar jansendavid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

paralleldmrg's Issues

Upgrade to ITensor v3 compatibility

Dear Mr. Stoudenmire,

I'm trying to compile the code. However, the compiler shows that "parallel_dmrg.h:105:13: error: β€˜MPSt’ has not been declared". I appreciate any hint on these questions.

By the way, it is no problem for me to compile the dmrg code on the itensor website.

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.