An optical phased array transmitter/receiver includes a plurality of
waveguides each including an optical fiber and a light source coupled to
the fibers in the waveguides. At least one grating is coupled to the
fiber of each waveguide and at least one phase shifter coupled to the
fiber of at least one waveguide. The phase shifter controls a phase
profile of light passing through the fiber to control a profile of a
laser beam reflected at the grating. The gratings reflect light passing
through the fibers outside of the optical coder to form a laser beam
shaped and directed by the grating and phase shifters. Further, a
detector is coupled to the waveguides that is enabled to receive light
reflected off the gratings. Other embodiments are described and claimed.