arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.08167quant-phcs.AIcs.LG
收藏

使用单个电路计算量子神经网络所有参数的梯度

Computing the gradients with respect to all parameters of a quantum neural network using a single circuit

School of Physics, Sun Yat-sen University(中山大学物理学院)

Guang Ping He

AI总结:

提出仅用单个量子电路计算量子神经网络所有参数梯度的方法,显著降低电路深度和经典寄存器需求,并在模拟器与IBM真实硬件上验证了其对总运行时间的大幅加速效果。

摘要:

寻找梯度是训练机器学习模型的关键步骤。对于量子神经网络,使用参数移位规则计算梯度需要为网络中的每个可调参数计算两次代价函数。当参数总数很大时,量子电路必须被反复调整和执行,导致巨大的计算开销。在此,我们提出一种仅使用单个电路计算所有梯度的方法,显著降低了电路深度和所需的经典寄存器数量。我们在量子模拟器和IBM的真实量子硬件上实验验证了该方法,证明与传统方法相比,我们的方法显著减少了电路编译时间,从而使总运行时间大幅加速。

英文摘要:

Finding gradients is a crucial step in training machine learning models. For quantum neural networks, computing gradients using the parameter-shift rule requires calculating the cost function twice for each adjustable parameter in the network. When the total number of parameters is large, the quantum circuit must be repeatedly adjusted and executed, leading to significant computational overhead. Here we propose an approach to compute all gradients using a single circuit only, significantly reducing both the circuit depth and the number of classical registers required. We experimentally validate our approach on both quantum simulators and IBM's real quantum hardware, demonstrating that our method significantly reduces circuit compilation time compared to the conventional approach, resulting in a substantial speedup in total runtime.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑