qdyn is a toolkit for non-adiabatic quasiparticle dynamics in solids. It combines simulation workflow orchestration, cluster execution, post-processing, and a web UI for submitting and tracking tasks.
The recommended deployment is to run the qdyn frontend and backend on a supercomputer login node.
~~~~~~~~~~~~ ------------------------------
| | | qdyn | |
| User | -----> | Frontend/Backend | Workers |
| | | login node | |
~~~~~~~~~~~~ ------------------------------
Browser Linux cluster
qdyn can also be deployed on a separate machine, connecting to computational resources with SSH.
~~~~~~~~~~~~ -------------------- ~~~~~~~~~~~
| | | qdyn | SSH | |
| User | -----> | Frontend/Backend | -----> | Workers |
| | | | | |
~~~~~~~~~~~~ -------------------- ~~~~~~~~~~~
Browser Windows/Mac/Linux Linux cluster
| Workflow | Highlights | Dependencies | Refs | |
|---|---|---|---|---|
| 1 | NAMD with VASP | Standard NAMD workflow for solids | VASP |
- |
| 2 | NAMD with VASP + CA | Improved accuracy for transition metals | vasp_ae* |
[1] |
| 3 | N2AMD with OpenMX | Efficient neural-network-assisted NAMD | OpenMX>=3.9, openmx-postprocess; build with --extra ml --extra openmx |
[2] |
| 4 | N2AMD with OpenMX + ELPA | Optimized performance for larger systems | Same as workflow 3, plus ELPA and qdyn-eigh-elpa |
- |
qdyn also provides:
- A browser-based interface for submitting and monitoring tasks.
- Persistent task storage backed by local and MongoDB databases.
- Selective dynamics support.
- Inference with pretrained MLFF and HamGNN models.
- Optional GPU acceleration for supported parts of the workflow.
All workflows also depend on
hfnamdfor efficient NAMD simulation.
vasp_ae: contact Professor Weibin Chu (wbchu@fudan.edu.cn) for access to the latest version.
- Worker nodes: Linux with a Slurm or PBS scheduler,
glibc >= 2.17, and CUDA>= 12.4for GPU-enabled ML workflows. - Backend server: MongoDB's
mongodexecutable available onPATH. A self-managed MongoDB Community Server can be downloaded from mongodb.com. - Frontend tooling: Node.js and npm.
Install the full backend with ML and OpenMX support:
uv sync --extra ml --extra openmx --no-dev
export PYTHONPATH=$PWD/src:$PYTHONPATHFor a minimal backend without heavy ML dependencies such as PyTorch, use:
uv sync --no-dev
export PYTHONPATH=$PWD/src:$PYTHONPATHNote: OpenMX support builds a native extension, so the target machine must provide a working C compiler and a CMake-compatible build toolchain.
cd frontend
npm install
npm run build
cd ..The production build is written to frontend/dist/ and served by FastAPI in
production mode.
-
Copy the example configuration files:
cd config cp qdyn.yaml.example qdyn.yaml cp jf_base.yaml.example jf_base.yaml cd ..
-
Edit
config/qdyn.yamlandconfig/jf_base.yamlfor your cluster, scheduler, software modules, paths, and active worker pool. -
Start MongoDB:
python main.py --mongod
-
Generate the complete jobflow-remote project configuration:
python src/scripts/generate_jf_config.py
-
Optional: download pretrained MLFF models on the worker environment. Models are stored under
~/.qdyn/pretrained/.python src/scripts/download_pretrained_models.py --list-models python src/scripts/download_pretrained_models.py --nequip-model mir-group/NequIP-OAM-L --nequip-device cpu python src/scripts/download_pretrained_models.py --mace-model small
Download the pretrained HamGNN model from sci-ai.cn and place
universal2.0.ckptunder~/.qdyn/pretrained/. -
Start the jobflow runner:
python main.py --jf
-
Start the backend server:
uv run python main.py --server --port 8001
-
Start the frontend development server:
cd frontend VITE_API_PORT=8001 npx vite --host 0.0.0.0
The example files in config/ document the available settings:
qdyn.yaml.exampledefines qdyn runtime settings, worker pools, scheduler resources, software modules, environment variables, and authentication.jf_base.yaml.exampledefines the shared jobflow-remote project, MongoDB queue, job store, and runner settings.
After changing worker pools or jobflow settings, rerun:
python src/scripts/generate_jf_config.py- Support for pseudo hydrogen.
- Support for the N2AMD-k workflow.
- Support for on-the-fly N2AMD workflows.
Pull requests and issues are welcome. See CONTRIBUTING.md for coding style,
docstring rules, and commit conventions.
-
Chu, W. & Prezhdo, O. V. Concentric Approximation for Fast and Accurate Numerical Evaluation of Nonadiabatic Coupling with Projector Augmented-Wave Pseudopotentials. J. Phys. Chem. Lett. 12, 3082-3089 (2021).
-
Zhang, C. et al. Advancing nonadiabatic molecular dynamics simulations in solids with E(3) equivariant deep neural hamiltonians. Nat Commun 16, 2033 (2025).