jVMC: Versatile and performant variational Monte Carlo
Project description
jVMC
This is an impementation of Variational Monte Carlo (VMC) for quantum many-body dynamics using the JAX library (and Flax on top) to exploit the blessings of automatic differentiation for easy model composition and just-in-time compilation for execution on accelerators.
Please report bugs as well as other issues or suggestions on our issues page.
Documentation
Documentation is available here.
Installation
Option 1: pip
-install
-
We recommend you create a new conda environment to work with jVMC:
conda create -n jvmc python=3.8 conda activate jvmc
-
pip
-install the packagepip install jVMC
Option 2: Clone and pip
-install
-
Clone the jVMC repository and check out the development branch:
git clone https://github.com/markusschmitt/vmc_jax.git cd vmc_jax
-
We recommend you create a new conda environment to work with jVMC:
conda create -n jvmc python=3.8 conda activate jvmc
-
pip
-install the packagepip install .
Alternatively, for development:
pip install -e .[dev]
Test that everything worked, e.g. run 'python -c "import jVMC"' from a place different than vmc_jax
.
Compiling JAX
How to compile JAX on a supercomputing cluster
Online example
Click on the badge above to open a notebook that implements an exemplary ground state search in Google Colab.
Important gotchas
Out-of-memory issues and batching
Memory requirements grow with increasing network sizes. To avoid out-of-memory issues, the batchSize
parameter of the NQS
class has to be adjusted. The batchSize
indicates on how many input configurations the network is evaluated concurrently. Out-of-memory issues are usually resolved by reducing this number. The numChains
parameter of the Sampler
class for Markov Chain Monte Carlo sampling plays a similar role, but its optimal values in terms of computational speed are typically not memory critical.
Citing jVMC
If you use the jVMC package for your research, please cite our reference paper SciPost Phys. Codebases 2 (2022).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jvmc-1.5.0.tar.gz
.
File metadata
- Download URL: jvmc-1.5.0.tar.gz
- Upload date:
- Size: 61.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f022c9bac96066ea2918a460b47c754779233cb8a34aa4cd9562b6869abf962 |
|
MD5 | 432aeac26a42e6715bbecd6ff81d2053 |
|
BLAKE2b-256 | 52b7709fd33497208354e3bb218a6bf629db77fbe3ef74c7df6d125696c9bfd8 |
File details
Details for the file jVMC-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: jVMC-1.5.0-py3-none-any.whl
- Upload date:
- Size: 76.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fc01bb90a746421b048957b4da3a41ea603ba209d9824278ff445fcc83eb270 |
|
MD5 | 9e92ce296517e4d4e16da8efc0ca59e3 |
|
BLAKE2b-256 | e5bd61baa7f478da8277f56596214329f2ebe88ff1444f7f6cc40be0367afc23 |