Two-beam coupling in photorefractive materials is utilized to suggest
binary logic operations. Gain and loss configurations of photorefracti
ve material are used for parallel and real time operations of digital
logic. An all optical scheme is presented to implement a one-bit half-
adder.