Role of dissipation in the stability of a parametrically driven quantum harmonic oscillator