arXiv:2602.24220cs.LGquant-ph2026-02

深度量子分类器可媲美经典神经网络解决异或问题

Comparing Classical and Quantum Variational Classifiers on the XOR Problem

  • 用不同深度量子电路对比经典模型在异或数据上的表现
  • 深度2的量子电路与多层感知机均达完美测试准确率
  • 量子模型未展现效率或鲁棒性优势,但结构保持全局特性

量子机器学习利用叠加和纠缠等原理进行数据处理与优化。变分量子模型在高维希尔伯特空间中操作量子比特,提供一种替代性的模型表达能力方法。本文比较了经典模型与一个两量子比特变分量子分类器在异或问题上的表现。评估了逻辑回归、单隐藏层多层感知机以及深度为1和2的两量子比特变分量子分类器,在具有不同高斯噪声和样本量的合成异或数据集上,使用准确率和二元交叉熵作为指标。结果表明,模型表达能力是性能的关键因素:逻辑回归和深度1量子电路无法可靠表示异或,而多层感知机和深度2量子电路在代表性条件下实现完美测试准确率。对噪声水平、数据集大小和随机种子的鲁棒性分析证实,电路深度是量子性能的决定性因素。尽管准确率相当,多层感知机达到更低的二元交叉熵并显著更短的训练时间。硬件执行保留了全局异或结构,但引入了决策函数的结构化偏差。总体而言,更深的变分量子分类器可在低维异或基准上匹配经典神经网络的准确率,但在所考察设置下未观察到明显的鲁棒性或效率优势。

原文摘要 · Abstract (English)

Quantum machine learning applies principles such as superposition and entanglement to data processing and optimization. Variational quantum models operate on qubits in high-dimensional Hilbert spaces and provide an alternative approach to model expressivity. We compare classical models and a variational quantum classifier on the XOR problem. Logistic regression, a one-hidden-layer multilayer perceptron, and a two-qubit variational quantum classifier with circuit depths 1 and 2 are evaluated on synthetic XOR datasets with varying Gaussian noise and sample sizes using accuracy and binary cross-entropy. Performance is determined primarily by model expressivity. Logistic regression and the depth-1 quantum circuit fail to represent XOR reliably, whereas the multilayer perceptron and the depth-2 quantum circuit achieve perfect test accuracy under representative conditions. Robustness analyses across noise levels, dataset sizes, and random seeds confirm that circuit depth is decisive for quantum performance on this task. Despite matching accuracy, the multilayer perceptron achieves lower binary cross-entropy and substantially shorter training time. Hardware execution preserves the global XOR structure but introduces structured deviations in the decision function. Overall, deeper variational quantum classifiers can match classical neural networks in accuracy on low-dimensional XOR benchmarks, but no clear empirical advantage in robustness or efficiency is observed in the examined settings.

量子机器学习异或问题变分量子

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