Skip to content

patmlr/qspec

Repository files navigation

qspec

Static Badge Static Badge Static Badge

Static Badge Static Badge

The qspec Python package provides mathematical and physical functions frequently used in laser spectroscopy but also more general methods for data processing. Most functions are compatible with numpy arrays and are able to process n-dimensional arrays. This enables fast calculations with large samples of data, e.g., facilitating Monte-Carlo simulations. The API documentation and example scripts are available on the GitHub page.

Dependencies

Modules

  • algebra: Contains functions to calculate dipole coefficients and Wigner-j symbols.
  • analyze: Contains optimization functions and a class for King-plots.
  • models: Framework to generate modular fit models.
  • physics: Library of physical functions.
  • simulate: Intuitive framework to simulate coherent laser-atom interactions.
  • stats: Contains functions for the statistical analysis of data.
  • tools: General helper, print, data shaping and mathematical functions.

Use cases

  • Coherently evolve atomic state population in a classical laser field. In contrast to powerful packages such as qutip, the quantum mechanical system is set up automatically by just providing atomic state and laser information.
  • Generate modular lineshape models for fitting. The modular system can be used to sum, convolve, link models and share parameters, fit hyperfine structure spectra, etc. This module is similar to the satlas2 Python package.
  • Perform multidimensional King-plot analyses.
  • Calculate frequently used physical observables such as kinetic energies, velocities, Doppler shifts, hyperfine structure splittings, etc.