Giter Site home page Giter Site logo

dqmc's Introduction

DOI

     o.OOOo.    .oOOOo.   Oo      oO  .oOOOo.  
     O    `o  .O     o.  O O    o o .O     o  
     o      O o       O  o  o  O  O o              Determinant quantum Monte Carlo code
     O      o O       o  O   Oo   O o              for simulating quantum critical metals!
     o      O o       O  O        o o           
     O      o O    Oo o  o        O O              (In pure Julia!)
     o    .O' `o     O'  o        O `o     .o   
     OooOO'    `OoooO Oo O        o  `OoooO'  
Build Status License

Determinant quantum Monte Carlo (DQMC) code for simulating a quantum critical metal, a Fermi sea coupled to antiferromagnetic bosonic fluctuations, in two spatial dimensions.

A version of this code has been used to produce (most of) the results in the following paper:

Hierarchy of energy scales in an O(3) symmetric antiferromagnetic quantum critical metal: a Monte Carlo study
Carsten Bauer, Yoni Schattner, Simon Trebst, Erez Berg

Performance comparison

The figure below shows a comparison of three different DQMC codes written in C++, Fortran, and Julia. Specifically, it shows the time it takes to perform one sweep of local updates in space and imaginary time for a spin-fermion model (studied in the paper linked above). All kinds of special features, such as a small magnetic flux to improve finite size effects, are turned off.

Codes:

Settings

Environmental variables:

  • LATTICES: folder with ALPS XML lattice files (mandatory unless you're me)
  • WALLTIME: Set a walltime limit for the algorithm. (optional)
  • JULIA_DQMC: path to the root of this repo (optional, currently only used in live.jl/ipynb and test_live.ipynb to activate the environment)

Modes

Special modes as indicated by fields in dqmc.in.xml:

  • EDRUN: if set to true, temporal gradients and quartic term in bosonic action are turned off.
  • TIMING: stop after thermalization phase and report speed and allocations of all major functions.

dqmc's People

Contributors

carstenbauer avatar ffreyer avatar github-actions[bot] avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

dqmc's Issues

potential performance updates

I'll update this whenever I find something.

  • In local_updates, rather than calculating log(exp_delta_S_boson) the action difference could be saved to a variable and the log could be dropped.
  • eVop1, eVop2 and eVop1eVop2 are only actively used in calc_detratio as far as I can tell. Having just interaction_matrix_exp_op!(mc, new_op - p.hsfield[:,i,s.current_slice], +1., s.eVop1eVop2) should be enough.
  • Mtmp, Mtmp2 are only used in detratio. Mtmp2 could be removed if mul!(s.Mtmp2, s.delta_i, s.Mtmp) becomes lmul!(s.delta_i, s.Mtmp). M should also be fine to use instead of Mtmp.

Make tests less strict

A couple of tests "failed" on cheops because of tiny deviations from the expected results. Maybe we shouldn't use the default settings of isapprox but maybe a higher reltol.

Bad TDGF for safe_mult != 1

DQMC in.xml file
<?xml version="1.0" encoding="utf-8"?>
<SIMULATION>
  <PARAMETERS>
    <PARAMETER name="SAFE_MULT">10</PARAMETER>
    <PARAMETER name="C">3.0</PARAMETER>
    <PARAMETER name="SLICES">100</PARAMETER>
    <PARAMETER name="L">8</PARAMETER>
    <PARAMETER name="MU1">-0.5</PARAMETER>
    <PARAMETER name="SWEEPS">20000</PARAMETER>
    <PARAMETER name="WRITE_EVERY_NTH">10</PARAMETER>
    <PARAMETER name="GLOBAL_RATE">5</PARAMETER>
    <PARAMETER name="DELTA_TAU">0.1</PARAMETER>
    <PARAMETER name="SEED">4729339882041979125</PARAMETER>
    <PARAMETER name="WARMUP">1000</PARAMETER>
    <PARAMETER name="GIT_COMMIT">ded27567d0537da42f7e175324b92c2925a69e6f</PARAMETER>
    <PARAMETER name="MU2">0.5</PARAMETER>
    <PARAMETER name="HOPPINGS">1.0,0.5,-0.5,-1.0</PARAMETER>
    <PARAMETER name="GLOBAL_UPDATES">TRUE</PARAMETER>
    <PARAMETER name="OPDIM">3</PARAMETER>
    <PARAMETER name="U">1.0</PARAMETER>
    <PARAMETER name="BFIELD">true</PARAMETER>
    <PARAMETER name="CHECKERBOARD">true</PARAMETER>
    <PARAMETER name="R">3.864</PARAMETER>
    <PARAMETER name="LAMBDA">2.0</PARAMETER>
  </PARAMETERS>
</SIMULATION>

There are issues for safe_mult > 1:

safe_mult_10_Gt0ii

For comparison, safe_mult = 1:

Gt0ii

Revisit `fermion_measurements.jl`

Method definitions contain lots of redundancies.

Also, we probably want to separate the stuff integrated into the DQMC from stuff that works on any arbitrary configuration in a postprocessing way.

F.Q instead of Matrix(F.Q)

This speeds up (and reduces allocations of) decompose_udt! a lot.

However, is F.Q. fine in our application. This will probably introduce type instabilities....

Try in a different branch.

More tests

  • Fermion measurements
    • ETGF
    • ETPC and ZFPC
    • ETCDC and ZFCDC
    • permute_greens
    • fft_greens
  • Boson measurements
    • chi_dyn
    • chi_static
    • binder
    • get_frequencies_and_momenta
  • LinAlg
    • inv_one_plus_two_udts! etc.

O(2) / O(1) tests

  • get core files like interactions.jl, lattice.jl etc. to ~100%

NNhoppings tests

  • start with lattice.jl

Generic checkerboard tests

Parametrize on model

Along the lines of

  • create folder models with SDW.jl, Hubbard.jl, HubbardAttractive.jl....
  • disentangle interactions and action part etc. from main code into these files

overwrite=true leads to endless loop

If in-steps run doesn't finish, intermediate results will be overwritten after resubmission.

That means that currently overwrite only works for in-one-go runs.

Unify `measure_greens` and e.g. `etpc!`

  • measure_greens gives actual ETGF
  • etpc! gives ETPC
  • calc_tdgfs! gives actual TDGFs

Unify this mess.

Disadvantage: All jupyter notebooks and scripts use this currently.

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.