augment_q_matrix function

Augment data with information from a q_matrix object