Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muspinsim-2.3.0.tar.gz (199.3 kB view hashes)

Uploaded Source

Built Distributions

muspinsim-2.3.0-cp311-cp311-win_amd64.whl (223.7 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

muspinsim-2.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (708.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

muspinsim-2.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (714.7 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

muspinsim-2.3.0-cp311-cp311-macosx_11_0_arm64.whl (236.0 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

muspinsim-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl (237.2 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

muspinsim-2.3.0-cp310-cp310-win_amd64.whl (224.5 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

muspinsim-2.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (693.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

muspinsim-2.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (699.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

muspinsim-2.3.0-cp310-cp310-macosx_11_0_arm64.whl (236.8 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

muspinsim-2.3.0-cp310-cp310-macosx_10_9_x86_64.whl (237.9 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

muspinsim-2.3.0-cp39-cp39-win_amd64.whl (224.5 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

muspinsim-2.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (697.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

muspinsim-2.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (704.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

muspinsim-2.3.0-cp39-cp39-macosx_11_0_arm64.whl (237.2 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

muspinsim-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl (238.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

muspinsim-2.3.0-cp38-cp38-win_amd64.whl (225.5 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

muspinsim-2.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (699.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

muspinsim-2.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (706.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

muspinsim-2.3.0-cp38-cp38-macosx_11_0_arm64.whl (236.2 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

muspinsim-2.3.0-cp38-cp38-macosx_10_9_x86_64.whl (237.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page