Integration of photonic integrated circuit functionalities with superconducting nanowire single photon detectors | Synapse