General Framework for Quantum Computing