Doping control at the nanoscale can be used to modify optical and electronic properties thus inducing interesting effects that cannot be observed in pure systems. For instance, it has been shown that luminescence energies in silicon nanocrystals can be tuned by properly controlling the impurities, for example by boron (B) and phosphorus (P) codoping. Starting from hydrogen-terminated silicon nanoclusters, we have previously calculated from first-principles that codoping results are always energetically favored with respect to single B- or P-doping and that the two impurities tend to occupy nearest neighbor sites near the surface. The codoped Si nanoclusters present band-edge states localized on the impurities which are responsible for the r...