Submitted:
24 October 2025
Posted:
24 October 2025
You are already at the latest version
Abstract
A unified electromagnetic response theory has been formulated in terms of quasi-energy derivatives within the nonrelativistic single-determinant framework. The formalism is applicable to both optical and non-optical electromagnetic responses, without restriction to monochromatic fields. Electromagnetic properties are expressed through quasi-energy derivatives, providing a consistent and general description under arbitrary static or dynamic perturbations. Magnetic properties obtained from this framework are inherently gauge-invariant, since a gauge transformation of the electromagnetic potentials corresponds to a unitary phase transformation acting on both the Hamiltonian and molecular orbitals. The present theory thus offers a comprehensive foundation for evaluating (hyper)polarizabilities, (hyper)magnetizabilities, and other related response properties.
Keywords:
electromagnetic response theory
; time-dependent perturbation theory
; analytical quasi-energy derivatives
; polarizabilities
; magnetizabilities
1. Introduction
Since the early development of quantum chemistry, one of its central goals has been the accurate prediction of molecular properties from first principles. Among these properties, those associated with the response of molecules to external electromagnetic fields—such as (hyper)polarizabilities and (hyper)magnetizabilities—play a critical role in understanding spectroscopic behavior, intermolecular interactions, and optical phenomena[1,2,3,4,5,6,7,8,9,10,11,12,13].
A straightforward way to evaluate such response properties is the finite-field approach[14,15], which computes changes in self-consistent field (SCF) energy under small variations of the applied field. In each field direction, this approach requires a few single-point calculations at slightly different field strengths to approximate a derivative of a given order. However, its accuracy is highly sensitive to the choice of field step size, and the accumulated numerical error becomes more pronounced for higher-order derivatives. This finite-field approach, moreover, is inherently limited to static field perturbations and cannot capture frequency-dependent response properties induced by time-dependent electromagnetic fields.
Another commonly used approach is the sum-over-states method[16,17,18,19], which expresses response properties as explicit sums over electronic excited states. This formulation is derived by taking derivatives of the expectation value of the dipole operator . It originates from Rayleigh-Schrödinger perturbation theory, where the system’s response is expanded in terms of eigenstates of the unperturbed Hamiltonian. In principle, the expansion involves a complete set of many-electron excited states, rendering the method formally exact. In practice, however, the summation must be truncated to a manageable number of states in an infinite-dimensional Hilbert space, which introduces numerical approximations. While conceptually straightforward and potentially accurate when a sufficiently large and well-described excitation manifold is available, the sum-over-states method is computationally demanding and strongly dependent on the quality and completeness of the excited states. These limitations significantly hinder its routine applicability, especially for large systems and higher-order response properties.
A more widely applicable and systematically accurate alternative is the analytical derivative method[20,21,22,23,24,25], in which molecular response properties are obtained by expanding relevant physical quantities in a Taylor series with respect to external perturbation parameters. Within this formalism, the response of molecular orbitals to the applied field must be explicitly taken into account. If the ground-state orbitals are well-suited, it is often assumed that orbital responses of all orders can be represented as linear transformations of the unperturbed orbitals. Under this approximation, the resulting set of equations reduces to a linear system for the transformation matrix, which is often referred to as the coupled-perturbed (CP) Hartree-Fock (HF) equations. These equations, derived from the stationarity conditions of the underlying variational energy functionals, provide a rigorous route to compute response properties of arbitrary order. Because higher-order response properties are very sensitive to electron correlation effects[20,26], attempts to improve predictive accuracy have motivated the extension of analytical derivative theory beyond the HF level. Although post HF methods can offer systematic improvements, they are computationally demanding and impractical for large systems. The use of nonorthogonal localized molecular orbitals can reduce the cost in large-scale calculations[13,27,28]. In contrast, Kohn-Sham (KS) density functional theory (DFT) provides a more computationally affordable means of incorporating electron correlation, prompting several researchers[26,29,30,31,32,33] to extend the analytical derivative formalism to the KS framework. Compared with its HF counterpart, the KS-based formulation introduces additional complexity at higher orders—for instance, third-order response properties require explicit evaluation of the third derivative of the exchange-correlation (xc) functional with respect to the external perturbation.
In the historical development of the analytical derivative theory, there have emerged three different formulations, where the response properties are defined as the derivatives of (i) the expectation value of the dipole operator , (ii) the energy , or (iii) the so-called quasi-energy .
Sekino and Bartlett[20] first introduced a systematic formulation at the HF level for evaluating static and frequency-dependent polarizabilities, based on derivatives of the expectation value of the dipole operator . They thought that, whether the perturbation was static or dynamic, response properties derived from the dipole expectation value were equivalent to those obtained from energy derivatives. Building on this foundation, Rice et al. [21] and, independently, Karna and Dupuis[22] later proposed simplified formulations by leveraging the rule, which streamlines the computation of higher-order responses. Their framework was subsequently adopted in numerous studies, including various extensions to KS-DFT[26,29,30,31], and has been widely implemented in modern electronic structure codes. In principle, response properties obtained from this framework are equivalent to those derived from the full, untruncated sum-over-states method. However, despite its popularity, the dipole-derivative-based framework suffers from conceptual and formal inconsistencies. First, the Hamiltonian does not commute with the dipole operator and hence cannot share its eigenstates, making the dipole expectation value, strictly speaking, not a well-defined observable. Moreover, the dipole operator is incompatible with periodic boundary conditions in crystalline systems—a well-known inconsistency that has motivated alternative formulations such as the KGB method, which introduces the vector potential to circumvent this issue[34]. As a consequence, response of to perturbations lacks rigorous physical meaning. Second, frequency-dependent response quantities, such as the first hyperpolarizability tensor , can violate the symmetry of mixed partial derivatives, and the frequency dependence associated with the first dimension is not treated in a physically meaningful way. Furthermore, the simplification of the second-order response density matrix necessitates the use of unphysical constructs involving the CP-HF/KS equations that do not exist under such electromagnetic perturbations. More fundamentally, for a time-dependent perturbation, the traditional Hellmann-Feynman theorem is no longer valid. There is no physical justification for the assumption that the electron density remains unaffected by the external field. In other words, the dipole moment, i.e., the first derivative of the energy E with respect to the external field, cannot be equated to . The analytical forms of energy and dipole derivatives are no longer equivalent in the presence of dynamic fields.
Although, to the best of our knowledge, there have been no published formulations that rigorously express frequency-dependent response properties as energy derivatives under time-varying fields. Our work shows that, in the presence of time-varying fields, higher-order energy derivatives naturally contain additional terms with explicit frequency dependence, whose contributions become increasingly significant at high frequencies. Nevertheless, defining response properties via energy derivatives under time-dependent perturbations is not without its own theoretical challenges. For such systems, one must resort to the time-dependent Schrödinger equation, where energy ceases to be a well-defined quantity. The Hamiltonian expectation value only carries a time-averaged meaning and is not an observable in the conventional sense. In addition, for magnetic response properties, issues such as gauge-origin dependence become particularly pronounced. Our deeper analysis, however, reveals that the commonly perceived gauge problem stems from an incomplete treatment: while most existing methods account for the gauge transformation of the vector potential in the operators, they neglect the simultaneous transformation of both the basis functions and the scalar potential. In reality, electromagnetic fields exhibit gauge invariance, and the HF and KS equations should remain gauge covariant. Gauge transformations amount to translations of energy-momentum space and leave the physical system unchanged. Under such a transformation, the wavefunction merely acquires a phase factor , with g being the gauge function associated with a chosen gauge origin. While this resolves the gauge-dependence of energy response in static systems, it also underscores the fact that energy is not a gauge-invariant quantity under time-dependent magnetic fields. As such, energy-derivative-based magnetic response properties remain inherently ill-defined in this context. This motivates a shift to quasi-energy-based formulations as a more consistent foundation for electromagnetic response theory.
The quasi-energy W is a well-defined, gauge-invariant observable in general, owing to the gauge covariance of the HF and KS equations. Notably, Rice and Handy[23], as well as Sasagane, Aiga, and Itoh[25], first suggested the idea of defining response properties as quasi-energy derivatives, though they did not provide a complete derivation. Later, Banerjee and Harbola[32], together with Aiga and coworkers[33], advocated using the Floquet-state[24] energy as a means to characterize response properties. However, the time-averaged Floquet energy is itself time-independent and therefore does not yield general and meaningful field derivatives. For these reasons, we adopt the quasi-energy derivative framework proposed by Sasagane et al., which offers a physically consistent foundation for treating time-dependent perturbations and recovers conventional response theories in the static limit ().
In this work, we present a systematic derivation of analytical quasi-energy derivatives (up to third order) at the SCF level where the electronic wavefunction is described by a single Slater determinant. These analytical derivatives are based on a straightforward Taylor expansion in the external fields and can be applied to a wide range of electromagnetic response properties, including electric-field-induced polarizabilities and magnetic-field-induced magnetizabilities. The resulting formulation not only offers enhanced physical clarity for arbitrary-order derivatives but is also amenable to implementation. Moreover, we generalize the framework to arbitrary time-dependent electromagnetic perturbations, going beyond the conventional setting of static and monochromatic fields, and thereby extend the applicability of quasi-energy response theory to a broader class of physical phenomena such as second-harmonic generation (SHG). In addition, we address a commonly neglected yet essential aspect of analytical derivative theory: the explicit perturbation dependence of basis functions. In some cases, a basis set may be adapted to or parameterized by external fields, which introduces an additional layer of complexity. Under time-dependent perturbations, the operator also acts on such a basis. To account for this, we develop a generalized derivative theory that includes the explicit response of basis functions to external fields, ensuring that all sources of perturbation dependence are consistently treated.
2. General Formalism
2.1. Time-Harmonic Electromagnetic Fields
An electromagnetic field may be either static or dynamic, with the latter exhibiting time dependence. In most cases, a time-dependent field can be modeled as a time-harmonic oscillation. According to Maxwell’s equations, the time-dependent part of such a harmonic field typically consists of two linearly independent complex-conjugate solutions, and . Any linear combination of these components can be used to represent the time-harmonic field, i.e.,
Sometimes, multiple fields may be present simultaneously, possibly including a static component. The overall effect is then described by the vector sum of the individual fields,
In particular, the case of corresponds to a static field. Eq. (2) represents the general form of an electromagnetic field. Even in the case of an anharmonic time-varying field, expansion in a Fourier series allows it to be expressed as a linear combination of harmonic components, each with a specific frequency .
We now turn to the question of how the quasi-energy of a system responds to these fields. For notational simplicity, the partial derivative of a physical quantity with respect to the a-th Cartesian component of an independent field , evaluated at zero field, is denoted by placing a superscript a and appending its characteristic frequency in parentheses, e.g.,
It follows directly that
where the asterisk (*) denotes complex conjugation and the spatial field distribution is assumed to be real.
2.2. Quasi-Energy Response
Under general time-dependent perturbations, the many-electron wavefunction is no longer an eigenstate of the Hamiltonian. Instead, its evolution is governed by the time-dependent Schrödinger equation (in atomic units)
where represents the set of all electron coordinates. Following the treatment of Sasagane et al. [25], the wavefunction can be written as
where is represented as a single Slater determinant and W is the quasi-energy. Substitution of this ansatz into Eq. (5) transforms it into an eigenvalue equation
If the Hamiltonian carries no explicit time dependence, Eq. (7) reduces to the conventional time-independent Schrödinger equation. Assuming that remains normalized at all times, we can evaluate the quasi-energy as
The first term in Eq. (8) corresponds to the instantaneous energy of the system, which can be written in terms of the density matrix as
where denotes the core Hamiltonian matrix and is the xc energy. The Einstein summation convention is adopted throughout. The second term in Eq. (8) represents the dynamic phase arising from the time-dependence of the wavefunction, and evaluates to
where is the occupation number of the i-th orbital, denotes the matrix of orbital coefficients, is the overlap matrix in the basis function representation, and is defined as
Theoretically, the responses of to a static field should vanish at all orders, i.e.,
In particular, if the basis functions are independent of the external perturbation, vanishes identically.
The energy response can be obtained directly by taking successive derivatives of Eq. (9). The zeroth-order energy reads
which characterizes the unperturbed system. The first-order energy response is given by
where denotes the xc potential, and is the zeroth-order Fock matrix, defined as
Note that the derivative appearing in an xc integral acts on the basis function pair, e.g., . The second-order energy response takes the form
where is the xc kernel, i.e., the second functional derivative of , and is not restricted to the electron density but depends on the variables entering the functional. The third-order energy response
involves , the third functional derivative of . All terms that involve , , and correspond to xc contributions of increasing order. Particularly, vanishes in the case of a pure HF exchange.
The response of T cannot be directly obtained by taking derivatives of Eq. (10), as the orbital coefficients implicitly depend on the external perturbation. To resolve this, we expand both sides of Eq. (10) as Taylor series in powers of the external fields , which results in
Since each field in is independent, we can collect terms of equal perturbation order on both sides. The expansion up to third order yields the following equations:
A detailed derivation is provided in Appendix A.
The quasi-energy responses up to third order are thus given by
2.3. Density Response
The density matrix is defined as
Since the quasi-energy responses involve the density matrix at each order, it is necessary to evaluate how the density matrix (21) varies with respect to external perturbations. This can be directly achieved via differentiation. In the absence of perturbation, we recover the zeroth-order density matrix
which corresponds to the ground-state density. The first-order response of the density matrix is given by
the second-order response is
and the third-order response reads
For convenience in the subsequent derivations, we assume that the orbital coefficients at each order are related to the ground-state coefficients through a linear transformation. These transformation matrices are defined by
Then, Eqs. (23)–(25) become
It follows that
2.4. Orthonormality
We assume that the molecular orbitals remain orthonormal at all times, i.e.,
Note that matrices with subscripts i, j, k, etc. are represented in the molecular orbital basis. Since the ground-state orbitals are already orthonormal, we have
As a consequence, the higher-order orbital overlaps must vanish. For instance, the first-order condition reads
where . In our notation, when perturbation indices appear in the superscript of a molecular orbital integral, such as , they denote a derivative acting solely on the matrix elements in the atomic orbital basis, not on the orbital coefficients. To indicate a total derivative, the perturbation indices are placed as a superscript on the entire matrix element, as in . It is worth noting that the derivatives of with respect to different fields should be identical, such that . Accordingly, we omit the frequency argument in parentheses for the derivatives of throughout this work. Following a similar procedure as in the first-order case, one can derive the second- and third-order orthonormality conditions as
These expressions impose constraints on the orbital transformation matrices .
2.5. Determination of U: The CP-HF/KS Equations
To determine the transformation matrices , we minimize the quasi-energy Eq. (8) with respect to orbital variations, subject to the constraint of orbital orthonormality. This leads to a Roothaan-like equation
in the atomic orbital basis. To facilitate the treatment of the time derivative acting on the orbital coefficients, we expand each quantity in the above expression as a Taylor series in the external fields:
In analogy with the derivation of the responses of T, we obtain the original CP-HF/KS equations (up to second order)
where is the Lagrange multiplier matrix, and the first- and second-order Fock matrices are, respectively,
and
The derivatives of are typically independent of field frequencies, but may exhibit frequency dependence when the system is subject to a gauge transformation. This case is not considered here, but will be discussed in Subsec. 3.2.
2.5.1. The First-Order CP-HF/KS Equation
By substituting the definition (26a) into Eq. (38b) and contracting with over and , Eq. (38b) can be transformed into the molecular orbital representation:
Since and are diagonal, we can express the above equation as
with no summation implied over the indices of the ground-state orbital energies . If we further assume that is block-diagonal, i.e.,
whenever and , or and , then we have
As for the occ-occ and vir-vir blocks of , they can be obtained from the orthonormality condition given in Eq. (33):
for or . The above equation also holds in the static limit of , which implies that must be Hermitian. For convenience, we further assume that
so that the diagonal blocks of can be directly obtained as
It is important to note that the orthonormality condition (33) may no longer hold for the vir-occ and occ-vir blocks if the basis set depends on the perturbation. This can potentially violate the overall orthonormality of the orbitals, and care must be taken when constructing perturbation-dependent basis sets.
Eq. (44) allows for an iterative determination of the off-diagonal blocks of . Alternatively, a more direct approach is to substitute Eq. (39) into Eq. (44), and rearrange the terms such that those involving appear on one side and all constant terms on the other. This yields
where
The two-electron integral is defined as
In Eq. (48), we may take and , while the index l typically runs over the full orbital space. When the basis functions are independent of perturbations, the occ-occ block of vanishes (see Eq. (47)), and thus only contributes. However, if the basis set is perturbation-dependent, contributions from all orbitals may be nonzero. In this case, since for is already known from Eq. (47), we may split the summation over l into contributions from virtual and occupied orbitals, and move the known terms with to the right-hand side as constants. This leads to
where , , and the right-hand-side constants are defined as
The index m in the last term runs over the occupied orbitals. When the basis functions are field-independent, only survives on the right-hand side. By taking the complex conjugate of Eq. (51) and replacing with , we obtain another independent equation
Together with Eq. (51), this forms a standard linear system:
whose solution directly determines the first-order response density. The above equation bears resemblance to the Casida equation[35], but with a key distinction: while Eq. (54) is solved for the response density, the Casida equation seeks the poles of this expression, i.e., the eigenvalues for which the operator matrix becomes singular, yielding the excitation energies.
2.5.2. The Second-Order CP-HF/KS Equation
In a similar manner, multiplication of both sides of Eq. (38c) by followed by summation over and yields
This is equivalent to the following expression, given that both and are diagonal matrices:
We make a similar assumption as in the first-order case, namely that
for the vir-occ and occ-vir blocks. Under this assumption, we obtain
where and are defined as
The diagonal blocks of can also be determined by exploiting the orthonormality condition (34):
Choosing
leads to the following working expression:
To facilitate a more direct solution of the off-diagonal blocks of , we insert Eq. (40) into Eq. (58), isolating the terms involving unknowns on one side to give
The index l on the left-hand side is summed over all orbitals, as nonzero contributions arise regardless of whether the basis functions are perturbation-dependent. Following the same procedure, we partition the index l into virtual and occupied orbitals and move all constant terms to the right-hand side to obtain
where
In the two equations above, we take and . The index n may be restricted to virtual orbitals if the basis functions are field-independent; otherwise, it must run over all orbitals. Taking the complex conjugate of Eq. (64) and replacing with yields
Combined with Eq. (64), this leads to a standard linear system:
which constitutes the working second-order CP-HF/KS equation. It depends on the solutions of the first-order equation (54), and together, the first- and second-order solutions determine the second-order response density.
2.6. Quasi-Energy Response: Working Form
Using the expressions derived in Subsecs. 2.3–2.5, the quasi-energy derivatives from Subsec. 2.2 can be simplified to yield the following explicit working formulas that are suitable for practical evaluation (see Appendix B for details).
The First Order:
The Second Order:
where and .
The Third Order:
where , and in the first bracketed term. The quantities and are defined as (with restricted to occupied orbitals)
and
respectively. The third-order derivative of the xc functional is computed numerically but in different forms for various types of functionals, as detailed in Appendix C.
3. Applications
The general formalism developed in the previous section can be directly applied to two commonly encountered types of perturbations: electric and magnetic fields. Electric fields give rise to (hyper)polarizabilities, while magnetic fields induce (hyper)magnetizabilities. In this section, we examine the explicit forms of these perturbations, which is essential for practical calculations and program implementation.
3.1. Polarizabilities
For a system with zero net charge, if the external electric field can be approximated as homogeneous, its interaction with the system may be described by the dipole approximation:
where is the external electric field and is the electric dipole operator:
which includes contributions from both the nuclei and electrons. If the nuclear positions are considered fixed and unaffected by the external field, the nuclear contribution becomes a constant. As such, only the electronic part of the dipole operator needs to be taken into account in the SCF procedure.
To characterize the system’s response to such a perturbation, we define the electric dipole moment, polarizability, and first hyperpolarizability as follows:
where and . In practice, computation of such electric response properties can be performed with standard (field-independent) basis sets, for which the derivatives of the basis functions with respect to external fields vanish. The core Hamiltonian has nonzero field derivatives only at first order:
Derived from the quasi-energy formalism with a field-independent basis set, the first-order response (76a) coincides exactly with that obtained from the expectation value of the dipole operator, and the second-order form (76b) is also largely consistent. The only difference at second order lies in the quasi-energy formalism’s explicit incorporation of the symmetry with respect to the permutation of differentiation orders. However, discrepancies begin to appear at third order: the quasi-energy response (76c) includes additional terms involving the second-order response density and exhibits an explicit dependence on field frequencies. This indicates a breakdown of the so-called rule for time-dependent perturbations. Nevertheless, it is worth noting that when the applied frequencies satisfy the equation , the additional terms in Eq. (76c) cancel out. In other words, nonlinear optical phenomena such as SHG can still be correctly described. Eqs. (76a)–(76c) can thus reduce to the special cases presented in the works of Rice et al. [21] and of Karna and Dupuis[22]. However, their derivations are not sufficiently direct—for instance, interpreting SHG by invoking an artificial external field oscillating at . In contrast, our formulation is grounded in a more general framework that allows for arbitrary combinations of time-harmonic perturbations, leading to a clearer physical interpretation of the resulting response properties.
3.2. Magnetizabilities
When a magnetic field is applied, the system can also respond to it. If the source of the field is sufficiently distant, the magnetic field can be approximated as uniform. Under this assumption, the nonrelativistic magnetic interaction takes the form
where is the vector potential, defined by , and is the Pauli vector. The first term in Eq. (78) corresponds to the paramagnetic contribution of the electrons, which is precisely the classical magnetic dipole interaction, and the electronic magnetic moment operator arises from both orbital and spin angular momenta:
where the leading minus sign results from the negative charge of the electron, the factor of corresponds to the Bohr magneton, and is the Landé g-factor for the electron spin, introduced to correct the gyromagnetic ratio. The second term in Eq. (78) represents the diamagnetic contribution of the electrons, which reflects the system’s tendency to oppose the applied magnetic field.
Strictly speaking, the magnetic interaction operator should also include paramagnetic and diamagnetic contributions from the nuclei. Even under the Born-Oppenheimer approximation, atomic nuclei possess spin magnetic moments and exhibit diamagnetic responses to an external magnetic field. However, these terms involve mass in the denominator, and since the nuclear mass is at least three orders of magnitude greater than the electronic mass, the nuclear contributions to the magnetic interaction are negligibly small compared to those of the electrons and are therefore commonly neglected.
We now define the (permanent) magnetic moment, magnetizability, and first hypermagnetizability of the system as
where , , and a field-independent basis set is used. Due to the presence of nonlinear (quadratic) terms in the magnetic interaction operator, the one-electron core Hamiltonian has nonvanishing derivatives up to second order:
where is the Levi-Civita tensor. Eqs. (80b) and (80c) can be decomposed into paramagnetic and diamagnetic contributions, owing to the differing orders of the paramagnetic and diamagnetic interaction operators in the external magnetic field. Specifically, for magnetizability, we have
For the first hypermagnetizability, the paramagnetic and diamagnetic parts are given by
Magnetic response properties bring in considerations related to gauge transformations, as the vector potential enters explicitly in the interaction Hamiltonian. According to Maxwell’s equations, a gauge transformation of the scalar and vector potentials,
with g being the gauge function, leaves the physical electromagnetic fields unchanged. Similarly, the HF and KS equations must obey gauge covariance—i.e., they must retain their validity under such transformations. It would be unphysical for the HF/KS equations to break down simply because the gauge has changed. Under a gauge transformation, the one-electron wavefunction acquires a position- and time-dependent phase factor:
As rigorously shown in Appendix D, The function g appearing in the exponent of the phase factor is exactly the gauge function.
When a gauge transformation is considered, both the transformed operators and wavefunctions (more specifically, the basis functions) must be taken into account. Due to the introduction of a phase factor, the basis functions become dependent on the external magnetic field (see Eq. (A63)). In this case, more general expressions for the quasi-energy derivatives are required to properly evaluate magnetic response properties. Fortunately, the added phase factor does not affect the overlap between basis functions, as it cancels out:
It follows that all field derivatives of vanish at any order. As a result, the magnetic response properties up to third order take the forms
Note that the gauge transformation of the scalar potential causes the core Hamiltonian matrix to become explicitly dependent on the magnetic fields (or field frequencies), which must be properly accounted for in practical calculations. can now be explicitly expressed as
which is, perhaps unexpectedly, identical to the result of the gauge-transformation operator for the scalar potential. Moreover, it involves only the first-order field derivative:
Eqs. (87a)–(87c) are exactly equivalent to Eqs. (80a)–(80c), thereby confirming that the response properties derived from quasi-energy derivatives are completely independent of the choice of gauge origin, as all gauge-dependent contributions cancel out. This is a direct consequence of the gauge covariance of the HF/KS equations.
3.2.1. Comparison with the GIAO Method
The magnetic response properties derived above are gauge-invariant, as the quasi-energy itself is a gauge-invariant quantity. In contrast, the energy and the dipole expectation are not conserved under gauge transformations. Consequently, frameworks based on their field derivatives inevitably lead to gauge-dependent magnetic properties. To address this so-called gauge-origin dependence, several gauge localization schemes[36,37,38,39,40,41] have been developed. Among them, the most widely adopted is the gauge-including/independent atomic orbitals (GIAOs)[39,40,41], originally referred to as London atomic orbitals[42]. In this method, the gauge in a gauge-transformed basis function is modified as
where the gauge origin is fixed at the center of the -th atomic orbital, i.e.,
However, the gauge function appearing in the field-dependent operators remains unchanged. This artificial treatment compromises the covariance of the HF/KS equations under gauge transformations.
In this case, the gauge-transformed overlap matrix no longer vanishes:
where we define
The matrix becomes
Both Eq. (92) and Eq. (94) contribute nonzero higher-order field derivatives, which necessitates the use of the full formulation with field-dependent basis sets in magnetic response theory.
Moreover, one can show that gauge-origin dependent terms in Eqs. (87a)–(87c) such as
and
(with defined as ) merely redistribute the gauge dependence over the atoms. While the resulting expressions may appear free of explicit dependence on the gauge origin , the computed magnetic properties remain strongly basis-set-dependent.
In this regard, the GIAO method does not fundamentally resolve the gauge problem but instead introduces additional complexity. If all the atomic centers in the GIAO expressions are set to zero, one immediately recovers the expressions under the conventional gauge transformation. The core issue is that GIAOs fail to recognize the inherent gauge covariance of the HF/KS equations. Since the quasi-energy is an observable, it should by construction be gauge-invariant—without resorting to artificial gauge localization schemes.
4. Results and Discussion
4.1. Numerical Tests
We have implemented the newly developed electromagnetic response theory based on the HF/KS quasi-energy framework within the PySCF platform[43,44,45,46] for computing general response properties. The core computational step is solving the CP-HF/KS equations (54) and (67), which are linear and can, in principle, be handled by standard linear solvers. However, such direct approaches are often inefficient for large-scale and sparse systems. To improve performance, our implementation includes interfaces to not only an exact solver but more efficient iterative techniques, including Krylov subspace methods[47,48] and Newton-Krylov (N-K) algorithms[49,50]. These methods enable faster convergence to a target accuracy in many cases. We benchmarked all implementations against the conventional solver as a reference, evaluating both their numerical accuracy and computational efficiency.
First-order response properties require no additional elaborate computation; once the unperturbed density is known, they can be directly evaluated. Therefore, these properties are not included in the following numerical tests. When the sum of the frequencies of the external fields acting on different components of the response tensor is zero, the second- and third-order electromagnetic response properties obtained from our formalism coincide with those given by existing frameworks. Accordingly, we computed the second- and third-order electromagnetic responses corresponding to several conventional optical properties of the H2O molecule (O-H bond length: 0.957 Å, H-O-H bond angle: 104.5°) at both the spin-restricted HF and KS-DFT levels, using the STO-3G basis set from the Basis Set Exchange (BSE) database[51]. The results obtained by different numerical solvers were compared.
For KS-DFT, which includes electron correlation effects to some extent, the numerical complexity of the term in Eq. (72) depends on the form of the xc functional (see Appendix C). For example, the local-density-approximation (LDA) functional depends only on the electron density ; the generalized-gradient-approximation (GGA) functional further includes its gradient ; and the meta-GGA (mGGA) functional introduces and the kinetic-energy density as additional variables. Non-collinear functionals may also depend on the spin magnetization vector and the kinetic spin-density vector . Although our implementation is capable of numerically evaluating all these cases, the present tests were limited to collinear functionals, among which SVWN5, PBE, and TPSS were chosen as representatives of the LDA, GGA, and mGGA functionals, respectively. The radial and angular grids were set to 99 and 590 points for the numerical integration.
Table 1 and Table 2 summarize the computed results for the electric and magnetic response properties, respectively. The monochromatic field was assigned a frequency of 0.1 a.u. To make the data more compact, spherical averages of the response tensors were used—for example, the spherically averaged polarizability:
and the spherically averaged first hyperpolarizability:
For the electric response properties, reference data from Gaussian 16 Rev. B.01[52] are provided for comparison, while for the magnetic responses, results from Dalton 2020.1[53] are included. There are only a few quantum chemistry packages that support the calculation of magnetizabilities. Even the Dalton program still lacks a complete library of mGGA functionals and is limited to the evaluation of static magnetizabilities for closed-shell systems. Since odd-order magnetic response properties of closed-shell systems are purely imaginary for one-component nonrelativistic theory, only the second-order results are presented here. In Table 2, the diamagnetic contribution depends solely on the unperturbed density and does not require solving the CP equations, whereas the paramagnetic term, analogous to the electric polarizability, involves the first-order CP equations. Accurate solutions of the CP-HF/KS equations rely on well-converged unperturbed molecular orbitals; therefore, the ground-state SCF energy was converged to a.u. in all calculations. The Krylov solver used for the CP-HF/KS equations employed a convergence threshold of a.u. within the subspace iterations.
As shown in Table 1 and Table 2, the results obtained from our implementation are largely reliable. In Table 1, the deviations from the Gaussian 16 results become slightly more pronounced with the increasing complexity of the xc functional, which is likely attributable to the different numerical integration grid pruning schemes employed in the two programs (NWChem-type grids in PySCF vs. SG-1 grids in Gaussian 16). In addition, the results produced by the various solvers implemented in our code are virtually identical. Considering the superior efficiency of the Krylov solver for large linear systems, it is therefore adopted as the default solver for the CP equations in subsequent calculations.
4.2. Non-Optical Properties
The electromagnetic response formalism developed in this work encompasses all conventional optical properties, which correspond to processes where the sum of the perturbation frequencies equals zero—i.e., the frequencies of the emitted fields match those of the incident ones. In practice, however, inelastic scattering processes can occur, where the frequency balance is broken due to energy exchange between the external field and the electronic system. Such situations give rise to non-optical response properties, including frequency-mixed or frequency-converted responses that are typically inaccessible in standard optical response theories. The present formalism enables direct prediction of these non-optical responses, which can exhibit pronounced dependence on the field frequencies. To illustrate this capability, we computed several frequency-dependent non-optical properties of the H2O molecule at a.u., and the results are summarized in Table 3.
To obtain nonzero third-order magnetic responses, the generalized HF/KS framework was employed. This approach allows each molecular orbital to mix - and -spin components, thereby accounting for spin-magnetic coupling and non-collinear operator contributions that are essential for accurately describing magnetic correlation effects.
4.3. Gauge-Invariant Magnetic Properties
Gauge transformations of the electromagnetic potentials introduce a gauge-dependent phase factor into the orbitals and simultaneously impose a unitary transformation on the Hamiltonian. Since a unitary transformation leaves all physical observables of the system unchanged, the quasi-energy and its derivatives are inherently gauge-invariant without any additional corrections.
In contrast, the magnetic properties derived from the GIAO method are based on energy derivatives. Under a dynamic electromagnetic field, the energy is not a gauge-conserved quantity, and the correction introduced by GIAO effectively adds a degree of arbitrariness by distributing the gauge origin among individual atomic centers. This leads to a stronger basis-set dependence of the computed properties. Nevertheless, as the basis set approaches completeness, the difference between GIAO and non-GIAO results diminishes, as can be seen from Table 4. Despite its widespread use, the GIAO approach is conceptually and computationally more involved, and offers limited physical insight.
5. Conclusions
Conventional electromagnetic response theories often suffer from internal inconsistencies and limited generality, particularly under time-dependent perturbations, where the expectation value of the Hamiltonian is no longer an observable. In such cases, frameworks based on energy derivatives become invalid, whereas the quasi-energy provides a more general and physically well-defined quantity. In this work, we have developed a general electromagnetic response theory based on quasi-energy derivatives, which enables the calculation of a wide range of electromagnetic response properties. First, the present theoretical framework provides a more general, consistent, and rigorous derivation, particularly for systems under time-dependent perturbations. Second, the formalism places no restriction on the type or combination of external fields, allowing the treatment of arbitrary dynamic or static perturbations. As a result, it not only encompasses all optical properties but also extends naturally to the prediction of non-optical responses. Additionally, the gauge dependence of magnetic properties is fully resolved within this framework, since the quasi-energy and its derivatives are themselves gauge-invariant quantities.
Author Contributions
Conceptualization, X. L. and D. P.; methodology, X. L. and D. P.; software, X. L.; writing—original draft preparation, X. L.; writing—review and editing, D. P. and F. L. G. All authors have read and agreed to the published version of the manuscript.
Funding
X. L., D. P., and F. L. G. are grateful for financial support from the National Key R&D Program of China (Grant No. 2017YFB0203403), and the National Natural Science Foundation of China (Grant No. 21273081, 21673085, 22373037).
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Derivation of T-Response
Isolating the first three orders of the expansion in Eq. (18), we directly obtain
The summation indices in Eqs. (A1c) and (A1d) are dummy variables, and exchanging them does not affect the value of the expressions., e.g., . Therefore, the expressions can be symmetrized by averaging over all permutations of the field indices, which gives
By inserting each independent field as into Eqs. (A1b), (A2), and (A3) and canceling out the shared factors, we arrive at Eqs. (19a)–(19d).
Appendix B. Derivation of W-Response
Appendix B.1. The First-Order W-Response
Let us first evaluate the first term in the first-order energy response (14):
Since the ground-state Fock matrix is diagonal in the molecular orbital basis, i.e., , the summation over j yields
By virtue of the orthonormality condition (33), we have
Thus, the first-order response of the electronic energy becomes
Now we turn to the first-order response of T, as given in Eq. (19b). The second term therein can be rewritten as
Then, Eq. (19b) is equivalent to
The total first-order quasi-energy response is therefore Eq. (68)
Appendix B.2. The Second-Order W-Response
Similarly, we begin by evaluating the first term in Eq. (16), using the definition of the second-order density matrix (28):
Owing to the diagonal structure of the zeroth-order Fock matrix in the molecular orbital basis, the summation over j can be carried out to produce
where the expression inside the second brackets can be reduced by virtue of the orthonormality condition (34), resulting in
Accordingly, we obtain
For further simplification, we separate the summation over j in the above expression into contributions from virtual and occupied orbitals (the latter can be transformed using Eq. (47)), and write
where and .
The second term in Eq. (16) can be recast into
Similarly, by separating the summation over j into contributions from virtual and occupied orbitals, we obtain
where and , and Eq. (44) has been fully utilized.
It can be seen that the combination of Eqs. (A14) and (A16) leads to partial cancelation of terms:
Consequently, the second-order energy response takes the form
However, upon closer inspection, one can show that the first-order terms in Eq. (16) can be reorganized as
according to Eq. (39). Proceeding in the same manner, we obtain an alternative expression for the second-order energy response:
This expression is mathematically equivalent to Eq. (A18), but to make the symmetry under the interchange of differentiation order explicit, we take the average of the two forms in the final result:
where we choose and .
The second derivative of T is also simplifiable. From Eq. (19c), we find that
Similarly,
For the last term in Eq. (19c), we have
Hence, can be cast into
Splitting the summation over j into virtual and occupied orbitals gives
where and .
Consequently, the second-order quasi-energy response can be written as Eq. (69).
Appendix B.3. The Third-Order W-Response
By analogy with previous derivations, we make use of the canonical form of the ground-state molecular orbitals and the orthonormality condition (35), which allows us to simplify the first term in the third-order energy response (17) as
According to the definition of the second-order Fock matrix (40), we find in Eq. (17) that
where
The summation over j in the first brackets above can be partitioned into contributions from the occupied and virtual subspaces. For the occupied part, using the orthonormality condition (34), we have
where , and j runs over the full orbital space. For the virtual part, by virtue of the first-order CP-HF/KS equation (44), we obtain
where and . Consequently, Eq. (A29) becomes
where , and the indice j is restricted to the virtual orbitals in the first two terms, but otherwise runs over all orbitals. Similarly, we have
and
By separating the summation over j in the second-order -dependent terms of Eq. (A27) into contributions from virtual and occupied orbitals, we find that Eqs. (A27) and (A32)–(A34) can be combined in such a way that certain terms cancel out:
with restricted to occupied orbitals, and running over all orbitals except in the first term in braces, where the index j refers only to virtual orbitals. Therefore, the third-order energy response reads
For as given in Eq. (19d), one can observe that
Similarly, we can obtain
The third-order coefficients appearing in deserve particular attention, as this term can be recast as
to which we need to apply a further assumption. Imposing the relation for the occ-occ block gives
Therefore, finally takes the form
Subtracting Eq. (A41) from Eq. (A36), one arrives at Eq. (70).
Appendix C. Evaluation of (ρa(ωA)|kxc|ρb(ωB)|ρc(ωC))
Table A1.
The variables on which different types of xc functionals depend
| LDA | GGA | mGGA | |
|---|---|---|---|
| spin-restricted | |||
| collinear | a | b | |
| locally-collinear | c | d | |
| non-collinear |
a; b; c; d.
When the third-order (quasi-)energy response is evaluated in the main text, the third-order derivative of the xc functional, , is involved. In many cases, a standard basis set independent of perturbations is used, and for an LDA functional, reduces to , with the explicit form given by
where is the xc integrand:
If the xc functional is a pure HF exchange, which depends on the second-order reduced density , we know that (for a closed-shell system) the non-local HF kernel has the form
and thus vanishes. For GGA, mGGA, as well as non-collinear functionals, may depend on additional independent variables. In this case, the chain rule for functional derivatives must be expanded in a complete function space. By applying integration by parts, we obtain a more general form for :
Here, represents the independent variables on which depends. The specific set of variables differs for different types of functionals, as summarized in Table A1.
Appendix D. Gauge Transformations
Maxwell’s equations permit arbitrary gauge transformations (Section 3.2) of the scalar and vector potentials without altering the physical electromagnetic fields. To maintain gauge covariance of the HF and KS equations
under such transformations, it is natural to assume that the single-electron wavefunctions transform by a local phase factor:
where f is a scalar function to be determined. We now examine the gauge-transformed HF/KS equations to verify whether they retain their form.
For the term , we have
We can then apply the identity
to obtain
For the time derivative term , we can write it as
By virtue of the chain rule
we get
Therefore, substituting Eqs. (A48) and (A51) into the gauge-transformed equation in Eq. (A46), and left-multiplying by , gives
Subtracting the original HF/KS equations
from Eq. (A54), we arrive at the condition that the scalar function f must satisfy:
It follows that this condition is fulfilled only if
where a is an arbitrary constant. Without loss of generality, we may set . Therefore, the phase factor must be of the form , and g is required to satisfy the Laplace equation .
This shows that the gauge transformation of the electromagnetic potentials does not alter the form of the HF/KS equations. The resulting wavefunction differs from the original one only by a unitary phase factor , which indicates that the transformation corresponds to a global unitary transformation of the system.
If we express the external vector potential in terms of the magnetic induction , we can construct
where the gauge-shifted position vector is defined as , with being the gauge origin. The magnetic field is assumed to be spatially uniform in the vicinity of the molecule, i.e., independent of the electronic coordinate . This expression can be derived from the definition of the vector potential:
Integrating both sides gives
where and are integration constants. Setting , multiplying both sides by followed by summation over indices i and j, and using the identity , we obtain
which is equivalent to
By setting at , a one-to-one correspondence is established between the gauge function g and the gauge origin :
The integration constant can be set to zero, as it has no effect on observable quantities. It is also evident that this choice of g satisfies the condition , as required. By dropping the prime on in Eq. (A62), we recover the general expression for the vector potential under a uniform magnetic field, as given in Eq. (A58). It can further be verified that this choice of satisfies the Coulomb gauge condition:
Since our primary interest is in the response of the system to external magnetic fields, the magnetic fields generated by the motion of nuclei and electrons are neglected.
References
- Bursulaya, B.D.; Kim, H.J. Optical Kerr effect spectroscopy of liquid water: Role of fluctuating electronic polarizability. The Journal of Physical Chemistry B 1997, 101, 10994–10999. [Google Scholar] [CrossRef]
- Ghanadzadeh, A.; Zeini, A.; Kashef, A.; Moghadam, M. Solvent polarizability and anisotropy effects on the photophysical behavior of oxazine 1: An appropriate polarizability indicator dye. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy 2009, 73, 324–329. [Google Scholar] [CrossRef]
- Egorochkin, A.N.; Kuznetsova, O.V.; Khamaletdinova, N.M.; Domratcheva-Lvova, L.G. Infrared spectroscopic studies of transition metal complexes and polarizability effect. Journal of Organometallic Chemistry 2011, 696, 2199–2205. [Google Scholar] [CrossRef]
- Bender, J.S.; Coasne, B.; Fourkas, J.T. Assessing polarizability models for the simulation of low-frequency Raman spectra of benzene. The Journal of Physical Chemistry B 2015, 119, 9345–9358. [Google Scholar] [CrossRef]
- Gasbarri, C.; Angelini, G. Polarizability over dipolarity for the spectroscopic behavior of azobenzenes in room-temperature ionic liquids and organic solvents. Journal of Molecular Liquids 2017, 229, 185–188. [Google Scholar] [CrossRef]
- Chattaraj, P.K.; Arun Murthy, T.V.S.; Giri, S.; Roy, D.R. A connection between softness and magnetizability. Journal of Molecular Structure: THEOCHEM 2007, 813, 63–65. [Google Scholar] [CrossRef]
- Foroutan-Nejad, C. Interatomic magnetizability: A QTAIM-based approach toward deciphering magnetic aromaticity. The Journal of Physical Chemistry A 2011, 115, 12555–12560. [Google Scholar] [CrossRef]
- Yin, Y.; Wan, X.; Tu, X.; Wang, D. Large magneto-optical effects in the van der Waals ferrimagnet Mn3Si2Te6. Physical Review B 2024, 110, 104410. [Google Scholar] [CrossRef]
- Delaire, J.A.; Nakatani, K. Linear and nonlinear optical properties of photochromic molecules and materials. Chemical Reviews 2000, 100, 1817–1846. [Google Scholar] [CrossRef]
- Marder, S.R. Organic nonlinear optical materials: where we have been and where we are going. Chemical Communications 2006, pp. 131–134.
- Boyd, R.W.; Prato, D. Nonlinear Optics; Academic Press, 2008; pp. 1–4.
- Castet, F.; Rodriguez, V.; Pozzo, J.L.; Ducasse, L.; Plaquet, A.; Champagne, B. Design and characterization of molecular nonlinear optical switches. Accounts of Chemical Research 2013, 46, 2656–2665. [Google Scholar] [CrossRef]
- Gu, F.L.; Aoki, Y.; Springborg, M.; Kirtman, B. Calculations on nonlinear optical properties for large systems: The elongation method; Springer, 2014; pp. 1–8.
- Gready, J.E.; Bacskay, G.B.; Hush, N.S. Finite-field method calculations of molecular polarisabilities. I. Theoretical basis and limitations of SCF and Galerkin treatments. Chemical Physics 1977, 22, 141–150. [Google Scholar] [CrossRef]
- Locknar, S.A.; Peteanu, L.A.; Shuai, Z. Calculation of ground and excited state polarizabilities of unsubstituted and donor/acceptor polyenes: a comparison of the finite-field and sum-over-states methods. The Journal of Physical Chemistry A 1999, 103, 2197–2201. [Google Scholar] [CrossRef]
- Bouř, P. Approximate ab initio calculations of polarizabilities via the excitation scheme. Chemical Physics Letters 1997, 265, 65–70. [Google Scholar] [CrossRef]
- Bouř, P. Computations of the Raman optical activity via the sum-over-states expansions. Journal of Computational Chemistry 2001, 22, 426–435. [Google Scholar] [CrossRef]
- Bishop, D.M.; Kirtman, B.; Champagne, B. Differences between the exact sum-over-states and the canonical approximation for the calculation of static and dynamic hyperpolarizabilities. The Journal of Chemical Physics 1997, 107, 5780–5787. [Google Scholar] [CrossRef]
- Champagne, B.; Kirtman, B. Evaluation of alternative sum-over-states expressions for the first hyperpolarizability of push-pull π-conjugated systems. The Journal of Chemical Physics 2006, 125, 024101. [Google Scholar] [CrossRef]
- Sekino, H.; Bartlett, R.J. Frequency dependent nonlinear optical properties of molecules. The Journal of Chemical Physics 1986, 85, 976–989. [Google Scholar] [CrossRef]
- Rice, J.E.; Amos, R.D.; Colwell, S.M.; Handy, N.C.; Sanz, J. Frequency dependent hyperpolarizabilities with application to formaldehyde and methyl fluoride. The Journal of Chemical Physics 1990, 93, 8828–8839. [Google Scholar] [CrossRef]
- Karna, S.P.; Dupuis, M. Frequency dependent nonlinear optical properties of molecules: Formulation and implementation in the HONDO program. Journal of Computational Chemistry 1991, 12, 487–504. [Google Scholar] [CrossRef]
- Rice, J.E.; Handy, N.C. The calculation of frequency-dependent polarizabilities as pseudo-energy derivatives. The Journal of Chemical Physics 1991, 94, 4959–4971. [Google Scholar] [CrossRef]
- Kutzelnigg, W. Stationary perturbation theory: I. Survey of basic concepts. Theoretica Chimica Acta 1992, 83, 263–312. [Google Scholar] [CrossRef]
- Sasagane, K.; Aiga, F.; Itoh, R. Higher-order response theory based on the quasienergy derivatives: The derivation of the frequency-dependent polarizabilities and hyperpolarizabilities. The Journal of Chemical Physics 1993, 99, 3738–3778. [Google Scholar] [CrossRef]
- Colwell, S.M.; Murray, C.W.; Handy, N.C.; Amos, R.D. The determination of hyperpolarisabilities using density functional theory. Chemical Physics Letters 1993, 210, 261–268. [Google Scholar] [CrossRef]
- Li, S.; Hu, L.; Peng, L.; Yang, W.; Gu, F.L. Coupled-perturbed SCF approach for calculating static polarizabilities and hyperpolarizabilities with nonorthogonal localized molecular orbitals. Journal of Chemical Theory and Computation 2015, 11, 923–931. [Google Scholar] [CrossRef] [PubMed]
- Peng, D.; Li, S.; Peng, L.; Gu, F.L.; Yang, W. Time-Dependent Coupled Perturbed Hartree–Fock and Density-Functional-Theory Approach for Calculating Frequency-Dependent (Hyper) Polarizabilities with Nonorthogonal Localized Molecular Orbitals. Journal of Chemical Theory and Computation 2017, 13, 4101–4112. [Google Scholar] [CrossRef] [PubMed]
- Lee, A.M.; Colwell, S.M. The determination of hyperpolarizabilities using density functional theory with nonlocal functionals. The Journal of Chemical Physics 1994, 101, 9704–9709. [Google Scholar] [CrossRef]
- Van Gisbergen, S.J.A.; Snijders, J.G.; Baerends, E.J. Calculating frequency-dependent hyperpolarizabilities using time-dependent density functional theory. The Journal of Chemical Physics 1998, 109, 10644–10656. [Google Scholar] [CrossRef]
- Kamiya, M.; Sekino, H.; Tsuneda, T.; Hirao, K. Nonlinear optical property calculations by the long-range-corrected coupled-perturbed Kohn–Sham method. The Journal of Chemical Physics 2005, 122, 234111. [Google Scholar] [CrossRef]
- Banerjee, A.; Harbola, M.K. Variation-perturbation method in time-dependent density-functional theory. Physics Letters A 1997, 236, 525–532. [Google Scholar] [CrossRef]
- Aiga, F.; Tada, T.; Yoshimura, R. Frequency-dependent polarizabilities, hyperpolarizabilities, and excitation energies from time-dependent density-functional theory based on the quasienergy derivative method. The Journal of Chemical Physics 1999, 111, 2878–2888. [Google Scholar] [CrossRef]
- Kirtman, B.; Gu, F.L.; Bishop, D.M. Extension of the Genkin and Mednis treatment for dynamic polarizabilities and hyperpolarizabilities of infinite periodic systems. I. Coupled perturbed Hartree-Fock theory. The Journal of Chemical Physics 2000, 113, 1294–1309. [Google Scholar] [CrossRef]
- Casida, M.E. Time-dependent density functional response theory for molecules. In Recent Advances In Density Functional Methods: (Part I); World Scientific, 1995; pp. 155–192.
- Kutzelnigg, W. Theory of magnetic susceptibilities and NMR chemical shifts in terms of localized quantities. Israel Journal of Chemistry 1980, 19, 193–200. [Google Scholar] [CrossRef]
- Hansen, A.E.; Bouman, T.D. Localized orbital/local origin method for calculation and analysis of NMR shieldings. Applications to 13C shielding tensors. The Journal of Chemical Physics 1985, 82, 5035–5047. [Google Scholar] [CrossRef]
- Keith, T.A.; Bader, R.F.W. Calculation of magnetic response properties using a continuous set of gauge transformations. Chemical Physics Letters 1993, 210, 223–231. [Google Scholar] [CrossRef]
- Ditchfield, R. Molecular orbital theory of magnetic shielding and magnetic susceptibility. The Journal of Chemical Physics 1972, 56, 5688–5691. [Google Scholar] [CrossRef]
- Helgaker, T.; Jo/rgensen, P. An electronic Hamiltonian for origin independent calculations of magnetic properties. The Journal of Chemical Physics 1991, 95, 2595–2601. [Google Scholar] [CrossRef]
- Ruud, K.; Helgaker, T.; Bak, K.L.; Jo/rgensen, P.; Jensen, H.J.A. Hartree–Fock limit magnetizabilities from London orbitals. The Journal of Chemical Physics 1993, 99, 3847–3859. [Google Scholar] [CrossRef]
- London, F. Théorie quantique des courants interatomiques dans les combinaisons aromatiques. Journal de Physique et le Radium 1937, 8, 397–409. [Google Scholar] [CrossRef]
- Sun, Q.; Zhang, X.; Banerjee, S.; Bao, P.; Barbry, M.; Blunt, N.S.; Bogdanov, N.A.; Booth, G.H.; Chen, J.; Cui, Z.H.; et al. Recent developments in the PySCF program package. The Journal of Chemical Physics 2020, 153, 024109. [Google Scholar] [CrossRef]
- Sun, Q. Libcint: An efficient general integral library for Gaussian basis functions. Journal of Computational Chemistry 2015, 36, 1664–1671. [Google Scholar] [CrossRef]
- Ekström, U.; Visscher, L.; Bast, R.; Thorvaldsen, A.J.; Ruud, K. Arbitrary-order density functional response theory from automatic differentiation. Journal of Chemical Theory and Computation 2010, 6, 1971–1980. [Google Scholar] [CrossRef]
- Lehtola, S.; Steigemann, C.; Oliveira, M.J.T.; Marques, M.A.L. Recent developments in libxc—A comprehensive library of functionals for density functional theory. SoftwareX 2018, 7, 1–5. [Google Scholar] [CrossRef]
- Saad, Y. Iterative methods for sparse linear systems, second ed.; SIAM, 2003; pp. 157–257.
- Liesen, J.; Strakos, Z. Krylov Subspace Methods: Principles and Analysis; Numerical Mathematics and Scie, OUP Oxford, 2013; pp. 12–70.
- Knoll, D.A.; Keyes, D.E. Jacobian-free Newton–Krylov methods: a survey of approaches and applications. Journal of Computational Physics 2004, 193, 357–397. [Google Scholar] [CrossRef]
- Baker, A.H.; Jessup, E.R.; Manteuffel, T. A technique for accelerating the convergence of restarted GMRES. SIAM Journal on Matrix Analysis and Applications 2005, 26, 962–984. [Google Scholar] [CrossRef]
- Pritchard, B.P.; Altarawy, D.; Didier, B.; Gibson, T.D.; Windus, T.L. New basis set exchange: An open, up-to-date resource for the molecular sciences community. Journal of chemical information and modeling 2019, 59, 4814–4820. [Google Scholar] [CrossRef]
- Frisch, M.J.; Trucks, G.W.; Schlegel, H.B.; Scuseria, G.E.; Robb, M.A.; Cheeseman, J.R.; Scalmani, G.; Barone, V.; Petersson, G.A.; Nakatsuji, H.; et al. Gaussian 16 Revision B.01, 2016. Gaussian Inc. Wallingford CT.
- Aidas, K.; Angeli, C.; Bak, K.L.; Bakken, V.; Bast, R.; Boman, L.; Christiansen, O.; Cimiraglia, R.; Coriani, S.; Dahle, P.; et al. The Dalton quantum chemistry program system. Wiley Interdisciplinary Reviews: Computational Molecular Science 2014, 4, 269–284. [Google Scholar] [CrossRef]
Table 1.
Static and dynamic ( a.u.) spherically averaged polarizabilities and first hyperpolarizabilities of H2O calculated using various solvers at the spin-restricted HF, SVWN5, PBE, and TPSS levels with the STO-3G basis set. All values are given in atomic units.
Table 1.
Static and dynamic ( a.u.) spherically averaged polarizabilities and first hyperpolarizabilities of H2O calculated using various solvers at the spin-restricted HF, SVWN5, PBE, and TPSS levels with the STO-3G basis set. All values are given in atomic units.
| Method | Solver | ||||
|---|---|---|---|---|---|
| Krylov | 2.456114 | 2.493836 | 9.724434 | 10.67309 | |
| HF | N-K | 2.456114 | 2.493836 | 9.724434 | 10.67309 |
| exact | 2.456114 | 2.493836 | 9.724434 | 10.67309 | |
| Gaussian | 2.456114 | 2.493836 | 9.724434 | 10.67309 | |
| Krylov | 2.337072 | 2.378101 | 9.601582 | 10.94481 | |
| SVWN5 | N-K | 2.337072 | 2.378101 | 9.601582 | 10.94481 |
| exact | 2.337072 | 2.378101 | 9.601582 | 10.94481 | |
| Gaussian | 2.337074 | 2.378104 | 9.601611 | 10.94484 | |
| Krylov | 2.389041 | 2.430847 | 9.490396 | 10.78105 | |
| PBE | N-K | 2.389041 | 2.430847 | 9.490396 | 10.78105 |
| exact | 2.389041 | 2.430847 | 9.490396 | 10.78105 | |
| Gaussian | 2.389024 | 2.430829 | 9.490255 | 10.78088 | |
| Krylov | 2.447234 | 2.488514 | 9.555978 | 10.75230 | |
| TPSS | N-K | 2.447234 | 2.488514 | 9.555978 | 10.75230 |
| exact | 2.447234 | 2.488514 | 9.555978 | 10.75230 | |
| Gaussian | 2.447381 | 2.488667 | 9.563478 | 10.76102 |
Table 2.
Static and dynamic ( a.u.) spherically averaged magnetizabilities of H2O calculated using various solvers at the spin-restricted HF, SVWN5, PBE, and TPSS levels with the STO-3G basis set. All values are given in atomic units.
Table 2.
Static and dynamic ( a.u.) spherically averaged magnetizabilities of H2O calculated using various solvers at the spin-restricted HF, SVWN5, PBE, and TPSS levels with the STO-3G basis set. All values are given in atomic units.
| Method | Solver | ||||
|---|---|---|---|---|---|
| Krylov | -3.004265 | 0.354248 | -2.650016 | -2.638684 | |
| HF | N-K | -3.004265 | 0.354248 | -2.650016 | -2.638684 |
| exact | -3.004265 | 0.354248 | -2.650016 | -2.638684 | |
| Dalton | -3.004263 | 0.354248 | -2.650015 | - | |
| Krylov | -2.997094 | 0.391350 | -2.605744 | -2.589627 | |
| SVWN5 | N-K | -2.997094 | 0.391350 | -2.605744 | -2.589627 |
| exact | -2.997094 | 0.391350 | -2.605744 | -2.589627 | |
| Dalton | -2.997093 | 0.391350 | -2.605744 | - | |
| Krylov | -3.010564 | 0.399143 | -2.611421 | -2.594833 | |
| PBE | N-K | -3.010564 | 0.399143 | -2.611421 | -2.594833 |
| exact | -3.010564 | 0.399143 | -2.611421 | -2.594833 | |
| Dalton | -3.010565 | 0.399143 | -2.611422 | - | |
| Krylov | -3.017507 | 0.380711 | -2.636796 | -2.622316 | |
| TPSS | N-K | -3.017507 | 0.380711 | -2.636796 | -2.622316 |
| exact | -3.017507 | 0.380711 | -2.636796 | -2.622316 | |
| Dalton | - | - | - | - |
Table 3.
Dynamic ( a.u.) spherically averaged non-optical electromagnetic response properties of H2O calculated at the generalized HF, SVWN5, PBE, and TPSS levels with the STO-3G basis set. All values are given in atomic units.
Table 3.
Dynamic ( a.u.) spherically averaged non-optical electromagnetic response properties of H2O calculated at the generalized HF, SVWN5, PBE, and TPSS levels with the STO-3G basis set. All values are given in atomic units.
| Method | |||||
|---|---|---|---|---|---|
| 0.05 | 2.465426 | 10.03915 | -0.096125 | 1.060108 | |
| HF | 0.10 | 2.493836 | 11.07370 | -0.087554 | 1.104119 |
| 0.15 | 2.542842 | 13.17900 | -0.072223 | 1.167423 | |
| 0.20 | 2.615197 | 17.39514 | -0.048216 | 1.254649 | |
| 0.05 | 2.347162 | 10.04824 | -0.060547 | 1.184807 | |
| SVWN5 | 0.10 | 2.378101 | 11.58515 | -0.048325 | 1.236818 |
| 0.15 | 2.432036 | 15.09977 | -0.025942 | 1.318000 | |
| 0.20 | 2.513118 | 24.29370 | -0.010578 | 1.437984 | |
| 0.05 | 2.399326 | 9.921563 | -0.058666 | 1.182924 | |
| PBE | 0.10 | 2.430847 | 11.39941 | -0.046085 | 1.233733 |
| 0.15 | 2.485755 | 14.74416 | -0.023015 | 1.314061 | |
| 0.20 | 2.568186 | 23.14165 | -0.014707 | 1.433669 | |
| 0.05 | 2.457400 | 9.962100 | -0.079933 | 1.117914 | |
| TPSS | 0.10 | 2.488514 | 11.33683 | -0.068962 | 1.163513 |
| 0.15 | 2.542545 | 14.35058 | -0.049021 | 1.234274 | |
| 0.20 | 2.623225 | 21.48152 | -0.016914 | 1.337470 |
Table 4.
Static spherically averaged magnetizabilities of H2O calculated with and without GIAO at the spin-restricted HF, SVWN5, and PBE levels using the STO-3G, 6-31G, cc-pVDZ, and Sadlej-pVTZ basis sets. All values are given in atomic units.
Table 4.
Static spherically averaged magnetizabilities of H2O calculated with and without GIAO at the spin-restricted HF, SVWN5, and PBE levels using the STO-3G, 6-31G, cc-pVDZ, and Sadlej-pVTZ basis sets. All values are given in atomic units.
| Method | Gauge Basis | STO-3G | 6-31G | cc-pVDZ | Sadlej-pVTZ |
|---|---|---|---|---|---|
| HF | - | -2.650016 | -2.997862 | -2.820516 | -2.949613 |
| GIAO | -2.459860 | -2.798452 | -2.773012 | -2.931758 | |
| SVWN5 | - | -2.605744 | -2.983692 | -2.820797 | -3.062157 |
| GIAO | -2.417908 | -2.784379 | -2.768266 | -3.059146 | |
| PBE | - | -2.611421 | -2.967591 | -2.796043 | -3.032509 |
| GIAO | -2.402182 | -2.754203 | -2.740750 | -3.027743 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.