>>> (0)**np.array([1-1j])
array([nan+nanj])
>>> (0)**torch.tensor([1-1j])
tensor([0.+0.j])
The correct answer here can be worked out by using limits and comes out to be 0 in the case Re(z)> 0, where z is the complex exponent. Please check out this stack exchange answer: https://math.stackexchange.com/questions/2087100/is-zero-to-the-power-of-an-imaginary-number-still-zero which explains this in detail.