Hamiltonian diagonalization is at the heart of understanding physical properties and practical applications quantum systems. It highly desired to design algorithms that can speedup diagonalization, especially those be implemented on near-term devices. In this work, we propose a variational algorithm for Hamiltonians (VQHD) systems, which explores important properties, such as temperature, local...