A General Pythonic Framework for DFT-in-DFT and WF-in-DFT Embedding

19 November 2025, Version 1
This content is an early or alternative research output and has not been peer-reviewed by Cambridge University Press at the time of posting.

Abstract

High-level quantum mechanical (QM) simulations provide accurate electronic information of chemical systems but scale unfavourably with system size, making calculations of applied systems challenging. Hierarchical quantum mechanics in quantum mechanics embedding (QM/QM) addresses this issue by localising the highly accurate electronic structure methods to a region of chemical interest, with the wider environment represented using a less expensive embedding environment. However, implementing embedding procedures into established QM software packages can be challenging due to their monolithic design and complex software structure implemented to optimise performance. Here, we present a modular and open-source approach that extends QM/QM embedding to electronic structure codes with reduced development overhead by using the Atomic Simulation Interface (ASI) application programming interface (API) to communicate data objects between QM code invocations. We demonstrate the new software, EmbASI, by implementing the projection-based embedding (PbE) scheme into the FHI-aims electronic structure software package. Example calculations performed for pentanol and organic dimers demonstrate the efficacy of the hierarchical density functional theory (DFT) embedding approach with the charge localisation and partitioning procedures implemented in the wrapper environment. When using a truncated local atomic orbital basis, WF-in-DFT (Wavefunction-in-DFT) embedding calculations demonstrate speed-ups of 32× for RPA@PBE-in-PBE relative to a full RPA@PBE calculation while introducing minimal errors to the total energies of the embedding simulations (<1 kJ/mol).

Keywords

Density Functional Theory
Wavefunction Methods
Embedding
Open-source Software

Supplementary materials

Title
Description
Actions
Title
Supplementary Information for A General Pythonic Framework for DFT-in-DFT and WF-in-DFT Embedding
Description
The Supporting Information shows raw timing data for calculations performed for the pentanol and organic acid dimers/monomers for PBE-in-PBE, PBE0-in-PBE, and RPA@PBE-in-PBE projection-based embedding calculations.
Actions

Supplementary weblinks

Comments

Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting and Discussion Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.