Integrated photonics is a leading platform for quantum technologies including nonclassical state generation1234, demonstration of quantum computational complexity5 and secure quantum communications6. As photonic circuits grow in complexity, full quantum tomography becomes impractical, and therefore an efficient method for their characterization78 is essential. Here we propose and demonstrate a fast, reliable method for reconstructing the two-photon state produced by an arbitrary quadratically nonlinear optical circuit.