Skip to main content

Deep-learning quantum Monte Carlo for electrons in real space

Project description

DeepQMC

build 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:

Installing

Install and update using Pip.

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

A simple example

from deepqmc import Molecule, evaluate, train
from deepqmc.wf import PauliNet

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

Or on the command line:

$ cat lih/param.toml
system = 'LiH'
ansatz = 'paulinet'
[train_kwargs]
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/state-00040.pt lih/state.pt
$ deepqmc evaluate lih
evaluating:  24%|▋  | 136/565 [01:12<03:40,  1.65it/s, E=-8.0396(17)]

Links

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

deepqmc-0.2.0.tar.gz (51.6 kB view details)

Uploaded Source

Built Distribution

deepqmc-0.2.0-py3-none-any.whl (63.2 kB view details)

Uploaded Python 3

File details

Details for the file deepqmc-0.2.0.tar.gz.

File metadata

  • Download URL: deepqmc-0.2.0.tar.gz
  • Upload date:
  • Size: 51.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.7 Darwin/19.6.0

File hashes

Hashes for deepqmc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8eb1b527aad616a4c5bbcbe85656b4f6ce11d60001621d3273067203c7cf3e5a
MD5 1b73b86761ae083b4b2aa9d40509c4da
BLAKE2b-256 8fdb5bc2b7308c91b572a597d79dd4d81e04fd97a2d59293f7623a40a3707555

See more details on using hashes here.

Provenance

File details

Details for the file deepqmc-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: deepqmc-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 63.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.7 Darwin/19.6.0

File hashes

Hashes for deepqmc-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d58bb25167775ca58cbf001db2d61072757bd08dc386f028e1dfaf4dfcbd47
MD5 02aa7d46f2ab5bead0c188ccf347b24d
BLAKE2b-256 bd82489f22eac49c13b3d15b11ebadea168c1e212b7c492726433a3fccd450f7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page