pdft.coherence.is_flat_modulus

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.allclose with this atol, so its default relative slack of 1e-5 applies on top: a basis held in single precision, which sits about 2e-8 from flat, passes. For the number itself use flat_modulus_deviation.

Parameters:
Return type:

bool