An optical pulse shaper without polarization dependencies includes, a
planar lightwave circuit (PLC) having an arrayed waveguide and free space
optics, combined with a lens and micromirror array characterized by
piston-motion. The micromirror array is coupled to a controller that
provides signals to the array for adjusting the positions of the
micromirrors, which are used as a spatial light modulator to provide at
least phase modulation to one or more of the separated frequency
components of an input optical signal. The frequency separated
components, including modified components, are recombined and directed
back to the PLC to form a synthesized optical pulse. Information
regarding the characteristics of the synthesized optical pulse is
extracted from a spectrogram of that pulse. Extracted information is
provided to the controller and responsive thereto the controller may
generate signals for adjusting the position of one or more micromirrors.