Edge Rewrite
// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a44ee5a01ed124f4

Jump to content

Spinach (software)

From Wikipedia, the free encyclopedia
(Redirected from Draft:Spinach (software))

Spinach
DeveloperIlya Kuprov (lead developer)
Release2011[1]
Stable release
2.13 / 22 September 2026[2]
Written inMATLAB, C++[3]
Operating systemMicrosoft Windows, macOS, Linux
Available inEnglish
TypeMagnetic resonance simulation
LicenseMIT License[3]
Websitespindynamics.org
Repositorygithub.com/IlyaKuprov/Spinach

Spinach is an open-source software package for numerical simulation of time-domain spin dynamics in magnetic resonance. It is written in MATLAB and is used for simulations in nuclear magnetic resonance (NMR), electron paramagnetic resonance (EPR), magnetic resonance imaging (MRI), dynamic nuclear polarization (DNP), magic angle spinning (MAS), spin chemistry, and quantum optimal control.[3][4]

The package was introduced in 2011 in the Journal of Magnetic Resonance as a library for simulating spin dynamics in large spin systems.[1] Subsequent publications describe its use for large-scale magnetic resonance simulations, including reduced state-space calculations, Fokker-Planck treatment of spatial dynamics, quantum mechanical MRI simulation, and optimal control calculations.[5][6][7][8]

The source code is maintained in a public GitHub repository and distributed under the MIT License. The name of the package whimsically refers to the physical concept of spin and to Popeye the Sailor who, in the eponymous comic books, becomes stronger after consuming spinach.[9]

History

[edit]

Spinach was developed for simulations in which the conventional direct product Hilbert space description of multi-spin systems becomes intractable due to the exponential complexity scaling. The 2011 paper describes a library that uses reduced Liouville space basis sets and sparse matrix methods to simulate liquid-state NMR experiments for systems with more than forty spins on a desktop workstation.[1]

Subsequent development added modules for spatial dynamics, MRI, tensor trains, and optimal control. A 2016 article described Fokker-Planck formalism implementation in Spinach, in which spatial dynamics (sample spinning, diffusion, and flow) can coexist with spin dynamics.[6] A 2019 Science Advances paper reported quantum-mechanical MRI simulations of coupled spin systems with three-dimensional diffusion, flow, chemical kinetics, and relaxation.[7]

Computational approach

[edit]
250 MHz ECOSY NMR spectrum of strychnine alkaloid simulated using Spinach.

Spinach implements magnetic resonance spectroscopy and imaging simulations by solving the equation of motion for the density matrix in the time domain:[10]

where the Liouvillian superoperator is a sum of the Hamiltonian commutation superoperator , relaxation superoperator , kinetics superoperator , and potentially other terms that govern spatial dynamics and coupling to other degrees of freedom:[11]

Computational efficiency is achieved through the use of reduced state spaces, sparse matrix arithmetic, on-the-fly trajectory analysis, and dynamic parallelization.[12]

Functionality

[edit]

As of 2026, Spinach is cited in over 600 academic publications.[10] According to the documentation[11] and academic papers citing its features, the most recent version 2.12 of the package performs:

Spinach contains an implementation the gradient ascent pulse engineering (GRAPE) algorithm[23] for quantum optimal control. The documentation[11] and the book describing the optimal control module of the package[24] list the following features:

  • L-BFGS quasi-Newton and Newton-Raphson GRAPE optimizers.
  • Spin system trajectory analysis by coherence and correlation order.
  • Spectrogram analysis of the pulse waveform.
  • Prefixes, suffixes, keyholes, and freeze masks.
  • Stroboscopic steady states and steady orbits as control targets.
  • Optimization of cooperative pulses and phase cycles.
  • Waveform penalty functionals and instrument response.

Dissipative background evolution generators and control operators are supported, as well as ensemble control over distributions in common instrument calibration parameters, such as control channel power and offset.[11] Common models of spin relaxation (Redfield theory, stochastic Liouville equation, Lindblad theory) and chemical kinetics are supported, and a library of powder averaging grids is included with the package.[11]

See also

[edit]

References

[edit]
  1. 1 2 3 Hogben, H. J.; Krzystyniak, M.; Charnock, G. T. P.; Hore, P. J.; Kuprov, I. (2011). "Spinach - a software library for simulation of spin dynamics in large spin systems". Journal of Magnetic Resonance. 208 (2): 179–194. doi:10.1016/j.jmr.2010.11.008. PMID 21169043.
  2. ↑ "Release 2.13". GitHub. 22 September 2026. Retrieved 23 September 2026.
  3. 1 2 3 "Spinach 2.12.1". GitHub. 15 June 2026. Retrieved 5 July 2026.
  4. ↑ "Main Page". Spinach Documentation Wiki. Retrieved 5 July 2026.
  5. ↑ Concilio, M. G. (2020). "Large-scale magnetic resonance simulations: a tutorial". Magnetic Resonance in Chemistry. 58 (8): 691–717. doi:10.1002/mrc.5018.
  6. 1 2 Kuprov, I. (2016). "Fokker-Planck formalism in magnetic resonance simulations". Journal of Magnetic Resonance. 270: 124–135. arXiv:1605.05243. doi:10.1016/j.jmr.2016.07.005. PMID 27470597.
  7. 1 2 Allami, A. J.; Concilio, M. G.; Lally, P.; Kuprov, I. (2019). "Quantum mechanical MRI simulations: solving the matrix dimension problem". Science Advances. 5 (7) eaaw8962. doi:10.1126/sciadv.aaw8962. PMC 6641938. PMID 31334352.
  8. ↑ Kuprov, I. (2019). "Defeating the matrix". Journal of Magnetic Resonance. 306: 75–79. doi:10.1016/j.jmr.2019.07.031.
  9. ↑ "Spinach - a fast and general spin dynamics simulation library" (PDF). Retrieved 27 November 2023.
  10. 1 2 Hogben, H.J.; Krzystyniak, M.; Charnock, G.T.P.; Hore, P.J.; Kuprov, I. (2011). "Spinach – a software library for simulation of spin dynamics in large spin systems". Journal of Magnetic Resonance. 208 (2): 179–194. doi:10.1016/j.jmr.2010.11.008. ISSN 1090-7807.
  11. 1 2 3 4 5 6 "Spinach Documentation Wiki". SpinDynamics.org – Spin Dynamics Group. 28 July 2023. Retrieved 4 November 2023.
  12. ↑ Kuprov, I. (2023). "Incomplete basis sets". Spin: from basic symmetries to quantum optimal control. Springer. pp. 291–312. doi:10.1007/978-3-031-05607-9_7. ISBN 978-3-031-05606-2.
  13. ↑ Concilio, M.G. (2020). "Large‐scale magnetic resonance simulations: a tutorial". Magnetic Resonance in Chemistry. 58 (8): 691–717. doi:10.1002/mrc.5018. ISSN 0749-1581.
  14. ↑ Krushelnitsky, A.; Hempel, G.; Jurack, H.; Ferreira, T.M. (2023). "Rocking motion in solid proteins studied by the 15N proton-decoupled R1ρ relaxometry". Physical Chemistry Chemical Physics. 25 (23): 15885–15896. doi:10.1039/d3cp00444a. ISSN 1463-9076.
  15. ↑ Gutmann, T.; Groszewicz, P.B.; Buntkowsky, G. (2019). "Solid-state NMR of nanocrystals". Annual Reports on NMR Spectroscopy. pp. 1–82. doi:10.1016/bs.arnmr.2018.12.001. ISSN 0066-4103.
  16. ↑ Williams, R.V.; Yang, J.-Y.; Moremen, K.W.; Amster, I.J.; Prestegard, J.H. (2019). "Measurement of residual dipolar couplings in methyl groups via carbon detection". Journal of Biomolecular NMR. 73 (3–4): 191–198. doi:10.1007/s10858-019-00245-5. ISSN 0925-2738. PMC 7020099.
  17. ↑ Kaseman, D.C.; Malone, M.W.; Tondreau, A.; Espy, M.A.; Williams, R.F. (2021). "Quantitation of nuclear magnetic resonance spectra at Earth's magnetic field". Analytical Chemistry. 93 (46): 15349–15357. doi:10.1021/acs.analchem.1c02910. ISSN 0003-2700.
  18. ↑ Haies, I.M.; Jarvis, J.A.; Bentley, H.; Heinmaa, I.; Kuprov, I.; Williamson, P.T.F.; Carravetta, M. (2015). "14N overtone NMR under MAS: signal enhancement using symmetry-based sequences and novel simulation strategies". Physical Chemistry Chemical Physics. 17 (9): 6577–6587. doi:10.1039/c4cp03994g. ISSN 1463-9076. PMC 4673505.
  19. ↑ Guduff, L.; Kuprov, I.; van Heijenoort, C.; Dumez, J.-N. (2017). "Spatially encoded 2D and 3D diffusion-ordered NMR spectroscopy". Chemical Communications. 53 (4): 701–704. doi:10.1039/c6cc09028a. ISSN 1359-7345.
  20. ↑ Allami, A.J.; Concilio, M.G.; Lally, P.; Kuprov, I. (5 July 2019). "Quantum mechanical MRI simulations: solving the matrix dimension problem". Science Advances. 5 (7). doi:10.1126/sciadv.aaw8962. ISSN 2375-2548. PMC 6641938.
  21. ↑ Dumez, J.-N. (2021). "Frequency-swept pulses for ultrafast spatially encoded NMR". Journal of Magnetic Resonance. 323 106817. doi:10.1016/j.jmr.2020.106817. ISSN 1090-7807.
  22. ↑ Redrouthu, V.S.; Mathies, G. (2022). "Efficient pulsed dynamic nuclear polarization with the X-inverse-X sequence". Journal of the American Chemical Society. 144 (4): 1513–1516. doi:10.1021/jacs.1c09900. ISSN 0002-7863.
  23. ↑ Khaneja, N.; Reiss, T.; Kehlet, C.; Schulte-Herbrüggen, T.; Glaser, S.J. (2005). "Optimal control of coupled spin dynamics: design of NMR pulse sequences by gradient ascent algorithms". Journal of Magnetic Resonance. 172 (2): 296–305. doi:10.1016/j.jmr.2004.11.004. ISSN 1090-7807.
  24. ↑ Kuprov, I. (2023). "Optimal control of spin systems". Spin: from basic symmetries to quantum optimal control. Springer. pp. 313–349. doi:10.1007/978-3-031-05607-9_8. ISBN 978-3-031-05606-2.
[edit]