Qudit generalization of the qubit echo and its application to a qutrit-based Toffoli gate | Synapse