English

VQCSim: When Does Compile-Once Statevector Simulation Beat Generic Quantum Frameworks?

Quantum Physics 2026-07-13 v1 Emerging Technologies Machine Learning

Abstract

Hybrid quantum-classical machine learning workflows repeatedly evaluate many small parametrized circuits during training and model exploration. In this regime, framework dispatch and orchestration overhead often dominate runtime. Prior simulators accelerate execution but leave open the question of when compile-once specialization is the right choice for static variational circuits. We answer this question with VQCSim, a compile-once, PyTorch-native statevector execution path with native autograd. In a systematic MQT Bench study, VQCSim compiles all tested static circuits and provides 87.7% end-to-end semantic validation. Across a five-GPU evaluation set, VQCSim delivers pooled median speedups of 4.49x for native inference and 26.78x for native training, while retaining a 3.31x advantage under matched finite-difference training. Ablation identifies native autograd as the dominant source of acceleration (27.6x), with compile-once caching and batch vectorization contributing additional gains. The speedup trades higher GPU memory (VQCSim is memory-limited at the high end) for lower runtime. We derive a hardware-aware regime map and release vqcsim-oracle, an open-source backend selector with 91.1%-97.7% top-1 agreement (including cross-GPU transfers), enabling automatic simulator selection in QML design loops.

Cite

@article{arxiv.2607.11985,
  title  = {VQCSim: When Does Compile-Once Statevector Simulation Beat Generic Quantum Frameworks?},
  author = {Anton Firc and Martin Perešíni and Vojtěch Mrázek and Kamil Malinka and Vojtěch Staněk and Zbyněk Lička and Nouhaila Innan and Walid El Maouaki and Alberto Marchisio and Muhammad Shafique},
  journal= {arXiv preprint arXiv:2607.11985},
  year   = {2026}
}

Comments

Accepted at IEEE/ACM International Conference on Computer-Aided Design (ICCAD 2026), San Jose, CA, USA. 9 pages