Based on the dependence of the molecular excitation probabilities on the la
ser phases and amplitudes in the model of a three-mode laser interacting wi
th a three-level molecule, we propose a scheme to implement quantum XOR log
ic gate and to construct quantum error prevention code.