debugging matrix element of self-adjoint property and frequency basis expansion.