\documentclass[a4paper,11pt]{article}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\usepackage[perpage,para,symbol]{footmisc}
\usepackage{fancyhdr}
\usepackage{floatrow}
\setlength{\oddsidemargin}{-5mm}
\setlength{\textwidth}{168mm}
\setlength{\topmargin}{-10mm}
\setlength{\headsep}{10mm}
\setlength{\textheight}{240mm}

\renewcommand{\thefootnote}{\alph{footnote}}
\renewcommand\thesection{\sffamily\Alph{section}}
\newcommand\cpp{C\raisebox{1pt}{++}}
\newcommand{\va}{\mathrm{\bf{A}}}
\newcommand{\vb}{\mathrm{\bf{B}}}
\newcommand{\vc}{\mathrm{\bf{c}}}
\newcommand{\vp}{\mathrm{\bf{p}}}
\newcommand{\vr}{\mathrm{\bf{r}}}
\newcommand{\vx}{\mathrm{\bf{x}}}
\newcommand{\mi}{\mathrm{i}}
\newcommand{\Det}{\mathrm{Det}}
\newcommand{\diff}{\mathrm{d}}

\renewcommand\refname{}

\begin{document}

\sffamily

\section*{\sffamily A basis-set error correction based on density-functional theory for strongly correlated molecular systems}

We would like to thank the reviewers for their carefull reading of our manuscript, and we reply in the present document to their remarks and criticisms. 
\subsection*{Comments of reviewer 1 and reply}
\subsubsection*{Comments of reviewer 1}
Reviewer 1 Evaluations:\\
Recommendation: Optional revision\\
New Potential Energy Surface: No\\
Overall Rating (required): Top 5-25\% - significant, novel, and impactful contribution of broad interest \\

The manuscript presents an extension of the density-functional-based basis-set
correction scheme, by some of the current authors, to strongly correlated systems. This
basis-set correction scheme is a beautiful and powerful combination of density-functional
and wave-function theoretical concepts and practices.
All the basis-set corrections are applied to high-quality approximations of FCI
results that are computationally costly. A natural question arises, what would be the
effect of these basis-set corrections if the computational method were of lower quality.
The reader would benefit, if there were at least a discussion of this issue in the
manuscript.
A few very minor remarks:\\
- The reference numbering is not always consecutive\\
- “have be” $\to$ “have been” (in the 4 th sentence of the 3 rd paragraph of IIIC)\\
- In the caption of Fig. 4, the last two sentences are seemingly contradictory.

\subsection*{Reply to reviewer 1}
 
The basis-set correction can indeed be applied to any approximation to FCI such as multireference perturbation theory, similarly to what was done for weakly correlated systems in P.-F. Loos, B. Pradines, A. Scemama, J. Toulouse, and E. Giner, J. Phys. Chem. Lett. 10, 2931 (2019) in which the basis-set correction was applied to CCSD(T) calculations. As for weakly correlated systems, we expect a similar speed-up of the basis convergence and we will report on this in a forthcoming paper. We have added the following sentence in the Computational Details section:\\

{\it We note that, even though we use near-FCI energies in this work, the DFT-based basis-set correction could also be applied to any approximation to FCI such as multireference perturbation theory, similarly to what was done for weakly correlated systems for which the basis-set correction was applied to CCSD(T) calculations [51].}

We have also corrected the three minor problems seen by the referee.

\subsection*{Comments of reviewer 2 and reply}
\subsubsection*{Comments of reviewer 2}

Reviewer 2 Evaluations:\\
Recommendation: Optional revision\\
New Potential Energy Surface: No\\
Overall Rating (required): Top 5 \% - highly significant, novel, and impactful contribution of broad interest\\

This is a very high-quality manuscript, in which a DFT-based correction for finite basis-set errors in wavefunction theory is extended to the case of strongly correlated molecular systems, by looking at molecular dissociation curves. The beauty of the theory behind this DFT basis-set correction is that it can be applied to any wave function method. The authors use their very smart idea (published in previous works) of a suitable mapping of the interaction projected in the finite basis to a long-range only interaction (erf(mu*r)/r), determining the value of the local range separated parameter mu by matching the interaction at r=0.
Here the authors further extend the DFT part of their theory by using explictilyt the on-top (OT) pair density dependence of the short-range functionals of multideterminant range separated DFT to correct the basis set error. They also show that the OT dependence can fully eliminate the spin-polarization dependence.
The idea is very neat and well explained, and the results are excellent. I recommend publication with the minor revisions below.

1) The authors should comment more the results of Table 1 for atomization energies. Although their theory is guaranteed to converge to the exact result for the complete basis set limit, the results of table 1 show that for atomization energies this does not always occur in a monotinic way. There are cases (H$_{10}$ and N$_2$ with the OT functionals, O$_2$ with all the functionals and F$_2$ with augmented basis with all the functionals) in which the results are worse for a quadruple-zeta basis than for triple zeta. Could this be due to the fact that when augmenting the basis the OT pair density from the CASSCF wavefunction does not necessarily improve but might oscillate around the Coulomb cusp creating artefacts in the extrapolated OT? After all the basis sets are optimized on the energy and do not really care about the cusp. Or is the effect due to a different accuracy of the correction for the molecule and the atoms? It would be nice if the authors could say something on that.

2) Appendix A 1: eqs. A3, as discussed by the authors may break down for the case of degenearcy of the isolated fragments. The authors comment that the spin degeneracy can be avoided by considering the functionals without spin polarization and that the spatial degeneracy can be also cured by considering for the fragment the same element of the ensemble as for the suprasystem.
However I still wonder if this is ok. For the spin I agree with the authors, but for the spatial degeneracy I still have some doubts. Could the authors comment at least qualitatively on what would happen for C$_2$ and B$_2$ for example? Is the DFT-based basis set correction going to give the same result for the spherically-averaged C or B atom than for the atoms with the occupied p orbital oritented alsong the bond axis? Or does the DFT-based correction show on this the same problems of standard DFT? 


\subsection*{Reply to reviewer 2}

\begin{itemize}
\item[1]


\item[2] Our DFT-based basis set correction does not generally preserve spatial degeneracy for arbitrary states or ensembles. So, in that regard, it has the same problem than standard DFT. Specifically, for the example of C$_2$ and B$_2$, it will not give the same result for the spherically-averaged C or B atom as for the atoms with the occupied p orbital oritented along the bond axis. However, what we write in the Appendix is that for the systems treated in this work the CASSCF wave function dissociates into fragments in simple identified pure states and we can thus choose to perform the calculation on the isolated atom with the same pure state in order to preserve size-consistency. Of course, this may not be always possible for other more complicated systems. We have clarified this point in the Appendix. The new paragraph is now:\\

{\it Moreover, for the systems treated in this work, the lack of size consistency which could arise from spatial degeneracies (coming from atomic $p$ states) can also be avoided by selecting the same state in the supersystem and in the isolated fragment. For example, for the F$_2$ molecule, the CASSCF wave function dissociates into the atomic configuration $\text{p}_\text{x}^2 \text{p}_\text{y}^2 \text{p}_\text{z}^1$ for each fragment, and we thus choose the same configuration for the calculation of the isolated atom. The same argument applies to the N$_2$ and O$_2$ molecules. For other systems, it may not be always possible to do so.}

\end{itemize}

\end{document}
