# An Open-Source Framework for -Electron Dynamics: II. Hybrid Density Functional Theory/Configuration Interaction Methodology

## 1 Abstract

In this contribution, we extend our framework for analyzing and visualizing correlated many-electron dynamics to non-variational, highly scalable electronic structure method. Specifically, an explicitly time-dependent electronic wave packet is written as a linear combination of -electron wave functions at the configuration interaction singles (CIS) level, which are obtained from a reference time-dependent density functional theory (TDDFT) calculation. The procedure is implemented in the open-source Python program detCI@ORBKIT, which extends the capabilities of our recently published post-processing toolbox [J. Comput. Chem. 37 (2016) 1511]. From the output of standard quantum chemistry packages using atom-centered Gaussian-type basis functions, the framework exploits the multi-determinental structure of the hybrid TDDFT/CIS wave packet to compute fundamental one-electron quantities such as difference electronic densities, transient electronic flux densities, and transition dipole moments. The hybrid scheme is benchmarked against wave function data for the laser-driven state selective excitation in LiH. It is shown that all features of the electron dynamics are in good quantitative agreement with the higher-level method provided a judicious choice of functional is made. Broadband excitation of a medium-sized organic chromophore further demonstrates the scalability of the method. In addition, the time-dependent flux densities unravel the mechanistic details of the simulated charge migration process at a glance.

## 2 Introduction

Unraveling the flow of electrons inside a molecule out of equilibrium is key to understand its reactivity. Since the pioneering laser experiments by Zewail and co-workers[1, 2], the development of new light sources has now granted access to the indirect observation of electron dynamics on its natural timescale. To shed light on the mechanistic details of this attosecond dynamics, accurate theoretical methods are required that capture the subtle details of the transient electronic structure evolution. Various approaches based on explicitly time-dependent density functional theory (TDDFT) and wave function ansatz have been developed over the years and enjoyed mixed degrees of success. While TDDFT appears as more intuitive and scalable, it was shown to suffer from problems for ultrafast dynamics in strong laser fields. On the other hand, the advantages of wave function-based methods in terms of convergence become rapidly compensated by their unfavorable computational cost. Further, the intuitive picture of electrons flowing on a molecular skeleton can become blurred by correlation effects between the particles.

This contribution is motivated by the need for a robust, scalable wave function method to investigate ultrafast -electron dynamics in systems of large dimension. The method we advocate is based on a combination of linear-response time-dependent functional theory (LR-TDDFT) and configuration interaction singles (CIS) methodologies, as was introduced recently [3, 4, 5]. In principle, the method is similar to the well-established CIS ansatz, with the exception that the energies and the pseudo-CIS eigenvectors are obtained from a reference LR-TDDFT calculation. This allows to improve the energetic properties of the states while keeping a simple electron-particle picture to describe the transient -electron wave packet. This TDDFT/CIS hybrid formalism inherits the qualities of both underlying methods and ensures the -representability of all reduced density matrices, at all times and under all laser conditions. The ensuing -electron dynamics remains marred by the non-intuitive interpretation of quantities beyond the density itself.

Recently, we demonstrated that correlated electron dynamics can be accurately described by means of the electronic flux density operator and derived one-electron properties. We introduced an open-source framework [6] to post-process multi-determinantal configuration interaction wave functions directly from the output of standard quantum chemistry packages. It thus becomes possible to reconstruct the transient -representative one-electron density and current density (flux density) using a library of transition moments calculated from the multi-determinantal configuration interaction wave functions, yielding an intuitive tool for visualizing and analyzing the correlated electron dynamics. A wide variety of established wave function-based methods are covered, ranging from configuration interaction singles to Full CI via restricted active space CI and multi-configuration self-consistent-field methods. It is the purpose of this work to extend the formalism to the TDDFT/CIS hybrid formalism mentioned above, which should retain the qualities of the wave function ansatz and the scalability of DFT-based schemes with respect to the system size.

In the next section, the hybrid TDDFT/CIS methodology is first introduced, followed by the description of the analysis toolset based on the flux density. The application section reports on benchmark calculations on the LiH molecule and the demonstration of the scalability of the scheme by investigation of the broadband excitation in an organic chromophore. The findings are summarized in the conclusion section. Unless otherwise stated, atomic units are used throughout the manuscript ().

## 3 Theory

### 3.1 Hybrid TDDFT/CI Methodology

The evolution of the electronic state of a molecular system obeys the time-dependent Schrödinger equation[7], which can be written in the clamped nuclei approximation

(1) |

The interaction of the molecular dipole with an external laser field is treated here semi-classically. For a system consisting of electrons and nuclei, the field-free electronic Hamiltonian reads

(2) |

where is inter-electronic Coulomb repulsion, and is the distance between the th electron and nucleus of charge . In this work, an electronic wave packet satisfying Eq. (1) is expressed as a linear superposition of stationary electronic states

(3) |

Here, are the expansion coefficients of state , which describe the time-evolution of the wave packet. For molecules in strong laser fields, a large number of stationary electronic states is required to offer a proper description of the -electron dynamics. The equations of motion for the coefficients in Eq. (1), associated with the basis set expansion Eq. (3), can be integrated numerically.

In the time-dependent configuration interaction methodology, the stationary electronic states are chosen as linear combinations of excited configuration state functions

(4) |

The expansion parameters are associated with the formal excitation of a reference configuration, , from occupied orbitals to virtual orbitals . Including all possible excitations leads to the exact Full CI limit. The reference and excited configurations are defined as Slater determinants, which builds antisymmetrized products of one-electron spin orbitals . Note that, in the time-dependent configuration interaction (TDCI) methodology in the form presented above, the field-free electronic Hamiltonian is considered to be diagonal in the basis of CI eigenstates at a given level of theory. The matrix elements of the dipole operator can be computed from the knowledge of these eigenfunctions, which serve as a basis for the variational representation of the molecule-field interaction.

For large molecules, it is customary to truncate the CI expansion to a chosen maximum rank of excitations (e.g., CI Singles or CI Singles Doubles) in order to reduce the number of possible excited configurations. Unfortunately, this often compromises the energetic description of the excited states. To circumvent this limitation while keeping the problem computationally tractable, Sonk and Schlegel [3] first recognized that only excitation energies and transition dipole moments are required to perform TDCI simulations. These can be obtained from linear-response time-dependent density functional theory (LR-TDDFT). To generalize this approach, it was proposed to use the solutions of the LR-TDDFT calculation to generate a basis of pseudo-CI eigenstates [5, 4]. All required information for a TDCI simulation is thus available from the output of standard quantum chemistry programs, provided excitations are performed from the ground state.

According to the Runge-Gross theorem, it is possible to recast the -electron Schrödinger equation and calculate all observables from the sole knowledge of the one-electron density. Using the Kohn-Sham ansatz for the density, the -electron time-dependent Schrödinger equation can be mapped onto a one-electron equation for the orbitals

(5) |

The time-dependent Kohn-Sham potential contains the classical electrostatic interaction (), an external potential (), and an exchange-correlation contribution (), i.e.,

(6) |

In explicit TDDFT, the Kohn-Sham potential is usually assumed to be local in time. A celebrated success of TDDFT comes from its linear-response formulation, which allows to accurately compute spectral properties of large molecules. For this endeavor, the response kernel of the electron density to an external weak, long wavelength perturbation can be evaluated from the electric susceptibility of the ground state. The search for the poles of the response function can be recast as an eigenvalue problem of the form

(7) |

where is the response of the system state to the perturbation, . The elements of matrices and are obtained from the orbital energies and integrals over the exchange-correlation kernel, see Eq. (6). At the resonance frequencies , where the response vanishes (), the solution of the Casida Eq. (7) yields simultaneously the excitations and de-excitations amplitudes, and . In the present work, we make use of the fact that these are usually given in the output of standard quantum chemistry programs, together with the excitation energies and the oscillator strengths.

From Eq. (7), it is possible to define pseudo-CI Singles eigenvectors in the Tamm-Dancoff approximation, which consists in neglecting the off-diagonal blocks . This procedure can alter the quality of the energetic properties of the excited states. On the other hand, the dominant characters present in the pseudo-CI eigenvectors are often not strongly affected by this approximation. In the TDDFT/CI procedure, we thus advocate using directly the transition energies and amplitudes obtained from a LR-TDDFT calculation to take advantage of the full solution of Eq. (7) and to obtain a good energetic description of the excited states. A separate Tamm-Dancoff calculation may be used to confirm the character of the excited states. The LR-TDDFT excitation amplitudes are then re-orthonormalized using a modified Gram-Schmidt procedure to define a pseudo-CI basis for the TDCIS dynamics. All properties not directly deriving from the energies can be subsequently calculated at the CIS level of theory using the orbitals and the pseudo-CI eigenstates, which are treated as configuration interaction singles expansions. Note that the Slater determinants are constructed from Kohn-Sham orbitals. Importantly, all the information required to reconstruct these KS-orbitals and the -electron pseudo-eigenfunctions are directly accessible from the output of standard quantum chemistry packages. As a consequence, only the evaluation of one-electron integrals is required to generate a library of molecular properties and transition moments of various one-electron operators, which can be used to characterize the properties of transient wave packets, as explained below.

### 3.2 Analysis Tools for Electron Dynamics

For the analysis of the -electron dynamics, we propose using a set of tools composed from the one-electron density, , and the associated electronic flux density, . These are related by the electronic continuity equation

(8) |

Whereas the electron density gives information about the probability distribution of the electron, the flux density yields complementary information about the phase of the electronic wave packet. This in turn reveals the mechanistic aspects of the time-evolution of the one-electron density. The one-electron density can be used to define the electron flow, , as the left-hand-side of the continuity equation. The difference density, , is a widespread quantity used for visualization purposes, and it can be obtained by integrating the electron flow from a chosen initial condition , i.e.,

(9) |

We will resort to both quantities in later analyses.

In operator form, the one-electron density and the electronic flux density respectively read

(10) | |||||

(11) |

where is an observation point, is the Dirac delta distribution at the position of electron , and is the associated momentum operator. In general, the expectation value of any one-electron operator can be expressed using Eqs. (3) and (4) as

(12) | |||||

(13) |

Evaluation of the matrix elements can be done by exploiting the structure of the functions . In the hybrid TDDFT/CIS methodology, these take the form of singly excited configurations, i.e., the truncation of Eq. (4) at the singles level. The matrix elements in the basis of singly excited configurations read

(15) | |||||

where denote the occupied spin orbitals of the configuration state function . Note that we make use of the Slater-Condon rules[8, 9, 10] to resolve Eq. (15) in terms of one-electron integrals in the basis of the spin orbitals, . The transition moments between spin orbitals are usually computed in the spin-free representation by first integrating over the spin coordinates. Specifically, the expectation value for the electron density requires the following integrals

(16) |

The electronic flux density for a wave packet of the form Eq. (3) can be formulated as

(17) |

which can be calculated by exploiting the CIS structure of the eigenfunctions. The transition electronic flux density from state to state is denoted , which simplifies using the Slater-Condon rules to

(18) | |||||

where

(19) |

are molecular orbital (MO) electronic transition flux densities from MO to MO .

As one of the most widespread bases used in quantum chemistry, we specialize here to spatial MO defined as linear combination of atom-centered orbitals (MO-LCAO for “Molecular Orbital - Linear Combination of Atomic Orbitals”)

(20) |

where is the th expansion coefficient for MO . The atomic orbitals are expressed as a function of the Cartesian coordinates of one electron and the spatial coordinates of nucleus . labels the number of atoms and is the number of atomic orbitals on atom . Using the MO-LCAO ansatz, the transition moments between spin orbitals read

(21) |

The MO-LCAO coefficients and the definition of the atomic orbitals can be read directly from the output of standard quantum chemistry program packages. All required derivatives and integrals in the atomic orbital basis are computed analytically using our Python post-processing toolbox ORBKIT[11], with which the molecular orbital density (cf. Eq. (16)) and the molecular orbital electronic flux density (cf. Eq. (19)) can then be projected on an arbitrary grid. Combining the information in this list with the occupation patterns of the quasi-CI eigenvectors associated with the excited states obtained at the LR-TDDFT level of theory, it is possible to create a library of transition moments between CI-states to be used in the dynamics. Note that the transition dipole moments are also computed using the same information and exploiting the multi-determinantal structure of the -electron basis functions, cf. Eqs. (3) and (4). The analysis tools for the hybrid TDDFT/CIS methodology are implemented, along with various other one-electron quantities, in a recently introduced open-source Python framework detCI@ORBKIT, available at https://github.com/orbkit/orbkit/. The program requires a preliminary LR-TDDFT calculation using Gaussian-type atom-centered orbitals. There is no restriction for the choice of functional. Currently, the code supports the GAMESS[12] and TURBOMOLE[13] formats. Our program then computes matrix elements of one-electron operators, projects them on an arbitrary grid, and stores them in a library to be used for analyzing the -electron dynamics. The framework detCI@ORBKIT is written in Python, simplifying its portability on different platforms and offering efficient standard libraries for visualization purposes. Implementation details are given elsewhere [14]. The dynamics program is not part of the standard implementation and can be performed using either a user-written code or, e.g., the Matlab WAVEPACKET package[15]. In the present work, all dynamical simulations were performed using GLOCT, an in-house implementation of a propagator for the reduced-density matrix and related quantities [16, 17].

## 4 Results and Discussion

To demonstrate the capabilities of detCI@ORBKIT, we perform the analysis of correlated electron dynamics in two selected molecular systems. First, the charge transfer process in lithium hydride is studied to benchmark the quality of the TDDFT/CIS description against Full CI results. The electron migration in an alizarin dye induced by broadband laser excitation is then used as an example to demonstrate the scalability of the method.

### 4.1 Benchmark: Charge Transfer in LiH

In lithium hydride, charge migration can be initiated, e.g., by laser excitation from the molecular ground state to the first excited state . The charge transfer mechanism can be understood from the analysis of the superposition state

(22) |

which leads to the time-dependent one-electron density

(23) |

where , and is the relative phase. It is set to in the present example. Similarly, the electronic flux density takes the form

(24) |

where the transition electronic flux density is obtained from Eq. (18). The charge transfer dynamics can be thus rationalized in terms of the static transition moment between the two states involved. The electron densities, and , of the ground state X and the charge transfer state A and the transition density between both, , are computed by combining the MO contributions obtained from Eq. (16). The Kohn-Sham orbitals, the pseudo-CI eigenvectors, and the associated LR-TDDFT excitation energies are computed using an aug-cc-pVTZ at the B2-PLYP level of theory, as implemented in TURBOMOLE.[13] The character of the charge transfer state is found to be dominated by the HOMO-LUMO transition (see Fig. 1 (right side)). This is in good agreement with the character determined from CIS and Full CI calculations, both performed with PSI4[18] using the identical basis set. The corresponding frontier orbitals from the Hartree-Fock reference are shown in the left side of Fig. 1. It can be seen that the HOMO is similar in both cases, while the LUMO is more delocalized at the B2-PLYP level of theory. We will show below that this difference has only a marginal influence on the electron dynamics.

A great advantage of LR-TDDFT over CIS is the improved energetic description of the excited states at virtually the same computational cost. This is demonstrated by the good agreement of the excitation energies at the B2-PLYP level of theory ( eV) with the Full CI reference ( eV), as compared to the rather poor value for the truncated CIS expansion ( eV). Since the excitation is dominated by single excitations in all cases, the transition energies will affect mostly the timescale of the dynamics. Further, considering the similarities between the MOs involved in the dominant transition, a similar dynamical behavior is to be expected. This is indeed what is observed in Fig. 2, where the left panels report the flux density at time computed using Eq. (24) and the right panels show the difference density computed from the one-electron density, Eq. (23). In the top right panel, the benchmark Full CI calculation reveals that the charge is transferred from the hydrogen atom (electron density depletion region in blue) to the lithium ion (red region). Some -like regions of increasing density can also be recognized around the lithium atom. The same features are also observed for both the CIS (central panels) and hybrid (lower panels) method, while the magnitude of the difference density is larger around the hydrogen for the two single electron approaches.

The electronic flux density maps are depicted as streamlines in the left panels of Fig. 2, where the blue shades indicate its magnitude. The charge is seen to flow from the polarizable hydrogen around and towards the back of the hard lithium. The same large vortex around the lithium ion is observed for the Full CI benchmark, the CIS, and the hybrid TDDFT/CIS approach. The main quantitative differences between the methods are located in the low-density regions, e.g., at , where the Full CI benchmark predicts a flux almost parallel to the molecular axis. The critical point (at ) between the lithium and hydrogen atoms also appears to be slightly shifted to the right at the CIS and TDDFT/CIS level of theory. In general, it can be said that both single electron excitation ansatz yield a very similar picture of the electron difference density and the associated flux density. This conclusion is likely to hold for all dynamical processes involving -electron eigenstates dominated by a single excitation character.

### 4.2 Scalability: Electron Migration in Alizarin

In this second example, we demonstrate the computational scalability of the hybrid TDDFT/CIS approach to analyze the correlated electron dynamics for more extended molecular systems. The necessity of such a method is due to the fact that high-level electronic structure theory methods, such as MCSCF, are often not applicable for larger molecules. The CI scheme truncated at the singles excitation represents a simple, intuitive, and computationally cheap approach to compute qualitatively correct excited electronic states.[19, 20] However, it yields inaccurate vertical excitation energies from the ground state.[21] As advocated in the theory section above, a suitable alternative is LR-TDDFT[22], which usually provides better energetic description than CIS while retaining the same quality for the wave function. It can be inferred from the example in the previous subsection, that this will provide an adequate description for a large number of photochemical processes dominated by a single excitation character. In addition, it benefits from the versatility and continuous improvement of density functionals. Proper treatment of the excited states strongly depends on the appropriate choice of a functional, which can be chosen to correctly describe electronic correlations, the dispersive nature, or the charge-transfer character of a given excitation. [23, 24, 25, 26, 27, 28, 29] Fortunately, extensive experience has been accumulated over the years concerning the applicatibility of each functional in specific chemical contexts. For example, it is known that non-local exchange improves greatly the description of charge transfer states [20].

To show the scalability of the hybrid TDDFT/CIS formalism for the analysis of correlated electron dynamics, we initiate a photoinduced ultrafast charge migration process in alizarin. This organic chromophore is used as a -conjugated photosensitizer in dye-sensitized solar cells. Prior to the dynamical simulation, the electronic and optical properties of alizarin are determined by means of LR-TDDFT. Therefore, we perform a TURBOMOLE[13] calculation with the B3LYP[30] hybrid functional and the def2-SVP basis set[31, 32] at the equilibrium geometry of alizarin. This setup has been previously proven to yield accurate results for the electronic and spectroscopic properties of such systems.[33, 34, 35, 4] The computed absorption spectrum is depicted in Fig. 3(a) along with the experimentally observed absorption band of free alizarin (dashed black line). The good agreement for the first absorption band between theory (437 nm) and experiment (431 nm) underlines the suitability of TDDFT to model the electronic spectra of medium-sized organic molecules dominated by single excitation character. It is important to recognize that the second absorption band is composed of a multitude of excited states in the UV/VIS range.

In order to simulate an ultrafast charge migration process in alizarin, we proceed to the broadband excitation of all excited states in the energy range between 200 nm and 500 nm (cf. Fig. 3(a) yellow filling). For the promotion of these states from the ground state, a superposition of state-to-state sin-shaped pulses with a duration 19 fs is constructed. The pulse is adjusted to the parameters of a realistic experimental laser field used in similar investigations to initiate, e.g., ultrafast photoinduced processes in alizarin-TiO solar cells.[36, 37] The resulting electric field is shown in the inset of Fig. 3(b). The laser excitation is followed by a 20 fs field-free propagation. The time-evolution of the -electron wave packet (cf. Eqs. (1) and (3)) is accomplished using an adaptive Runge-Kutta algorithm in the interaction picture. The methodology and implementation details are described elsewhere.[38, 16, 39] Fig. 3(b) shows the evolution of the state populations and the applied laser field in the inset. As it is often the case for molecules in strong fields, the population dynamics is very intricate while the laser is on, in part due to important polarization effects and in part due to the number of states that are excited by the broadband laser. To account for the electronic response of the system to the laser field, 25 eigenstates are incorporated in the simulation. After the laser excitation, only twelve states are significantly populated ().

To unravel the mechanistic pathways and give an intuitive picture of the electron dynamics, we advocate using the time-dependent electron density, electron flux density, and electronic flow, which are reconstructed from the -electron wave packet in the pseudo-CI eigenvector basis. This can become computationally tedious, since the number of Slater determinants in the wave function expansion increases with the number of occupied and unoccupied orbitals. For alizarin in the current basis set, the occupied MOs times virtual MOs correspond to determinants for each of the excited states. Recalling that reconstruction of the flux density, Eq. (18), requires combining one-electron integrals of all orbitals pairwise, for each pair of eigenstates, this amounts to a tremendous computational task. However, inclusion of the complete set of determinants is not necessary, since the expansion coefficient of many of these is either zero or negligibly small. Moreover, the pseudo-CI eigenvectors are usually dominated by a few determinant contributions. Applying the maximum correspondence principle between determinants and exploiting the Slater-Condon rules lead to significant numerical savings, which are automatized in our implementation and can be controlled by a user-defined convergence threshold.

In order to examine the influence of truncating the complete set of determinants to a physically meaningful subset in the wavefunction ansatz, we choose to use a threshold for the expansion coefficients of the quasi-CI wave functions, Eq. (4). All determinants with a contribution under this value are neglected in the evaluation of the one-electron density and the associated flux density. We define three different thresholds, . To illustrate the computational savings that can be expected, the thirteenth excited state is selected as an example, since it is the most populated state after the broadband laser excitation. The three chosen threshold values retain 926, 31, and 7 Slater determinants in the wave function expansion, respectively. For consistency check, the pruned expansions recover 99.94 , 99.31 , and 95.92 of the norm of the thirteenth excited state, respectively. These numbers are similar for other excited states. After excluding the contributions lying under the respective threshold, the remaining coefficients are renormalized using a modified Gram-Schmidt algorithm. Regarding the computational effort, the reduction of determinants means a drastic decrease of computational steps. For example, the calculation of the transition electronic flux density between the fifth and thirteenth excited state requires determinant combinations for the more strict threshold of . This number reduces to determinant combinations for the lenient threshold . This simple constraint thus confers great scalability to the method presented here.

To assess the quality of this approximation, the electronic flux densities reconstructed using the different thresholds are illustrated in Fig. 4(a),(c),(d) at a characteristic point in time after the laser-pulse excitation (here, fs). This analysis could be performed during the laser-field at the zeros of the pulse function to avoid simply representing the contribution of the electric field to the flux density. On the other hand, after the pulse, the flux is solely caused by the coherences between the electronic states, simplifying its analysis. In Fig. 4(b), the corresponding electron flow, , is displayed additionally for the tight threshold, , to facilitate the interpretation of the flux densities. For all three wave packet expansions, shows nearly identical qualitative features. These include: (1) an electron flow along the bonds mediated by the -system, (2) an anti-clockwise flux at the outer right ring, and (3) a charge migration from the outer right ring and the top part of the left ring to the lower hydroxyl group. Due to the cyclic nature of the field-free evolution of the -electron wave packet, the features (2)-(3) exhibits a Rabi-type change of direction during the dynamics. Since the qualitative picture is the same even at all levels of analysis, the very important numerical savings at the crudest level of approximation confer great scalability to the proposed methodology to analyze -electron dynamics in large molecules. Despite this success, one striking difference can be noticed, i.e., the electron migration from the lower hydroxyl group to the neighboring carboxyl group is not fully reproduced with the two larger thresholds (cf. Fig. 4(c) and (d)). This corresponds to a through-space charge transfer and is mediated by a large number of small contributions in the pseudo-CI eigenstate basis. While the major phenomenological characteristics of the correlated electron dynamics are still captured, some minor mechanistic information is lost by reducing the wave functions to their dominant determinant contributions.

To understand the electron dynamics, we extend its analysis to the time-dependent electronic yield. It is defined as the difference between the electron density at a given time and the electron density at , integrated over a given volume,

(25) |

In Fig. 5, the difference densities projected on right and left aromatic ring of alizarin are reported for times after the laser has been switched off. These reveal intricate synchronous fluctuations of electron density between both rings. The slight asymmetry of the electron redistribution correlates with the asymmetric substituents on the two outer rings: the fluctuation amplitudes in the left ring are larger than in the unsubstituted, rightmost aromatic ring. In Fig. 6, the electronic flux density is plotted for selected characteristic points in order to unveil the mechanism of the charge migration between both rings. The times associated with these snapshots are marked as vertical gray lines in Fig. 5. In panel (a), where the electronic yield is largest on the rightmost aromatic ring (24.5 fs), the electronic flux density is seen to rotate clockwise, which will create a temporary local magnetic field. In the next snapshot (panel (b), 25.3 fs), the yields in the left and right aromatic rings are equivalent. The electrons are seen to flow laminarly from the right to left aromatic moieties. Starting from the lowest carbon atom of the right ring, electrons move anticlockwise along the bonds of the right ring, passing by the bottom carbonyl group to bottom hydroxyl group below the left aromatic ring, and back to the central carbonyl unit via a through space mechanism. This is a strong indication of the presence of a hydrogen bond, which will lead to a rapid tautomeric hydrogen transfer. At the third time step (25.9 fs), the electronic yield is maximal in the right ring and the electron flux density rotates clockwise. Contrary to panel (a), the electron flow is not as strongly localized inside the ring, probably due to the asymmetry of the ring substituents. In the last snapshot (26.4 fs), the density migrates back from the leftmost to the rightmost aromatic ring along a different path: the electrons retain a clockwise orientation in the left ring, mostly flowing from the bottom hydroxyl to the top central carbonyl group. A marginal amount flows from the bottom left hydroxy group over the hydrogen bond to the bottom carbonyl group and into rightmost aromatic ring. For the complete picture of the dynamics after the laser excitation, a short film of the charge migration process is made available online in the Supporting Information.

## 5 Conclusions

In this paper, we have introduced a novel procedure to analyze and visualize many-electron dynamics from a hybrid time-dependent density functional theory (TDDFT)/ configuration interaction singles (CIS) formalism. The method resorts to a linear-response TDDFT calculation to generate a basis of pseudo-CI eigenvectors and associated energies, which are then used as a basis to describe an -electron dynamics at the CIS level of theory. The time-dependent CIS wave function retains the simple character of coupled electron-hole pairs, which facilitates its interpretation in terms of configuration states while keeping the size of the basis relatively small. This renders the hybrid method amenable to large systems – in fact, any system that can be tackled and described accurately using linear-response TDDFT.

From the evolution of a TDDFT/CIS wave packet, we showed how it is possible to rationalize the -electron dynamics of a system in terms of transition moments of various one-electron operators. These include difference electronic densities, transient electronic flux density maps, and transition dipole moments, which we have implemented in a Python toolbox for postprocessing multi-determinantal wave function data. This new module of our open-source project ORBKIT creates a library of transition moments of user-specified one-electron operators, which are projected on an arbitrary grid. The required information (molecular orbitals, structure, Gaussian atomic basis, pseudo-CI coefficients) can be directly extracted from the output of various quantum chemistry program packages. These are then used to reconstruct quantities that help understanding the flow of electrons in molecules out of equilibrium.

We first applied the hybrid TDDFT/CIS scheme to a test system, the charge transfer in lithium hydride, in order to benchmark the quality of the ansatz against standard CIS and Full CI reference simulations. The results demonstrated that a good choice of the functional improves mostly the energetic description of the charge transfer state, which can be brought close to the Full CI benchmark. On the other hand, the pseudo-CI basis retains a single excitation character, which is found to be similar to the standard CIS reference. Both ansatz agree semi-quantitatively with the higher level wave function description, with the discrepancies mostly found in the regions of low density.

In a second example, the application to the broadband excitation of a prototypical chromophore for dye-sensitized solar cells demonstrated the scalability of the method and the versatility of the new toolkit. In particular, it was found that the main features of the electron flow mechanism can be recovered using a stringent basis pruning strategy, in which each pseudo-CI eigenstate is represented using only a few dominant configurations. By doing so, marginal features of the many-electron dynamics involving, e.g., electron flow through hydrogen bonds, may be lost. Because of the favorable scaling of the method even at tighter convergence Thresholds, it is expected to be applicable to a large number of medium-sized molecules. This will help to understand electron migration processes in various fields, such as nano electronics and light-harvesting applications.

## 6 Acknowledgment

The authors gratefully thank the Scientific Computing Services Unit of the Zentraleinrichtung für Datenverarbeitung at Freie Universtät Berlin for allocation of computer time, and Hans-Christian Hege for providing the ZIBAmira visualization program. The funding of the Deutsche Forschungsgemeinschaft (project TR1109/2-1) and of the Elsa-Neumann foundation of the Land Berlin are also acknowledged.

## 7 Keywords

Correlated Electron Dynamics, Time-dependent Density Functional Theory, Electronic Flux Density, Electron Density, Electronic Current Density

## References

- [1] M. Dantus, M. J. Rosker, and A. H. Zewail. Real-time femtosecond probing of transition states in chemical reactions. J. Chem. Phys., 87:2395, 1987.
- [2] T. S. Rose, M. J. Rosker, and A. H. Zewail. Femtosecond real-time observation of wave packet oscillations (resonance) in dissociation reactions. J. Chem. Phys., 88:6672, 1988.
- [3] J. A. Sonk, M. Caricato, and H. B. Schlegel. Td-ci simulation of the electronic optical response of molecules in intense fields: Comparison of RPA, CIS, CIS(D), and EOM-CCSD. J. Phys. Chem. A, 115:4678–4690, 2011.
- [4] G. Hermann and J. C. Tremblay. Ultrafast photoelectron migration in dye-sensitized solar cells: influence of the binding mode and many-body interactions. J. Chem. Phys., 145:174704, 2016.
- [5] S. Klinkusch and J. C. Tremblay. Resolution-of-identity stochastic time-dependent configuration interaction for dissipative electron dynamics in strong fields. J. Chem. Phys., 144(18):184108, 2016.
- [6] S. Pirhadi, J. Sunseri, and D. R. Koes. Open source molecular modeling. J. Mol. Graph. Model., 69:127, 2016.
- [7] E. Schrödinger. Quantisierung als Eigenwertproblem. Ann. Phys. (Leipzig), 81:109, 1926.
- [8] J. C. Slater. The theory of complex spectra. Phys. Rev., 34(10):1293, 1929.
- [9] E. U. Condon. The theory of complex spectra. Phys. Rev., 36(7):1121, 1930.
- [10] J. C. Slater. Molecular energy levels and valence bonds. Phys. Rev., 38:1109, Sep 1931.
- [11] G. Hermann, V. Pohl, J. C. Tremblay, B. Paulus, H.-C. Hege, and A. Schild. ORBKIT: A modular python toolbox for cross-platform postprocessing of quantum chemical wavefunction data. J. Comput. Chem., 37(16):1511, 2016.
- [12] Michael W. Schmidt, Kim K. Baldridge, Jerry A. Boatz, Steven T. Elbert, Mark S. Gordon, Jan H. Jensen, Shiro Koseki, Nikita Matsunaga, Kiet A. Nguyen, Shujun Su, Theresa L. Windus, Michel Dupuis, and John A. Montgomery. General atomic and molecular electronic structure system. J. Comput. Chem., 14(11):1347, 1993.
- [13] TURBOMOLE V6.5, a development of University of Karlsruhe and Forschungszentrum Karlsruhe GmbH, 1989-2007, TURBOMOLE GmbH, since 2007, 2013. available via http://www.turbomole.com.
- [14] V. Pohl, G. Hermann, and J. C. Tremblay. An Open-Source Framework for Analyzing -Electron Dynamics: I. Multi-Determinantal Wave Functions. ArXiv e-prints arXiv:1701.06885 [physics.chem-ph], January 2017.
- [15] Ulf Lorenz B. Schmidt. WavePacket 5.2, : A matlab program package for quantum-mechanical wavepacket and density propagation and time-dependent spectroscopy., 2016. Available via http://sourceforge.net/p/wavepacket/matlab.
- [16] J. C. Tremblay, T. Klamroth, and P. Saalfrank. Time-dependent configuration-interaction calculations of laser-driven dynamics in presence of dissipation. J. Chem. Phys., 129(8):084302, 2008.
- [17] J. C. Tremblay and P. Saalfrank. Guided locally-optimal control of quantum dynamics in dissipative environments. Phys. Rev. A, 78:063408:1–9, 2008.
- [18] J. M. Turney, A. C. Simmonett, R. M. Parrish, E. G. Hohenstein, F. A. Evangelista, J. T. Fermann, B. J. Mintz, L. A. Burns, J. J. Wilke, M. L. Abrams, N. J. Russ, M. L. Leininger, C. L. Janssen, E. T. Seidl, W. D. Allen, H. F. Schaefer, R. A. King, E. F. Valeev, C. D. Sherrill, and T. D. Crawford. Psi4: an open-source ab initio electronic structure program. WIREs Comput. Mol. Sci., 2(4):556, 2012.
- [19] J. B. Foresman, M. Head-Gordon, J. A. Pople, and M. J. Frisch. Toward a systematic molecular orbital theory for excited states. J. Phys. Chem., 96(1):135, 1992.
- [20] A. Dreuw, J. L. Weisman, and M. Head-Gordon. Long-range charge-transfer excited states in time-dependent density functional theory require non-local exchange. J. Chem. Phys., 119(6):2943, 2003.
- [21] A. Dreuw and M. Head-Gordon. Single-reference ab initio methods for the calculation of excited states of large molecules. Chem. Rev., 105(11):4009, 2005.
- [22] E. K. U. Gross and W. Kohn. Time-dependent density-functional theory. Adv. Quantum Chem., 21:255, 1990.
- [23] M. E. Casida, C. Jamorski, K. C. Casida, and D. R. Salahub. Molecular excitation energies to high-lying bound states from time-dependent density-functional response theory: Characterization and correction of the time-dependent local density approximation ionization threshold. J. Chem. Phys., 108(11):4439, 1998.
- [24] H. Iikura, T. Tsuneda, T. Yanai, and K. Hirao. A long-range correction scheme for generalized-gradient-approximation exchange functionals. J. Chem. Phys., 115(8):3540, 2001.
- [25] J. Heyd, G. E. Scuseria, and M. Ernzerhof. Hybrid functionals based on a screened coulomb potential. J. Chem. Phys., 118(18):8207, 2003.
- [26] Y. Tawada, T. Tsuneda, S. Yanagisawa, T. Yanai, and K. Hirao. A long-range-corrected time-dependent density functional theory. J. Chem. Phys., 120(18):8425, 2004.
- [27] M. A. Rohrdanz and J. M. Herbert. Simultaneous benchmarking of ground-and excited-state properties with long-range-corrected density functional theory. J. Chem. Phys., 129(3):034107, 2008.
- [28] M. A. Rohrdanz, K. M. Martins, and J. M. Herbert. A long-range-corrected density functional that performs well for both ground-state properties and time-dependent density functional theory excitation energies, including charge-transfer excited states. J. Chem. Phys., 130(5):054112, 2009.
- [29] D. Jacquemin, V. Wathelet, E. A. Perpete, and C. Adamo. Extensive TD-DFT benchmark: singlet-excited states of organic molecules. J. Chem. Theory Comput., 5(9):2420, 2009.
- [30] A. D. Becke. Density-functional exchange-energy approximation with correct asymptotic behavior. Phys. Rev. A, 38(6):3098, 1988.
- [31] A. Schäfer, H. Horn, and R. Ahlrichs. Fully optimized contracted gaussian basis sets for atoms Li to Kr. J. Chem. Phys., 97(4):2571, 1992.
- [32] F. Weigend and R. Ahlrichs. Balanced basis sets of split valence, triple zeta valence and quadruple zeta valence quality for H to Rn: design and assessment of accuracy. Phys. Chem. Chem. Phys., 7(18):3297, 2005.
- [33] W. R. Duncan and O. V. Prezhdo. Electronic structure and spectra of catechol and alizarin in the gas phase and attached to titanium. J. Phys. Chem. B, 109(1):365, 2005.
- [34] R. Sánchez-de Armas, J. Oviedo López, M. A. San-Miguel, J. F. Sanz, P. Ordejón, and M. Pruneda. Real-time TD-DFT simulations in dye sensitized solar cells: the electronic absorption spectrum of alizarin supported on TiO nanoclusters. J. Chem. Theory Comput., 6(9):2856, 2010.
- [35] T. Gomez, G. Hermann, X. Zarate, J. Pérez-Torres, and J. C. Tremblay. Imaging the ultrafast photoelectron transfer process in alizarin-TiO. Molecules, 20(8):13830, Jul 2015.
- [36] R. Huber, J.-E. Moser, M. Grätzel, and J. Wachtveitl. Real-time observation of photoinduced adiabatic electron transfer in strongly coupled dye/semiconductor colloidal systems with a 6 fs time constant. J. Phys. Chem. B, 106(25):6494, 2002.
- [37] L. Dworak, V. V. Matylitsky, and J. Wachtveitl. Ultrafast photoinduced processes in alizarin-sensitized metal oxide mesoporous films. ChemPhysChem, 10(2):384, 2009.
- [38] J. C. Tremblay and T. Carrington Jr. Using preconditioned adaptive step size Runge-Kutta methods for solving the time-dependent Schrödinger equation. J. Chem. Phys., 121(23):11535, 2004.
- [39] J. C. Tremblay, S. Klinkusch, T. Klamroth, and P. Saalfrank. Dissipative many-electron dynamics of ionizing systems. J. Chem. Phys., 134(4):044311, 2011.