Q-Holonomic Systems And Quantum Invariants