VASP plugins: linking the Viennaab-initioSimulation Package with Python.
Sudarshan Vijay, Martijn Marsman, Georg Kresse, Martin Schlipf
Department of Chemical Engineering, Indian Institute of Technology Bombay, Powai, Mumbai, Maharashtra 400076, India. · VASP Software GmbH, Berggasse 21, 1090 Vienna, Austria.
Key points
From the paper's conclusion- We implement two categories of plugins: those that modify quantities at the end of each converged self-consistent field (SCF) cycle, such as,and, and those that operate during the SCF cycle, such as.
Abstract
Implementing novel features and experimental algorithms into widely adopted density functional theory (DFT) codes is frequently hindered by complex legacy architectures and the use of compiled languages such as Fortran. These production codes, while optimized for high-performance computing clusters, present significant hurdles for software development and rapid prototyping, often requiring deep expertise in the code's internal structure to modify. To address this challenge, we present a Python plugin infrastructure for the Viennaab-initioSimulation Package (VASP) that combines computational efficiency with the flexibility of high-level scripting. Our architecture uses a C++ intermediate layer andto expose VASP data asarrays via shared memory buffers, ensuring high performance without data duplication. We implement two categories of plugins: those that modify quantities at the end of each converged self-consistent field (SCF) cycle, such as,and, and those that operate during the SCF cycle, such as. We demonstrate the utility of our implementation through three applications, structure relaxation using thelibrary, implementing an implicit solvent model, and adding thedispersion corrections. For a representative post-SCF plugin (), this coupling introduces a callback overhead of well underper ionic step relative to a natively linked implementation. This infrastructure effectively bridges the gap between high-performance electronic structure routines and the widespread scientific Python ecosystem.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- libterachem.py: Modular development of electronic structure methods with graphical processing unitsarXiv · 2026
- VQkit: A Unified and Extensible Framework for VASP and Quantum ESPRESSO Pre- and Post-ProcessingarXiv · 2026
- The Python simulations of chemistry framework: 10 years of an open-source quantum chemistry project.The Journal of chemical physics · 2026
- QEpy: Quantum ESPRESSO in python.The Journal of chemical physics · 2026
- dpdata: A Scalable Python Toolkit for Atomistic Machine Learning Data SetsJournal of Chemical Information and Modeling · 2025
- PyFock: A Just-In-Time Compiled Gaussian Basis DFT Python Code for CPU and GPU Architectures.The journal of physical chemistry. A · 2026