Quantum integrable systems in cohomology theories