Solid-state waveguide structures are disclosed to detect and/or encode very fast (picosecond) optical signals. The waveguides are appropriately configured to cause very fast signals to interact with interrogation or erasure pulses by a two photon absorption mechanism. The coincidence of the pulses in particular regions causes erasure and/or changes in the waveguide conductivity which can be measured conventionally by parallel circuitry.