Classical and quantum noise in nonlinear optical systems