Examples#
The repository’s
examples/
directory runs the jQMC tutorials (examples/ of
jqmc-project/jQMC,
matching your installed jqmc version) through AiiDA: each
jqmc-exampleNN/run_aiida.py follows the command-line tutorial of the same
name, and each jqmc-workflow-exampleNN/run_aiida.py does what the
jqmc_workflow tutorial of that name does, with aiida-jqmc only. The tutorial
inputs are read from a jQMC checkout of the same version; every step,
mean-field calculations included, is an AiiDA process. See
examples/README.md
for the setup (config.toml: codes, computers, scheduler options, run-length
scale):
pip install "aiida-jqmc[examples]" # aiida-shell and scipy
cp examples/config.example.toml examples/config.toml # then adapt it
python examples/jqmc-example05/run_aiida.py
script |
what it runs |
|---|---|
|
water (ccECP): PySCF → TREXIO → JSD VMC → MCMC → lrdmc-tau at five lattice spacings → extrapolation (with graph) |
|
water, J2 only: VMC and its continuation → MCMC energy and forces |
|
water: Jastrow-only VMC, then geminal/MO VMC; MCMC of both trials |
|
S22 water dimer: three systems × JSD/JAGP × VMC/MCMC/LRDMC; binding energy as a |
|
all-electron H2: JSD and JAGP, MCMC and LRDMC energies and forces |
|
periodic ice Ih (PySCF pGTOs, complex twist): HF check, VMC, MCMC, LRDMC at three spacings, extrapolation |
|
silicon from QE (B-spline + DTN): VMC, MCMC, LRDMC, mixed-precision MPC |
|
periodic all-electron hydrogen from QE (pGTO+PW, DTN): VMC, MCMC and LRDMC energies and forces |
|
eight-twist silicon: twist-averaged MCMC/LRDMC with forces, stress and MPC, post-processing of the twist directory, restart, extrapolation |
|
open shells: N atom (PySCF UHF) and Si atom (QE LSDA, B-spline) |
|
orbital-tiled Li from multi-k TREXIO: weighted-sector conversion, physical-supercell J3 VMC, ensemble restart, MCMC and LRDMC |
|
H2 potential-energy surface (7 bond lengths), forces against the PES derivative |
|
GPU walker-scaling benchmark (needs a GPU node) |
|
water VMC → MCMC/LRDMC energies and forces to target error bars |
|
silicon equation of state (QE at five lattice constants, twist-averaged), Birch-Murnaghan fit as a |
|
QE hydrogen (the workflow counterpart of example08), VMC in two production runs |
|
twist-averaged VMC, the published multi-twist Hamiltonian handed to a twist-averaged MCMC |
Where jqmc_workflow decides by itself (pilot runs, target error bars, VMC
plateau), the scripts take the decision explicitly with
aiida_jqmc.statistics, as described in Using aiida-jqmc: submit, read, decide, extend.
The CPU examples have been exercised with the default scale of 0.02 (the
workflow examples and jqmc-example14 use fixed short runs, see examples/README.md).
Configure MPI resources for the target computer. jqmc-workflow-example02 needs a
GPU node, requested as the scheduler expects it (e.g. custom_scheduler_commands
in [options.gpu] of config.toml).
Three jQMC examples have no AiiDA counterpart, because they do not run
the jqmc or jqmc-tool commands that aiida-jqmc wraps:
jqmc-example11calls the orbital and Hamiltonian kernels from Python; it runs no job.jqmc-example12andjqmc-example13drive the same water calculation asjqmc-example01(VMC, then LRDMC at several spacings and the extrapolation) through the Python API, serial and with MPI; runjqmc-example01instead.