Spinach (software)
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. The package was introduced in 2011 in the Journal of Magnetic Resonance as a library for simulating spin dynamics in large spin systems. 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. 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.
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. The package was introduced in 2011 in the Journal of Magnetic Resonance as a library for simulating spin dynamics in large spin systems. 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. 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. \begin{matrix} \frac{\partial }{\partial t}\mathbf{\rho }\left( t \right)=-i\mathbf{L}\left( t \right)\mathbf{\rho }\left( t \right) \\ \Downarrow \\ \mathbf{\rho }\left( t+dt \right)=\exp \left[ -i\mathbf{L}\left( t \right)dt \right]\mathbf{\rho }\left( t \right) \\ \end{matrix} where the Liouvillian superoperator \mathbf{L}\left( t \right) is a sum of the Hamiltonian commutation superoperator \mathbf{H}\left( t \right) , relaxation superoperator \mathbf{R} , kinetics superoperator \mathbf{K} , and potentially other terms that govern spatial dynamics and coupling to other degrees of freedom: \mathbf{L}\left( t \right)=\mathbf{H}\left( t \right)+i\mathbf{R}+i\mathbf{K}+... Computational efficiency is achieved through the use of reduced state spaces, sparse matrix arithmetic, on-the-fly trajectory analysis, and dynamic parallelization. Spinach Documentation Wiki
References
- Release 2.13 · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Release 2.13." "Release 2. 2026-11-18. https://github.com/IlyaKuprov/Spinach/releases/tag/2.13. Accessed 24 November 2026.
Chicago "Release 2.13." "Release 2. 2026-11-18. https://github.com/IlyaKuprov/Spinach/releases/tag/2.13.
APA "Release 2. (2026). Release 2.13. Retrieved November 24, 2026, from https://github.com/IlyaKuprov/Spinach/releases/tag/2.13
- Quantum mechanical MRI simulations: solving the matrix dimension problem · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Quantum mechanical MRI simulations: solving the matrix dimension problem." Allami, A. 2026-11-18. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6641938. Accessed 24 November 2026.
Chicago "Quantum mechanical MRI simulations: solving the matrix dimension problem." Allami, A. 2026-11-18. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6641938.
APA Allami, A. (2026). Quantum mechanical MRI simulations: solving the matrix dimension problem. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6641938
- Quantum mechanical MRI simulations: solving the matrix dimension problem · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Quantum mechanical MRI simulations: solving the matrix dimension problem." a b Allami, A. 2026-11-18. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6641938. Accessed 24 November 2026.
Chicago "Quantum mechanical MRI simulations: solving the matrix dimension problem." a b Allami, A. 2026-11-18. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6641938.
APA a b Allami, A. (2026). Quantum mechanical MRI simulations: solving the matrix dimension problem. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6641938
- Large-scale magnetic resonance simulations: a tutorial · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Large-scale magnetic resonance simulations: a tutorial." Concilio, M. 2026-11-18. https://doi.org/10.1002%2Fmrc.5018. Accessed 24 November 2026.
Chicago "Large-scale magnetic resonance simulations: a tutorial." Concilio, M. 2026-11-18. https://doi.org/10.1002%2Fmrc.5018.
APA Concilio, M. (2026). Large-scale magnetic resonance simulations: a tutorial. Retrieved November 24, 2026, from https://doi.org/10.1002%2Fmrc.5018
- Defeating the matrix · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Defeating the matrix." Kuprov, I. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Defeating the matrix." Kuprov, I. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Kuprov, I. (2026). Defeating the matrix. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Spinach Documentation Wiki · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Spinach Documentation Wiki." a b c d e f "Spinach Documentation Wiki". 2026-11-18. https://spindynamics.org/wiki/index.php?title=Main_Page. Accessed 24 November 2026.
Chicago "Spinach Documentation Wiki." a b c d e f "Spinach Documentation Wiki". 2026-11-18. https://spindynamics.org/wiki/index.php?title=Main_Page.
APA a b c d e f "Spinach Documentation Wiki". (2026). Spinach Documentation Wiki. Retrieved November 24, 2026, from https://spindynamics.org/wiki/index.php?title=Main_Page
- Spatially encoded 2D and 3D diffusion-ordered NMR spectroscopy · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Spatially encoded 2D and 3D diffusion-ordered NMR spectroscopy." Guduff, L. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Spatially encoded 2D and 3D diffusion-ordered NMR spectroscopy." Guduff, L. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Guduff, L. (2026). Spatially encoded 2D and 3D diffusion-ordered NMR spectroscopy. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Spinach – a software library for simulation of spin dynamics in large spin systems · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Spinach – a software library for simulation of spin dynamics in large spin systems." a b Hogben, H. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Spinach – a software library for simulation of spin dynamics in large spin systems." a b Hogben, H. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA a b Hogben, H. (2026). Spinach – a software library for simulation of spin dynamics in large spin systems. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Optimal control of coupled spin dynamics: design of NMR pulse sequences by gradient ascent algorithms · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Optimal control of coupled spin dynamics: design of NMR pulse sequences by gradient ascent algorithms." Khaneja, N. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Optimal control of coupled spin dynamics: design of NMR pulse sequences by gradient ascent algorithms." Khaneja, N. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Khaneja, N. (2026). Optimal control of coupled spin dynamics: design of NMR pulse sequences by gradient ascent algorithms. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Spinach - a fast and general spin dynamics simulation library · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Spinach - a fast and general spin dynamics simulation library." "Spinach - a fast and general spin dynamics simulation library" (PDF). 2026-11-18. https://spindynamics.org/documents/spinach_history.pdf. Accessed 24 November 2026.
Chicago "Spinach - a fast and general spin dynamics simulation library." "Spinach - a fast and general spin dynamics simulation library" (PDF). 2026-11-18. https://spindynamics.org/documents/spinach_history.pdf.
APA "Spinach - a fast and general spin dynamics simulation library" (PDF). (2026). Spinach - a fast and general spin dynamics simulation library. Retrieved November 24, 2026, from https://spindynamics.org/documents/spinach_history.pdf
- Spinach - a software library for simulation of spin dynamics in large spin systems · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Spinach - a software library for simulation of spin dynamics in large spin systems." a b c Hogben, H. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Spinach - a software library for simulation of spin dynamics in large spin systems." a b c Hogben, H. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA a b c Hogben, H. (2026). Spinach - a software library for simulation of spin dynamics in large spin systems. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Fokker-Planck formalism in magnetic resonance simulations · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Fokker-Planck formalism in magnetic resonance simulations." a b Kuprov, I. 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Fokker-Planck formalism in magnetic resonance simulations." a b Kuprov, I. 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA a b Kuprov, I. (2026). Fokker-Planck formalism in magnetic resonance simulations. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Main Page · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Main Page." 2026-11-18. https://www.spindynamics.org/wiki/index.php?title=Main_Page. Accessed 24 November 2026.
Chicago "Main Page." 2026-11-18. https://www.spindynamics.org/wiki/index.php?title=Main_Page.
APA encyclopegia.org. (2026). Main Page. Retrieved November 24, 2026, from https://www.spindynamics.org/wiki/index.php?title=Main_Page
- Efficient pulsed dynamic nuclear polarization with the X-inverse-X sequence · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Efficient pulsed dynamic nuclear polarization with the X-inverse-X sequence." Redrouthu, V. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Efficient pulsed dynamic nuclear polarization with the X-inverse-X sequence." Redrouthu, V. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Redrouthu, V. (2026). Efficient pulsed dynamic nuclear polarization with the X-inverse-X sequence. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Large‐scale magnetic resonance simulations: a tutorial · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Large‐scale magnetic resonance simulations: a tutorial." Concilio, M. 2026-11-18. https://doi.org/10.1002%2Fmrc.5018. Accessed 24 November 2026.
Chicago "Large‐scale magnetic resonance simulations: a tutorial." Concilio, M. 2026-11-18. https://doi.org/10.1002%2Fmrc.5018.
APA Concilio, M. (2026). Large‐scale magnetic resonance simulations: a tutorial. Retrieved November 24, 2026, from https://doi.org/10.1002%2Fmrc.5018
- Solid-state NMR of nanocrystals · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Solid-state NMR of nanocrystals." Gutmann, T. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Solid-state NMR of nanocrystals." Gutmann, T. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Gutmann, T. (2026). Solid-state NMR of nanocrystals. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Optimal control of spin systems · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Optimal control of spin systems." Kuprov, I. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Optimal control of spin systems." Kuprov, I. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Kuprov, I. (2026). Optimal control of spin systems. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- 14 N overtone NMR under MAS: signal enhancement using symmetry-based sequences and novel simulation strategies · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "14 N overtone NMR under MAS: signal enhancement using symmetry-based sequences and novel simulation strategies." Haies, I. 2026-11-18. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4673505. Accessed 24 November 2026.
Chicago "14 N overtone NMR under MAS: signal enhancement using symmetry-based sequences and novel simulation strategies." Haies, I. 2026-11-18. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4673505.
APA Haies, I. (2026). 14 N overtone NMR under MAS: signal enhancement using symmetry-based sequences and novel simulation strategies. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4673505
- Rocking motion in solid proteins studied by the 15 N proton-decoupled R 1ρ relaxometry · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Rocking motion in solid proteins studied by the 15 N proton-decoupled R 1ρ relaxometry." Krushelnitsky, A. 2026-11-18. https://doi.org/10.1039%2Fd3cp00444a. Accessed 24 November 2026.
Chicago "Rocking motion in solid proteins studied by the 15 N proton-decoupled R 1ρ relaxometry." Krushelnitsky, A. 2026-11-18. https://doi.org/10.1039%2Fd3cp00444a.
APA Krushelnitsky, A. (2026). Rocking motion in solid proteins studied by the 15 N proton-decoupled R 1ρ relaxometry. Retrieved November 24, 2026, from https://doi.org/10.1039%2Fd3cp00444a
- Measurement of residual dipolar couplings in methyl groups via carbon detection · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Measurement of residual dipolar couplings in methyl groups via carbon detection." Williams, R. 2026-11-18. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7020099. Accessed 24 November 2026.
Chicago "Measurement of residual dipolar couplings in methyl groups via carbon detection." Williams, R. 2026-11-18. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7020099.
APA Williams, R. (2026). Measurement of residual dipolar couplings in methyl groups via carbon detection. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7020099
- Spinach 2.12.1 · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Spinach 2.12.1." a b c "Spinach 2. 2026-11-18. https://github.com/IlyaKuprov/Spinach/releases/tag/2.12.1. Accessed 24 November 2026.
Chicago "Spinach 2.12.1." a b c "Spinach 2. 2026-11-18. https://github.com/IlyaKuprov/Spinach/releases/tag/2.12.1.
APA a b c "Spinach 2. (2026). Spinach 2.12.1. Retrieved November 24, 2026, from https://github.com/IlyaKuprov/Spinach/releases/tag/2.12.1
- Frequency-swept pulses for ultrafast spatially encoded NMR · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Frequency-swept pulses for ultrafast spatially encoded NMR." Dumez, J. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Frequency-swept pulses for ultrafast spatially encoded NMR." Dumez, J. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Dumez, J. (2026). Frequency-swept pulses for ultrafast spatially encoded NMR. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Incomplete basis sets · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Incomplete basis sets." Kuprov, I. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Incomplete basis sets." Kuprov, I. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Kuprov, I. (2026). Incomplete basis sets. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Quantitation of nuclear magnetic resonance spectra at Earth's magnetic field · retrieved 2026-11-18 · rev 1376314913
Cite this reference
MLA "Quantitation of nuclear magnetic resonance spectra at Earth's magnetic field." Kaseman, D. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Quantitation of nuclear magnetic resonance spectra at Earth's magnetic field." Kaseman, D. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Kaseman, D. (2026). Quantitation of nuclear magnetic resonance spectra at Earth's magnetic field. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
Cite this article
MLA
"Spinach (software)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/spinach-software. Accessed 24 November 2026.
Chicago
"Spinach (software)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/spinach-software.
APA
encyclopegia.org. (2026). Spinach (software). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/spinach-software
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON