On the nonlinear dynamics of a quantum oscillator