Solution (source code)

= Solution

By orthonormality of the <computational basis>,
$$
\langle e_0|x\rangle=\frac1{\sqrt N}\sum_{y=0}^{N-1}\langle y|x\rangle=\frac1{\sqrt N}\sum_{y=0}^{N-1}\delta_{yx}=\boxed{\frac1{\sqrt N}}.
$$
There is one nonzero term, the term with $y=x$. In particular, the uniform coefficient is unchanged when passing from the ket to its bra because it is real.