Bayesian quantum sensing using graybox machine learning
Akram Youssry, Stefan Todd, Patrick Murton, Muhammad Junaid Arshad, Alberto Peruzzo, Cristian Bonato
TL;DR
The paper tackles the challenge of accurate parameter estimation in quantum sensing under realistic, noisy conditions by introducing a graybox modeling framework that merges physics-based sensor dynamics with data-driven imperfection modeling within a Bayesian inference loop. The graybox is trained on experimental Ramsey data to predict the readout probability $P_{cl}$ from pulses and ambient parameters, and is then used to construct a likelihood $P(r|f_B)$ for Bayesian frequency estimation. In an NV-center experiment measuring static magnetic fields, the graybox approach significantly outperforms a traditional whitebox model, achieving orders-of-magnitude reductions in mean-squared error with roughly $10^4$ training datapoints and enabling robust, real-time adaptive sensing. The work provides a general methodology for enhancing quantum sensors across platforms and paves the way for model-aware real-time feedback and transferability to more complex pulse sequences and environments.
Abstract
Quantum sensors offer significant advantages over classical devices in spatial resolution and sensitivity, enabling transformative applications across materials science, healthcare, and beyond. Their practical performance, however, is often constrained by unmodelled effects, including noise, imperfect state preparation, and non-ideal control fields. In this work, we report the first experimental implementation of a graybox modelling strategy for a solid-state open quantum system. The graybox framework integrates a physics-based system model with a data-driven description of experimental imperfections, achieving higher fidelity than purely analytical (whitebox) approaches while requiring fewer training resources than fully deep-learning models. We experimentally validate the method on the task of estimating a static magnetic field using a single-spin quantum sensor, performing Bayesian inference with a graybox model trained on prior experimental data. Using roughly 10,000 training datapoints, the graybox model yields several orders of magnitude improvement in mean squared error over the corresponding physics-only model. These results are broadly applicable to a wide range of quantum sensing platforms, not limited to single-spin systems, and are particularly valuable for real-time adaptive protocols, where model inaccuracies can otherwise lead to suboptimal control and degraded performance.
