The linearity of an optical PPM receiver using top-hat pulse generators, whether using the coherent detection technique described above and shown in FIG. 2 or other techniques or apparatus, typically depends on the quality of the rectangular pulses generated by the top-hat pulse generators.