photoselect#

torchspin.photoselect(tdm, ori, k, alpha)[source]#

Compute photo-selection weight.

Parameters:
  • tdm –

    Transition dipole moment orientation in the molecular frame. Can be:

    • A string like 'x', 'z', 'xz', '-y'

    • A 3-element vector [mx, my, mz] (normalized automatically)

    • A 2-element array [phi, theta] (spherical angles in radians)

  • ori (ndarray) – Orientation(s) as an (N, 2) or (N, 3) array of Euler angles [phi, theta] or [phi, theta, chi] (radians). If chi is omitted, the integral over chi from 0 to 2*pi is computed.

  • k – Light propagation direction in the lab frame. Same input formats as tdm.

  • alpha (float) – Polarization angle (radians). Defines the E-field orientation in the plane perpendicular to k. Use float('nan') for unpolarized/depolarized light.

Returns:

weight – Photo-selection weight(s), shape (N,), values in [0, 1].

Return type:

ndarray