An all-optical AND gate based on optically induced nonlinear polarization rotation of a probe light in a bulk semiconductor optical amplifier is realized at a bit rate of 2.5Gbit/s. By operating the AND gate in an up and inverted wavelength conversion scheme, the extinction ratio is improved by 8dB compared with previously published work. (c) 2006 Optical Society of America.