GithubHelp home page GithubHelp logo

fantasticism / mctrapqsindissoptlattice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvtroshkin/mctrapqsindissoptlattice

0.0 0.0 0.0 176 KB

Monte-Carlo simulations of trapped quantum systems in optical lattices with dissipation

License: MIT License

C++ 98.54% C 1.30% Cuda 0.16%

mctrapqsindissoptlattice's Introduction

Description

The project aims to repeat the results by H.J. Carmichael in his paper "Breakdown of Photon Blockade: A Dissipative Quantum Phase Transition in Zero Dimensions", Phys. Rev. X 5, 031028 (2015) by a Monte-Carlo simulations algorithm described in a book by H.-P. Breuer and F. Petruccione "The Theory of Open Quantum Systems", Oxford University Press, 2002, p.364.

A cavity with a Jaynes-Cummings non-linearity, coherent classical drive and dissipation is studied by Monte-Carlo simulations in the dressed states representation.

It is assumed that initially the system is in it's ground state, then N different realiztions of a partly deterministic random process are generated and, finally, the mean photon number and standard deviation of photon numbers are calculated.

Requirements

  1. Intel Math Kernel Library
  2. Intel Threading Building Blocks
  3. Google Test for testing
  4. OpenMP libraries

Installation in Eclipse IDE

There are two projects embedded into one repository: OneAtom - source code, OneAtomTest - tests.

OneAtom project configuration

  1. Create C++ prject from source at ./OneAtom
  2. Project > Properties > C/C++ Build > Settings > C++ Compiler > Includes > Add
    1. /include/tbb
    2. /mkl/include
    3. ./src/include
  3. Ibid > Miscellaneous > Other flags > Add -fopenmp
  4. ... > C++ Linker > Libraries > add
    1. mkl_intel_lp64
    2. mkl_core
    3. tbbmalloc
    4. mkl_sequential
  5. Ibid at the bottom > Library search path > Add
    1. /mkl/lib/intel64
    2. /lib/intel64/
  6. Ibid > Miscellaneous > Linker flags > Add -fopenmp
  7. Run > Run Configurations > C/C++ Application > OneAtom Debug > Environment > New
    1. Linux: LD_LIBRARY_PATH = "/mkl/lib/intel64_lin/:/lib/intel64/gcc4.7/"
    2. Windows: PATH = ...

OneAtomTest project configuration

  1. Create C++ prject from source at ./OneAtom
  2. If there is no imported_src source directory linked to the OneAtom project, create it
    1. Project > New > Folder > Advanced > Linked Folder
    2. Choose the src folder form the OneTest project
  3. Project > Properties > C/C++ Build > Settings > C++ Compiler > Includes > Add
    1. /include/tbb
    2. /mkl/include
    3. OneAtom/src/include - header files from the OneTest project
    4. /googletest/include
    5. /googlemock/include
  4. Ibid > Miscellaneous > Other flags > Add -fopenmp
  5. ... > C++ Linker > Libraries > add
    1. mkl_intel_lp64
    2. mkl_core
    3. tbbmalloc
    4. mkl_sequential
    5. pthread
  6. Ibid at the bottom > Library search path > Add
    1. /mkl/lib/intel64
    2. /lib/intel64/
  7. Ibid > Miscellaneous >
    1. Linker flags > Add -fopenmp
    2. Other objects > Add
      1. /googletest/make/gtest_main.a
      2. /googlemock/make/gmock_main.a
  8. Run > Run Configurations > C/C++ Unit > OneAtomTest Debug > Environment > New
    1. Linux: LD_LIBRARY_PATH = "/mkl/lib/intel64_lin/:/lib/intel64/gcc4.7/"
    2. Windows: PATH = ...

Usage

Main Project (OneAtom)

All settings are scattered among two main header files:

  • "eval-params.h" contains all parameters dealing with the numerical method: steps number, basis size, etc.
  • "system-constants.h" contains all physical parameters like driving field strength

The project uses OpenMP for parallelization.

Be sure, that you have enough random numbers in buffers or it will crash during calculations with an exception.

Tests (OneAtomTest)

Just launch to ensure that all is OK.

WARNING: Tests work with double precision only.

mctrapqsindissoptlattice's People

Contributors

nvtroshkin 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.