This local phase change is a gauge transformation of the wave function. For real and a real continuously differentiable , multiplication by is a gauge transform that preserves pointwise modulus and mass while shifting the gradient by .
New to topics? Read the docs here!