An optical circuit including a semiconductor substrate; an optical
waveguide formed in or on the substrate; and an optical detector formed
in or on the semiconductor substrate, wherein the optical detector is
aligned with the optical waveguide so as to receive an optical signal
from the optical waveguide during operation, and wherein the optical
detector has: a first electrode; a second electrode; and an intermediate
layer between the first and second electrodes, the intermediate layer
being made of a semiconductor material characterized by a conduction
band, a valence band, and deep level energy states introduced between the
conduction and valence bands.