Quantum mechanics simulation library
Project description
QM_sim
Python library for simulation of quantum mechanical systems.
Features
- 1D and 2D systems
- Choice of finite difference scheme
- Stationary and temporal solutions
Planned features
- Boundary conditions
- 3D systems
- Transfer matrix for transmission ect.
- Testing
Installation
pip install qm-sim
Usage
Examples are provided in the examples/
-folder.
These are enumerated with increasing level of simulation complexity.
Contribution
To contribute, please open a pull request to the dev
-branch on GitHub.
The following is an example of how to set up VS Code for development, adapt to your IDE of choice.
TL;DR:
pip install -e .
to install in an editable statepip install .
to (re)compile the C++ (subsequent python file edits will not be recognized before another reinstall)
Requirements
- VS Code
- Python extension
- Python 3.10 or above
Setup
- Clone the repo recursively and open the repo in VS Code. If not cloned recursively, initialize the submodules with
git submodule update --init
- Press f1, and run
Python: Create Environment
. Select.venv
- Open a new terminal, which should automatically use the virtual environment. If not, run
.venv\Scripts\activate
on Windows, orsource .venv/bin/activate
on Unix - In the same terminal, run
pip install -e .[test]
to install the current directory in an editable state, and the testing utility Pytest - To run tests, press f1 and run
Python: Configure Tests
. Choosepytest
. Run tests in the testing menu
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qm-sim-0.0.2.tar.gz
(3.1 MB
view hashes)
Built Distribution
Close
Hashes for qm_sim-0.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4464d2d11de6c94e284e5a13c2994c1ced05eb0a79ba3cae2c1a7cb0297830bd |
|
MD5 | 814a55b95f15d1aa70463ffa5c0352cf |
|
BLAKE2b-256 | 4280e6fe6713a45f6ab2b76f779e706e96ed3837a4ea70d2b41872e7abd00503 |