The formalism of Quantum Mechanics and some applications