Origins by Dan Brown is about this. A billionaire science guy(reminds me of Elon) had a quantum chip that processed real time news and online chatter and spit out precise predictions. Kinda reminds me of Q. We put in the data it gets organized and spit back out.
Probably way off but interesting thought.