We investigate the possibility of using local magnetic fields to produce one-dimensional traps in hybrid structures for any quasiparticle possessing a spin degree of freedom. We consider a system composed of a diluted magnetic semiconductor quantum well buried below a micron-sized ferromagnetic island. A localized magnetic field is produced by a rectangular ferromagnet kept in a single domain phase. We make quantitative predictions for the optical response of the system as a function of distance between the micromagnet and the quantum well, electronic g factor, and thickness of the micromagnet. (C) 2005 American Institute of Physics.