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.
- Intel Math Kernel Library
- Intel Threading Building Blocks
- Google Test for testing
- OpenMP libraries
There are two projects embedded into one repository: OneAtom - source code, OneAtomTest - tests.
- Create C++ prject from source at ./OneAtom
- Project > Properties > C/C++ Build > Settings > C++ Compiler > Includes > Add
- /include/tbb
- /mkl/include
- ./src/include
- Ibid > Miscellaneous > Other flags > Add -fopenmp
- ... > C++ Linker > Libraries > add
- mkl_intel_lp64
- mkl_core
- tbbmalloc
- mkl_sequential
- Ibid at the bottom > Library search path > Add
- /mkl/lib/intel64
- /lib/intel64/
- Ibid > Miscellaneous > Linker flags > Add -fopenmp
- Run > Run Configurations > C/C++ Application > OneAtom Debug > Environment > New
- Linux: LD_LIBRARY_PATH = "/mkl/lib/intel64_lin/:/lib/intel64/gcc4.7/"
- Windows: PATH = ...
- Create C++ prject from source at ./OneAtom
- If there is no imported_src source directory linked to the OneAtom project, create it
- Project > New > Folder > Advanced > Linked Folder
- Choose the src folder form the OneTest project
- Project > Properties > C/C++ Build > Settings > C++ Compiler > Includes > Add
- /include/tbb
- /mkl/include
- OneAtom/src/include - header files from the OneTest project
- /googletest/include
- /googlemock/include
- Ibid > Miscellaneous > Other flags > Add -fopenmp
- ... > C++ Linker > Libraries > add
- mkl_intel_lp64
- mkl_core
- tbbmalloc
- mkl_sequential
- pthread
- Ibid at the bottom > Library search path > Add
- /mkl/lib/intel64
- /lib/intel64/
- Ibid > Miscellaneous >
- Linker flags > Add -fopenmp
- Other objects > Add
- /googletest/make/gtest_main.a
- /googlemock/make/gmock_main.a
- Run > Run Configurations > C/C++ Unit > OneAtomTest Debug > Environment > New
- Linux: LD_LIBRARY_PATH = "/mkl/lib/intel64_lin/:/lib/intel64/gcc4.7/"
- Windows: PATH = ...
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.
Just launch to ensure that all is OK.
WARNING: Tests work with double precision only.