Geometric quantum machine learning of BQP$^A$ protocols and latent graph classifiers