Abstract
The numerical simulation of quantum systems with non-trivial topology typically requires specialized coordinate charts or symplectic integrators. Physics-Informed Neural Networks (PINNs) offer a mesh-free alternative, but standard implementations struggle with periodic boundary conditions. We present a robust PINN architecture for the Quantum Pendulum (a particle on ) that enforces strict periodicity via a Trigonometric Coordinate Embedding layer. This “Hard Constraint” approach eliminates the need for unstable boundary penalty terms. We successfully reconstruct the unitary evolution of the Mathieu ground state under a non-linear cosine potential, achieving a norm conservation and initial condition error of . The method captures subtle quantum phenomena, including macroscopic tunneling tails and phase space delocalization. Validation is performed against the exact analytical solution via Mathieu functions. This work bridges the gap between modern Scientific Machine Learning and canonical quantum mechanics, serving as a tutorial on embedding topological constraints into neural solvers.
Keywords:
Physics-Informed Neural Networks; Quantum Pendulum; Topological Constraints; Schrödinger Equation; Scientific Machine Learning
Resumo
A simulação numérica de sistemas quânticos com topologia não trivial tipicamente requer cartas de coordenadas especializadas ou integradores simpléticos. Redes Neurais Informadas por Física (Physics-Informed Neural Networks - PINNs) oferecem uma alternativa livre de malhas, mas implementações padrão enfrentam dificuldades com condições de contorno periódicas. Apresentamos uma arquitetura robusta de PINN para o Pêndulo Quântico (uma partícula em ) que impõe periodicidade estrita via uma camada de Embedding de Coordenadas Trigonométricas. Esta abordagem de “Restrição Rígida” (Hard Constraint) elimina a necessidade de termos de penalidade de contorno instáveis. Reconstruímos com sucesso a evolução unitária do estado fundamental de Mathieu sob um potencial cosseno não linear, alcançando uma conservação de norma e erro na condição inicial de . O método captura fenômenos quânticos sutis, incluindo caudas de tunelamento macroscópico e deslocalização no espaço de fase. A validação é realizada contra a solução analítica via funções de Mathieu. Este trabalho preenche a lacuna entre o moderno Aprendizado de Máquina Científico e a mecânica quântica canônica, servindo como um tutorial sobre a incorporação de restrições topológicas em solvers neurais.
Palavras-chave:
Redes Neurais Informadas por Física; Pêndulo Quântico; Restrições Topológicas; Equação de Schrödinger; Aprendizado de Máquina em Física
1. Introduction
The computational resolution of the Schrödinger equation stands as a pillar of modern physics. Since the pioneering work of Lagaris et al. (1998) [1], who first proposed utilizing neural networks to solve differential equations, the field has evolved drastically. Recently, Carleo and Troyer [2] initiated the “Quantum Machine Learning” revolution by introducing Neural Quantum States (NQS), demonstrating that neural networks can efficiently represent the exponentially complex wavefunctions of many-body systems.
However, a terminological dichotomy persists. The majority of Machine Learning (ML) applications in physics remain Data-Driven: they require vast datasets generated by classical solvers (such as Crank-Nicolson or Finite Elements) to train a surrogate model [3]. This reliance on external data is frequently expensive and epistemologically circular: one must solve the problem numerically to subsequently teach the network to mimic it.
For the reader originating from the physical sciences, it is useful to define that a neural network is, essentially, a universal function approximator comprised of layers of interconnected neurons. Each neuron processes inputs via linear transformations (weights and biases) followed by non-linear activation functions. Learning occurs via iterative optimization of these parameters to minimize a loss function, typically employing gradient-based algorithms such as backpropagation.
Within this landscape, the paradigm of Scientific Machine Learning (ScML) emerges, whose primary tool is the Physics-Informed Neural Network (PINN), formalized by Raissi et al. [4]. Unlike purely statistical models, PINNs are evaluated not merely against labeled data, but in strict compliance with the laws of physics. This is achieved by embedding the local residuals of the governing partial differential equation (PDE) directly as penalty terms within the global loss function. Consequently, the network learns the PDE solution by minimizing the structural error of the system’s own physics [5]. While NQS rely on Variational Monte Carlo focusing strictly on the many-body wavefunction ansatz [2], PINNs aim to approximate the continuous spatiotemporal solution of classical and quantum PDEs, intentionally avoiding the use of discrete grids or prior global label generation.
Nevertheless, PINN applications have dominantly succeeded in topologically trivial domains (such as the Harmonic Oscillator in [6]). Systems defined on compact manifolds, such as the Quantum Pendulum on the circle, pose a rigorous periodic constraint problem. The standard practice of adding “Soft Constraints”, i.e., boundary condition (BC) penalty terms appended to the loss function, frequently presents numerical instabilities, since the network may satisfy local physics without respecting the global topology of the unfolded space [7, 8].
In this work, we present a didactic tutorial on the implementation of PINNs for the Quantum Pendulum, confronting the topological challenge via the Periodic Embedding method proposed by Dong and Ni [8]. This “Hard Constraint” approach treats the coordinates not as points on a line bounded by artificial borders, but as an manifold immersed in . The overarching system serves as an ideal laboratory to explore Macroscopic Quantum Tunneling (MQT) [9] and unitary evolution under non-linear potentials. We aim to deliver accessible yet rigorous material for those entering topological ScML. To ensure reproducibility, the complete source code is openly available in a public repository: https://github.com/jjcarlosb-hue/quantum-pendulum-pinn.
The remainder of this article is organized as follows: Section 2 details the physical framework of the quantum pendulum, the quantization process on the circle, and the proposed topological Embedding architecture. Section 3 presents the training results, evaluating energy and norm conservation, as well as benchmarking the neural prediction against the analytical solution via Mathieu functions. Finally, Section 4 articulates the current advantages and limitations of the method concerning applications in quantum circuits and superconducting qubits. A comparative summary of these paradigms is presented in Table 1.
Comparison of machine learning approaches for quantum wavefunctions. Our work focuses on the PINN class targeting closed spatial domains () with rigid topological enforcement via Embedding, eliminating iterative penalizations (Soft Constraints).
2. Methodology
2.1. Physical modeling: from the classical to the quantum pendulum
The planar pendulum is a prototypical system in both classical and quantum mechanics, representing a particle of mass constrained to move on a circle of radius in a uniform gravitational field . In the classical regime, its instantaneous state is fully specified by the angular displacement and the angular velocity . Following standard Lagrangian formulation [10], the kinetic energy and the potential energy are:
The dynamics are governed by the Lagrangian . The canonical momentum , which in this rotational geometry corresponds to the orbital angular momentum along the axis of rotation, is defined as:
where is the pendulum’s moment of inertia. The classical Hamiltonian, , represents the total energy of the conservative system:
2.1.1. Canonical quantization on the circle
Transitioning to the quantum regime necessitates the canonical quantization procedure [11]. The classical displacement and momentum are promoted to Hermitian operators and acting upon a Hilbert space of wavefunctions . Here, Js is the reduced Planck constant, which quantizes fundamental action. Owing to the periodic topology of the circle, the fundamental commutation relation requires additional care regarding the global angular momentum, being expressed via the single-valued operator [12]:
In the position representation, the angular momentum operator is denoted as . A critical feature of the pendulum is its configuration space: the circle. For the wavefunction to be physically acceptable and single-valued under a full rotation, it must satisfy the cyclic boundary condition:
As highlighted by Griffiths [13], this topological restriction leads to the quantization of the eigenvalues as (), mirroring the quantization of angular momentum in atomic systems. (Adopting the convention expressed by Carruthers and Nieto [12], the negative sign naturally arises from the action of on the angular eigenstates.) The dynamics are subsequently governed by the Time-Dependent Schrödinger Equation (TDSE):
2.1.2. Nondimensional symmetrization andMathieu correspondence
For numerical implementation and better generalization across physical scales, we adopt a dimensionless form by scaling variables such that and expressing energies in units of the inertial energy scale . Setting , the TDSE simplifies to:
where is the dimensionless potential strength.
2.1.3. Real-imaginary decomposition for neural implementation
Because standard neural network architectures naturally operate on real-valued fields, the complex wavefunction must be decomposed into its real and imaginary components. Operating on the dimensionless TDSE and separating the components yields a coupled system of real-valued PDEs:
This decomposition forms the very structure directly implemented into the PINN loss function: the network generates dual channels , and the physical residual is computed as the norm of (Equations 8)–(9) evaluated at collocation points. The Hermiticity of the Hamiltonian operator ensures that this coupled system preserves the norm under exact evolution, providing an intrinsic consistency check for the learned representation.
The stationary states (eigenstates) abide by the Time-Independent Schrödinger Equation (TISE):
Applying the variable substitution into the TISE and rearranging the terms reduces this equation directly to the canonical form of the Mathieu Equation [14]:
where the Mathieu parameters map exactly to the physical constants as and . The periodicity requirement on translates into a periodic boundary on , restricting the allowable solutions to the so-called Mathieu functions: the cosine-elliptic and sine-elliptic functions, which act as the trigonometric analogs for non-linear periodic potentials. In this paper, we focus on the ground state, described by the even function , whose eigenvalue is obtained numerically via scipy.special.mathieu_a. This mathematical object provides an exact analytic benchmark and serves as the initial condition for the PINN. The potential profile and the initial probability distribution are displayed in Figure 1.
Dimensionless cosine potential with . Horizontal axis: angular displacement (radians); vertical axis: energy (units of ). The solid curve (blue) illustrates the potential landscape; the filled region (orange) represents the initial probability distribution of the Mathieu ground state, centered at . The dashed horizontal line (red) indicates the classical barrier threshold , above which exponential penetration (quantum tunneling) occurs.
2.1.4. Topological quantization and the operator domain
Analytically, the Hilbert space is formulated upon the quotient space . The self-adjointness of the momentum operator explicitly demands that the domain be restricted to strictly periodic functions:
In standard Deep Learning empirical frameworks (Soft Constraints), this boundary condition is circumvented utilizing an iterative boundary penalty term . However, as observed in recent architecture assessments, the topological gradient vanishes almost everywhere except precisely at the boundary , precipitating the “vanishing gradient on manifolds” pathology [8].
By immersing the coordinate into the unit circle via , we construct a composite map . The chain rule assures strict periodicity by construction:
This operation effectively roots the neural network onto the intrinsic manifold , eschewing the need for Lagrange multipliers or penalty terms and guaranteeing that the solution remains strictly bound within .
2.2. The topological embedding(hard constraints)
We circumvent this pathology by establishing an isometric embedding of the compact Riemannian manifold directly into the ambient Euclidean space via the smooth mapping , quantified as . This embedding inherently preserves the intrinsic metric of , ensuring the periodic constraint is fulfilled by the explicit topology of the domain rather than by extrinsic loss penalties. The input tensor injected into the network is therefore:
Differentiability of the neural ansatz is perpetually upheld by the chain rule. For the target embedding , the spatial derivative of the network’s final output concerning the raw physical coordinate is:
This mechanism entitles the network to learn within the immersed sub-space while autonomously maintaining periodic boundary conditions alongside smooth differentiability throughout the boundary cut.
Essentially, this geometric mapping perceives the pendulum not as a linear localized particle bounded by walls, but as an invariant point navigating the unit circle enclosed within 2D Euclidean space. The neural network effectively acts as a function . Considering that and , opposing frontiers become algebraically identical. Furthermore, spatial derivatives remain reliably sound due to the -continuity characterizing the mapping across . The resulting embodies periodic and continuous traits securely by construction, fulfilling manifold requirements immune to unstable penalties [8].
2.3. The topological neural network
As architecturally modeled in the visual schematic of Figure 2, the proposed routing apparatus processes independent scalar tensors for both time and angular space . Nonetheless, to shield the system against -discontinuity across cyclic transitions , spatial coordinates are fundamentally transformed preceding the Multilayer Perceptron (MLP) within the Hard Constraint block (Figure 3). The mathematical protocol successfully folds 1D topology onto the sphere.
Proposed PINN architecture designated for the Quantum Pendulum scenario. Coordinate boundary is rigidly mapped to manifold utilizing . This distinct Hard Constraint protocol mechanically assures by design, subverting gradient pathology instabilities originally discovered by Dong & Ni (2021) [8].
Detailed schematic representing the Trigonometric Coordinate Embedding layer. The angular scalar translates explicitly onto metric positions alongside , forcing unbroken topological continuity leading into the interconnected hidden networks.
Following the geometric manifold embedding, multivariate inputs flush through the fully-connected MLP outfitted with hyperbolic tangent activation functions. Crucially, given the intrinsically complex nature of solutions to the Schrödinger equation, predictions mandate dual-channel representation. Thus, the terminal dense projection partitions outputs strictly into real scalars and . These parameters linearly recombine under the algebraic identity , supplying the required wavefunction configuration necessary for measuring the physical loss residual .
To empirically validate this proposition, we formulated a head-to-head convergence assessment pitting the Hard Constraint network (lacking boundary penalization entirely) against an identical Soft constraint baseline framework (mandating strong penalties). The models were concurrently trained employing internal collocation points under a regimen of L-BFGS epochs. As evident within Figure 4, implementing rigid embeddings extinguishes recurrent instability spikes completely, securing a cumulative loss metric lower than standard Soft paradigms ( contrasted against ).
Convergence efficiency comparison: Soft Constraints (empirical boundary penalty, denoted in red) vs. Hard Constraints (topological trigonometric immersion, denoted in blue). While the Soft framework experiences cyclic instabilities plus elevated final residual floors, our rigidly formulated PINN decays symmetrically while yielding a definitive mathematical loss advantage.
2.4. Optimization landscape
The network minimizes the composite loss function , defined explicitly by the weighted sum of the physical residual () and the initial condition penalty ():
where the terms are expressed individually as summations over the sampled collocation points:
Here, is the dimensionless Hamiltonian operator, is the number of spatiotemporal collocation points distributed in the domain , is the number of spatial points for the initial condition at , and is the empirical regularization weight. Note that no boundary penalty term is included in the loss, as periodicity is rigidly guaranteed by the embedding. We employ a two-stage training strategy:
-
Global Search (Adam): 10,000 epochs with a learning rate of to explore the rugged loss landscape.
-
Fine-Tuning (L-BFGS): A quasi-Newton method to refine the solution with high precision ().
The convergence history under this hybrid regime is presented in Figure 4(b). We emphasize that using to weight the initial condition proved crucial to ensure the wavepacket tracks the initial state at before the L-BFGS phase begins.
For reproducibility, the specific hyperparameters used in this study are detailed in Table 2.
3. Results and Discussion
The system is initialized in the Mathieu ground state. The evolution is shown in Figure 5. Unlike the Harmonic Oscillator, where the ground state is trivial, the cosine potential induces nonlinear dispersion. We validate the network against the exact analytical solution derived from the Mathieu functions [14], rather than a discrete numerical integration, ensuring the highest benchmark rigor. The topological consistency of the solution on the cylindrical manifold is visually confirmed in Figure 6, where the seamless continuity at the periodic boundary validates the hard-constraint embedding.
Spatiotemporal evolution of the probability density . The left panel shows the analytical Mathieu baseline, and the right panel displays the neural prediction in the non-linear regime. As the system is initialized in the Mathieu ground state, the exact solution must be a stationary state: . The minor width modulations visible in the solver output are residual coherence fluctuations, acting as a thermometer for strict phase conservation in the PINN simulation.
Visualization of topological evolution on . The continuous cylindrical surface confirms that the neural solution satisfies and its derivatives continuously, validating the hard-constraint trigonometric embedding without requiring boundary penalty terms.
3.1. Quantum coherence and tunneling
To confirm the presence of tunneling, we perform a logarithmic scale analysis (Figure 7). A pedagogical detail that frequently confuses students of quantum mechanics is the possibility of the local probability density assuming values strictly greater than (as observed in the central region of our plots). As dictated by quantum formalism, the normalization condition requires the integral over the configuration space to be unitary (). Since the domain has an arc length of , the mean uniform density is . Consequently, for states strongly localized like the Mathieu ground state at the bottom of the well, the local density at the central peak reaches values near , compensated by the decay in forbidden regions. The physical limit of probability being less than or equal to applies to the integrated probability over a subinterval, not to the local density, which can be arbitrarily high (e.g., a Dirac delta distribution). The exponential tails in the classically forbidden region are the signature of macroscopic quantum tunneling: the linear decay of corresponds to the penetration depth , a direct manifestation of the WKB regime where the wavefunction “leaks” through the potential barrier. A standard linear plot would dismiss these signatures as noise.
Logarithmic scale analysis of the wavefunction. The overlay represents the theoretical WKB decay , confirming the PINN captures the semiclassical attenuation in the forbidden region without explicit boundary enforcement. The linear regression provides the decay rate against the approximate .
To quantitatively validate the tunneling tails, we compared the decay rate of the PINN solution with the theoretical WKB penetration coefficient. In the classically forbidden region (, where is the classical turning point), the WKB approximation predicts an exponential decay with a characteristic penetration depth:
For the parameters of this study (, ), the theoretical value is . Performing a linear regression of in the classically forbidden region (), we extracted the characteristic penetration depth predicted by the network as . The relative discrepancy compared to theory is , an acceptable qualitative agreement that validates the PINN’s capability to resolve evanescent wavefunction tails without explicit boundary imposition at the barrier. (It should be noted that the metric obtained above constitutes a rough approximation assuming constant in the barrier. The exact WKB integral over the variable potential would justify the residual discrepancy observed).
To locally quantify the solver’s accuracy, we analyze the spatiotemporal absolute error distribution presented in panel (c) of Figure 5. As observed, the absolute error presents a local maximum located at the origin at . This behavior is physically coherent with the system’s initialization in the Mathieu ground state, which is strongly concentrated at the bottom of the well. Small network deviations in imposing the initial condition result in slightly larger absolute residuals exactly where the density is maximal. As the evolution proceeds, the error diffuses, exhibiting low-amplitude fluctuations concentrated along the central channel and near the potential walls (), remaining strictly below the upper bound of throughout the integration domain.
3.2. Probability current residual diagnostics
Beyond density profiles, the dynamics on can be evaluated by mapping the probability current , which describes the spatial flow of probability. Figure 8 presents a spatiotemporal map of . For the stationary ground state modeled here, the theoretical probability current is identically zero (), as stationary states carry no net flux. The alternating flow patterns observed in the PINN output therefore constitute numerical phase artifacts, originating from the imperfect cancellation of spatial gradients. The strictly bounded magnitude of these residual currents () serves as a rigorous diagnostic of the network’s phase coherence.
Spatiotemporal map of the residual probability current . As the physical expectation for the stationary state is , the bounded fluctuations () diagnose the network’s phase coherence and its temporal cancellation capabilities.
3.3. Physical consistency checks
PINNs are not symplectic integrators; they do not conserve invariants by construction. We must therefore verify them a posteriori.
It is worth noting that no explicit penalty term for norm conservation (e.g., ) was added to the loss function. The observed stability of the norm () is an empirical consequence of minimizing the residual of the Hermitian Hamiltonian. This suggests that the “Hard Constraint” embedding not only regularizes the spatial topology but also stabilizes the unitary evolution, a property frequently requiring symplectic integrators in classical schemes.
Quantitative results are summarized in Table 3.
The temporal audit presented in Figure 9 attests that both conservation laws are maintained with extreme precision by the network. It is important to highlight that no explicit penalty for norm conservation was added to the cost function. Because the temporal evolution equations of quantum mechanics are governed by a self-adjoint (Hermitian) Hamiltonian operator, unitarity and total energy conservation are intrinsic mathematical properties of the differential equation. The numerical stability observed for the norm (, panel a) and total energy (, panel b) emerges naturally from minimizing the Schrödinger equation residual under the rigid periodicity constraint, confirming the PINN captures the unitary symmetry of the quantum propagator without ad-hoc additives.
Temporal audit of the PINN solver’s physical conservation laws. (a) Conservation of the wavefunction probability norm. The stability around 1.0 attests to the learned implicit unitarity. (b) Conservation of the Hamiltonian expectation value (total energy) of the pendulum , confirming the dynamics are conservative.
3.4. Phase space analysis
Finally, the Ehrenfest dynamics (Figure 10) and the Momentum space (Figure 11) show the complementarity of the system. As position uncertainty grows (delocalization), the momentum distribution must also evolve to satisfy the Heisenberg Uncertainty Principle for a particle on a circle. The residual drift in the expectation values and is further visualized in the pseudo-empirical phase portrait (Figure 12), where the confined limit cycle confirms the numerical stability of the Hard Constraint solver.
Stationary State Verification. Left panels: Time series of and showing tracking against the exact analytical baseline (where expectations are rigorously constant). Right panels: Numerical absolute error, revealing the PINN maintains the deviation bound below throughout the computational cycle.
Momentum space analysis. The spectral content of the wavefunction evolves, maintaining the phase space volume.
Bounding residual drift in the pseudo-empirical Phase Space . For an exact ground state, this diagram should constitute a singular point at the origin . The observed elliptical loop is a numerical limit cycle (an artifact of the continuous PINN gradient minimization) rather than an equivalent macroscopic quantum orbit.
3.5. Spatiotemporal convergence andspectral bias
To demonstrate global physical commitment, the evolution of the Heisenberg Uncertainty Principle was mapped for the closed domain. On the circle , conventional Euclidean variance is physically flawed due to polar discontinuity, requiring the rigor of the Holevo Variance defined as . The uncertainty product of our network (Figure 13) attests that the imposed constraint captures not only primary quantities but regulates the Holevo metric throughout the solver, avoiding the undue statistical deflation present in non-physical partial sub-solutions.
Heisenberg Uncertainty Audit. The use of the Holevo variance product () shows the solution physically maintaining distance from the quantum limit (0.5) in empirical fluctuations, unlike the simplistic and inadequate use of the Euclidean proxy () on .
Furthermore, we analyzed the Spectral Bias by taking the Fast Fourier Transform (FFT) of the Schrödinger residual (Figure 14). The residual spectrum decays exponentially at higher frequencies, confirming the network accurately captured the fine-scale details of the dynamics and is not suffering from high-frequency noise typical of poorly converged mesh methods.
Spectral Bias Audit via FFT of the Schrödinger residual. Left panel: spatiotemporal distribution of the residual. Right panel: mean frequency spectrum. The absence of high-frequency noise peaks indicates a smooth, well-converged approximation of the wavefunction.
The norm drift observed beyond the training horizon (, Figure 15) is an expected consequence of uniform temporal allocation. In our formulation, the physical loss is evaluated uniformly across all collocation points in the interval , effectively treating temporal evolution as a spatial regression problem. Because the network minimizes a global residual surface rather than advancing sequentially like explicit solvers, initial spatial errors inevitably diffuse to later epochs, fueling cumulative norm degradation at . Although advanced formulations like Causal Training [15] have been proposed to enforce sequential adaptive weighting, the extrapolation error bounded at observed in our results (without such adaptive interventions) constitutes a robust baseline against which future causally-aware implementations can be compared.
Long-Term Stability Audit. The norm conservation metric is tracked beyond the training horizon (). The error remains bounded within a 5% margin for extrapolation, evidencing that the topological embedding regularizes the solution against overfitting.
The pseudo-orbital geometric constriction plotted in Figure 12 provides visual confirmation of latent numerical stability. As a stationary state, the Hamiltonian formalism predicts strict coordination resting at the origin . Thus, it is assertively outlined that the plotted curve isolates numerical noise under the manifest appearance of a loop. However, this finding is positive: a soft constraint would spiral infinitely, whereas the Hard Embedding-based PINN ties these errors into a confined limit cycle, preventing artificial macroscopic escape from expected values under long sampling.
3.6. Generalization out of equilibrium:displaced Gaussian wavepacket
As a test of methodological robustness requested in peer review, we evaluate the PINN solver under a dynamic, out-of-equilibrium initial condition represented by a displaced Gaussian wavepacket:
where the initial wavepacket center is defined at and the width is . This non-stationary state exhibits complex oscillatory (breathing) and dispersion dynamics in the cosine potential well, colliding with and reflecting off the potential walls. We train the Hard-Constrained PINN under the same hyperparameters as before and validate the results against a high-fidelity numerical simulation obtained using the Split-Step Fourier Method (SSFM) as the ground truth.
Due to the asymptotic nature of the Gaussian wavepacket, it does not satisfy strict periodicity at the topological boundaries (). However, for , the boundary tails are of order , making this approximation numerically acceptable for the out-of-equilibrium study in question.
The results are compiled in Figure 16. The probability density heatmaps of the exact solution (panel a) and the PINN prediction (panel b) show perfect visual agreement. The spatiotemporal local absolute error (panel c) remains strictly confined below throughout the integration interval. For a quantitative detailing, panel (d) shows spatial snapshots at , , and s, demonstrating that the network prediction (blue circles) tracks the exact solution’s evolution and phase oscillations (red dashed line) with extremely high fidelity. This robust generalization test independently validates the flexibility of the neural solver under states far from quantum equilibrium.
Validation of out-of-equilibrium generalization under a displaced Gaussian wavepacket (, ). (a) Exact evolution obtained via the Split-Step Fourier Method (SSFM). (b) Spatiotemporal evolution predicted by the proposed Hard PINN. (c) Spatiotemporal absolute error map, demonstrating error strictly bounded below . (d) Comparative spatial profiles at , , and s. The PINN accurately captures the oscillations, breathing, and reflection effects.
4. Conclusion
This work presented a topological framework designed to solve the Time-Dependent Schrödinger Equation on the circle () leveraging Physics-Informed Neural Networks. Diverging from standard approaches that treat periodic limits via soft penalty terms [1, 4], our method immerses the coordinate space directly into a non-Euclidean manifold via . This “Hard Constraint” architecture imposes strict continuity and periodicity by construction, eliminating the “vanishing gradient on manifolds” problem identified in recent geometric deep learning literature [8].
4.1. Comparative analysis
Our results demonstrate a significant methodological advancement over early neural solvers. Lagaris et al. (1998) [1] originally proposed solving differential equations using test functions with satisfactory boundary conditions. While effective for simple Dirichlet boundaries, their approach struggles with periodic conditions where boundary values are unknown a priori. Recent developments in PINNs [4] typically address this with loss terms. However, as shown in our Stability Audit (Figure 15), such soft constraints permit norm drift () over long integration times. In contrast, our topological embedding maintains the ground state trajectory in phase space (Figure 12) with high fidelity, preventing the “spiraling” often seen in unconstrained solvers. By eliminating the term, the Hard Constraint significantly simplifies the optimization landscape, fundamentally explaining its superior convergence over Soft Constraint alternatives.
4.2. Physical implications
The successful simulation of the Quantum Pendulum has broader implications for macroscopic quantum phenomena. The observed stability of the wavefunction on the manifold suggests this architecture is particularly suited for modeling Superconducting Qubits, such as the Cooper Pair Box and Transmon. These devices are governed by a Hamiltonian mathematically isomorphic to the pendulum (), where the phase variable is compact on [16]. Consequently, the topological deep learning framework presented here is directly applicable to simulating superconducting quantum circuits. Furthermore, the ability to capture tunneling tails (Figure 7) without mesh refinement offers an advantage over Finite Element Methods (FEM) in high-dimensional configuration spaces.
4.3. Limitations and future work
Despite the advances obtained with the Hard Constraint embedding, the present solver exhibits limitations that outline directions for future investigations:
-
Unitary Conservation and Gauge Symmetry: Unitarity and temporal phase symmetry are still softly enforced via the physical residual. The introduction of neural architectures that conserve symplectic invariants or that incorporate dynamic, self-adjusting Lagrange multipliers constitutes a promising avenue to guarantee strict energy and norm conservation by construction in asymptotic times.
-
Scalability and Strong Coupling: The study of strong coupling potentials (high regime), characteristic of chaotic transitions and turbulent dynamics in the quantum phase space, requires the deployment of adaptive sampling (e.g., Residual-Based Adaptive Distribution) to concentrate collocation points on highly oscillatory phase fronts.
-
Multidimensional Extensions and Non-Euclidean Spaces: The generalization of this formalism to high-dimensional manifolds, such as a three-dimensional rigid rotor immersed in the rotation group or the Bloch sphere , will enable mesh-free simulations of entangled multi-qubit systems under dissipative coupling (Caldeira-Leggett model), overcoming the dimensionality bottleneck that renders classical grid methods intractable.
Supplementary Material – Reproducibility Code and Computational Notebooks
The complete implementation code and pedagogical Jupyter notebooks referenced in this article are publicly available at the repository listed under Data Availability. The supplementary material includes:
-
PINN_Quantum_Pendulum_Solver.ipynb: Interactive notebook demonstrating the core PINN solver with topological embedding on .
-
Out_of_Equilibrium_Robustness_Test.ipynb: Validation of the displaced Gaussian wavepacket against the Split-Step Fourier Method.
-
Soft_vs_Hard_Constraints_Comparison.ipynb: Comparative experiment between soft boundary penalization and hard topological embedding.
-
pêndulo_quântico_schrodinger.py: Architecture definition of the Hard Constraint PINN with the Trigonometric Coordinate Embedding layer.
-
generate_ground_truth.py: Exact analytical benchmark computation via Mathieu functions using scipy.special.
-
soft_vs_hard_experiment.py: Training loops and convergence comparison scripts.
-
generate_out_of_equilibrium.py: Displaced Gaussian wavepacket training and validation script.
-
Pre-trained assets:quantum_ground_truth.npz, quantum_pinn_model.pth, and quantum_pinn_gaussian.pth, enabling immediate evaluation without retraining.
Dependencies: Python 3.10+, PyTorch, SciPy, NumPy, and Matplotlib.
Acknowledgments
The authors thank the Instituto Federal de Educação, Ciência e Tecnologia do Ceará (IFCE), Campus Fortaleza, for the institutional support provided for this research. The authors are also grateful to their professors for the academic guidance and scientific mentorship throughout the development of this work.
Data Availability
The entire dataset supporting the results of this study, including source code, pre-trained neural network weights, analytical reference solutions, and interactive Jupyter notebooks, is publicly available in a data repository:
-
Repository name: GitHub
-
Deposit date: July 2026
References
- [1] I.E. Lagaris, A. Likas and D.I. Fotiadis, IEEE Trans. Neural Netw. 9, 987 (1998).
- [2] G. Carleo and M. Troyer, Science 355, 602 (2017).
- [3] K. Duraisamy, G. Iaccarino and H. Xiao, Annu. Rev. Fluid Mech. 51, 357 (2019).
- [4] M. Raissi, P. Perdikaris and G.E. Karniadakis, J. Comput. Phys. 378, 686 (2019).
- [5] G.E. Karniadakis, I.G. Kevrekidis, L. Lu, P. Perdikaris, S. Wang and L. Yang, Nat. Rev. Phys. 3, 422 (2021).
- [6] X. Jin, W. Cai and H. Li, arXiv:2006.14380 (2020).
- [7] S. Berrone, C. Canuto, M. Pintore and N. Sukumar, Heliyon 9, e18820 (2023).
- [8] S. Dong and N. Ni, J. Comput. Phys. 435, 110242 (2021).
- [9] A.J. Leggett, S. Chakravarty, A.T. Dorsey, M.P.A. Fisher, A. Garg and W. Zwerger, Rev. Mod. Phys. 59, 1 (1987).
- [10] S.T. Thornton and J.B. Marion, Classical Dynamics of Particles and Systems (Cengage Learning, Stamford, 2013), 5 ed.
- [11] J.J. Sakurai and J. Napolitano, Modern Quantum Mechanics (Cambridge University Press, Cambridge, 2017), 2 ed.
- [12] P. Carruthers and M.M. Nieto, Rev. Mod. Phys. 40, 411 (1968).
- [13] D.J. Griffiths and D.F. Schroeter, Introduction to Quantum Mechanics (Cambridge University Press, Cambridge, 2018), 3 ed.
- [14] F.W.J. Olver, D.W. Lozier, R.F. Boisvert and C.W. Clark, NIST Handbook of Mathematical Functions (Cambridge University Press, Cambridge, 2010).
- [15] S. Wang, S. Sankaran and P. Perdikaris, Comput. Methods Appl. Mech. Eng. 421, 116813 (2024).
- [16] A.O. Caldeira and A.J. Leggett, Ann. Phys. 149, 374 (1983).
Edited by
-
Editor-in-Chief:
Marcello Ferreira https://orcid.org/0000-0003-4945-3169
































