通过框架无关神经网络消除量子机器学习中的供应商锁定
Eliminating Vendor Lock-In in Quantum Machine Learning via Framework-Agnostic Neural Networks
AI总结:
本文提出一种框架无关的量子神经网络架构,通过统一计算图、硬件抽象层和多框架导出管道,解决量子机器学习框架碎片化问题,实现跨框架的兼容性和高效性。
摘要:
量子机器学习(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后端的透明访问。我们引入三种可插拔的数据编码策略(振幅、角度和即时量子多项式编码),这些策略适用于所有支持的后端。一个利用Open Neural Network Exchange(ONNX)元数据的导出模块使Qiskit、Cirq、PennyLane和Braket表示之间能够无损地转换电路。我们对Iris、Wine和MNIST-4分类任务进行了基准测试,证明了与原生框架实现相比,训练时间几乎相同(在8%的开销内),同时实现了相同的分类准确率。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。