Skip to main content

Software to evaluate the optical lineshape function of a defect.

Project description

lineshape_tools

lineshape_tools is a Python software that implements the formulation for evaluating the effects of electron-phonon coupling on the optical properties of defects. In particular, it implements the approach pioneered by Alkauskas et al. to compute the lineshape function within Huang-Rhys theory. The code interfaces with mace and phonopy to evaluate the dynamical matrix and obtain the phonons of a defect-containing supercell.

Key Features:

  • Compute the temperature-dependent luminescence and absorption spectrum
  • Compatible with phonons computed directly with Phonopy
  • Accelerate evaluation of phonons with mace foundation models
  • Convenience tools to fine-tune a mace foundation model to your specific system

Installation

To install the latest version of lineshape_tools, create a new virtual environment and run

pip install lineshape_tools

For more installation information and some performance considerations, see the Installation page.

Usage

lineshape_tools provides a command-line interface for interacting with the code. See

lineshape_tools --help

Detailed usage information can be found in the Tutorials page.

How to Cite

If you use this code, please consider citing

@misc{turiansky_machine_2025,
  title = {Machine Learning Phonon Spectra for Fast and Accurate Optical Lineshapes of Defects}, 
  author = {Mark E. Turiansky and John L. Lyons and Noam Bernstein},
  year = {2025},
  number = {arXiv:2508.09113},
  eprint = {2508.09113},
  archiveprefix = {arXiv},
  primaryclass = {cond-mat.mtrl-sci},
  doi = {10.48550/arXiv.2508.09113},
  url = {https://arxiv.org/abs/2508.09113}, 
}

Please also consider citing the foundational works that made this code possible on the Citation page.

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

lineshape_tools-0.1.2.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

lineshape_tools-0.1.2-py3-none-any.whl (200.9 kB view details)

Uploaded Python 3

File details

Details for the file lineshape_tools-0.1.2.tar.gz.

File metadata

  • Download URL: lineshape_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.6 CPython/3.11.10 Linux/4.18.0-553.89.1.el8_10.x86_64

File hashes

Hashes for lineshape_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0e5af95d35a5a10da375834c44511c9360a7fe721edf6685418494dff509cb28
MD5 a46166c562f113a529e55f0329adfb18
BLAKE2b-256 24b2c9c3752430b431dcbdb639e276df9e897ef87561fb0e2ac781bee03c7c3c

See more details on using hashes here.

File details

Details for the file lineshape_tools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: lineshape_tools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 200.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.6 CPython/3.11.10 Linux/4.18.0-553.89.1.el8_10.x86_64

File hashes

Hashes for lineshape_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd2e509ef6d7ee9c0918f5a650874f7e11479acc268f168192f5cea7e9eb9049
MD5 2d3d5af7b843129223566838de99fd70
BLAKE2b-256 5939badd78b3e48a3cdc45fdd4ed261c530bf2bf27db34862e021fb5b43f481c

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