Optical set-reset operations of a bistable laser diode are performed using two light signals which have the same wavelength but different intensities or pulse widths. The operations are based on optical pumping in the EL state and gain quenching in the lasing state by single-wavelength light.