Smart hermitian matrix element example