A 20 Gsample/s photonic analog-to-digital converter is constructed using a 4-sw itch ing-wavelength repetitive sampling pulse source. The signal-to-noise and distortion ratio (SINAD) is measured to be 44.5 dB and corresponds to 7 effective number of bits.