in this paper a novel all-optical logic nand, nor and xor gate based on nonlinear directional coupler theory is demonstrated. we use the identical structure which contains three waveguides, for designing these gates; the only difference however, is the power of inputs light beam. in other words, while a beam with 4 w/μm in power considered as logical one, the output is nand gate and if a beam w...