Dehydrogenation of the phosphonate analogue of glucose 6-phosphate by glucose 6-phosphate dehydrogenase.