spin chain hamiltonians

nice function creating exp(-iH) where H is the spin chain hamiltonian
for either the z or the x and y versions of the chain. Checks they are
unitary and they are!