MrfmSim-Marohn#

GitHub version Unit tests

The MrfmSim-Marohn package can be used as a standalone or used as a plugin for the MrfmSim package and the documentation.

This package contains tools to simulate signals in a Magnetic Resonance Force Microscope 1 2 3 experiment. The code in the package simulates signal from electron spins, particularly the nitroxide spin radical TEMPO to selected nuclear spins (1H, 19F, and 71Ga).

It can simulate signals from both Curie-law spin magnetization and spin fluctuations (in the small polarization limit); and can simulate force experiments and force-gradient experiments (in the small-cantilever-amplitude limit and without the small amplitude approximation — in the large amplitude limit).

It can simulate signal with the cantilever and field-aligned in both the hangdown 4 and SPAM 5 6 experimental geometries.

Installation#

To install the MrfmSim-Marohn package, under root directory:

python -m pip install .

To run the unit tests:

python -m pytest

To run test the package in different environments:

python -m pip install .[test]
tox

Contribute#

Peter Sun (hs859@cornell.edu) and John Marohn (jam99@cornell.edu) maintain the package. Collaborating on code development is encouraged, using the fork & pull model [link].

References#

1

Sidles, J. A.; Garbini, J. J.; Bruland, K. J.; Rugar, D.; Züger, O.; Hoen, S. & Yannoni, C. S. “Magnetic Resonance Force Microscopy”, Rev. Mod. Phys., 1995, 67, 249 - 265 [10.1103/RevModPhys.67.249].

2

Kuehn, S.; Hickman, S. A. & Marohn, J. A. “Advances in Mechanical Detection of Magnetic Resonance”, J. Chem. Phys., 2008, 128, 052208 [10.1063/1.2834737]. OPEN ACCESS.

3

Poggio, M. & Degen, C. L. “Force-Detected Nuclear Magnetic Resonance: Recent Advances and Future Challenges”, Nanotechnology, 2010, 21, 342001 [10.1088/0957-4484/21/34/342001].

4

Mamin, H. J.; Budakian, R.; Chui, B. W. & Rugar, D. “Detection and Manipulation of Statistical Polarization in Small Spin Ensembles”, Phys. Rev. Lett., 2003, 91, 207604 [10.1103/PhysRevLett.91.207604].

5

Marohn, J. A.; Fainchtein, R. & Smith, D. D. “An Optimal Magnetic Tip Configuration for Magnetic-Resonance Force Microscopy of Microscale Buried Features”, Appl. Phys. Lett., 1998, 73, 3778 - 3780 [10.1063/1.122892]. SPAM stands for Springiness Preservation by Aligning Magnetization.

6

Garner, S. R.; Kuehn, S.; Dawlaty, J. M.; Jenkins, N. E. & Marohn, J. A. “Force-Gradient Detected Nuclear Magnetic Resonance”, Appl. Phys. Lett., 2004, 84, 5091 - 5093 [10.1063/1.1762700].