Protected gates for topological quantum field theories