
form of diffusion Monte Carlo to solve the ground and excited states of the high-dimensional Schr¨odinger
equation in combination with the neural network, and the automatic constraint of periodic boundary
conditions is realized by adding a layer of trigonometric functions to the network. Li et al.[8] constructs a
multi-output network to represent multiple eigenstates, solves the multi-dimensional harmonic oscillator
problem, proposes an algorithm that obtains multiple states in a single training, and discusses the resource
consumption problem when solving high-dimensional problems. Zhang et al.[9, 10, 11, 12, 13] also made
some explorations on the issue of eigenvalues.
There are some limitations of previous methods, e.g., only low-dimensional cases and a small number
of excited states were solved, degeneracy problems were rarely discussed, and the solution accuracy
obtained was poor. At present, there is still a lack of research on a large number of excited states and
degenerate problems for multi-dimensional complex eigenvalue problems. We use the multi-output neural
network as multiple eigenstate ansatz functions, embed the boundary conditions into the ansatz functions,
calculate the sum of squares of the equation residuals of each energy level on the spatial sampling point,
calculate the orthogonal normalization error and energy uncertainty by Monte Carlo integral, minimize
the weighted sum of these three items by gradient descent, and finally acquire the solution of multiple
energy levels in a single training. At the same time, a method of obtaining multiple states from multiple
training is given. Energy uncertainty has been added to the loss function to improve convergence accuracy.
And we discussed the situations and approaches to degenerate levels in multi-dimensional problems. This
method does not directly adopt the variational Monte Carlo (VMC) method, thus the sampling accuracy
requirements are low, which can further save computing resources. And because the solution occurs at the
zero point of each item, it is possible to solve the excited state without having to consider the weighting
coefficients of each energy level. For simple boundary conditions, we generally use terms that multiply
the solution function to meet the boundary conditions so that the solution function automatically satisfies
the boundary conditions. For complex boundary conditions, points are generally taken at the boundary
according to the idea of supervised learning so that the solution function meets the boundary conditions
at these points. In order to verify the effectiveness of the algorithm, we first solved the problems of
1, 2, 3, 5, and 10 dimensions on the simple system of harmonic oscillators. For the one-, two-, and
five-dimensional harmonic oscillator problems, our energy average absolute error is 0.0070%, 0.0385%,
and 0.0306%, respectively, and the reference [8] energy average absolute error is 0.3850%, 0.5927%, and
1.6598%, respectively. Especially for one-dimensional problems, we got this result after more than 30,000
iterations, and the reference[8] got this result after more than 70,000 iterations. Fewer iterations shows
that our method can achieve higher accuracy convergence with less resource consumption. Subsequently,
we generalized the method to the hydrogen atom problem in Cartesian coordinate system, and successfully
obtained the solution of the lowest five energy levels, which indicates that our method has the ability
to solve singularity-containing potentials, and further shows that our algorithm has the potential to
be extended to calculate the multi-excited states of the Schr¨odinger equation for multi-electron atomic
molecules.
2 Results
We first verify the feasibility of our algorithm in a simple harmonic oscillator system and determine
the numerical ranges of some key hyperparameters. Then it is extended to the actual system like hydrogen
atom and the wave function and energy calculation of the first few energy levels are completed. All the
problems are solved directly by using Cartesian coordinate system. According to the analysis in Section 4,
for any potential field, we need to first determine the form of potential function and boundary conditions,
then set reasonable boundary terms according to the potential field and boundary conditions, and design
reasonable eigenvalue terms according to the possible forms of eigenvalues to speed up the convergence
rate. It is also necessary to select a suitable sampling scheme according to the characteristics of the
potential field. These steps are also illustrated in the following examples.
2.1 Multi-dimensional uncoupled harmonic oscillator potential
We first calculate the classical problem of harmonic oscillator. To make simpler, let m=¯
h=ω= 1,
the harmonic oscillator potential function is V(x) = 1
2PD
i=1 x2
i, the wave function is Ψ( ~
R). It is easy to
know that the term satisfying the boundary condition is Bn(x) = exp(−1
2PD
iνnix2
i). And the real wave
function of D-dimensional harmonic oscillator is ψn=QD
d=1 ψni(xd), the real energy is En=PD
d=1 n+D
2,
where ψnd =NndHnd(xd)exp(−1
2x2
d) is the real wave function of the energy level of the dth dimension,
is Hermitian polynomial, Nnd is the normalization coefficient[14, 15]. We calculate the wave functions
2