update initializing_hamiltonian

define nthSpinZOperator