We present calculations showing the effect of placing impurities in qu
antum wells and heterostructure barriers. With a suitable configuratio
n of the band edge, both the spacing of energy levels and their orderi
ng can be controlled. The results should be of use in designing more f
lexible impurity infrared detectors and enhancing the radiative effici
ency of transitions between impurity levels.