Skip to content
DraconiticResearch
Search Sources API
181,716 studies31 sourcesUpdated 54 min ago
PreprintarXiv licencearXiv

QEncodeBench: Can Large Language Models Encode Classical Problems into Verified Quantum Oracles?

Abstract

Grover search, amplitude amplification, and quantum counting all rely on the same reusable subroutine, a phase oracle, whose construction the algorithms literature takes as given: the classical predicate is assumed to be already encoded as a correct, resource-bounded circuit. We turn this assumption into a measured capability. QEncodeBench tasks large language models (LLMs) with encoding classical constraint problems as phase oracles and scores the generated circuits with an adversarially self-validated verifier that decides full solution-set equivalence up to a global phase, with ancillas restored and resource budgets enforced. Sampled basis-state tests, we show, systematically overestimate this ability. Measured this way, models separate sharply: code models without a reasoning mode solve essentially nothing, and enabling native reasoning on identical weights improves accuracy by an order of magnitude. The failures are overwhelmingly semantic rather than syntactic. Two architectures, a unit-verified constraint agent and a neuro-symbolic compilation pipeline, close most of the remaining gap by delegating correctness-critical composition to deterministic procedures. Ablations quantify the contribution of each component, and resource gating exposes an architecture-dependent trade-off between circuit width and depth. Finally, controlled difficulty escalation reveals architecture-specific responses to difficulty structure: different difficulty axes degrade different methods, while the neuro-symbolic pipeline passes every evaluated instance. Code and data are available at https://github.com/chexujun/QEncodeBench.

Related

  1. Physics-Informed Classical and Quantum Neural Networks for One-Dimensional Schrodinger Eigenvalue Problems
    Tariq Mahmood, Waqas Arshad, Bilal Naseer +1
    arXivPreprintCC BY 4.0Full textHigh-energy & particle physicsQuantum physics & quantum informationarXiv
  2. Quantum Approximation Complexity of Classical Optimization Problems
    Stuart Hadfield
    arXivPreprintCC BY 4.0Full textQuantum physics & quantum informationarXiv
  3. Evaluating Verified Autonomy in Quantum Engineering
    Naixu Guo, Changhao Li, Siyu Cheng +6
    arXivPreprintarXiv licenceFull textQuantum physics & quantum informationarXiv
  4. Verified Pauli-Product Measurement Compilation for Fault-Tolerant Quantum Computation
    John Zhuoyang Ye, Jens Palsberg
    arXivPreprintCC BY 4.0Full textQuantum physics & quantum informationarXiv
  5. Modular optical fault-tolerant quantum computation via an interface between verified resources and online logical operations
    Kosuke Fukui, Takaya Matsuura, Yohji Chin +4
    arXivPreprintCC BY 4.0Full textQuantum physics & quantum informationarXiv
BibTeX
@misc{che2026qencodebench,
  title = {{QEncodeBench: Can Large Language Models Encode Classical Problems into Verified Quantum Oracles?}},
  author = {Xujun Che and Hanhan Wu and Yuchen Yuan and Chenyang Yu},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.20319},
  eprint = {2609.20319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.20319},
}
RIS
TY  - UNPB
TI  - QEncodeBench: Can Large Language Models Encode Classical Problems into Verified Quantum Oracles?
AU  - Xujun Che
AU  - Hanhan Wu
AU  - Yuchen Yuan
AU  - Chenyang Yu
PY  - 2026
DA  - 2026/09/01
PB  - arXiv
DO  - 10.48550/arxiv.2609.20319
UR  - https://arxiv.org/abs/2609.20319
AB  - Grover search, amplitude amplification, and quantum counting all rely on the same reusable subroutine, a phase oracle, whose construction the algorithms literature takes as given: the classical predicate is assumed to be already encoded as a correct, resource-bounded circuit. We turn this assumption into a measured capability. QEncodeBench tasks large language models (LLMs) with encoding classical constraint problems as phase oracles and scores the generated circuits with an adversarially self-validated verifier that decides full solution-set equivalence up to a global phase, with ancillas restored and resource budgets enforced. Sampled basis-state tests, we show, systematically overestimate this ability. Measured this way, models separate sharply: code models without a reasoning mode solve essentially nothing, and enabling native reasoning on identical weights improves accuracy by an order of magnitude. The failures are overwhelmingly semantic rather than syntactic. Two architectures, a unit-verified constraint agent and a neuro-symbolic compilation pipeline, close most of the remaining gap by delegating correctness-critical composition to deterministic procedures. Ablations quantify the contribution of each component, and resource gating exposes an architecture-dependent trade-off between circuit width and depth. Finally, controlled difficulty escalation reveals architecture-specific responses to difficulty structure: different difficulty axes degrade different methods, while the neuro-symbolic pipeline passes every evaluated instance. Code and data are available at https://github.com/chexujun/QEncodeBench.
ER  -