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
Hashes for muspinsim-2.0.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd1d5b1cc46776372875759afa9da2ead1261c36295ea7912f2dcb9ce99898c9 |
|
MD5 | 072aba6e3ffd4fc4390ac2b1800be9fe |
|
BLAKE2b-256 | 38c5ab374a52c7969fb9fa74a6900b940a90d98bf72f05e8f61b99960b21a362 |
Hashes for muspinsim-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17a28627b7f7e452753e7e8f249a64570bc86826b8256f45472b167f0916fb89 |
|
MD5 | 5c7be2d3cd099188f1733641fd52626d |
|
BLAKE2b-256 | 67139595d29a71d825ec6c559394b9e5a850e238f309c0b2e27a7b8ac17ade68 |
Hashes for muspinsim-2.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 310495bcfb004bfbb6d0500759f458503c8f3364b401295a205ff97bb58ec39f |
|
MD5 | b560881de9da86be27435b7157a137c9 |
|
BLAKE2b-256 | 8cdec4f9534608c13b7ad21f43b45b4c728ef7090098e6f05c68c3420e0d608b |
Hashes for muspinsim-2.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a508ae66d27b742f13f1f3c5eebc71d31ccd4afc2e1db5f4eac605fbd9fee764 |
|
MD5 | a879b6f13975bf4de006a9ba4fca2917 |
|
BLAKE2b-256 | da30c33f6447e2fcc7761a0a7e82711b0c54ee2dbbcf96961e9e6ba0839b081c |
Hashes for muspinsim-2.0.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981b95cf51820a51ca7e554d201c6664bee8ca9b1f71db6660296d7313ec8178 |
|
MD5 | 0dab75ebe3960b950e9f55b05c90cb66 |
|
BLAKE2b-256 | d9a4b371fd3a189994e03f1d9750b49f9304734190b9c13aba20e0d4f0a11388 |
Hashes for muspinsim-2.0.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4eed42fe91342007f3b46d53f79a502a4b92cf1dc25aa5e990be8d8cbf95c3b |
|
MD5 | ab3e312acf7e0c8c829819948c7772fc |
|
BLAKE2b-256 | ba29e51b0e1ec55b3d603bf96196f1dc46b924de9d16e8479ed3284db952737e |
Hashes for muspinsim-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2934d778004831e347373c2f2325600180ba8aaecf9376cfe7761ae528742d27 |
|
MD5 | dcd073f067724b4a22bcc80ddff95d16 |
|
BLAKE2b-256 | 0316cddfd9423d578920af5e63d89ec2d1be54c92b7eb5da8009060b661736df |
Hashes for muspinsim-2.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0dbc0db6e09a1691430b7b3f0510873115ece211731c1e6f7da8b3de7494527 |
|
MD5 | d801ba0c6a7688105a804902a3200868 |
|
BLAKE2b-256 | 4c23559dd32c94a6fb64535bf55193987bfca848562ca8cfb5148fd5b4b68f24 |
Hashes for muspinsim-2.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aed7a8b5eed354307073fd8d9c8d2c9f9d460a52c5c3e0f7f154b973250b1778 |
|
MD5 | 514c91e2d616a86417ad09214b9c362b |
|
BLAKE2b-256 | 01c0c782fd14f068b284fe20daabec2e15fbb185c9bd63b6a35b7a07c6ea250b |
Hashes for muspinsim-2.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9948856ace94f4a6388580407220e8ea39f213d3d9c045197aa05c2d2fcabf5b |
|
MD5 | 41de1da76ffa034f1c81002332e7652a |
|
BLAKE2b-256 | c7be27b360453908ccc95314e66adae54b4ed9ac01e67bcded4770ba5f92938d |
Hashes for muspinsim-2.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0605931a93c91b822e7637cf936714d67fa9ecb66fa79a47557a7ab90ffca178 |
|
MD5 | 7e4d62ef879e5c5f388bbb8cf289a827 |
|
BLAKE2b-256 | 2b9e0575844d10926c0ce9e8452212204934b762d64291e4b6981699394f532c |
Hashes for muspinsim-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c2ed992e3d0f73524e80e242cd4133a722edfaeb311e4c50a92d2869bc06fa1 |
|
MD5 | f2f3406a1380b56238234dddf5e7b766 |
|
BLAKE2b-256 | e2a530a1f08c9a0ee7b6992613a7b243d8d2ead640aca0b1147053f7684205ea |
Hashes for muspinsim-2.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e024e1794d6f5f1ece01cf5291c97d938f229e0225a49ea5810320051cf4670a |
|
MD5 | 4e9dc1b455d72d1e3eeee18486d745b5 |
|
BLAKE2b-256 | aebd8ac9bdbf0a6c9eb26c65b8b45db80a5ee1a48bf83192fd76dc52366f5ac5 |
Hashes for muspinsim-2.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d2375af7b439cfd2dc9243e2b907df599b73a37de3ac725a8ca3f2ec983e381 |
|
MD5 | b6cf038d47c71ce2dcc03e9c3125afec |
|
BLAKE2b-256 | fa06ed6d17b3a24331edc497248bc66ae8efe65b175e21eda25687e14f02742c |
Hashes for muspinsim-2.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be27278eaab564800c8510898a5613a6918f55eecdd5b04416de45bd9147d4b7 |
|
MD5 | e8e62ff6b8358362ac91126970e9a0af |
|
BLAKE2b-256 | f906e39bd314205cc16fc3a4d541cd89cafa8a773728592b6ee274aefa60db0c |
Hashes for muspinsim-2.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813c3cd9124a3a04595fba179257abb10aa8d2dc000efce79c2a0ef123e47dd4 |
|
MD5 | 25e18e5f34d0369203101a764bdbecbd |
|
BLAKE2b-256 | 1f101b87db988e7824690fdda7e5c4e0fd8128d30872238f658ec6d0c5dd093b |
Hashes for muspinsim-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694ec66de3915211b2363bc6fd5422b142b34295f1c5090084272887ccbb99c0 |
|
MD5 | e5951dc7ee372d22ba2fd042da7bd4d6 |
|
BLAKE2b-256 | 306876d3dbe65187198c2bf0a25af06985121885a83bcf0e2c2a380b3babd52c |
Hashes for muspinsim-2.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e814f1702670f42e7d6d8fac32c2a44ea52f54c11052c5127764f3d7848cb0a |
|
MD5 | 7e421532a923c3cf580f3cfdf5fe929b |
|
BLAKE2b-256 | 6a00ae839a819740131c170282e8a42c778c50fe603a0ff9140b77beb1d5fbed |
Hashes for muspinsim-2.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8bd257732a05751948c128ed1e40b905e8caf484bcf5d0f2ec48dd073ee29d5 |
|
MD5 | 7f2e67dd36a84926f33b3ebe5b7c0d32 |
|
BLAKE2b-256 | 7836960acb0aaca3ca7c7cb0d40d341ebc21a7390a6ad1002310cd6bd7504e1c |
Hashes for muspinsim-2.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf532e9a8bbae0476953560103cf846f027fd75bc150f8f2b1bfbbac07b553a |
|
MD5 | 893b7d68e554e4977efd3edde2435b81 |
|
BLAKE2b-256 | ba1f4ae5aa0d1122706a627ebf70521469cd81215dda851f739f7d034f299e04 |