Skip to content

saiduc/Random-Walk-Quantum-Mechanics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Walks for Quantum Mechanics

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.

Usage

Make sure g++ is installed on your system and you can compile the lattice.cpp file with:

g++ lattice.cpp -o lattice

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

Requirements

  • Linux or MacOS system (untested on Windows)
  • G++ Compiler
  • C++ 11 or higher
  • Matplotlib Python module
  • NumPy Python module
  • SciPy Python module

License

This project is licensed under the terms of the MIT license. Do whatever you want with it!

About

Using random walk Monte Carlo simulation to determine ground state energies of quantum systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors