N dimensional gate: code written and compiled but not functional/meaning results for a 1d hadamard are not consistent