Due to the scarcity of quantum computing resources, researchers and developers have very limited access to real quantum computers. Therefore, judicious planning and utilization of quantum computer runtime are essential to ensure smooth execution and completion of projects. Accurate estimation of a quantum circuit's execution time is thus necessary to prevent unexpectedly exceeding the anticipated runtime or the maximum capacity of the quantum computers; it also allows quantum computing platforms to make precisely informed provisioning and prioritization of quantum computing jobs. In this paper, we first study the characteristics of quantum circuits' runtime on simulators and real quantum computers. Then, we introduce an innovative method that employs a graph transformer-based model, utilizing the graph information and global information of quantum circuits to estimate their execution time. We selected a benchmark dataset comprising over 1,510 quantum circuits, initially predicting their execution times on simulators, which yielded promising results with an R-squared value greater than 95%. Subsequently, we applied active learning to select 340 circuit samples with a confidence level of 95% to build and evaluate our approach for the estimation of circuit execution times on quantum computers, achieving an average R-squared value exceeding 90%. Our approach can be integrated into quantum computing platforms to provide an accurate estimation of quantum execution time and be used as a reference for prioritizing quantum execution jobs. In addition, our findings provide insights for quantum program developers to optimize their circuits for reduced execution time.
翻译:由于量子计算资源的稀缺性,研究人员和开发者对真实量子计算机的访问非常有限。因此,合理规划和利用量子计算机的运行时间对于确保项目的顺利执行和完成至关重要。准确估算量子电路的执行时间,可以防止意外超出预期运行时间或量子计算机的最大容量;同时,它也能让量子计算平台基于精确信息进行量子计算任务的资源调配和优先级排序。本文首先研究了量子电路在模拟器和真实量子计算机上的运行时间特性。随后,我们提出了一种创新方法,采用基于图Transformer的模型,利用量子电路的图信息和全局信息来估算其执行时间。我们选取了一个包含超过1,510个量子电路的基准数据集,首先在模拟器上预测其执行时间,取得了令人满意的结果,R平方值大于95%。接着,我们应用主动学习,以95%的置信度选择了340个电路样本,构建并评估了我们在量子计算机上估算电路执行时间的方法,平均R平方值超过90%。我们的方法可集成到量子计算平台中,提供准确的量子执行时间估算,并作为量子执行任务优先级排序的参考依据。此外,我们的研究结果为量子程序开发者优化电路以减少执行时间提供了见解。