measurement function

Computes the square of the modulus