An inverse-scattering model for an all-optical logic gate | Synapse