Setting up one row at a time when building initial Hamiltonian can be very time consuming. Is there a better way?