A variational quantum algorithm for Hamiltonian diagonalization. (20th July 2021)