A transmitter (1) is configured to transmit an optical signal, the transmitter comprising an optical dispersion compensator (10) configured to compensate for chromatic dispersion of the optical signal. The optical dispersion compensator comprises a plurality of delay elements (20; 40). The plurality of delay elements (20; 40) have a combined response providing a delay to the transmitted optical signal which varies with frequency.