Function boltzmann_factor_kernel
Source pub fn boltzmann_factor_kernel(
energy: Energy,
temp: Temperature,
) -> Result<Probability, PhysicsError>
Expand description
Calculates the unnormalized Boltzmann factor: $e^{-E/k_BT}$.
Returns a Probability which clamps the value to [0, 1].
Assumes $E \ge 0$ relative to ground state.
§Arguments
energy - Energy state $E$.
temp - Temperature $T$.
§Returns
Result<Probability, PhysicsError> - Boltzmann factor.