Nonclassical states of light: fundamental physics and CMOS devices