Quantum Fourier Transform and Its Applications