pdft.coherence.is_flat_modulus#
- pdft.coherence.is_flat_modulus(basis, operator=None, atol=1e-08)[source]#
True if
|U_ij| = N^{-1/2}everywhere, i.e. sqrt(N) U is complex Hadamard.The comparison is
jnp.allclosewith thisatol, so its default relative slack of1e-5applies on top: a basis held in single precision, which sits about2e-8from flat, passes. For the number itself useflat_modulus_deviation.