mrfmsim: A modular, extendable, and readable simulation package for magnetic resonance force microscopy experiments
arXiv:2602.23337 · doi:10.1063/5.0332386
Abstract
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.
References in corpus (11)
- Array Programming with NumPy
- Nuclear Magnetic Resonance Imaging with 90 nm Resolution
- Nanomechanical detection of nuclear magnetic resonance using a silicon nanowire oscillator
- Spin detection with a micromechanical trampoline: Towards magnetic resonance microscopy harnessing cavity optomechanics
- High-Resolution Nanoscale Solid-State Nuclear Magnetic Resonance Spectroscopy
- Spin polarization contrast observed in GaAs by force-detected nuclear magnetic resonance
- Magnetic Resonance Force Detection using a Membrane Resonator
- Probing the Nuclear Spin-Lattice Relaxation Time at the Nanoscale
- Feasibility of imaging using Boltzmann polarization in nuclear Magnetic Resonance Force Microscopy
- mmodel: A workflow framework to accelerate the development of experimental simulations
- Near-resonant nuclear spin detection with megahertz mechanical resonators