an architecture for optical logic gates is presented in which n predetermined wavelengths of light are used to define data . this data is manipulated by n - valued optical logic gates based on a set of rules referred to as song &# 39 ; s switching algebra . the gates when connected end to end to produce optical circuits such as optical random access memory or an optical arithmetic logic unit .