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. Tutorials and the API documentation are available on the Homepage. Additional example scripts can be found in the example folder on GitHub.
- 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.
- Calculate frequently used physical observables such as kinetic energies, velocities, Doppler shifts, hyperfine structure splittings, etc.
- 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.