get_qog (untested)
get_qog (untested) + codebook (untested)