Qubit Control and Applications to Quantum Computation and Open Quantum Systems