Direct characterization of a nonlinear photonic circuit’s wave function with laser light