Skip to main content

Deep-learning quantum Monte Carlo for electrons in real space

Project description


checks coverage python pypi commits since last commit license code style chat doi

DeepQMC implements variational quantum Monte Carlo for electrons in molecules, using deep neural networks written in PyTorch as trial wave functions. Besides the core functionality, it contains implementations of the following ansatzes:


Install and update using Pip.

pip install -U deepqmc[wf,train,cli]

A simple example

from deepqmc import Molecule, evaluate, train
from import PauliNet

mol = Molecule.from_name('LiH')
net = PauliNet.from_hf(mol).cuda()

Or on the command line:

$ cat lih/param.toml
system = 'LiH'
ansatz = 'paulinet'
n_steps = 40
$ deepqmc train lih --save-every 20
converged SCF energy = -7.9846409186467
equilibrating: 49it [00:07,  6.62it/s]
training: 100%|███████| 40/40 [01:30<00:00,  2.27s/it, E=-8.0302(29)]
$ ln -s chkpts/ lih/
$ deepqmc evaluate lih
evaluating:  24%|▋  | 136/565 [01:12<03:40,  1.65it/s, E=-8.0396(17)]


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepqmc-0.3.1.tar.gz (53.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page