Programmable superconducting optoelectronic single-photon synapses with integrated multi-state memory | Synapse