Full quantum simulation of muon experiments
Project description
muspinsim
MuSpinSim is a Python software meant to simulate muon spectroscopy experiments. In particular, it simulates the spin dynamics of a system of a muon plus other spins, namely electrons and atomic nuclei. It can simulate various common experimental setups and account for hyperfine, dipolar and quadrupolar couplings. It is also able to fit its simulations to experimental data, to find the optimal parameters that describe it.
Theory
The way MuSpinSim operates is quite simple, and based on the principles of similar software for NMR, in particular Simpson. A Hamiltonian of the system is built by combining the various terms specified in the input file; hyperfine, dipolar and quadrupolar terms are tied to the orientation of the 'crystallite' of the system we're observing, whereas muon polarization and applied external field are in an absolute reference frame (the one of the laboratory). The density matrix of the system is then made to evolve in time under this Hamiltonian, and the muon polarization is observed by standard quantum mechanical methods to compute expectation values. A slightly different approach is used when saving the integral of the expectation value, as in that case the integration is performed analytically to compute an "integral operator" whose expectation value is then computed.
Installation and Usage
For more in-depth information about how to install and use MuSpinSim as well as about how the theory behind it works, please check the official documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file muspinsim-2.3.0.tar.gz.
File metadata
- Download URL: muspinsim-2.3.0.tar.gz
- Upload date:
- Size: 199.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f42bd948311b67cc1d715e7c46b04b1679e613b38e7ebd90b666a611f867158
|
|
| MD5 |
28e0963698b29369f306f3ea0f6eea0e
|
|
| BLAKE2b-256 |
ee853ffb21106e19cdf5dd391f571a1d211b9d145d10e6e5191194c1434ba6f3
|
File details
Details for the file muspinsim-2.3.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 223.7 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
059a7e1e87b93dd71b8aac6804ccc749fd9bb06e2be0cbfafd299ccb4eb079b8
|
|
| MD5 |
ca275101205bc03db932c339c99fe502
|
|
| BLAKE2b-256 |
5960a81dd0f86c2178d9ccc7b13c77b7171edfdc575a33c9bda5449b06948e24
|
File details
Details for the file muspinsim-2.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 708.9 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a7e6f1d1624861b8f4b990bc86465bb315c956e4255dcb28d77891d655627c4
|
|
| MD5 |
5914fc77d3632bfe943024888d415593
|
|
| BLAKE2b-256 |
ee9c87379d0b062b0bf2b887ad695500beab9397ee36f1914f08aa2a0bb7d49c
|
File details
Details for the file muspinsim-2.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 714.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fad408d4c4261121ad8f6d130bcb3878ba637e7230050ea4b8644d74d6aa454
|
|
| MD5 |
c077a2d8be3ec0c80008fb95123845a2
|
|
| BLAKE2b-256 |
f6e037efcf78296ba156b12a0c66655394f4fd94346af383d5b1789c2432f210
|
File details
Details for the file muspinsim-2.3.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 236.0 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d939e62aa9e7639882432b61c10e4c199003b8dde26078929398f0b16cb9b1
|
|
| MD5 |
445936a6fdaa3a10d7be9dec351a687a
|
|
| BLAKE2b-256 |
464c43c946be2d1920bedfd850d85898ad0cf408b4ade806a6c7b5209197b908
|
File details
Details for the file muspinsim-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 237.2 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d6d642ed10e3c599fa5203e1326d175b229c485e55a6be79c9ea5106f424d83
|
|
| MD5 |
f8d1c64109db6f5974553eabec57c62f
|
|
| BLAKE2b-256 |
b67e378def5f6260a215277ef05ec84d6bc8cbdcb7e0a2dc3b1d49239da1085b
|
File details
Details for the file muspinsim-2.3.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 224.5 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf4372516b6f515ea57c9f55d30b53878c8ce66ebf28c5e2bd188d8fce222eab
|
|
| MD5 |
e1650b64df2eb9045161d3fbadaf8dbe
|
|
| BLAKE2b-256 |
8d2d67d7339c56441269cb952c0261a54c73bdccfad2860280b9d1bb9ac2569c
|
File details
Details for the file muspinsim-2.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 693.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d6ac82566658174ce1c20a0b27dcbabb031bc727e6c58dd849a9906ae3d2dc8
|
|
| MD5 |
ca496fd696ffe711890bbada77b3416c
|
|
| BLAKE2b-256 |
48758a9151ed4d6d72a88007d8b0e57eb07187bcc323e59a944cc42a55314e87
|
File details
Details for the file muspinsim-2.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 699.1 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a70bb88b949be1ed43ab8dd3608c48c0d83d49fbc35ed4e4f915d554661793a
|
|
| MD5 |
b068e9e1cb639cb19e39b1a843875cef
|
|
| BLAKE2b-256 |
153dfd40a02e1fe35d70cec867ae1886979162c31b46be1670d03ef058a411c9
|
File details
Details for the file muspinsim-2.3.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 236.8 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9733af2fe52caed28b0caead69d16ac3b7462957e07938b7363a5d2e6c23dbfe
|
|
| MD5 |
3a1791e7d6b049536faa666a7f8e59b6
|
|
| BLAKE2b-256 |
30979ad82516ddf8d74676ddc9b64bb1dcf3daf3c4861d24bfb8ea9969114f9e
|
File details
Details for the file muspinsim-2.3.0-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 237.9 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d542dc3501bfa0208a5942742416e6c78d3ea19820bd8b3be9e574163bd331b0
|
|
| MD5 |
f351d41da373a6ba37a7c866bf0fd036
|
|
| BLAKE2b-256 |
626335f2d7ba91017371fe0e2d5e3dc770fe03d8a29effa91449b3440e232c38
|
File details
Details for the file muspinsim-2.3.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 224.5 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d4f0c39316c998e44cee01d9a5cf492c6d35f44aec8ae7c3a2105313eae6936
|
|
| MD5 |
d610cd4e5c9e5f7e0b70cfa0ea9013ff
|
|
| BLAKE2b-256 |
df1c0b91d0f536b5cfde2527c4c5e6e36116226660a99c81b42aec0b080ab939
|
File details
Details for the file muspinsim-2.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 697.1 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6ff89a43a087257c6ea6216bcc95fe9dcf80999b331f4f924f8bbbe60698dbd
|
|
| MD5 |
e6f5bc40133bba55c54fccde83b1ac83
|
|
| BLAKE2b-256 |
7f4cefd93104b90006acdd53f255a00427de88c3f2f27a9cdd0d612dbf8b12a7
|
File details
Details for the file muspinsim-2.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 704.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf95a57f988d165cfe88ef991903ff608e47d957a0681cf2cfed8fdb935a4d0
|
|
| MD5 |
97eee4b227cfad6b61aebb0b69bb1da1
|
|
| BLAKE2b-256 |
be965e3bf4d608ab9d2670572efd54453df8f9d7c48cf65aa50df75bd9d61b3f
|
File details
Details for the file muspinsim-2.3.0-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 237.2 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c6b50cd55fe72e0e0d598e50a70ae1c2c1a5d1ea4ae365d8e906dc7954449c1
|
|
| MD5 |
f26952397eee6393f002819a72556761
|
|
| BLAKE2b-256 |
80ecb7ccd9a08810658747dc69ac0770b9fe882e5a06b8c27b0074ac3de11161
|
File details
Details for the file muspinsim-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 238.4 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4a77e99d5a4aecf9e877245760e7b0aaf9d70dd0031f43a7079231cd85e91e7
|
|
| MD5 |
71c8cba1527fc28079a0f7893334fbd4
|
|
| BLAKE2b-256 |
4cc4c15715d3ecc92388b3bd214c65e5916a9d41152d8ca9fd8864494f4a14cc
|
File details
Details for the file muspinsim-2.3.0-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 225.5 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
110c312d2245185f6e19b6fd3e4be129d69de820b3fad7777733d6960ece39ca
|
|
| MD5 |
ebf4556a78d630e3cb3047d53a9abae4
|
|
| BLAKE2b-256 |
1ecc610808aba3cf8c4250403b98597a195837b3c9230b7f3c6c00aa7868e022
|
File details
Details for the file muspinsim-2.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 699.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9da033592e3cd743ba18d8e938e7100c9af17f276f20e159ffbefcd481e237b
|
|
| MD5 |
d21d7ed5c9506258306913881b069231
|
|
| BLAKE2b-256 |
17ff880fdc2b90ffd43dde670f3a6fddaf845b90b19c21134311596c59128ab2
|
File details
Details for the file muspinsim-2.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 706.1 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85d9ad2a32e3cacdb3e145b82f64b88690a681ba6ca8195419935bc92192400e
|
|
| MD5 |
72879e928840dba1055f528e1b65e874
|
|
| BLAKE2b-256 |
ae220d314d5bd125b3ffaa0a4333d6191962aa12cae73867011983c9f9510457
|
File details
Details for the file muspinsim-2.3.0-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 236.2 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a11089e22e7c5e92c8b45b844f37236f595fb074ee6ee56091d5e57575286ca
|
|
| MD5 |
82fa6a162886fa14e9ce7ec2bc5361df
|
|
| BLAKE2b-256 |
7c3d82930226e372b69231c981f0ee12305f788032c0acd207133f133fbd39be
|
File details
Details for the file muspinsim-2.3.0-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: muspinsim-2.3.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 237.1 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96acaad5e05a28571a3b475cb203f18e451ea44201c0197855966508010248ec
|
|
| MD5 |
cf0479665f94abdf2d74ec421bf73edc
|
|
| BLAKE2b-256 |
d91887f942a7f5b203ec9a2336e788a7f75255af9cf57532f497417c0202a8ec
|