Arbitrary waveform optical pulse generation using an optical pulse synthesizer