We prove that a nonzero idempotent is zero-diagonal if and only if it is not a Hilbert–Schmidt perturbation of a projection, along with other useful equivalences. Zero-diagonal operators are those whose diagonal entries are identically zero in some …