arXiv:2506.16938quant-phcs.ET2025-06

改进量子神经网络表达能力,使其能解决高维奇偶校验等难题。

Enhancing Expressivity of Quantum Neural Networks Based on the SWAP test

  • 用多弗雷金门共享辅助比特的广义交换测试电路,实现任意偶次多项式激活。
  • 可学习任意维度奇偶校验函数与n螺旋分类任务,突破原有架构限制。
  • 在真实量子硬件上验证可行性,3维奇偶校验准确率达84%。

基于参数化量子电路的量子神经网络(QNN)在机器学习中前景广阔,但许多架构与经典模型缺乏明确联系,限制了对经典技术的利用。本文研究基于交换测试电路的QNN,发现其在振幅编码下等价于具有二次激活函数的两层前馈网络。实测表明,该架构虽能学习多种二分类任务,但存在根本性表达力局限:多项式激活函数不满足通用逼近定理,且理论上无法学习超过二维的奇偶校验函数,无论网络规模如何。为此,提出引入多个共享辅助比特的弗雷金门的广义交换测试电路,实现任意偶次多项式激活的产品层。此改进使网络能成功学习任意维度奇偶校验及二分类n螺旋任务,并提供数值证据显示其表达力提升适用于角度(Z)和ZZ特征映射等其他编码方式。通过在IBM Torino量子处理器上实现类经典预训练实例,3维奇偶校验任务达到84%分类准确率,验证了架构的实际可行性。本工作建立了一种通过对应经典架构分析与增强QNN表达力的框架,证明交换测试型QNN具备广泛表征能力,适用于经典与潜在量子学习任务。

原文摘要 · Abstract (English)

Quantum neural networks (QNNs) based on parametrized quantum circuits are promising candidates for machine learning applications, yet many architectures lack clear connections to classical models, potentially limiting their ability to leverage established classical neural network techniques. We examine QNNs built from SWAP test circuits and discuss their equivalence to classical two-layer feedforward networks with quadratic activations under amplitude encoding. Evaluation on real-world and synthetic datasets shows that while this architecture learns many practical binary classification tasks, it has fundamental expressivity limitations: polynomial activation functions do not satisfy the universal approximation theorem, and we show analytically that the architecture cannot learn the parity check function beyond two dimensions, regardless of network size. To address this, we introduce generalized SWAP test circuits with multiple Fredkin gates sharing an ancilla, implementing product layers with polynomial activations of arbitrary even degree. This modification enables successful learning of parity check functions in arbitrary dimensions as well as binary n-spiral tasks, and we provide numerical evidence that the expressivity enhancement extends to alternative encoding schemes such as angle (Z) and ZZ feature maps. We validate the practical feasibility of our proposed architecture by implementing a classically pretrained instance on the IBM Torino quantum processor, achieving 84% classification accuracy on the three-dimensional parity check despite hardware noise. Our work establishes a framework for analyzing and enhancing QNN expressivity through correspondence with classical architectures, and demonstrates that SWAP test-based QNNs possess broad representational capacity relevant to both classical and potentially quantum learning tasks.

量子神经网络表达力提升奇偶校验量子硬件

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。