Spinguin is a user-friendly Python package for versatile numerical spin-dynamics simulations in the liquid state. It provides tools for coherent dynamics, relaxation, and chemical-exchange simulations, and it supports restricted basis sets in Liouville space. This makes it possible to study spin systems with more than 10 spins on consumer-level hardware.
The full documentation is available at https://nmroulu.github.io/Spinguin/.
Spinguin can be installed either from the Python Package Index (PyPI) or from source.
Spinguin is available on PyPI for Windows and Linux. Install it with:
pip install spinguin-
Ensure that the
buildmodule is installed:pip install build
-
Download the source archive (
.zipor.tar.gz). -
Extract the archive.
-
Navigate to the extracted source directory:
cd /your/path/spinguin-X.Y.Z -
Build the wheel:
python -m build --wheel
-
Navigate to the
distdirectory:cd /your/path/spinguin-X.Y.Z/dist -
Install the generated wheel with
pip:pip install spinguin-X.Y.Z-cpXYZ-cpXYZ-PLATFORM.whl
This project is licensed under the MIT License.