QM/FQ: Quantum Mechanics/Fluctuating Charges (and Fluctuating Dipoles)

The Quantum Mechanics/Fluctuating Charges (QM/FQ) and QM/FQ and Fluctuating Dipoles (QM/FQFμ) methods are multiscale models designed to describe the properties of a chemical system perturbed by the presence of its molecular environment, where the latter described using a polarizable classical force-field, see for example Refs. 1 2 3 4 5. The QM/FQ model has been applied to the calculation of spectroscopic properties of molecules in aqueous solution and different solvents (see 6), whereas QM/FQFμ has only been applied to aqueous solutions. In QM/FQ each atom of the environment (e.g. a solvation shell) is endowed with a fluctuating charge (FQ) which can vary in response to the electrostatic potential generated by the solute, whereas in QM/FQFμ an additional source of polarization (an induced dipole moment) is placed on each atom. The FQ and FQFμ charges can be constrained such that each molecule within the environment remains electrically neutral. The energy functional of the FQ and FQFμ systems can be written as:

\[F(q,\lambda) = \sum_{\alpha, i} q_{\alpha, i} \chi_{\alpha, i} + 1/2\sum_{i\alpha j\beta} q_{\alpha, i} T^{qq}_{\alpha i, \beta j} q_{\beta, j} + \sum_{\alpha}\lambda_\alpha (\sum_i q_{\alpha, i} - Q_\alpha)\]
\[F(q,\mu,\lambda) = \frac{1}{2}\sum_{i\alpha j\beta} q_{i\alpha}{\text{T}_{i\alpha,j\beta}^{qq}}q_{j\beta} +\frac{1}{2}\sum_{ij}\mu_{i\alpha}^{\dagger}\mathbf{T}_{i\alpha,j\beta}^{\mu\mu}{\mu}_{j\beta} + \sum_{ij}q_{i\alpha}\textbf{T}_{i\alpha,j\beta}^{q\mu}{\mu}_{j\beta}^{\dagger} + \sum_{i\alpha}q_{i\alpha}\chi_{i\alpha} + \sum_{\alpha}\lambda_{\alpha}\left[\sum_{i} q_{\alpha i}-Q_{\alpha}\right]\]

where \(q_{\alpha, i}\) and \(\mu_{\alpha, i}\) are the i-th FQ charge and the i-th dipole belonging to the \(\alpha\)-th molecule, \(\chi_{\alpha,i}\) is the electronegativity of each atom, \(\lambda_\alpha\) is the Lagrange multiplier associated with the \(\alpha\)-th molecule, whose purpose is to fix the total charge to be \(Q_\alpha\). The matrix \(T^{qq}_{\alpha i, \beta j}\) describes the interaction kernel between the charges: while the diagonal elements are related to the self-interaction through the chemical hardnesses \(eta\), the off-diagonal elements may be specified through different formulations. The \(T_{i\alpha,j\beta}^{q\mu}\) and \(T_{i\alpha,j\beta}^{\mu\mu}\) matrices describe the interaction kernel between charges and dipoles and between the dipoles, respectively. The electric variables (the FQ charges and the dipoles) can be obtained by minimizing the energy functional with respect to the charges, the dipoles and the Lagrange multipliers, which leads to the following set of linear equations:

\[\begin{split}\left(\begin{array}{cc|c} \mathbf{T}^{qq} & \mathbf{1}_{{\lambda}} & \mathbf{T}^{q\mu} \\ \mathbf{1}^{\dagger}_{{\lambda}} & \mathbf{0} & \mathbf{0} \\ \hline -\mathbf{T}^{q\mu^{\dagger}} & \mathbf{0} & \mathbf{T}^{\mu\mu} \end{array} \right) \left({\begin{array}{c} \mathbf{q}\\ {\lambda}\\ \hline {\mu} \end{array}}\right) = \left(\begin{array}{c} -{\chi} \\ \mathbf{Q} \\ \hline \mathbf{0} \end{array}\right) \qquad \Rightarrow \qquad \mathbf{D}\mathbf{Q}_{\lambda} = -\mathbf{C}_Q\end{split}\]

where \(\mathbf{1}_{{\lambda}}\) is a rectangular matrix which accounts for the Lagrangians, \(\mathbf{C}_Q\) is a vector containing atomic electronegativities and total charge constraints. \(\mathbf{Q}_\lambda\) is a vector containing charges, dipoles and Lagrange multipliers.

The coupling of the FQ/FQFμ models with a QM Hamiltonian can be done by introducing the QM/FQ(Fμ) interaction operator as

\[H_\text{QM/FQ} = \sum_i^{N} q_i V[\rho](r_i), H_{\text{QM/FQF}\mu} = \sum_i^{N} q_i V[\rho](r_i) - \sum_i^{N} \mu_i E[\rho](r_i),\]

where \(N\) is the number of atoms, \(q_i\) and \(\mu_i\) are the i-th FQ charge and dipole located at position \(r_i\), respectively. \(V[\rho](r_i)\) and \(E[\rho](r_i)\) are the electric potential and field generated by the QM system on the same point. The introduction of the QM/FQ interaction leads to a modified set of linear equations for the FQ charges, i.e.

\[DQ_\lambda = -C_Q-R[\rho]\]

where R is an array collecting the electric potential and field generated by the QM electrons and nuclei at the position of each atom. The FQ charges (and dipoles) are thus determined self-consistently along with the ground-state density. Since the charges (and dipoles) depend on the QM density, explicit terms also appear within response equations that are solved to simulate spectroscopic and excited-state properties of the QM system.

Starting from AMS2021.103 a screening is included for the interaction between MM atoms and the QM density, to avoid unstable results in case numerical integration points are accidentally close to MM atoms. The screened \(1/r_{ij}\) has the form:

\[\begin{split}\text{ERF: =} & \frac{erf(ar_{ij})}{r_{ij}} \\ \text{EXP: =} & \frac{(1-exp(-ar_{ij}))^2}{r_{ij}} \\ \text{GAUS: =} & \frac{erf(r_{ij}/a)}{r_{ij}}\end{split}\]

where \(a\) can be changed with the QMSCREENFACTOR keyword.

Coupling with FDE

Starting from AMS2022 the coupling between Frozen Density Embedding (FDE) and FQ is implemented (see Ref. 7). When a FDE calculation is setup, the FQ(Fμ)vironment atoms respond to both layers of the FDE embedding.

In the case of an excited-state calculation performed with the Time-Dependent DFT method (TDDFT), the atoms belonging to the frozen density layer do not normally respond dynamically to the external field. This can create an imbalance because both the non-frozen QM layer and the fluctuating charge (and dipole) layer both do. As a very cost-effective way to include the response of the frozen-density layer into the calculation is to use the FQ(Fμ) model to estimate it (see Ref. 7 for more details) provided the parameters defining the molecular entities in the frozen layer are available.

This can be accomplished by simply including the FDERESP keyword in the input (see below).

Input options

The below scheme presents all keywords that can be used in a QM/FQ(Fμ) calculation. Further down below you can find a detailed explanation on how to specify the coordinates of the FQ(Fμ) atoms.

QMFQ
   AtomType
      Alpha float
      Charge float
      Chi float
      Eta float
      Symbol string
   End
   Coords # Non-standard block. See details.
      ...
   End
   FDERESP Yes/No
   Forcefield [FQ | FQFMU]
   Frozen Yes/No
   Kernel [OHNO | COUL | GAUS]
   MolCharge float
   QMSCREEN [ERF | EXP | GAUS | NONE]
   QMSCREENFACTOR float
End
QMFQ
Type

Block

Description

Block input key for QM/FQ(FMu).

AtomType
Type

Block

Recurring

True

Description

Definition of atomic types in MM environment

Alpha
Type

Float

Description

Polarizability of FQFMU atom

Charge
Type

Float

Description

MM fixed charge (non-polarizable only)

Chi
Type

Float

Description

Electronegativity of FQ atom

Eta
Type

Float

Description

Chemical Hardness of FQ atom

Symbol
Type

String

Description

Symbol associated with atom type

Coords
Type

Non-standard block

Description

Coordinates and fragment information (FQ only)

FDERESP
Type

Bool

Default value

No

Description

In response calculations (TD), the polarization contribution of the FDE part is introduced at the FQ level [See F. Egidi et al. J. Chem. Phys. 2021, 154, 164107].

Forcefield
Type

Multiple Choice

Default value

FQ

Options

[FQ, FQFMU]

Description

Version of the FQ family of polarizable forcefields

Frozen
Type

Bool

Default value

No

Description

Expert option. Do not introduce polarization effect in response calculations.

Kernel
Type

Multiple Choice

Default value

OHNO

Options

[OHNO, COUL, GAUS]

Description

Expert option. KERNEL can be used to choose the functional form of the charge-charge interaction kernel between MM atoms. Recommended is to use the default OHNO. The COUL screening is the standard Coulomb interaction 1/r. The OHNO choice introduce the Ohno functional (see [K. Ohno, Theoret. Chim. Acta 2, 219 (1964)]), which depends on a parameter n that is set equal to 2. Finally, the GAUS screening models each FQ charge by means of a spherical Gaussian-type distribution, and the interaction kernel is obtained accordingly. For QM/FQFMU only GAUS SCREEN is implemented.

MolCharge
Type

Float

Default value

0.0

Description

Total charge of each fragment (FQ only)

QMSCREEN
Type

Multiple Choice

Default value

GAUS

Options

[ERF, EXP, GAUS, NONE]

Description

Expert option. QMSCREEN can be used to choose the functional form of the charge-charge interaction kernel between MM atoms and the QM density. The screening types available are ERF (error function), EXP (exponential), GAUS (Gaussian), or NONE. The default is GAUS.

QMSCREENFACTOR
Type

Float

Default value

0.2

Description

Expert option. Sets the QM/MM interaction kernel screening length. Recommended is to use the default value 0.2 with the GAUS QM/MM screening function.

The FQ(Fμ) region is specified within the Coords block, using the following scheme.

Coords
   elem1 x.xxx y.yyy z.zzz N
   elem2 x.xxx y.yyy z.zzz N
   elem3 x.xxx y.yyy z.zzz N
   ...
SubEnd

You will need to replace ‘elem#’ with the element you are assigning parameters to, and after the coordinates you need to include a number N assigning the element to a specific molecule. The latter number is important because the total charge of each environment molecule is constrained to be a specific value (0 by default) which can be specified with the MolCharge keyword if nonzero (see above scheme). For instance, the following block specifies two water molecules, where the oxygen and hydrogen atoms have been given the names OW and HW respectively:

Coords
    OW   -0.9957202   0.0160415   1.2422556   1
    HW   -1.4542703  -0.5669741   1.8472817   1
    HW   -0.9377950  -0.4817912   0.4267562   1
    OW   -0.2432343  -1.0198566  -1.1953808   2
    HW    0.4367536  -0.3759433  -0.9973297   2
    HW   -0.5031835  -0.8251492  -2.0957959   2
SubEnd

Where parameters must have been assigned for the atom types OW and HW in the respective AtomType blocks.

In case of water recommended is to use the optimized FQ parameters Chi and Eta for O and H in water proposed in Ref. 9

AtomType
  Symbol O
  Chi 0.189194
  Eta 0.523700
SubEnd
AtomType
  Symbol H
  Chi 0.012767
  Eta 0.537512
SubEnd

Alternatively, in case of water as solvent, one could use the parameters proposed in Ref. 10

AtomType
  Symbol O
  Chi 0.116859
  Eta 0.584852
SubEnd
AtomType
  Symbol H
  Chi 0.000001
  Eta 0.625010
SubEnd

For other solvents, it is recommended to use the parameters reported in Ref. 6.

For QM/FQFμ calculations for water as solvent, the parameters reported in Ref. 4 can be used

AtomType
  Symbol O
  Chi   0.290840
  Eta   0.562510
  Alpha 2.218790
SubEnd
AtomType
  Symbol H
  Chi   0.167570
  Eta   0.609320
  Alpha 1.190640
SubEnd

References

1

T. Giovannini, F. Egidi, C. Cappelli, Molecular spectroscopy of aqueous solutions: a theoretical perspective, Chemical Society Reviews, 49, 5664 (2020)

2

C. Cappelli, Integrated QM/polarizable MM/continuum approaches to model chiroptical properties of strongly interacting solute–solvent systems, International Journal of Quantum Chemistry, 116, 1532 (2016)

3

T. Giovannini, F. Egidi, C. Cappelli, Theory and algorithms for chiroptical properties and spectroscopies of aqueous systems, Physical Chemical Chemical Physics, 22, 22864 (2020)

4(1,2)

T. Giovannini, A. Puglisi, M. Ambrosetti, C. Cappelli, Polarizable QM/MM approach with fluctuating charges and fluctuating dipoles: the QM/FQFμ model, Journal of Chemical Theory and Computation, 15, 2233-2245 (2019)

5

T.Giovannini, R. R. Riso, M. Ambrosetti, A. Puglisi, C. Cappelli, Electronic transitions for a fully polarizable QM/MM approach based on fluctuating charges and fluctuating dipoles: linear and corrected linear response regimes, The Journal of Chemical Physics, 151, 174104 (2019)

6(1,2)

M.Ambrosetti, S. Skoko, T. Giovannini, C. Cappelli, Quantum Mechanics/Fluctuating Charge Protocol to Compute Solvatochromic Shifts, Journal of Chemical Theory and Computation (2021)

7(1,2)

F.Egidi, S. Angelico, P. Lafiosca, T. Giovannini, C. Cappelli, A polarizable three-layer frozen density embedding/molecular mechanics approach, The Journal of Chemical Physics, 154, 164107 (2021)

8

K. Ohno, Some remarks on the Pariser-Parr-Pople method, Theoretica Chimica Acta, 2, 219 (1964)

9

T. Giovannini, P. Lafiosca, B. Chandramouli, V. Barone, C. Cappelli, Effective yet reliable computation of hyperfine coupling constants in solution by a QM/MM approach: Interplay between electrostatics and non-electrostatic effects, Journal of Chemical Physics 150 (2019) 124102

10

S.W. Rick, S.J. Stuart, B.J. Berne, Dynamical fluctuating charge force fields: Application to liquid water, Journal of Chemical Physics 101 (1994) 6141