Quantum mechanics in complex systems