Optics and information theory