We propose a method for applying the quantum error-correction method for
errors that occur during quantum gates. Using a perturbation treatment of the
noise that allows us to separate it from the ideal evolution of the quantum
gate, we demonstrate that in certain cases it is necessary to divide the
quantum gate in short time steps intercalated by correction procedures. A
prescription of how these gates can be constructed is provided, as well as a
proof that, even for the cases when the division of the quantum gate in short
time steps is not necessary, this method may be advantageous for reducing the
total duration of the computation