The present invention describes nanophotonic materials and devices for both classical and quantum optical signal processing, transmission, amplification, and generation of light, which are based on a set of quantum systems having a discrete energy levels, such as atoms, molecules, or quantum dots, embedded in a frequency bandgap medium, such as artificial photonic crystals (photonic bandgap materials) or natural frequency dispersive media, such as ionic crystals, molecular crystals, or semiconductors, exhibiting a frequency (photonic) bandgap for propagating electromagnetic modes coupled to optical transitions in the quantum systems. If the frequency of one of optical transitions, called the working transition, lies inside the frequency bandgap of the medium, then spontaneous decay of the working transition into propagating photon modes is completely suppressed. Moreover, the excitation of the working transition and a photon form a photon-quantum system bound state lying inside the photonic bandgap of the medium, in which radiation is localized in the vicinity of the quantum system. In a quantum system “wire” or a quantum system “waveguide”, made of spatially disordered quantum systems, or in a chain quantum system waveguide made of a periodically ordered identical quantum systems, wave functions of the photon-quantum system bound states localized on different quantum systems overlap each other and develop a photonic passband lying inside bandgap of the photonic bandgap medium.