MODELING AND IMPLEMENTATION OF SPIN-BASED QUANTUM COMPUTATION