The present correction, which appropriately vanishes in the complete basis set (CBS) limit, relies on short-range correlation density functionals (with multi-determinant reference) from range-separated density-functional theory (RS-DFT) to estimate the basis set incompleteness error.
Contrary to conventional RS-DFT schemes which require an \textit{ad hoc} range-separation \textit{parameter}$\mu$, the key ingredient here is a range-separation \textit{function}$\mu(\bf{r})$ which automatically adapts to the spatial non-homogeneity of the basis set incompleteness error.
As illustrative examples, we show how this density-based correction allows us to obtain CCSD(T) atomization and correlation energies near the CBS limit for the G2 set of molecules with compact Gaussian basis sets.
Contemporary quantum chemistry has developed in two directions --- wave function theory (WFT) \cite{Pop-RMP-99} and density-functional theory (DFT). \cite{Koh-RMP-99}
WFT is attractive as it exists a well-defined path for systematic improvement as well as powerful tools, such as perturbation theory, to guide the development of new attractive WFT \textit{ans\"atze}.
The coupled cluster (CC) family of methods is a typical example of the WFT philosophy and is well regarded as the gold standard of quantum chemistry for weakly correlated systems.
By increasing the excitation degree of the CC expansion, one can systematically converge, for a given basis set, to the exact, full configuration interaction (FCI) limit, although the computational cost associated with such improvement is usually high.
One of the most fundamental drawbacks of conventional WFT methods is the slow convergence of energies and properties with respect to the size of the one-electron basis set.
To palliate this, following Hylleraas' footsteps, \cite{Hyl-ZP-29} Kutzelnigg proposed to introduce explicitly the interelectronic distance $r_{12}=\abs{\br{1}-\br{2}}$ to properly describe the electronic wave function around the coalescence of two electrons. \cite{Kut-TCA-85, KutKlo-JCP-91, NogKut-JCP-94}
The resulting F12 methods yields a prominent improvement of the energy convergence, and achieve chemical accuracy for small organic molecules with relatively small Gaussian basis sets. \cite{Ten-TCA-12, TenNog-WIREs-12, HatKloKohTew-CR-12, KonBisVal-CR-12}
For example, at the CCSD(T) level, it is advertised that one can obtain quintuple-$\zeta$ quality correlation energies with a triple-$\zeta$ basis, \cite{TewKloNeiHat-PCCP-07} although computational overheads are introduced by the large auxiliary basis used to resolve three- and four-electron integrals. \cite{BarLoo-JCP-17}
To reduce further the computational cost and/or ease the transferability of the F12 correction, approximated and/or universal schemes have recently emerged. \cite{TorVal-JCP-09, KonVal-JCP-10, KonVal-JCP-11, BooCleAlaTew-JCP-2012, IrmHumGru-arXiv-2019, IrmGru-arXiv-2019}
Present-day DFT calculations are almost exclusively done within the so-called Kohn-Sham (KS) formalism, which corresponds to an exact dressed one-electron theory. \cite{KohSha-PR-65}
DFT's attractiveness originates from its very favorable cost/efficiency ratio as it can provide accurate energies and properties at a relatively low computational cost.
Thanks to this, KS-DFT \cite{HohKoh-PR-64, KohSha-PR-65} has become the workhorse of electronic structure calculations for atoms, molecules and solids. \cite{ParYan-BOOK-89}
Although there is no clear way on how to systematically improve density-functional approximations, \cite{Bec-JCP-14} climbing the Jacob's ladder of DFT is potentially the most satisfactory way forward. \cite{PerSch-AIPCP-01, PerRuzTaoStaScuCso-JCP-05}
In the context of the present work, one of the interesting feature of density-based methods is their much faster convergence with respect to the size of the basis set. \cite{FraMusLupTou-JCP-15}
Progress toward unifying WFT and DFT are on-going.
In particular, range-separated DFT (RS-DFT) (see Ref.~\onlinecite{TouColSav-PRA-04} and references therein) rigorously combines these two approaches via a decomposition of the electron-electron (e-e) interaction into a smooth long-range part and a (complementary) short-range part treated with WFT and DFT, respectively.
As the WFT method is relieved from describing the short-range part of the correlation hole around the e-e coalescence points, the convergence with respect to the one-electron basis set is greatly improved. \cite{FraMusLupTou-JCP-15}
Therefore, a number of approximate RS-DFT schemes have been developed using either single-reference \cite{AngGerSavTou-PRA-05, GolWerSto-PCCP-05, TouGerJanSavAng-PRL-09,JanHenScu-JCP-09} or multi-reference \cite{LeiStoWerSav-CPL-97, FroTouJen-JCP-07, FroCimJen-PRA-10, HedKneKieJenRei-JCP-15, FerGinTou-JCP-18} WFT approaches.
Very recently, a major step forward has been taken by some of the present authors thanks to the development of a density-based basis set correction for WFT methods. \cite{GinPraFerAssSavTou-JCP-18}
The present work proposes an extension of these new methodological development together with the first numerical tests on molecular systems.
The present basis set correction relies on the RS-DFT formalism to capture the missing part of the short-range correlation effects, a consequence of the incompleteness of the one-electron basis set.
Let us assume we have both the energy $\E{\modY}{\Bas}$ and density $\n{\modZ}{\Bas}$ of a $\Ne$-electron system described by two methods $\modY$ and $\modZ$ (potentially identical) in an incomplete basis set $\Bas$.
According to Eq.~(15) of Ref.~\onlinecite{GinPraFerAssSavTou-JCP-18}, assuming that $\E{\modY}{\Bas}$ and $\n{\modZ}{\Bas}$ are reasonable approximations of the FCI energy and density within $\Bas$, the exact ground state energy $\E{}{}$ may be written as
is the basis-dependent complementary density functional, $\hT$ is the kinetic operator and $\hWee{}=\sum_{i<j} r_{ij}^{-1}$ is the interelectronic repulsion operator.
In Eq.~\eqref{eq:E_funcbasis}, $\wf{}{\Bas}$ and $\wf{}{}$ are two general $\Ne$-electron wave functions belonging to the Hilbert space spanned by $\Bas$ and the complete basis, respectively.
Importantly, in the limit of a complete basis set (which we refer to as $\Bas\to\infty$), we have, for any density $\n{}{}$, $\lim_{\Bas\to\infty}\bE{}{\Bas}[\n{}{}]=0$, which implies that
Provided that the functional $\bE{}{\Bas}[\n{}{}]$ is known exactly, the only source of error at this stage lies in the potential approximate nature of the methods $\modY$ and $\modZ$.% for the FCI energy and density within $\Bas$, respectively.
Because the e-e cusp originates from the divergence of the Coulomb operator at $r_{12}=0$, a cuspless wave function could equivalently originate from a Hamiltonian with a non-divergent two-electron interaction at $r_{12}=0$.
Therefore, as we shall do later on, it feels natural to approximate $\bE{}{\Bas}[\n{}{}]$ with short-range density functionals which deal with a smooth long-range electron interaction.
Contrary to the conventional RS-DFT scheme which requires a range-separated \textit{parameter}$\rsmu{}{}$, here we use a range-separated \textit{function}$\rsmu{\Bas}{}(\br{})$ which automatically adapts to quantify the incompleteness of $\Bas$ in $\mathbb{R}^3$.
The first step of the present basis set correction consists of obtaining an effective two-electron interaction $\W{\Bas}{}(\br{1},\br{2})$ ``mimicking'' the Coulomb operator in a incomplete basis $\Bas$.
%The present definition ensures that $\W{\Bas}{}(\br{1},\br{2})$ is finite at the e-e coalescence point as long as an incomplete basis set is used, and tends to the genuine, unbounded $r_{12}^{-1}$ Coulomb interaction as $\Bas \to \infty$.
and $\Gam{pq}{rs}=\mel*{\wf{}{\Bas}}{\aic{r_\downarrow}\aic{s_\uparrow}\ai{p_\uparrow}\ai{q_\downarrow}}{\wf{}{\Bas}}$ are the opposite-spin pair density associated with $\wf{}{\Bas}$ and its corresponding tensor (respectively), $\SO{p}{}$ is a molecular orbital (MO),
Note that the divergence condition of $\W{\Bas}{}(\br{1},\br{2})$ in Eq.~\eqref{eq:def_weebasis} ensures that one-electron systems are free of correction as the present approach must only correct the basis set incompleteness error originates from the e-e cusp.
As already discussed in Ref.~\onlinecite{GinPraFerAssSavTou-JCP-18}, $\W{\Bas}{}(\br{1},\br{2})$ is symmetric, \textit{a priori} non translational, nor rotational invariant if $\Bas$ does not have such symmetries.
%An important point here is that, with the present definition of $\W{\Bas}{}(\br{1},\br{2})$, one can quantify the effect of the incompleteness of $\Bas$ on the Coulomb operator itself as a removal of the divergence of the two-electron interaction near the electron coalescence.
Because $\W{\Bas}{}(\br{1},\br{2})$ is a non-divergent two-electron interaction, it can be naturally linked to RS-DFT which employs smooth long-range operators.
%\PFL{This expression looks like a cheap spherical average.
%What about $\rsmu{\Bas}{}(\br{1},\br{2}) = \sqrt{\rsmu{\Bas}{}(\br{1}) \rsmu{\Bas}{}(\br{2})}$ and a proper spherical average to get $\rsmu{\Bas}{}(r_{12})$?}
Once defined a range separation function $\rsmu{\Bas}{}(\br{})$, we can use RS-DFT functionals to approximate $\bE{}{\Bas}[\n{}{}]$.
As in Ref.~\onlinecite{GinPraFerAssSavTou-JCP-18}, we consider here a specific class of short-range correlation functionals known as ECMD whose general definition reads \cite{TouGorSav-TCA-05}
The choice of the ECMD in the present scheme is motivated by the analogy between the definition of $\bE{}{\Bas}[\n{}{}]$ [Eq.~\eqref{eq:E_funcbasis}] and the ECMD functionals [Eq.~\eqref{eq:ec_md_mu}].
%The ECMD functionals differ from the standard RS-DFT correlation functional by the fact that the reference is not the KS Slater determinant but a multi-determinantal wave function.
%This makes them particularly well adapted to the present context where one aims at correcting a general WFT method.
where $\be{\LDA}{\sr}(\n{}{},\rsmu{}{})$ is the reduced (i.e.~per electron) ECMD functional of the uniform electron gas (UEG) \cite{LooGil-WIRES-16} parametrized in Ref.~\onlinecite{PazMorGorBac-PRB-06}.
The short-range LDA correlation functional relies on the transferability of the physics of the UEG which is certainly valid for large $\mu$ but is known to over correlate for small $\mu$.
inspired by the recent functional proposed by some of the authors \cite{FerGinTou-JCP-18} which interpolates between the usual PBE correlation functional $\e{\PBE}{}(\n{}{},\nabla\n{}{})$ for $\rsmu{}{}=0$ and the exact large-$\rsmu{}{}$ behavior, \cite{TouColSav-PRA-04, GoriSav-PRA-06, PazMorGorBac-PRB-06} yielding
The difference between the ECMD functional defined in Ref.~\onlinecite{FerGinTou-JCP-18} and the present expression \eqref{eq:epsilon_cmdpbe} is that we approximate here the \textit{exact} ground-state on-top pair density by its UEG version, i.e.~$\n{2}{}(\br{})\approx\n{2}{\UEG}(\n{}{}(\br{}))=\n{}{}(\br{})^2 g_0(\n{}{}(\br{}))$, where $g_0(\n{}{})$ is the UEG correlation factor whose parametrization can be found in Eq.~(46) of Ref.~\onlinecite{GorSav-PRA-06}.
Depending on the functional choice, the complementary functional $\bE{}{\Bas}[\n{\modZ}{}]$ is then equal to $\bE{\LDA}{\Bas}[\n{\modZ}{}(\br{}),\rsmu{\Bas}{}(\br{})]$ or $\bE{\PBE}{\Bas}[\n{\modZ}{}(\br{}),\rsmu{\Bas}{}(\br{})]$ where $\rsmu{\Bas}{}(\br{})$ is given by Eq.~\eqref{eq:mu_of_r}.
As most WFT calculations are performed within the frozen-core (FC) approximation, it is important to define an effective interaction within a subset of MOs.
We then naturally split the basis set as $\Bas=\Cor\bigcup\BasFC$, where $\Cor$ is the set of core MOs, and define the FC version of the effective interaction as
It is worth noticing that, within the present definition, $\W{\Bas}{\FC}(\br{1},\br{2})$ still tends to the regular Coulomb interaction when $\Bas\to\infty$.
Defining $\n{\modZ}{\FC}$ as the FC (i.e.~valence-only) one-electron density obtained with a model $\modZ$, the FC contribution of the complementary functional is then evaluated as $\bE{\LDA}{\Bas}[\n{\modZ}{\FC}(\br{}),\rsmu{\Bas}{\FC}(\br{})]$ or $\bE{\PBE}{\Bas}[\n{\modZ}{\FC}(\br{}),\rsmu{\Bas}{\FC}(\br{})]$.
One of the most computationally intensive task of the present approach is the evaluation of $\W{\Bas}{}(\br{})$ [see Eqs.~\eqref{eq:wcoal}] at each quadrature grid point.
Yet embarrassingly parallel, this step scales, in the general (multi-determinantal) case, as $\Ng\Nb^4$ (where $\Nb$ is the number of basis functions in $\Bas$) but is reduced to $\order*{\Ng\Ne^2\Nb^2}$ in the case of a single Slater determinant.
\titou{As shown in Ref.~\onlinecite{GinPraFerAssSavTou-JCP-18}, choosing a single Slater determinant wave function to compute $\W{\Bas}{}(\br{1},\br{2})$ already provides a quantitative representation of the incompleteness of $\Bas$ for weakly correlated systems, and therefore we use this framework all through this work. }
In our current implementation, the computational bottleneck of the present basis set correction is the four-index transformation to get the two-electron integrals in the molecular orbital basis which appear in Eqs.~\eqref{eq:n2basis} and \eqref{eq:fbasis}.
Modern integral decomposition techniques (such as density fitting \cite{Whi-JCP-73}) or atomic-orbital-based algorithms could be employed to significantly speed up this step.
%When the four-index transformation become prohibitive, by performing successive matrix multiplications, one could rewrite the equations directly in the AO basis where it scales formally as $\order{\Ng \Nb^4}$ but where one can take advantage of the sparsity atomic-orbital-based algorithms to significantly speed up the calculations.
To conclude this section, we point out that, thanks of the definitions \eqref{eq:def_weebasis} and \eqref{eq:mu_of_r} as well as the properties \eqref{eq:lim_W} and \eqref{eq:large_mu_ecmd}, independently of the DFT functional, the present basis set correction
Deviation (in \kcal) from CBS atomization energies of \ce{C2} (top left), \ce{O2} (top right), \ce{N2} (bottom left) and \ce{F2} (bottom right) obtained with various methods and basis sets.
Statistical analysis (in \kcal) of the G2 atomization energies depicted in Fig.~\ref{fig:G2_Ec}.
Mean absolute deviation (MAD), root-mean-square deviation (RMSD), and maximum deviation (MAX) with respect to the CCSD(T)/CBS reference atomization energies.
Deviation (in \kcal) from the CCSD(T)/CBS atomization energy obtained with various methods with the cc-pVDZ (top), cc-pVTZ (center) and cc-pVQZ (bottom) basis sets.
We begin our investigation of the performance of the basis set correction by computing the atomization energies of \ce{C2}, \ce{N2}, \ce{O2} and \ce{F2} obtained with Dunning's cc-pVXZ basis sets (X $=$ D, T, Q and 5).
\ce{N2}, \ce{O2} and \ce{F2} are weakly correlated systems and belong to the G2 set \cite{CurRagTruPop-JCP-91} (see below), whereas \ce{C2} already contains a non-negligible amount of strong correlation. \cite{BooCleThoAla-JCP-11}
In a second time, we compute the atomization energies of the entire G2 set \cite{CurRagTruPop-JCP-91} composed by 55 molecules with the cc-pVXZ family of basis sets.
This molecular set has been exhausively studied in the last 20 years (see, for example, Refs.~\onlinecite{FelPetDix-JCP-08, Gro-JCP-09, FelPet-JCP-09, NemTowNee-JCP-10, FelPetHil-JCP-11, HauKlo-JCP-12, PetTouUmr-JCP-12, FelPet-JCP-13, KesSylKohTewMar-JCP-18}) \titou{and can be considered as a representative set for typical quantum chemical calculations on small organic molecules}.
We refer the interested reader to Refs.~\onlinecite{HolUmrSha-JCP-17, SceGarCafLoo-JCTC-18, LooSceBloGarCafJac-JCTC-18, SceBenJacCafLoo-JCP-18, LooBogSceCafJAc-JCTC-19} for more details.
In the case of the CCSD(T) calculations, we have $\modZ=\HF$ as we use the restricted open-shell HF (ROHF) one-electron density to compute the complementary energy.
For exFCI, the one-electron density is computed from a very large CIPSI expansion containing several million determinants.
%For the definition of the interaction, we use a single Slater determinant built in the ROHF basis for the CCSD(T) calculation, and built with the natural orbitals of the converged variational wave function for the exFCI calculations.
Except for the carbon dimer where we have taken the experimental equilibrium bond length (\InAA{1.2425}), all geometries have been extracted from Ref.~\onlinecite{HauJanScu-JCP-09} and have been obtained at the B3LYP/6-31G(2df,p) level of theory.
Frozen-core calculations are defined as such: an \ce{He} core is frozen from \ce{Li} to \ce{Ne}, while a \ce{Ne} core is frozen from \ce{Na} to \ce{Ar}.
In the context of the basis set correction, the set of MOs $\BasFC$ involved in the definition of the effective interaction refers to the non-frozen MOs.
\titou{In order to estimate the complete basis set (CBS) limit for each model, following the work of Ref.~\onlinecite{HalHelJorKloKocOlsWil-CPL-98},
we employ the two-point extrapolation for the correlation energies for each model in quadruple- and quintuple-$\zeta$ basis sets, which is refered to as $\CBS$ correlation energies, and we add the HF energies in the largest basis sets (\textit{i.e.} quintuple-$\zeta$ quality basis sets) to the CBS correlation energies to estimate the CBS FCI energies.}
As the exFCI calculations are converged with a precision of about 0.1 {\kcal}, we can consider these atomization energies as near-FCI values, and they will be our references for \ce{C2}, \ce{N2}, \ce{O2} and \ce{F2}.
The corresponding numerical data can be found in the {\SI}.
As one can see, the convergence of the exFCI atomization energies is, as expected, slow with respect to the basis set: chemical accuracy (error below 1 {\kcal}) is barely reached for \ce{C2}, \ce{O2} and \ce{F2} even with a cc-pV5Z basis set, and the atomization energies are consistently underestimated.
%Also, the atomization energies are consistently underestimated, reflecting that, in a given basis, the atom is always better described than the molecule due to the larger number of interacting electron pairs in the molecular system.
%, and one can notice that the atomization energies of the CCSD(T) are always slightly underestimated with respect to the CIPSI ones, showing that the CCSD(T) ansatz is better suited for the atoms than for the molecule.
Regarding the effect of the basis set correction, several general observations can be made for both exFCI and CCSD(T).
A small overestimation can occur compared to the CBS values by a few tenths of a {\kcal} (the largest deviation being 0.6 {\kcal} for \ce{N2} at the CCSD(T)+PBE/cc-pV5Z level).
Nevertheless, the deviation observed for the largest basis set is typically within the extrapolation error of the CBS atomization energies, which is highly satisfactory knowing the marginal computation cost of the present correction.
%Also, the values obtained with the largest basis sets tends to converge toward a value close to the estimated CBS values.
Importantly, the sensitivity with respect to the SR-DFT functional is quite large for the double- and triple-$\zeta$ basis sets, where clearly the PBE functional performs better.
However, from the quadruple-$\zeta$ basis, the LDA and PBE functionals agree within a few tenths of a {\kcal}.
As a second set of numerical examples, we compute the error with respect to the CBS values of the atomization energies of the G2 test sets with $\modY=\CCSDT$, $\modZ=\HF$ and the cc-pVXZ basis sets.
\titou{Here we use HF/CBS values to compute the atomization energies which is equivalent to looking at the correlation energy contribution to the atomization energies.
Investigating the convergence of correlation energies or difference of such quantities is usually done to appreciate the performance of basis set corrections aiming at correcting two-electron effects\cite{Tenno-CPL-04,TewKloNeiHat-PCCP-07,IrmGru-arXiv-2019}, as these quantities do not contain the HF energy component whose rate of convergence is very different depending on the molecular system.}
The ``plain'' CCSD(T) atomization energies as well as the corrected CCSD(T)+LDA and CCSD(T)+PBE values are depicted in Fig.~\ref{fig:G2_Ec}.
A statistical analysis of these data is also provided in Table \ref{tab:stats}, where we report the mean absolute deviation (MAD), root-mean-square deviation (RMSD), and maximum deviation (MAX) with respect to the CCSD(T)/CBS atomization energies.
\titou{Compared to the reference values extracted from Ref.~\onlinecite{HauKlo-JCP-12} which corresponds to frozen-core non-relativistic atomization energies obtained at the CCSD(T)(F12)/cc-pVQZ-F12 level of theory corrected for higher-excitation contributions ($E_\text{CCSDT(Q)/cc-pV(D+d)Z}- E_\text{CCSD(T)/cc-pV(D+d)Z})$, our CCSD(T)/CBS atomization energies differ by MAD = 0.37 {\kcal}.}
From double-$\zeta$ to quintuple-$\zeta$ basis, the MAD associated with the CCSD(T) atomization energies goes down slowly from 14.29 to 1.28 {\kcal}.
CCSD(T)+LDA/cc-pVQZ and CCSD(T)+PBE/cc-pVQZ return MAD of 0.33 and 0.31 kcal/mol (respectively) while CCSD(T)/cc-pVQZ still yields a fairly large MAD of 2.50 {\kcal}.
\titou{Therefore, similar to F12 methods, \cite{TewKloNeiHat-PCCP-07} we can safely claim that the present basis set correction recovers quintuple-$\zeta$ quality atomization and correlation energies with triple-$\zeta$ basis sets for a much cheaper computational cost.
Encouraged by these results obtained for weakly correlated systems, we are currently developing this theory towards the treatment of the basis set error for strongly correlated systems, excited states and the treatment of the one-electron error in the basis set incompleteness.}