提出可跨框架运行的量子神经网络,打破厂商锁定困局
Eliminating Vendor Lock-In in Quantum Machine Learning via Framework-Agnostic Neural Networks
- 用统一计算图和硬件抽象层屏蔽框架差异
- 在鸢尾花、红酒、手写数字数据集上精度与原生框架一致
- 支持主流框架和硬件,实现模型无损迁移
量子机器学习(QML)融合量子计算与人工智能,有望解决经典方法无法处理的问题。然而当前QML软件框架严重碎片化:基于TensorFlow Quantum的模型无法在PennyLane后端运行,Qiskit Machine Learning编写的电路无法部署至Amazon Braket硬件,研究者投入一个生态后迁移成本极高。这种厂商锁定阻碍了可复现性,限制硬件访问,减缓科学进展。本文提出一种框架无关的量子神经网络(QNN)架构,通过统一计算图、硬件抽象层(HAL)和多框架导出管道,抽象掉厂商特定接口。核心架构同时兼容TensorFlow、PyTorch和JAX作为经典协处理器,HAL通过单一API透明访问IBM Quantum、Amazon Braket、Azure Quantum、IonQ和Rigetti后端。引入三种可插拔数据编码策略(幅值、角度、瞬时量子多项式编码),适配所有支持后端。采用ONNX元数据的导出模块实现对齐片、Cirq、PennyLane和Braket表示的无损电路转换。在Iris、Wine和MNIST-4分类任务上基准测试表明,训练时间仅比原生实现高出8%以内,分类准确率完全相同。
原文摘要 · Abstract (English)
Quantum machine learning (QML) stands at the intersection of quantum computing and artificial intelligence, offering the potential to solve problems that remain intractable for classical methods. However, the current landscape of QML software frameworks suffers from severe fragmentation: models developed in TensorFlow Quantum cannot execute on PennyLane backends, circuits authored in Qiskit Machine Learning cannot be deployed to Amazon Braket hardware, and researchers who invest in one ecosystem face prohibitive switching costs when migrating to another. This vendor lock-in impedes reproducibility, limits hardware access, and slows the pace of scientific discovery. In this paper, we present a framework-agnostic quantum neural network (QNN) architecture that abstracts away vendor-specific interfaces through a unified computational graph, a hardware abstraction layer (HAL), and a multi-framework export pipeline. The core architecture supports simultaneous integration with TensorFlow, PyTorch, and JAX as classical co-processors, while the HAL provides transparent access to IBM Quantum, Amazon Braket, Azure Quantum, IonQ, and Rigetti backends through a single application programming interface (API). We introduce three pluggable data encoding strategies (amplitude, angle, and instantaneous quantum polynomial encoding) that are compatible with all supported backends. An export module leveraging Open Neural Network Exchange (ONNX) metadata enables lossless circuit translation across Qiskit, Cirq, PennyLane, and Braket representations. We benchmark our framework on the Iris, Wine, and MNIST-4 classification tasks, demonstrating training time parity (within 8\% overhead) compared to native framework implementations, while achieving identical classification accuracy.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。