$$\frac{1}{\sqrt{N}}\sum_{j=0}^{N-1}e^{2\pi i x j \left/ {\phantom\vert\!\!} N \right.}\,\left|j\right\rangle_h\left|j\right\rangle_t$$
For a valid state we should have sum of probabilities = 1. However, when I compute the sum of the squares of the amplitudes of this state, I get zero. Am I making a mistake?