GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - joaogci/SSE: Implementation of Stochastic Series Expansion Monte Carlo method for the spin-S XXZ model. https://doi.org/10.1103/PhysRevE.67.046701

BranchesTags
Open more actions menu

Latest commit

 

History

327 Commits
327 Commits

Folders and files

NameName
Last commit message
Last commit date
scripts_and_parameters
scripts_and_parameters
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.sh
build.sh
 
 

Repository files navigation

Stochastic Series Expansion - SSE

Please cite the code uising the citation file provided in the repository. https://doi.org/10.5281/zenodo.10034200

Implementation of Stochastic Series Expansion (SSE) Monte Carlo method for the spin-S XXZ model. This version uses the Directed Loops [1] method for the loop update. The Hamiltonian of the simulated system is given by

$$ H = J \sum_{\langle i, j \rangle} \left[ \frac{1}{2} (S^+_i S^-_j + S^-_i S^+_j) + \Delta S^z_i S^z_j \right] - h \sum_i S^z_i $$

where $J$ is the coupling constant, $\Delta$ is the magnetic anisotropy along the $z$-direction and $h$ is an external magnetic field. In the code, $J = 1$, then if $\Delta > 0$ the system is antiferromagnetic and if $\Delta < 0$ the system is ferromagnetic. The SSE method is the power series expansion of the partition function

$$ Z = \text{Tr}{e^{-\beta H}} = \sum_{\alpha} \sum_{n=0}^{\infty} \frac{(-\beta)^n}{n!} \langle \alpha |H^n| \alpha \rangle $$

where $\beta \equiv 1 / T$.

The implementation uses binnig for the estimation of the standard deviations of the sampled quantities. It is possible to run each bin in parallel mode, using openMP.

Usage

To use and run the implementation, it is required that you have a C and fortran90 compilers and a version of Python3 installed with numpy.

To compile the code, run

$ source build.sh

in the main directory. This will compile the code and set the enviroment variable $SSE_DIR. To run the code, create a new directory and copy the parameter file (found in scripts_and_parameters/Start/) to the directory and type

$ $SSE_DIR/src/main n_threads $SSE_DIR

This will run the a SSE simulation with the paramertes specified in the parameter file using n_threads threads. To analyse the observables,

$ $SSE_DIR/src/ana obs_1 obs_2 ...

[1] - "Directed loop updates for quantum lattice models", Olav F. Syljuåsen, 2003, Phys. Rev. E 67, 046701, https://doi.org/10.1103/PhysRevE.67.046701

About

Implementation of Stochastic Series Expansion Monte Carlo method for the spin-S XXZ model. https://doi.org/10.1103/PhysRevE.67.046701

Topics

condensed-matter-physicsheisenbergmonte-carlophysicsquantum-monte-carlosse

Resources

Readme
MIT license
Activity

Stars

18 stars

Watchers

1 watching

Forks

6 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.