Skip to main content

A unified package for optical properties of point defects.

Project description

DefectPL

A comprehensive toolkit for calculating and visualizing photoluminescence spectra of quantum defects. It also supports the analysis of other optical properties of point defects in insulators and semiconductors.

image Downloads Conda Recipe Anaconda image Conda Downloads image

⚠️ This package is currently under active development.


📌 Purpose

DefectPL is designed to compute the photoluminescence intensity of point defects in solids using the methodology described in New J. Phys. 16 (2014) 073026. It also provides tools to calculate and plot related quantities such as:

  • Partial Huang-Rhys factors
  • Huang-Rhys factor
  • Debye-Waller factor
  • Inverse participation ratios (IPR)
  • Localization ratios
  • Vibrational displacements
  • Effect of Isotope substitution
  • Photoluminescence Spectra in the High Huang-Rhys Factor Regime

If you use this package in your research, please consider citing:

Carbon with Stone-Wales defect as quantum emitter in h-BN, Phys. Rev. B 111, 104109 (2025)

Read the article

High-throughput computational search for group-IV-related quantum defects as spin-photon interfaces in 4H-SiC, ChemRxiv (2025)

Read the article


📚 Documentation

Full documentation is available at: https://Shibu778.github.io/defectpl/

🚀 Installation

Install via pip:

pip install defectpl

Install via conda:

conda install conda-forge::defectpl

Install from GitHub:

git clone https://github.com/Shibu778/defectpl.git
cd defectpl/defectpl
pip install -e .

🧑‍💻 Example Usage

Here’s a minimal example using data for a negative NV center in diamond:

from defectpl.defectpl import DefectPl

band_yaml = "../tests/data/band.yaml"
contcar_gs = "../tests/data/CONTCAR_gs"
contcar_es = "../tests/data/CONTCAR_es"
out_dir = "./plots"
EZPL = 1.95
gamma = 2
plot_all = True
iplot_xlim = [1000, 2000]

defctpl = DefectPl(
    band_yaml,
    contcar_gs,
    contcar_es,
    EZPL,
    gamma,
    iplot_xlim=iplot_xlim,
    plot_all=plot_all,
    out_dir=out_dir,
)

Plots Gallery

Intensity vs Phonon Energy Spectral Function, Partial HR factor and Localization Ratio
intensity-photon-energy somega-pHR-locrat-penergy
Vibrational Displacement Phonon Energy
vibrational-displacement phonon-energy
Inverse Participation Ratio Localization Ratio
ipr loc_ratio
Partial HR factor (pHR) Spectral Function, pHR
pHR S_pHR
Spectral Function, Partial HR factor and IPR One Dimensional Vibrational Spectra
S_ipr oned

🤝 Contributing

Contributions, suggestions, and bug reports are welcome!
If you encounter any issues, please open an issue or submit a pull request.


👤 Author

Main Maintainer: Shibu Meher, Manoj Dey

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

defectpl-0.1.5.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

defectpl-0.1.5-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file defectpl-0.1.5.tar.gz.

File metadata

  • Download URL: defectpl-0.1.5.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for defectpl-0.1.5.tar.gz
Algorithm Hash digest
SHA256 db84eadc638e599fe8568b4dd1578a52ab1a654b571534f5b1e587f41dde0365
MD5 f4831c8cfba7b99445dcf9035d9293bb
BLAKE2b-256 a521b21066adbe380bbea2d1900d4f60e62a765abf52617ae599cad6a99f7365

See more details on using hashes here.

File details

Details for the file defectpl-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: defectpl-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for defectpl-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c585b0c0e37423c7ef8b1f6b0215392b0670f02b803872df53e507b4fb31f814
MD5 ac918ec73472de950d03bd7a2a8ffdaa
BLAKE2b-256 43270bfad680bcdd64bc7f0c73d138be94a19c553aa06042970409ca84fa8f60

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