A Pedagogical Framework for Physics-Informed Machine Learning: From Classical Pendulum to Quantum Anharmonic Oscillator Using PyTorch on Modern GPU Hardware
Enis Yazici

TL;DR
This paper introduces a pedagogical framework using PyTorch and GPU hardware to teach physics-informed machine learning through complex physical systems, emphasizing model comparison, benchmarking, and educational design.
Contribution
It presents a five-module teaching framework with diverse models and benchmarks, demonstrating GPU acceleration benefits and integrating reflection questions for graduate-level education.
Findings
Data-driven models achieve low mean absolute errors in both systems.
GPU speedups range from 1.2x to 24.6x depending on the model.
The framework is packaged as self-contained Jupyter notebooks for educational use.
Abstract
We present a five-module pedagogical framework for teaching physics-informed machine learning (ML) through two progressively complex physical systems: a driven, damped nonlinear pendulum and a one-dimensional quantum anharmonic oscillator. Five model architectures are implemented and compared: a standard artificial neural network (ANN), a one-dimensional convolutional neural network (CNN), a long short-term memory (LSTM) network, and two physics-informed neural networks (PINNs) -- one per physical system. All models are implemented in PyTorch~2.9 and executed on an NVIDIA RTX~5090 GPU, making the framework directly applicable to modern deep learning laboratory courses. Quantitative benchmarks show that data-driven models achieve mean absolute errors of ~rad (pendulum ANN) and ~a.u.\ (quantum CNN), while the curriculum-trained pendulum PINN reaches an…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
