By adapting the Madelung–Bohm formalism to paraxial wave propagation we show, by using Ermakov–Lewis techniques, that Gouy phase is related form of chosen in order produce a Gaussian function as propagated field. For this, introduce quantum mechanical invariant, it explicitly time dependent. We finally show effective Bohm index refraction generates GRIN medium produces focusing needed for phase.