Skip to main content

WIGXJPF evaluates Wigner 3j, 6j and 9j symbols accurately using prime factorisation and multi-word integer arithmetic.

Known issue

Please install pycparser first.

(See https://github.com/pypa/setuptools/issues/391#issuecomment-202919511 )

Inline usage information

Available inline:

import pywigxjpf as wig
help(wig)                # For interfaces.
help(wig.pywigxjpf)      # For usage information.

Library usage

The python interface to wigxjpf uses cffi.

Defines seven functions:

wig_table_init(max_two_j,wigner_type)
wig_table_free()
wig_temp_init(max_two_j)
wig_temp_free()

wig3jj(jj1,jj2,jj3, mm1,mm2,mm3)
wig6jj(jj1,jj2,jj3, jj4,jj5,jj6)
wig9jj(jj1,jj2,jj3, jj4,jj5,jj6, jj7,jj8,jj9)

Note that the arguments are to be given as integers, with twice the numeric value (this is what jj tries to indicate). I.e. half-integer arguments will be passed as odd integers.

The two init functions must be called before evaluating any symbol.

In addition, interfaces that take an array with the arguments are also provided:

wig3jj_array([jj1,jj2,jj3, mm1,mm2,mm3])
wig6jj_array([jj1,jj2,jj3, jj4,jj5,jj6])
wig9jj_array([jj1,jj2,jj3, jj4,jj5,jj6, jj7,jj8,jj9])

Metadata

Release files for pywigxjpf 1.13.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywigxjpf 1.13.3
File Size Uploaded Provenance Actions
pywigxjpf-1.13.3.tar.gz 55.9 kB Without provenance Details for pywigxjpf-1.13.3.tar.gz

Release files / pywigxjpf-1.13.3.tar.gz

Download URL pywigxjpf-1.13.3.tar.gz
Size 55.9 kB
Tags Source
SHA-256 checksum
How to use checksums
30122c9ab2775aa8a0531d01956892627f1c6e82ba65c3abf6b8fc4fb75c3aef
BLAKE2b-256 checksum
How to use checksums
33b9817cb5c68f746b754e52f4e6263ebb4b7d8158c852831df24ac35ad52661
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.2

Security for pywigxjpf 1.13.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page