We study the phenomenon of decoherence during the operation of one qubit transformation, controlled-not (CNOT) and controlled-controlled-not (C 2 NOT) quantum gates in a quantum computer model formed by a linear chain of three nuclear spins system. We make this study with different type of environments, and we determine the associated decoherence time as a function of the dissipative parameter. We found that the dissipation parameter to get a well defined quantum gates (without significant decoherence) must be within the range of . We also study the behavior of the purity parameter for these gates and different environments and found linear or quadratic decays of this parameter depending on the type of environments.