Quantum-enhanced data science, also known as quantum machine learning (QML), is of growing interest as an application of near-term quantum computers. Variational QML algorithms have the potential to solve practical problems on real hardware, particularly when involving quantum data. However, training these algorithms can be challenging and calls for tailored optimization procedures. Specifically, QML applications can require a large shot-count overhead due to the large datasets involved. In this work, we advocate for simultaneous random sampling over both the dataset as well as the measurement operators that define the loss function. We consider a highly general loss function that encompasses many QML applications, and we show how to construct an unbiased estimator of its gradient. This allows us to propose a shot-frugal gradient descent optimizer called Refoqus (REsource Frugal Optimizer for QUantum Stochastic gradient descent). Our numerics indicate that Refoqus can save several orders of magnitude in shot cost, even relative to optimizers that sample over measurement operators alone.
翻译:量子强化数据科学,也称为量子机器学习(QML),作为短期量子计算机的应用,人们越来越感兴趣。变化式的QML算法有可能解决实际硬件的实际问题,特别是在涉及量子数据的情况下。然而,培训这些算法可能具有挑战性,需要量身定制优化程序。具体地说,由于所涉及的庞大数据集,QML应用可能要求大量光计间接费用。在这项工作中,我们主张同时对数据集和界定损失功能的测量操作员进行随机抽样。我们认为,一个包含许多QML应用的高度普遍的损失功能,我们展示如何构建一个公正的梯度估计器。这使我们能够提出一个名为Refoquus的射-frugal 梯子优化器(QUantum 口腔梯系梯子系的源源源的源源Frugal 优化器) 。我们的数字显示,Refquus可以节省数级的射线成本,甚至相对于仅对测量操作员进行取样的优化器。