Photonic chip for scalable quantum information processing