maxwelllink.matter.spectra module

Absorption spectra from delta-kicked dipole trajectories.

class maxwelllink.matter.spectra.SpectrumResult[source]

Bases: object

An absorption spectrum extracted from a dipole trajectory.

Variables:
  • energy_ev (numpy.ndarray, shape (n_omega,)) – Photon energy grid in eV.

  • strength_au (numpy.ndarray, shape (n_omega,)) – Dipole strength function S(omega) along the kicked direction, in atomic units (1/Hartree).

  • alpha_au (numpy.ndarray of complex, shape (n_omega, 3)) – The kicked column of the polarizability tensor, in atomic units.

  • method (str) – 'fft' or 'pade'.

  • damping_ev (float) – Lorentzian broadening (HWHM) applied to the signal, in eV.

__init__(energy_ev, strength_au, alpha_au, method, damping_ev, details=<factory>)
Parameters:
  • energy_ev (ndarray)

  • strength_au (ndarray)

  • alpha_au (ndarray)

  • method (str)

  • damping_ev (float)

  • details (dict)

Return type:

None

alpha_au: ndarray
damping_ev: float
details: dict
energy_ev: ndarray
method: str
property omega_au

The energy grid in atomic units (Hartree).

strength_au: ndarray
maxwelllink.matter.spectra.dipole_spectrum(time_au, dipole_au, kick_au, direction='z', method='pade', damping_ev=0.1, energy_range_ev=(0.0, 10.0), n_energies=2000, subtract_initial=True, pade_max_points=5000)[source]

Absorption spectrum of a delta-kicked dipole trajectory.

Parameters:
  • time_au (array-like of float, shape (n,)) – Uniformly spaced sample times in atomic units (an offset first sample, e.g. the drivers’ midpoint times (k + 1/2) dt, is handled).

  • dipole_au (array-like of float, shape (n, 3) or (n,)) – Dipole samples in atomic units. A 1D array is taken as the component along direction.

  • kick_au (float) – The delta-kick strength the trajectory was started with.

  • direction ({'x', 'y', 'z'}, default: 'z') – The kicked direction (selects the diagonal element for the strength function).

  • method ({'pade', 'fft'}, default: 'pade') – The discrete transform: the Pade-accelerated one of Bruner et al., or a plain damped Fourier sum.

  • damping_ev (float, default: 0.1) – Lorentzian broadening (HWHM): the signal is multiplied by exp(-gamma t) with gamma = damping_ev (converted to a.u.).

  • energy_range_ev (tuple of float, default: (0.0, 10.0)) – Photon-energy window of the output grid.

  • n_energies (int, default: 2000) – Number of grid points.

  • subtract_initial (bool, default: True) – Subtract the first dipole sample before transforming.

  • pade_max_points (int, default: 5000) – The Pade solve is O(n^2) in the number of samples, so trajectories longer than this are truncated first (the method’s premise is that a short signal is enough). None uses every sample.

Return type:

SpectrumResult