arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.07525cs.SE
收藏

LLMs能否解决科学问题或只是编写代码?评估量子求解器生成

Can LLMs Solve Science or Just Write Code? Evaluating Quantum Solver Generation

Politecnico di Milano(米兰理工大学);University of Luxembourg(卢森堡大学)

Luciano Baresi, Domenico Bianculli, Maryse Ernzer, Livia Lestingi, Fabrizio Pastore, Seung Yeob Shin

AI总结:

本文提出Q-SAGE方法,通过迭代优化评估LLM生成量子求解器的能力,发现迭代改进提升成功率但带来计算开销,模型能力增强后失败模式从执行错误转为数值不准确,揭示LLM在量子软件中的局限。

摘要:

大型语言模型(LLMs)在代码生成方面表现出色,推动其在自动化量子求解器开发中的应用。然而,在量子计算中,生成代码的成功执行并不足够:正确性依赖于数值准确的结果,这易受非平凡映射、混合量子-经典工作流和算法特定近似的影响。本文引入Q-SAGE,一种迭代方法来评估LLM生成科学问题量子求解器的能力。该方法通过执行LLM生成的脚本,将其结果与经典求解器的结果进行比较,并不断优化脚本,直到两者在容差阈值内一致。我们通过五种不同复杂度的科学问题家族和五种LLM(开源和专有)经验评估了该方法。结果表明,迭代优化显著提高了成功率,但引入了显著的计算开销。此外,随着模型能力的提升,失败模式从执行错误转为数值不准确,突显了基于LLM的量子软件的当前局限。

英文摘要:

Large Language Models (LLMs) show strong capabilities in code generation, motivating their use in automated quantum solver development. However, in quantum computing, successful execution of generated code is not sufficient: correctness depends on numerically accurate results, which are sensitive to non-trivial mappings, hybrid quantum-classical workflows, and algorithm-specific approximations. This work introduces Q-SAGE, an iterative methodology to evaluate LLMs' capability in generating quantum solvers for scientific problems. The methodology adopts an iterative approach by executing the script generated by the LLM, comparing the result with the result of a classical solver, and refining the script until the two results match within a tolerance threshold. We empirically evaluated the methodology with five families of scientific problems of different complexities and five LLMs, both open source and proprietary. The results show that iterative refinement substantially improves success rates, but introduces a significant computational overhead. Moreover, as model capability increases, failure modes shift from execution errors to numerical inaccuracies, highlighting the current limitations of LLM-based quantum software.

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

↑