Hartree-Fock (HF) and Density Functional Theory (DFT) studies were conducted to assess the impact of potassium doping on the thermodynamic, optoelectronic, electronic and nonlinear optical properties and on the reactivity of photochromic polymers containing styrylquinoline fragments. Doping was carried out on the virgin monomer (M1) and on the derivative monomer (M2) with the nitro group NO 2 . Three doped monomers were investigated including, the monomer M3 obtained from M1 by substituting the H atom with a potassium, the monomer M4 by substituting two H atoms and the monomer M5 obtained from M2 by substituting the H atom. Findings proved that the use of potassium and the nitro group is an excellent process to improve the electronics properties of styrylquinoline virgin monomers. In fact, the energy gap decreases from 3.82 eV for M1 to 3.02 eV and to 2.92 eV for M3 and M4, respectively; while the decrease from 3.43 eV for M2 to 2.52 eV for M5 was observed, thus demonstrating the good semiconductor character of the obtained compounds with relevant applications in the manufacture of solar cells. Likewise, the fundamental gap decreases from 6.50 eV for M1 to 5.34 eV and to 4.62 eV for M3 and M4, respectively; while the decrease from 6.11 eV for M2 to 5.21 eV for M5 was observed; thus demonstrating an improvement in the reactivity of our doped monomers. In addition, potassium doping is an appropriate method to enhance optoelectronic properties of styrylquinoline virgin monomers. Thus, the refractive index of our doped monomers is greater than that of glass, which is a reference in optic and can be used under high electric fields of the order of 1.90 × 10 9 Vm -1 for monomer M4 up to 7.01 × 10 9 Vm -1 for M3 and to 10.89 × 10 9 Vm -1 for M5. Finally, the strong enhancement of the linear and nonlinear optical (NLO) properties that we observed leads us to conclude that these doped monomers can be appropriate candidates in devices requiring good NLO properties., Competing Interests: The authors declare no conflict of interest., (© 2022 The Author(s).)