bugfix: constrained hilbert spaces
Created by: PhilipVinc
Numba np.argwhere is badly supported and returns a non contiguous array that reshape does not like. Use nonzero instead.
I think it's a recent Numba change.
In any case argwhere is internally implemented by Numba with nonzero so... does not change much.