2025 Volume 34 Issue 9
Article Contents

Ke Peng, Aihua Liu, Jun Wang, Xi Zhao. 3D-GTDSE: A GPU-based code for solving 3D-TDSE in Cartesian coordinates[J]. Chinese Physics B, 2025, 34(9): 094203. doi: 10.1088/1674-1056/adee00
Citation: Ke Peng, Aihua Liu, Jun Wang, Xi Zhao. 3D-GTDSE: A GPU-based code for solving 3D-TDSE in Cartesian coordinates[J]. Chinese Physics B, 2025, 34(9): 094203. doi: 10.1088/1674-1056/adee00

3D-GTDSE: A GPU-based code for solving 3D-TDSE in Cartesian coordinates

  • Received Date: 24/04/2025
    Accepted Date: 25/06/2025
    Available Online: 01/09/2025
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Figures(12)  /  Tables(3)

Article Metrics

Article views(409) PDF downloads(0) Cited by(0)

Access History

3D-GTDSE: A GPU-based code for solving 3D-TDSE in Cartesian coordinates

Abstract: We present a graphics processing units (GPU) parallelization based three-dimensional time-dependent Schrödinger equation (3D-TDSE) code to simulate the interaction between single-active-electron atom/molecule and arbitrary types of laser pulses with either velocity gauge or length gauge in Cartesian coordinates. Split-operator method combined with fast Fourier transforms (FFT) is used to perform the time evolution. Sample applications in different scenarios, such as stationary state energies, photon ionization spectra, attosecond clocks, and high-order harmonic generation (HHG), are given for the hydrogen atom. Repeatable results can be obtained with the benchmark program PCTDSE, which is a 3D-TDSE Fortran solver parallelized using message passing interface (MPI) library. With the help of GPU acceleration and vectorization strategy, our code running on a single NVIDIA 3090 RTX GPU can achieve about 10 times faster computation speed than PCTDSE running on a 144 Intel Xeon CPU cores server with the same accuracy. In addition, 3D-GTDSE can also be modified slightly to simulate non-adiabatic dynamics involving the coupling of nuclear and electronic wave packets, as well as pure nuclear wave packet dynamics in the presence of strong laser fields within 3 dimensions. Additionally, we have also discussed the limitations and shortcomings of our code in utilizing GPU memory. The 3D-GTDSE code provides an alternative tool for studying the ultrafast nonlinear dynamics under strong laser fields.

1.   Introduction
  • Over the last decades, the development of extreme light sources has allowed experimentalists to probe and control a series of nonlinear dynamics of electrons triggered by strong laser pulses at even attosecond time scales,[1–4] such as photon ionization momentum distribution, high-order harmonic generation (HHG), and photon ionization spectra.[5–12] From a computational perspective, all the information of such dynamics can be retrieved from the wavefunctions upon numerical ab initio solving of the time-dependent Schrödinger equation (TDSE).[13,14] Theoretical discussions of the interaction between target systems and laser pulses can be restricted to the single active electron approximation (SAEA) if multi-electron effects can be neglected or are not of concern.[15–18] However, due to the computational costs required for solving the TDSE growing exponentially with respect to the degrees of freedom, simulating large sizes of even 3D space is still a challenging task. For example, large-scale nano-systems have only been simulated successfully under the Born–Oppenheimer approximation for single active electron problems.[19] Various parallelized schemes for solving the TDSE have been developed to accelerate the computations. The emergence of central processing unit (CPU)-based parallel architectures allowed the development of high performance programming languages (Fortran, Python, or C-like languages) and the successful usage of message passing interface (MPI[20]) and open multi-processing (OpenMP[21]), such as Qprop,[22] QPC-TDSE,[23] SemiGlobalCpp,[24] tRecX,[25] RMT,[26] SCID-TDSE,[27] and MP-CITDSE.[28] Meanwhile, the use of a heterogeneous computational environment, which involves the use of GPUs for higher parallelism with a lower-cost computing system, presents an alternative choice.

    The main advantage of GPU architectures is their large number of physical cores and broadband memory bandwidth. Such advantages make GPUs an attractive architecture to run computationally intensive algorithms, such as solving large-sized TDSEs. The GPU parallelization model has so far appeared with different programming levels such as compute unified device architecture (CUDA[29]), OpenCL,[30] and OpenACC.[31] Based on these programming models, many TDSE solvers have been developed: HeTDSE[32] is an OpenACC based ab initio numerical simulation package to solve the full-dimensional TDSE of helium subjected to a strong laser pulse. The B-spline basis sets are employed to construct the radial part of the wavefunction, while the spherical harmonic function is used to express the angular part. CLTDSE[33] is an OpenCL-based single active electron 3D TDSE solver. Similar to HeTDSE, CLTDSE expands the wavefunction in spherical coordinates, which can easily distinguish the contribution of each quantum state |nlm⟩ to the dynamics, and converges quickly if the photon-induced transition occurs between states with small azimuthal quantum number l. However, when strong infrared (IR) laser pulses are used to excite the system, then large l and corresponding magnetic quantum number m are needed, which slows down the convergence. Additionally, the above codes are restricted to linearly polarized light in the current version.

    Cartesian coordinates, which are favorable for scalability and generality, have the ability to overcome the above restrictions. QnDynCUDA[34] is a CUDA-based TDSE code running on a 2D Cartesian-coordinate space. Some real-time time-dependent density functional theory (RT-TDDFT[35]) programs, such as Octopus[36,37] and QDD,[38] which solve N × 3D Kohn–Sham equations for N-electron systems in 3D Cartesian-coordinate space, also provide a GPU parallelization option.

    Here in this work, we provide a GPU-parallelized TDSE solver, 3D-GTDSE, running on 3D Cartesian coordinates. 3D-GTDSE can simulate the electron dynamics of an SAEA atom or molecule interacting with arbitrary types of laser pulses, with or without the dipole approximation,[39,40] such as HHG, photoionization spectra, attoclock momentum distribution, and photon-induced excitation between bound states. We apply the MATLAB GPU parallelization scheme to accelerate our program, as MATLAB offers the opportunity to accelerate our codes with minimal effort and without extensive knowledge of GPU hardware architectures or CUDA, OpenCL, and OpenACC programming skills. Additionally, MATLAB provides other toolboxes that can further enhance GPU computing efficiency, such as array operations. By leveraging the extensibility and generality of the Cartesian-coordinate system, our code can be easily modified to extend to four-dimensional or higher-dimensional spaces. It can also readily simulate nuclear wave packet molecular dynamics processes or the coupled nuclear–electronic wave packet dynamics under the non-adiabatic approximation.

    In addition, we have also discussed the limitations and shortcomings of our code, particularly regarding GPU memory usage. As is well known, data transfer between GPUs in multi-GPU nodes must go through the PCIe bus, which introduces significant latency compared to multi-CPU parallelism. For algorithms that require extensive data exchange, this results in a noticeable reduction in the efficiency of GPU parallelization. Currently, our code does not implement multi-GPU parallelization for the FFT operations during the time evolution process. Addressing this limitation will be a focus of our future work. As a result, the performance of our code is constrained by the total available GPU memory. However, for tasks that involve relatively low data exchange, such as scanning potential energy curves, our code does offer the option for multi-GPU parallel execution.

    The rest of this paper is organized as follows. In Section 2 we present the theoretical background on 3D-GTDSE. In Section 3, we explain how MATLAB accelerates our code. In Section 4, we exhibit an overview of the package structure. In Section 5, we show several test applications of 3D-GTDSE and compare our results with other codes, especially with another 3D TDSE code PCTDSE[41] which runs on Cartesian coordinates as well. In Section 6, we compare the parallel efficiency of 3D-GTDSE with PCTDSE and give the memory usage of the program under different grid sizes. We present our conclusions in Section 7.

    Atomic units are used throughout unless stated otherwise.

2.   Theory
  • A system wavefunction ψ (r,t) with SAEA evolving with time can be described by TDSE

    where H^(t) is the Hamiltonian operator. Within dipole approximation, the velocity gauge (VG) H^(t) reads

    where p = −i∇ is the canonical momentum operator, V(r) is the Coulomb potential, A(t) is the vector potential, which is associated with the electric field by E(t) = −∂A (t)/∂t. Another formally equivalent choice is the length gauge (LG) Hamiltonian

    Equation (1) has a formal solution expressed by the time-evolution operator

    which connects the wavefunction at any time t and initial time t0. The propagation of wavefunction can be implemented by the split-operator method[42]

    and FFT.[43] Details about the split-operator method and FFT can be found in Ref. [44].

  • The 3D-GTDSE provides the initial state through the imaginary time evolution (ITE) method.[45] The basic idea of ITE is replacing the real time step dt with an imaginary time −i dt in Eq. (5), implementing the time propagation with the laser-free Hamiltonian H^0=p2/2+V(r) from a guessed wavefunction ψguess(r,t = 0). Repeat this evolution till the eigenvalues E=〈ψ(r)|H^0|ψ(r)〉〈ψ(r)|〈ψ(r) of the wavefunctions converge.

  • When numerically solving the TDSE in a fixed-size box, an absorbing function M(r) is needed to avoid the unphysical reflection of the wave function at the boundary. The widely used form is

    Here, r0 to rm is the damping zone. The damped zone has to be far enough away from the nucleus so that the physical system is undisturbed by the absorbing boundary.

  • We can calculate the expectation value of the induced dipole moment ⟨r(t)⟩, dipole velocity 〈r.(t)〉, or dipole acceleration 〈r..(t)〉 to get HHG, both in LG and VG. In VG, we have

    While in LG, the formulas are

    The HHG spectrum is given by

    where σ(t) is ⟨r⟩, 〈r.〉 or 〈r..〉.

  • In order to get the photoelectron momentum distribution (PMD) f(p,tf) at time tf, we gather the wave function absorbed by the boundary at each intermediate time tc:

    where ψflux (r,tc) = (1 − M(r)) ψ (r,tc), ψ˜flux(r,tc) is the Fourier transform of ψflux (r,tc), and e−i∫tctf[p+A(t)]22dt is the Volkov evolution operator.[41]

    The photoelectron spectrum can be obtained from PMD f(p,tf)

  • The 3D-GTDSE can also simulate the interaction between a target and a vector potential without dipole approximation (ND). By making a gauge transformation of the wavefunction from VG ψV (r,t) to LG ψL(r,t):

    Here, F is an undetermined function. In the following, we will rigorously derive the form that F must satisfy. Inserting Eq. (16) into TDSE

    we have

    where

    The first term

    the second term

    then we have

    finally we have

    Function F should satisfy the following equation:

    the solution is

    then F is

    where C is a path from a reference point r0 to the point r.

    Finally we have the ND TDSE in LG

    In the current version, solving ND TDSE can only be done in LG.

3.   Accelerate the calculations by MATLAB
  • MATLAB provides several ways to accelerate code, particularly through GPU computing and optimized array operations. Here is a detailed description of how MATLAB achieves this in this work.

  • MATLAB offers GPU arrays, which are designed to store and process data on a GPU. By simply converting standard MATLAB arrays to GPU arrays using the gpuArray function, we can take advantage of GPU acceleration. A sample which is widely used in our code is as follows:

    When 3D-GTDSE performs operations on the GPU arrays, MATLAB automatically executes these operations on the GPU, taking advantage of GPU’s parallel processing capabilities.

  • MATLAB is optimized for array operations, which can lead to significant performance improvements. By vectorizing code, MATLAB can take advantage of its optimized numerical libraries and multi-threaded computation capabilities, such as vectorization, which involves rewriting loops and iterative operations as array operations. MATLAB is optimized to handle operations on entire arrays at once, which reduces the overhead associated with loop control and takes advantage of low-level optimizations. A sample is given to present how vectorization works in 3D-GTDSE.

    Besides, MATLAB’s core strength lies in its ability to perform matrix operation functions efficiently. Functions like sum (which is widely used in our code) for calculating the sum of array elements are highly optimized. A comparison of the performance of using the sum function versus using a for loop for this task is given, using the sum function:

    then using for loop:

    This example runs on our personal computer and outputs look like this:

    We can find that using the sum function would get about two orders of magnitude faster acceleration. Such improvement will be more evident if a higher-dimensional matrix B(i,j,….) is employed.

  • Combining the above techniques can yield even greater performance improvements. For instance, performing vectorized operations on GPU arrays can harness both the power of MATLAB’s optimized array handling and the parallel processing capabilities of GPUs:

4.   Description of the program
  • The whole 3D-GTDSE program is written in MATLAB and users do not need to install it.

    The flow diagram of 3D-GTDSE can be found in Fig. 1. The main.m file serves to call and run our program. Running 3D-GTDSE needs the following two steps:

    Step 1: Set the path to the source code that needs to be written to the header of the main.m program code via the addpath(’the source code path’) function.

    Step 2: Select one specific subprogram and write down its file name after addpath(’the source code path’). When the selected subprogram runs, the rest is commented out.

    The subprograms are divided into six main categories:

    (1) tise.m is for calculating the ground state wave function.

    (2) hhg_VG_s.m, hhg_VG_d.m are for calculating HHG spectra in the velocity gauge with single and double precision, respectively.

    (3) hhg_LG_s.m, hhg_LG_d.m are for calculating HHG spectra in the length gauge with single and double precision, respectively.

    (4) pmd_s.m, pmd_d.m are for calculating the PMD with single and double precision, respectively.

    (5) ees_s.m, ees_d.m are for calculating the PES with single and double precision, respectively.

    (6) Input.m is used to set up the simulation box, time and space steps as well as the laser parameters. Details are given as follows: x0 and xm represent the minimal position and maximal position in the x-direction, respectively. y0 and ym represent the minimal position and maximal position in the y-direction, respectively. z0 and zm represent the minimal position and maximal position in the z-direction, respectively. Nx, Ny, and Nz represent the numbers of grid points in the x, y, and z directions, respectively. To avoid the Coulomb singularity, ensure that the grid points in each dimension are set to even numbers, or at least maintain an even number of grid points in one dimension. dt is the time step in the evolutionary process. t0 is the starting time of the evolutionary process. tf is the end time of the evolutionary process. The above parameters are all in atomic units. I is the laser field intensity, which is in the units of W/cm2. λ is the wavelength of the laser, which is in the units of nm. Ngpu = 1, 2, … are the GPU indices that users want to call to calculate, if the server contains more than one GPU.

5.   Example
  • In this section, we will give examples of 3D-GTDSE to show the feasibility of the code. All calculations run on NVIDIA GeForce RTX 3090 GPU. All the test examples are prepared in “../3D-GTDSE/test/” subdirectory.

  • In this example, we obtain the ground state of the hydrogen atom using the imaginary time evolution method, as introduced in Subsection 2.2.

    We perform the calculation in a 20 × 20 × 20 simulation box with a grid size of 5123. The time step is set to 0.001. Table 1 shows some of the details of the evolutionary process. Figure 2 illustrates the real-time variation of the ground state energy and neighboring energy differences throughout the imaginary time evolution. We can see that the energy converges at about 4000 steps and achieves a precision of 10−10 after 19897 iteration steps of imaginary time. The machine time spent is about 1.60 h.

    Our method is based on a Cartesian-coordinate system, which may encounter issues with Coulomb singularities during grid discretization. To address this, our code allows for either the use of a soft-core Coulomb potential or skipping the singularities by appropriately choosing the grid points.

    To investigate the impact of the second approach on computational accuracy, we compared two sets of ground-state energy calculations for the hydrogen atom, illustrating the effect of skipping singularities. The two cases correspond to a large box (200×200×200) and a small box (20×20×20), with grid sizes of 511×511×512, 511×512×512, and 5123, respectively.

    For the large box case: The 5123 grid skips all singularities; the converged ground-state energy is −0.4712. The 511×512×512 grid skips two singularities; the result is −0.4777. The 511×511×512 grid skips only one singularity; the result is −0.4937.

    For the small box case: The 5123 grid yields −0.497674. The 511×512×512 grid yields −0.497774. The 511×511×512 grid yields −0.497999.

    These results indicate that skipping singularities can affect the accuracy of the hydrogen atom ground-state energy calculation. However, if the grid only skips the singularity in one direction, the accuracy remains reasonably acceptable.

    Meanwhile, according to Ref. [41], the PCTDSE program running on a 16-core CPU server in parallel takes about 24 h to reach similar results under the same box size, grid size and the iteration steps.

  • In this section, we present HHG calculations for the interaction of a linearly polarized laser with a hydrogen atom. The laser vector potential is chosen to have a sine-squared envelope

    where E0 = 0.0292 corresponds to an intensity of 0.3 × 1014 W/cm2, ω = 0.0569 is the angular frequency, and T1 = 3T with T = 2π/ω being one optical period.

    Due to the limitations of GPU memory size, the calculation is performed using a grid of size 256 × 256 × 1536, covering ±20 a.u. in the x-direction, ±20 a.u. in the y-direction, and ±125 a.u. in the z-direction. The time step for this computation is set to 0.02, and there are 17501 steps in total. The single-precision computation takes 0.59 h, while the double-precision computation takes 1.54 h.

    We perform the HHG calculations following the method in Subsection 2.4. The results are shown in Fig. 3. Figures 3(a), 3(b), and 3(c) display the induced dipole ⟨r(t)⟩, 〈r.(t)〉, and 〈r..(t)〉, respectively. Figures 3(d), 3(e), and 3(f) show the corresponding HHG spectra. The red solid lines represent results from 3D-GTDSE, while the green and blue dashed lines are from Han et al.[46] and the PCTDSE code, respectively. These figures demonstrate that 3D-GTDSE achieves the same HHG results as the other two codes, confirming the validity of our code.

    Furthermore, we compare the high harmonic generation in the velocity gauge with that in the length gauge, as shown in Fig. 4. We find that the length gauge (LG) and the velocity gauge (VG) provide the same results for ⟨r(t)⟩, 〈r.(t)〉, and 〈r..(t)〉, leading to spectra in the three forms that exhibit very similar shapes. This is because the laser intensity is much lower than the threshold for over-the-barrier ionization (Ib = 1.4 × 1014 W/cm2), as investigated in Ref. [46].

  • In this example, we perform simulations of the PMD as well as the offset angles for a hydrogen atom interacting with circularly polarized pulses. The simulation parameters are the same as those used in Refs. [41,47]. The vector potential has the form

    with the laser’s duration nearly single-cycle and central wavelength λ = 800 nm. The peak intensity is 0.8 × 1014 W/cm2.

    The results from 3D-GTDSE and PCTDSE can be found in Figs. 5(a) and 5(b), respectively. The two PMDs match well with each other.

    The so-called offset angle can be calculated from the average electron momentum distribution in the polarization plane[41,47]

    By modifying the peak laser intensities and performing the same calculations, we obtain the offset angle θ as a function of the laser intensity in Fig. 6. Comparing the results with PCTDSE[41] and L. Torlina et al.,[47] we see that the three curves are essentially the same overall.

    The 3D-GTDSE calculations are made using an asymmetric grid of size 511 × 511 × 512, covering a box size of ±100 in each dimension. The time step is 0.02 and there are 18,001 time steps in total. The single precision computation takes 1.20 h for each offset angle calculation, while the double precision computation takes 3.76 h.

  • In this example, we calculate the photoelectron spectrum after the interaction between strong infrared laser pulses and hydrogen atoms. The vector potential of a 10-cycle laser pulse with sin2 envelope is employed in this subsection:

    Three cases with different peak intensities 4 × 1014 W/cm2 (E0 = 0.1066), 6 × 1014 W/cm2 (E0 = 0.1308) and 1 × 1015 W/cm2 (E0 = 0.1688) are tested. The wavelength is 800 nm (ω = 0.057 a.u.).

    Figures 7(a)–7(c) show our results for the three peak intensities, each of which gives a comparison with the result from Ref. [48] and PCTDSE.[41] The grid size is 675 × 675 × 676 and the box covers ±160 in each dimension. The time step for this calculation is set to 0.02 and there are 75001 steps in total, the single precision computation takes 7.10 h.

  • Here in this subsection, we provide some extended function examples in 3D-GTDSE, such as solving ND TDSE, nuclear-electron coupled TDSE, and 4-dimensional (4D) TISE.

  • The non-dipole approximation is essential for capturing the full range of physical phenomena that occur when a strong laser interacts with a target, particularly under conditions of high intensity, short wavelength, and complex target structure. These simulations with the non-dipole approximation allow more accurate and comprehensive predictions of experimental outcomes and a deeper understanding of the underlying physics.

    We present an example of solving the ND TDSE in Eq. (30) to calculate HHG in Fig. 8. The space-dependent electric field component of the laser takes the form

    where E0 = 0.0292 corresponds to an intensity of 0.3 × 1014 W/cm2, and ω = 0.0207 is the angular frequency. The path integral of the space-position-dependent electric field is performed as follows (we choose the path from (0, 0, zm) to (x, y, z)):

  • Accurate simulation of electron–nuclear coupled dynamics under a strong laser field allows for a more comprehensive understanding of processes such as multiphoton ionization and excitation, ultrafast bond-breaking dynamics, re-collision processes, and HHG in non-adiabatic conditions where the separation of electron and nuclear timescales is invalid.

    In this example, we simulated the HHG process from the interaction between a hydrogen molecular ion (H2+) and an ultrashort, ultra-intense infrared laser field within the center-of-mass coordinate system. The modulation from 3D electron code to 2D (electron) + 1D (nuclei) is straightforward and can be found in the “../3D-GTDSE/Extended code/TDSE_H2+/” folder. The Hamiltonian is given by

    Here, q1 and q2 represent the electric charges of the two atomic nuclei, while M1 and M2 denote their respective masses. The reduced mass of the nuclei is μN = M1M2/(M1 + M2), and the reduced mass of the electrons is also μe = m(M1 + M2)/(M1 + M2 + m). The HHG spectrum is given by

    We use a trapezoidal envelope 10-cycle laser field in the form

    where

    E0 = 0.098 corresponds to an intensity of 3.4 × 1014 W/cm2, and ω = 0.057.

    Figure 9 shows the results for the electric field perpendicular and parallel to the nuclear vibration direction. We observe that the HHG signals in the parallel case are stronger than those in the perpendicular case, which is consistent with the electron density distribution of H2+.

    The 3D-GTDSE can also be modified to 1D (electron) + 2D (nuclei) or pure 3D nuclei code with little effort. These modifications can be left as an exercise for the user to complete on their own.

  • As illustrated in Refs. [34,41], one advantage of the Cartesian-coordinates based codes is that it easily allows the codes to be extended to higher degrees of freedom. In this example, we extended our 3D electron code to a 3D (electron) + 1D (nuclei) case. The Hamiltonian in the absence of a laser field is given by

    Due to the GPU memory limitations (24G in total) we are using, we can only provide an example of solving the TISE for H2+. As GPU memory capacity increases, we believe that the memory limitations will become less significant.

    This simulation is performed on a grid of size 256 × 256 × 256 × 64, covering ±10 × ±10 × ±10 × (0 ∼ 5] in x, y, z and R axes, respectively. We obtain the energy of the ground state of H2+ as Emin = −0.5819, and the average spacing of the nuclear vibrations as R = 2.1241. Our results consist well with those from Refs. [49,50].

  • Our code can achieve multi-GPU parallelization for computations that do not require large-scale data exchange, such as photoionization streaking camera simulations. Here, we present an example of multi-GPU parallelization: the calculation of the potential energy surface of the H2+ molecular ion. The field-free Hamiltonian is given by

    We compute various electronic states at different internuclear distances under the Born–Oppenheimer approximation. (Due to the use of Cartesian coordinates in our calculations, the orthogonality of electronic wave functions may cause state swapping during the computation of electronic states, requiring manual correction.) The example presents the calculation of the potential energy curve for the hydrogen molecular ion as shown in Fig. 10.

6.   Parallel scaling
  • In this section, we provide a comparison of HHG results between double precision and single precision calculations. An estimate of memory usage for different grid sizes is also provided. Finally, we compare the efficiency of the 3D-GTDSE and PCTDSE programs.

  • Here, we discuss single and double precision calculations. We find that the precision choice would strongly influence the GPU parallel scaling (about 5–6 times), while for CPU calculations, it only has an influence of about 30%–40% (since CPU parallel scaling is not concerned with this work, we do not show the CPU results, but such CPU calculations can be performed by the readers easily). Through many experimental simulations, we find that the results of single-precision calculation and double-precision calculation are basically the same as shown in Fig. 11, which gives the comparison of high harmonic generation between single-precision and double-precision calculations.

    Besides, due to the limitation of the GPU memory size, calculations running with single-precision in large grid size spaces are an alternative choice, which will be shown in the next subsection.

  • In this subsection, we give the GPU memory usages of imaginary time evolution and time-dependent evolution in 3D space.

    From Tables 2 and 3, it can be seen that for a 3090 GPU with 24 GB of memory, the maximum box size for single-precision calculations is 7003. For double-precision calculations, the maximum box size for imaginary time evolution is 6003, and for real-time evolution, the maximum is 5123. If users require a larger box size, they can use a GPU with more memory for their calculations.

    From this subsection and the comparison between single precision and double precision calculations, it is evident that using single precision, when accuracy requirements are met, significantly reduces the GPU memory usage.

  • Our 3D-GTDSE runs on a single NVIDIA RTX3090 GPU under both double and single precisions. PCTDSE calculations were carried out on the Tianhe-2 supercomputer system at the National University of Defense Technology (NUDT) with Intel Xeon 24, 48, 72, 112, 144 CPU cores respectively in Ref. [41] and the calculation times of PCTDSE are copied from Ref. [41] directly.

    The comparison is given in Fig. 12. We can find that for double precision calculation, 3D-GTDSE is about two times faster than PCTDSE running on 144 CPU cores, while for single precision calculation, 3D-GTDSE is about one order faster. The results indicate that 3D-GTDSE has a good parallel scaling and efficiency.

7.   Conclusions
  • In this work, we present a 3D TDSE solver in Cartesian coordinates accelerated with GPU and vectorization. The program is described in detail, and test examples of HHG, PES, PMD, as well as attoclock offset angles, are provided. Our showcases indicate that 3D-GTDSE is an efficient, easily expandable, and user-friendly tool for studying ultrafast nonlinear dynamics under strong laser fields.

    We find that GPU memory limits the program’s usage. Looking ahead, in the next version of the program, we will focus on developing multi-GPU parallel algorithms to distribute the total computational memory across multiple GPUs. Additionally, we will investigate ways to accelerate data transfer speeds between different GPUs.

Program availability
  • The source code is openly available in the Science Data Bank at https://doi.org/10.57760/sciencedb.27107.

Figure (12)  Table (3) Reference (50)

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return