pytc.solver.bug_core.plateau_tol

pytc.solver.bug_core.plateau_tol(truncation, tau, energy)[source]

Energy change below which the iteration has settled under the cut.

An energy cutoff is already in Hartree; an amplitude cutoff tau bounds a relative energy error of order tau**2. Neither can go below the roundoff of the energy itself, or a tight tau never stops. That energy is a sum of rank**2 terms; its iteration-to-iteration noise is ~1e-14 relative on one BLAS and several times that on another, so the floor is 1e-13.

Parameters:
  • truncation (str)

  • tau (float)

  • energy (float)

Return type:

float