Fast spin-operator generation in Cython
Project description
spinOps
| Deployment | |
| Build Status | |
| License | |
| Metrics |
spinOps is a Python package for performing operations on quantum spin systems. It provides tools for creating and manipulating spin operators, irreducible spherical tensors, and performing quantum state rotations using Wigner D-matrix elements.
Features
- Generate Clebsch-Gordan coefficients and tensor operators.
- Create spin operator matrices (e.g., (I_x), (I_y), (I_z), (I_+), (I_-)).
- Handle fictitious spin-1/2 systems.
- Compute irreducible spherical tensors in PAS ((\rho_1), (\rho_2)).
- Perform rotations using Wigner D-matrix elements.
Installation
Install the package from PyPI:
pip install spinOps
Example
import spinOps
# Create a spin operator matrix for a system of two coupled spin-1/2 nuclei.
# In this example:
# - The first argument (0) specifies the operator index (e.g., I_x for the first nucleus).
# - The second argument [1, 1] indicates the spin value for each nucleus, where
# each entry is twice the actual spin (1 corresponds to 1/2 in this context).
operator = spinOps.createIx(0, [1, 1])
# Print the generated operator matrix to verify its structure and values.
print(operator)
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 Distributions
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 spinops-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: spinops-0.1.0-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 504.9 kB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f9422b1099608a32a04c951cf0a9f122dd9a1fead65abac9aa9ad0cbe38f2d
|
|
| MD5 |
5c1afb1fbcc5184769534b5f7053c0c9
|
|
| BLAKE2b-256 |
3e9d08b196d57e9c19724ca422af02696a0aa782823f03930d52732a933e5299
|
File details
Details for the file spinops-0.1.0-cp313-cp313-musllinux_1_2_i686.whl.
File metadata
- Download URL: spinops-0.1.0-cp313-cp313-musllinux_1_2_i686.whl
- Upload date:
- Size: 477.5 kB
- Tags: CPython 3.13, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03d117043f6674488d85bb53b8914006554d3ffec7598107f74d32b761cbca90
|
|
| MD5 |
db1cee2a561f25971531b0a02cf8e40c
|
|
| BLAKE2b-256 |
15ee7e5c1c1e4a937240a7f20a42c75181ad6184e6f6def68f79374705d653d5
|
File details
Details for the file spinops-0.1.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: spinops-0.1.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 509.6 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12b6348b3f0b7c6cecbd29c0d76b276f76fb7823ba1b75c6c0ca7bd016bcb639
|
|
| MD5 |
f0cd3be187a9204d31796791bc74383f
|
|
| BLAKE2b-256 |
fb88b92ef9cbff22aa3115353da7080bb3ae9cd2333fa2e2848359b163b9f852
|
File details
Details for the file spinops-0.1.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: spinops-0.1.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 476.1 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1659e1eed43079e8f4d40d2ae9cc4676b2fc8fbaa410ccb35af9bf31a5bb5a1f
|
|
| MD5 |
b3f1bad56777ca23387bbd2194be79e7
|
|
| BLAKE2b-256 |
db5db90c5b651db966fa82cec6a3acb1e3f9f02d5c506f7ab51e114b8dfcb036
|
File details
Details for the file spinops-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: spinops-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 167.4 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab89b59689e09458bc4f5a6475f8b1f900576390af774068fd6e80f0b747c95
|
|
| MD5 |
4b98185d6126c75e9bc1460347d20b69
|
|
| BLAKE2b-256 |
4a5ed410aa409b5dbbf3e910e243237f02d8e2879020434b8309f88f51089834
|
File details
Details for the file spinops-0.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: spinops-0.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 187.9 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe91c018ba7a448a16fb9f471350e8da366dfaa087a48d996660657293265599
|
|
| MD5 |
33d699effe1a47be68590fc641819f19
|
|
| BLAKE2b-256 |
29d8fcc226d12689dcdc1d40972f23c49f7477acdbb5a3f51cdd55f1a3dc0651
|
File details
Details for the file spinops-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: spinops-0.1.0-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 503.3 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64939d4dcac3f6acfb12b4862ca3c251282329c3aafcfa79ed956de5c4af36aa
|
|
| MD5 |
8a1dbfaed75065b47e625768bf854478
|
|
| BLAKE2b-256 |
94638663320403e390252669f5f2aff0765e09e239eced5f762ae7710863c625
|
File details
Details for the file spinops-0.1.0-cp312-cp312-musllinux_1_2_i686.whl.
File metadata
- Download URL: spinops-0.1.0-cp312-cp312-musllinux_1_2_i686.whl
- Upload date:
- Size: 505.8 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90fb01cbcf9384007316b88d4b588ae07bd5dbb4c79d17121d940c9444ebbdac
|
|
| MD5 |
c0eb3d96455870e97253bbdbf35aa0dd
|
|
| BLAKE2b-256 |
64cb00ba15705db7a447787cf6e109b9e425d17da7570d1ecb71c78464584915
|
File details
Details for the file spinops-0.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: spinops-0.1.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 519.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4453cc64a1312145d7c026ef28bb48cc9956bc11bc08754e3d6a943ccf171cc3
|
|
| MD5 |
62e4f5cf7b28895169ee1e503e0cad44
|
|
| BLAKE2b-256 |
27b3cf8753213135b9194774b0af833a6dc7f91bb70c3d5a1d38c2ed23bc9bf6
|
File details
Details for the file spinops-0.1.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: spinops-0.1.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 482.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8b8977949538fd81631a2447de0aead23b012264fd1b2184074efbe8bc8f6bb
|
|
| MD5 |
762d54c60f167d2714b80142493d9aff
|
|
| BLAKE2b-256 |
51c4b881f15d2583429a250963fdae03ca59c3a4b7c3897dc8c4acb1434142b7
|
File details
Details for the file spinops-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: spinops-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 168.4 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c617ab859407ca33351a00effa4d1e19ab41f7f29f44cda67d4be2c933782518
|
|
| MD5 |
c6dd992fc9a6df3d71494624d32b6ce6
|
|
| BLAKE2b-256 |
f2d9f6528febb688106991b322dee3d731783f4e576c36b809697cc9b71241b9
|