This repository hosts my project for the PHYS6017 Computer Techniques in Physics module, which I completed as part of my BSc Physics degree. The project entailed using Random Walk Monte Carlo simulations to determine the ground state energy of different Quantum systems.
The project was completed using a combination of C++ and Python. The C++ was used for the simulation itself as the program had to be highly performant. Python is used for data analysis since it has better data analysis libraries.
Make sure g++ is installed on your system and you can compile the lattice.cpp file with:
g++ lattice.cpp -o latticeFor this reason, this code will probably not run on non-Unix systems.
If this compiles fine, then the Python file will execute correctly. The plotcpp.py file is the main data analysis file. It will also automatically compile and execute the C++ file, so there is no need for you to compile and execute the file yourself.
- Linux or MacOS system (untested on Windows)
- G++ Compiler
- C++ 11 or higher
- Matplotlib Python module
- NumPy Python module
- SciPy Python module
This project is licensed under the terms of the MIT license. Do whatever you want with it!