I know it is the norm of a vector $a$ which generalizes the length (that is what inner products bring from geometric vectors to the rest of vectors) of a vector $a$ in three-dimensional space. What I do not know is why the formula is like that.
Thank you
It comes form the fact that, given two vectors $a$ and $b$, $\langle a|b\rangle=\|a\|\cdot\|b\|\cdot\cos\theta$, where $\theta$ is the angle between them. Therefore, if $b=a$, then $\theta=0$ and you get $\langle a|a\rangle=\|a\|^2$.