\section{Finite-difference linear response wave functions} \label{sec:fdlr} The finite-difference linear response wavefunction (FDLR) is an experimental wavefunction type described in detail in Ref.\cite{blunt_charge-transfer_2017}. In this method, the wavefunction is formed as the linear response of some existing trial wavefunction in QMCPACK. This derivatives of this linear response are approximated by a simple finite difference. Forming a wavefunction within the linear response space of an existing ansatz can be very powerful. For example, a configuration interaction singles (CIS) wavefunction can be formed as a linear combination of the first derivatives of a Slater determinant (with respect to its orbital rotation parameters). Thus, in this sense, CIS is the linear response of Hartree--Fock theory. Forming a CIS wavefunction as the linear response of an optimizable Slater determinant is where all testing of this wavefunction has been performed. In theory, the implementation is flexible and can be used with other trial wavefunctions in QMCPACK, but this has not been tested; the FDLR trial wavefunction is experimental. Mathematically, the FDLR wavefunction has the form \begin{equation} \Psi_{\textrm{FDLR}} (\mathbf{\mu}, \mathbf{X}) = \Psi (\mathbf{X} + \mathbf{\mu}) - \Psi (\mathbf{X} - \mathbf{\mu})\: , \end{equation} where $\Psi(\mathbf{P})$ is some trial wavefunction in QMCPACK, and $\mathbf{P}$ is its optimizable parameters. $\mathbf{X}$ is the ``base'' parameters about which the finite difference is performed (for example, an overall orbital rotation). $\mathbf{\mu}$ is the ``finite-difference'' parameters, which define the direction of the derivative, and whose magnitude determines the magnitude of the finite difference. In the limit that the magnitude of $\mathbf{mu}$ goes to $0$, the $\Psi_{\textrm{FDLR}}$ object just defined becomes equivalent to \begin{equation} \Psi_{\textrm{FDLR}} (\mathbf{\mu}, \mathbf{X}) = \sum_{pq} \mu_{pq} \: \frac{\partial \Psi_{\textrm{det}} (\mathbf{X}) }{\partial X_{pq}}\: , \end{equation} which is the desired linear response wavefunction we are approximating. In the case that $\Psi(\mathbf{P})$ is a determinant with orbital rotation parameters $\mathbf{P}$, the previous equation is a CIS wavefunction with CIS expansion coefficients $\mathbf{\mu}$ and orbital rotation $\mathbf{X}$. \subsection{Input Specifications} An FDLR wavefunction is specified within a \texttt{ ... } block. To fully specify an FDLR wavefunction as done previously, we require the initial parameters for both $\mathbf{X}$ and $\mathbf{\mu}$ to be input. This therefore requires two trial wavefunctions to be provided on input. Each of these is best specified in its own XML file. The names of these two files are provided in an \texttt{} tag via \texttt{}. \texttt{wfn\_x\_href} specifies the file that will hold the $\mathbf{X}$ parameters. \texttt{wfn\_d\_href} specifies the file that will hold the $\mathbf{\mu}$ parameters. Other options inside the \texttt{} tag are \texttt{opt\_x} and \texttt{opt\_d}, which specify whether or not $\mathbf{X}$ and $\mathbf{\mu}$ parameters are optimizable, respectively. \subsection{Example Use Case} \begin{lstlisting}[style=QMCPXML] \end{lstlisting} with the \texttt{h2.wfn\_x.xml} file containing one of the wavefunctions and corresponding set of $\mathbf{X}$ parameters, such as: \begin{lstlisting}[style=QMCPXML] 0.0 0.0 0.0 0.0 0.0 0.0 2.83630000000000e-01 3.35683000000000e-01 2.83630000000000e-01 3.35683000000000e-01 1.66206000000000e-01 1.22367400000000e+00 -1.66206000000000e-01 -1.22367400000000e+00 8.68279000000000e-01 -6.95081000000000e-01 8.68279000000000e-01 -6.95081000000000e-01 -9.77898000000000e-01 1.19682400000000e+00 9.77898000000000e-01 -1.19682400000000e+00 2.83630000000000e-01 3.35683000000000e-01 2.83630000000000e-01 3.35683000000000e-01 1.66206000000000e-01 1.22367400000000e+00 -1.66206000000000e-01 -1.22367400000000e+00 8.68279000000000e-01 -6.95081000000000e-01 8.68279000000000e-01 -6.95081000000000e-01 -9.77898000000000e-01 1.19682400000000e+00 9.77898000000000e-01 -1.19682400000000e+00 \end{lstlisting} and similarly for the \texttt{h2.wfn\_d.xml} file, which will hold the initial $\mathbf{\mu}$ parameters. This use case is a wavefunction file for an optimizable determinant wavefunction for H$_2$, in a double zeta valence basis set. Thus, the FDLR wavefunction here would perform CIS on H$_2$ in a double zeta basis set.