English

Q-GAIN: A Python Package for Machine Learning and Physically Informed Analysis Applications

Quantum Gases 2026-07-02 v1 Machine Learning

Abstract

Here we describe the quantum gas analysis and inference (Q-GAIN) Python package, which enables rapid deployment of machine learning (ML) and physics-informed analysis techniques for cold-atom experiments. Out of the box, Q-GAIN implements classification, object detection, and physics-informed metrics for feature detection in images of atomic Bose-Einstein condensates (BECs). Q-GAIN encourages a natural, module-based workflow: starting with data loading and preprocessing, followed by ML-based feature identification, and ending with conventional analysis techniques. We demonstrate this modularity by configuring Q-GAIN for three ML tasks. First, we demonstrate the basic workflow of the Q-GAIN framework by implementing the standard task of classifying handwritten digits from the MNIST dataset. Then, we re-implement our earlier soliton detection (SolDet) package in the Q-GAIN framework, enabling the detection and analysis of solitonic excitations in time-of-flight data. Finally, we develop an object-detection tool that identifies quantized vortices in images of ring-shaped BECs.

Cite

@article{arxiv.2607.02413,
  title  = {Q-GAIN: A Python Package for Machine Learning and Physically Informed Analysis Applications},
  author = {M. Doris and S. Guo and S. M. Koh and L. Ritter and A. R. Fritsch and S. Mukherjee and I. B. Spielman and J. P. Zwolak},
  journal= {arXiv preprint arXiv:2607.02413},
  year   = {2026}
}

Comments

Submission to SciPost, 20 pages with 4 figures