项目作者: issp-center-dev

项目描述 :
DSQSS -- Discrete Space Quantum System Solver
高级语言: C++
项目地址: git://github.com/issp-center-dev/dsqss.git
创建时间: 2018-10-26T05:19:44Z
项目社区:https://github.com/issp-center-dev/dsqss

开源协议:GNU General Public License v3.0

下载


DSQSS (Discrete Space Quantum Systems Solver)

doc latest_stable en
doc latest_stable jp
doc develop
doc develop jp

DSQSS (Discrete Space Quantum Systems Solver) is a software package for calculating expectation values of several observables of quantum lattice systems in finite temperature.
DSQSS implements the path-integral Monte Carlo method with the directed loop algorithm.

Structure of directories

  • src
    • source codes of the main programs, DSQSS/DLA and DSQSS/PMWA
  • tool
    • utility tools (input file generators)
  • sample
    • examples of application
  • test
    • test suite
  • doc
    • document
  • config
    • configuration files used in CMake

Build and Install

prerequisite

  • C++ Compiler
  • CMake >=2.8.12
  • Python >=3.6
    • numpy
    • scipy
    • toml
    • typing_extensions (if Python < 3.8)

Simple build

  1. rm -rf build
  2. mkdir build
  3. cd build
  4. cmake ../
  5. make

Notes

To change compiler, add -DCMAKE_CXX_COMPILER like

  1. cmake ../ -DCMAKE_CXX_COMPILER=`which icpc`

For Intel compiler, DSQSS offers another option -DCONFIG=intel for setting compiler and adding compiler options

  1. cmake ../ -DCONFIG=intel

You can find executable files in build/src/dla, build/tool and build/src/pmwa/.

build manual

Sphinx and sphinxcontrib-spelling are required.
LaTeX is required for PDF format.

  1. # in the build directory,
  2. cmake -DDocument=ON ../
  3. make doc

Testing

  1. # in the build directory,
  2. ctest

When some tests failed, you can check output of these tests by following:

  1. # in the build directory,
  2. ctest -V -R "test name"

Test names can be specified by the regular expression.

Install

The path to install is specified by -DCMAKE_INSTALL_PREFIX as the following,

  1. # in the build directory,
  2. cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} ../
  3. make install

After this process, executable files such as dla are installed to ${INSTALL_DIR}/bin,
a configuration file dsqssvars-${DSQSS_VERSION}.sh to ${INSTALL_DIR}/share/dsqss/,
sample files to ${INSTALL_DIR}/share/dsqss/dsqss-${DSQSS_VERSION}/sample,
and documents (if built) to ${INSTALL_DIR}/share/dsqss/dsqss-${DSQSS_VERSION}/doc.

Example

  1. source ${INSTALL_DIR}/share/dsqss/dsqssvars-${DSQSS_VERSION}.sh
  2. cd sample/dla/01_spindimer
  3. dla_pre std.toml
  4. dla param.in
  5. cat sample.log | grep ene

For details, see manual page.

Paper

We would appreciate if you cite the following article in your research with DSQSS,
Y. Motoyama, K. Yoshimi, A. Masaki-Kato, T. Kato, and N. Kawashima, Comput. Phys. Commun. 264, 107944 (2021).

The preprint is arXiv:2007.11329.

License

License of DSQSS

DSQSS is distributed under the GNU GPL v3.

License of the bundled libs

Acknowledgement

DSQSS v1.2 and v2.0 are developed under the support of “Project for advancement of software usability in materials science” in fiscal year 2018 by The Institute for Solid State Physics, The University of Tokyo.