Generating path entangled states in waveguide systems with second-order nonlinearity.