Learning with classical and quantum information constraints