PAOFLOW.elphon_native#

Optional Rust kernels of the electron-phonon pipeline (paoflow_rs).

The pure-NumPy implementations stay the reference; the native kernels are used when the extension is importable and PAOFLOW_ELPHON_DISABLE is not set. Parity is tested at 1e-10 relative (the summation order differs).

Functions#

available()

Whether the native electron-phonon kernels can be used.

indirect_absorption(energy_k, energy_kq, velocity_k, ...)

Native indirect_absorption_kernel accumulation (see the Rust kernel for the layout).

Package Contents#

PAOFLOW.elphon_native.available()[source]#

Whether the native electron-phonon kernels can be used.

PAOFLOW.elphon_native.indirect_absorption(energy_k, energy_kq, velocity_k, velocity_kq, coupling, omega_ph, occ_k, occ_kq, bose, photon, etas, degauss, cutoff, pairs_k, pairs_i, pairs_j)[source]#

Native indirect_absorption_kernel accumulation (see the Rust kernel for the layout).

degauss and cutoff are per pair, shape (npairs,) (a constant width is broadcast to it).

Returns:

gaussian, lorentzian – Without the weight * 8 pi^2 g_s / omega^2 prefactor.

Return type:

ndarray (ntemp, neta, 3, nomega)