Computational Techniques For Optimal Control of Quantum System