Mathematics of Quantum Technologies