Quantum electronics and spintronics