Quantum Mechanics with Applications to Nanotechnology