Modeling sequences with quantum states: predicting generalization quality of generative models