Skip to main content

Simple Python script to simulate NQR Bloch equations

Project description

NQR Bloch Simulator for Python

This is a Python implementation of an NQR Bloch Simulator. It can be used for simulating NQR spectroscopy signals in the time domain. The simulator is based on the paper [1].

Right now the implementation is in a early stage and has not yet been tested and verified.

Installation

Create a virtual environment and activate it:

python -m venv venv
source venv/bin/activate

To install the package, run the following command in the root directory of the project:

pip install .

Alternatively you can install the package via PyPI:

pip install nqr-blochsimulator

The package can then be tested by running

python -m unittest tests/simulation.py

This will run a simulation of a simple FID for BiPh3 and plot the result in time domain.

References

The simulator is based on the paper:

[1] C. Graf, A. Rund, C.S. Aigner, R. Stollberger, Accuracy and Performance Analysis for Bloch and Bloch-McConnell simulation methods Journal of Magnetic Resonance 329(3):107011 doi: 10.1016/j.jmr.2021.107011

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

nqr_blochsimulator-0.0.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nqr_blochsimulator-0.0.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file nqr_blochsimulator-0.0.3.tar.gz.

File metadata

  • Download URL: nqr_blochsimulator-0.0.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for nqr_blochsimulator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2c84cc9480361b3f5a0855d27690cd0776c55d0d8b8150ca0ca249052d7b8790
MD5 2fafd5b8567fca4452d2b6e9f7b7ca70
BLAKE2b-256 5bd8256eabd8eeea969b61fd907065b4b6f7f6751646419bda978232cf3d4037

See more details on using hashes here.

File details

Details for the file nqr_blochsimulator-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nqr_blochsimulator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 764865520cc99f1eb432288c07f28d65b581ec8b3acccd911cb8c643a3389b23
MD5 0d74171f4cbbae20f08191d13a287397
BLAKE2b-256 7018e48e45367eb94366a56c6b7b9c52abf33222c6d9623ab346d7c652a0f2e3

See more details on using hashes here.

Supported by

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