src/HP created chain hamiltonian