Integrated photonics for quantum devices