Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

Tutorials

In this section tutorials for different parts of qspec are put together to facilitate the access to the code base. The tutorials assume you have already installed qspec. For a guide to install qspec, see Install. All of qspec's content can be accessed using

import qspec as qs
import qspec.models as mod
import qspec.simulate as sim

Physical, statistical and general mathematical functions as well as data processing routines can be accessed directly from the qspec namespace. The two submodules qspec.models and qspec.simulate feature object-oriented frameworks to construct fit models and to simulate laser-atom interactions, respectively. For a detailed introduction of these, please refer to the API documentation or the tutorials below.

The following tutorials guide you though different applications of qspec. The code from the tutorials and additional examples can be downloaded from the GitHub repository.

  1. Getting started (from publication)
  2. Calculation of hyperfine structure and Zeeman shifts
  3. Construction and fitting of modular lineshape models
  4. Time evolution of quantum interference in fluorescence spectra (from publication)
  5. 2d King-plot analyses (from publication)