Skip to main content

API reference

Solvers

Time-domain and spatial-propagation solvers.

PropagationSolver Solver for the propagation of fields through a medium of systems.
LindbladSolver Time-domain master equation solver for a single spatial point.

Differentiable propagation

Exact gradients through the propagation (needs the jax extra).

autodiff.AutodiffPropagation A differentiable version of a :class:~clerq.PropagationSolver problem.
autodiff.OptimizeResult The outcome of :meth:AutodiffPropagation.minimize.
autodiff.controls.gaussian_basis Gaussian bumps on a regular grid of centres, evaluated at the times t.
autodiff.controls.fit_coefficients Least-squares coefficients a with basis @ a closest to target.
autodiff.controls.bounded Map real values to (lower, upper) with a sigmoid (JAX-differentiable).
autodiff.controls.unbounded Inverse of :func:bounded; values are first clipped margin inside the range.

Exceptions

Raised by PropagationSolver.solve().

exceptions.PropagationInstabilityError Raised when a propagation solve has blown up numerically.
exceptions.CounterPropagatingDepletionError Raised when a counter-propagating field depletes beyond the error threshold.

Systems and fields

System An open quantum system: its states, decays and the fields coupling them.
Field Field object to address the System object, describing the atomic levels

Time functions

t_funcs.square Return a square (top-hat) pulse time function.
t_funcs.gaussian Return a Gaussian pulse time function.
t_funcs.sech Return a sech pulse time function.
t_funcs.ramp_on Return a ramp-on time function.
t_funcs.ramp_off Return a ramp-off time function.
t_funcs.ramp_onoff Return a ramp-on / ramp-off time function.
t_funcs.ramp_offon Return a ramp-off / ramp-on time function.
t_funcs.sinc Return a sinc pulse time function.
t_funcs.sin2 Return a sin-squared (Hann) pulse time function.
t_funcs.super_gaussian Return a super-Gaussian pulse time function.
t_funcs.exp_decay Return a decaying-exponential pulse time function.
t_funcs.exp_rise Return a rising-exponential pulse time function.
t_funcs.intp Return an interpolated time function.

Spectral analysis

spectral.freq_list Fourier transform of the tlist into the frequency domain for
spectral.rabi_freq Fourier transform of the field result of field index.
spectral.absorption Field absorption in the frequency domain.
spectral.dispersion Field dispersion in the frequency domain.
spectral.susceptibility_two_linear_known In the linear regime for a two-level system, the susceptibility is
spectral.absorption_two_linear_known The field absorption, equal to the imaginary part of the susceptibility.
spectral.dispersion_two_linear_known The field dispersion, equal to the real part of the susceptibility.
spectral.voigt_two_linear_known Returns the Voigt profile for a two-level system in the linear regime.

Hyperfine structure

hyperfine.Atom1e Represents an atom object and contains a list of J levels.
hyperfine.LevelF Represents an F hyperfine structure level and holds its magnetic
hyperfine.LevelMF Represents an m_F hyperfine sublevel.

Unit conversions

From experimental units to clerq’s (MHz, µs, cm).

macro.saturation_intensity Saturation intensity of a cycling transition, pi h c Gamma / (3 lambda^3).
macro.intensity_to_rabi_freq Cyclic Rabi frequency of a field of the given intensity.
macro.rabi_freq_to_intensity Intensity, in mW/cm^2, for a cyclic Rabi frequency Omega / 2 pi in MHz.
macro.gaussian_beam_peak_intensity Peak intensity of a circular Gaussian beam, 2 P / (pi w^2).
macro.interaction_strength Interaction strength per atom, g / 2 pi = sigma_0 gamma / 4, with gamma = Gamma / 2 pi.
macro.resonant_optical_depth Resonant intensity optical depth N sigma_0 L of a cold, weak-field medium.
macro.thermal_width The thermal_width of velocity_classes for a vapor.

Utilities

utility.maxwell_boltzmann Maxwell-Boltzmann probability distribution.
utility.half_max_roots Return the half-maximum value and the two roots where y crosses it.
utility.full_width_at_half_max Return the full width at half maximum (FWHM) of a peak.