<i>mrfmsim</i> : A modular, extendable, and readable simulation package for magnetic resonance force microscopy experiments
We present mrfmsim, an open-source Python package that facilitates the design, simulation, and analysis of magnetic resonance force microscopy (MRFM) experiments. MRFM is a scanning-probe technique that detects magnetic resonance from nanoscale ensembles of nuclear or electron spins with a force sensor. Because MRFM experiments are complex and operate at sensitivity limits, numerical simulation is essential for designing experiments and estimating per-spin sensitivity and imaging resolution from measured signals. In this paper, we highlight the challenges of developing MRFM simulations and show that software designed to simulate specific experiments only in a rapidly evolving experimental field can yield erroneous results. The mrfmsim package addresses these challenges by supporting post-definition customization without rewriting the internal model and by employing a plugin system for extending functionality. We show that the package's modular, extendable, and readable architecture improves reproducibility and accelerates development.
Authors
- Eric W. Moore
- Corinne E. Isaac (ORCID: https://orcid.org/0000-0002-5759-7691)
- Michael C. Boucher (ORCID: https://orcid.org/0000-0001-6540-7379)
- John A. Marohn (ORCID: https://orcid.org/0000-0003-2364-0847)
- Z Jane Wang
- Peter Sun (ORCID: https://orcid.org/0000-0002-5241-100X)
Institutions
- Cornell University (US)
Publication Details
- Journal
- The Journal of Chemical Physics
- Published
- 2026-06-09
- DOI
- https://doi.org/10.1063/5.0332386
- Primary Topic
- Force Microscopy Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Institutes of Health
- Army Research Office