Hilbert Space Structure of the Inhomogeneous Sobolev Space on the Torus