Theory of Quantum Materials