An impurity added to an optical medium to change its optical properties. EDFAs use erbium as a dopant for optical fiber.