Deallocate GS hamiltnoian after use