On-chip quantum nonlinear optics