A non-linear optical device comprising a polymer configured to provide a
grating holding ratio of 20% or higher after about four minutes, wherein
the polymer comprises a first repeating unit comprising a first moiety
having formula (M-1) and a second repeating unit comprising a second
moiety having formula (M-2), as defined herein.