Skip to main content

AMELI 1.3.5 (Angular Matrix Elements of Lanthanide Ions)

This is a Python 3 package to calculate the constant angular matrix elements of spherical tensor operators of lanthanide ions in exact arithmetic using SymPy. Each matrix element is stored as signed square root of a rational number. The basic functions support any many-electron configuration, but the implementation of most high-level operators is specific for single-shell systems like the lanthanide ions.

The main purpose of this software is the preparation of the comprehensive matrix datasets in the AMELI community on Zenodo. Each lanthanide dataset for the electron configurations $f^1$ to $f^{13}$ contains unit tensor operators, angular momentum operators and perturbation Hamiltonians. All relevant perturbation operators are provided in first order (Coulomb, spin-orbit, spin-spin, spin-other-orbit) and in second order (Coulomb, electrostatic spin-orbit).

The AMELI matrix datasets are intended as replacements for the printed and incomplete tables published mainly by B. R. Judd, W. T. Carnall, C. W. Nielson, and G. F. Koster on the 1960s and 1970s. In particular they are intended to replace all tables of reduced unit tensor matrix elements in intermediate coupling still used for Judd-Ofelt calculations. Such calculations should instead be based on a set of radial integrals serving as linear expansion coefficients for the operator matrices.

General Remarks

All angular matrices of a given electron configuration are constants and need to be calculated only once. This software package therefore is intended mainly as reference. Instead of integrating AMELI code into your own project, you should use the matrices from the AMELI repository on Zenodo. A reference implementation is available with the YALIP package. It provides access to floating point representations of all AMELI matrices and basis states, it calculates energy levels in intermediate coupling and radiative transition properties, and it fits radial integrals and Judd-Ofelt parameters to measured absorption spectra.

AMELI calculates operator matrices in the product state space together with a transformation matrix to $LS$-coupling in exact arithmetic. All characteristic eigenvalues and irreducible representations for each state are provided. Global signs are synchronized for states inside each $J$-multiplet. This allows to use reduced matrices for intermediate coupling in amorphous materials.

All matrices and other intermediate calculation results are stored as SciDataContainer files enriched with plenty of meta data and descriptions. Following the FAIR data principles of research data management the container content is easily accessible to humans and machines. A Python implementation is available, but not necessary, because a SciDataContainer file is just a ZIP folder. AMELI containers consist only of JSON files for the meta data and HDF5 files for the numerical data.

Documentation

An open-access paper on the mathematical background of AMELI, its workflow, and a detailed comparison of the resulting tensor matrices to the literature has been published in the Journal of Chemical Physics.

Installation

You can install the AMELI software directly from PyPI using pip:

pip install ameli

Application 1: Energy Levels of Lanthanides

The matrices can be used for the fit of lanthanide energy levels to measured absorption spectra resulting in radial integrals and the coefficients of all states in intermediate coupling. For crystalline materials these calculations can take full advantage of all spectral lines using the even-rank unit tensor operators for modelling the crystal-field splitting. This includes the mixing of states with different $J$ quantum number. For amorphous materials the calculations can take advantage of the effective rotational site symmetry which allows to perform them in a reduced $SLJ$ space with much smaller matrices.

Application 2: Transition Intensities of Lanthanides

Based on radial integrals from the literature or own energy-level fits, the coefficients of all states in intermediate coupling can be determined as linear combination of $LS$-states. This makes the generation of all reduced matrix elements for Judd-Ofelt calculations a simple task. While the Judd-Ofelt theory is standard to predict the radiative intensities of every emission and absorption transition from measured absorption spectra in amorphous hosts, it is not intended for crystalline hosts. The AMELI repository contains all matrices for the Crystal Field Intensity (CFI) method instead, which uses the same mathematical procedure as Judd-Ofelt, but with a larger set of parameters reflecting the richer structure of crystalline spectra. Based on odd-rank unit tensor operators the electric dipole operators for any site-symmetry can be modelled in addition to the magnetic dipole operator, which is the same for amorphous and crystalline materials.

Package Structure

The main code of the AMELI package is contained in the folder ameli. The script generate.py in the folder generate is used to calculate the full set of matrices for all lanthanide configurations. Due to the exact arithmetic this is a time-consuming process. Even though the script builds a dependency graph and schedules the computation tasks to all available CPU cores, it takes several days to finish. The folder testcontains a set of test scripts orchestrated by the main script test.py which perform a large number of mathematical tests and comparisons to values published in printed literature. Its subfolder results contains the results from a test run and the subfolder tables contains the script used to extract the comparison tables in the AMELI paper from the test results. The folder upload is for documentation only. It contains the scripts used to upload and update the matrix datasets on the Zenodo repository.

Reference

Reinhard Caspary (2026): AMELI: Angular Matrix Elements of Lanthanide Ions., J. Chem. Phys. 165, 064308 (2026), DOI 10.1063/5.0335592

Metadata

Release files for AMELI 1.3.5

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

Source distribution (sdist)

Source distribution for AMELI 1.3.5
File Size Uploaded
ameli-1.3.5.tar.gz 58.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AMELI 1.3.5
File Interpreter ABI Platform
ameli-1.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 114.4 kB

Release files / ameli-1.3.5.tar.gz

Download URL ameli-1.3.5.tar.gz
Size 58.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fcd19608e09b62aad7bd16bee8b34a0c5045336cb8be50e4073c7ddb2ebe029b
BLAKE2b-256 checksum
How to use checksums
fe6ba7475334799df30a0b3ec0d2314fa16bc615d621193135702dca70716ba8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / ameli-1.3.5-py3-none-any.whl

Download URL ameli-1.3.5-py3-none-any.whl
Size 56.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b71cd5c4a23f10342be3bf64bebb2fc6559cb5570c55c2525b847c4acae65b08
BLAKE2b-256 checksum
How to use checksums
b8fd55b6182e4c6019a8232f46692792f5fabef92b2e8545a34d89df705ec47d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.5 This release

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

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