cond-mat.quant-gasJul 2, 2026

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

Authors: M. DorisS. GuoS. M. KohL. RitterA. R. FritschS. MukherjeeI. B. SpielmanJ. P. Zwolak

Organizations: National Institute of Standards and Technology, Gaithersburg, MD 20899, USA · Joint Quantum Institute and University of Maryland, College Park, MD 20742, USA · Department of Physics and Astronomy, Amherst College, Amherst, MA 01002, USA · Joint Center for Quantum Information and Computer Science,2026 University of Maryland, College Park, MD 20899, USA

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.

Explore similar work

CardsList
  1. Discovering quantum phenomena with Interpretable Machine Learning

    Apr 17, 2026Paulin de Schoulepnikoff, Hendrik Poulsen Nautrup, Hans J. Briegel +1Quantum Machine LearningHybrid Quantum Neural Networks