Toffoli gates solve the tetrahedron equations | Synapse