Text this: The quantum theory of nonlinear optics