Eliminating Vendor Lock-In in Quantum Machine Learning via Framework-Agnostic Neural Networks
Organizations: Intrinsic Lab, Centre for Sensors, Instrumentation and Cyber-Physical System Engineering (SeNSE), Indian Institute of Technology Delhi, New Delhi 110016, India
Abstract
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.
Figures & tables
| Provider | Device | Qubits | Technology | Access |
|---|---|---|---|---|
| IBM Quantum | Brisbane | 127 | Superconducting | Qiskit Runtime |
| IBM Quantum | Osaka | 127 | Superconducting | Qiskit Runtime |
| Amazon Braket | IonQ Aria | 25 | Trapped Ion | Braket SDK |
| Amazon Braket | Rigetti Ankaa-3 | 84 | Superconducting | Braket SDK |
| Azure Quantum | IonQ Harmony | 11 | Trapped Ion | Azure SDK |
| Azure Quantum | Quantinuum H1 | 20 | Trapped Ion | Azure SDK |
| Encoding | Qubits | Depth | Entanglement | Best For |
|---|---|---|---|---|
| Amplitude | Yes | Large feature spaces | ||
| Angle | No | NISQ, small features | ||
| IQP | Yes | Kernel methods |
| Export Pair | Max | |
|---|---|---|
| Qiskit Cirq | 0.99998 | |
| Qiskit PennyLane | 0.99997 | |
| Qiskit Braket | 0.99996 | |
| Cirq PennyLane | 0.99999 | |
| Cirq Braket | 0.99997 | |
| PennyLane Braket | 0.99998 |
| Framework | Iris | Wine | MNIST-4 |
|---|---|---|---|
| TFQ-native | |||
| PennyLane-native | |||
| Qiskit-native | |||
| Ours (TF adapter) | |||
| Ours (Torch adapter) | |||
| Ours (JAX adapter) |
| Framework | Iris | Wine | MNIST-4 |
|---|---|---|---|
| TFQ-native | |||
| PennyLane-native | |||
| Qiskit-native | |||
| Ours (TF adapter) | |||
| Ours (Torch adapter) | |||
| Ours (JAX adapter) |
| Encoding | Circuit Build (ms) | Simulation (ms) | Total (ms) |
|---|---|---|---|
| Amplitude | |||
| Angle | |||
| IQP ( ) | |||
| IQP ( ) |
| Parameter | QPU Gradient | Simulator | ||
|---|---|---|---|---|
| Parameter | QPU Gradient | Simulator | ||
| Mean absolute error | ||||
| Backend Simulator | ||||
|---|---|---|---|---|
| IBM Qiskit Aer | ||||
| IonQ Simulator | ||||
| Rigetti QVM |
| Vendor | Backend | Technology | Bell | GHZ-4 | Var. TVD | Grad. MAE |
|---|---|---|---|---|---|---|
| IBM | ibm_fez | Superconducting | 0.978 | 0.929 | 0.071 | 0.005 |
| Rigetti | Ankaa-3 | Superconducting | 0.926 | 0.811 | 0.189 | 0.006 |
| IQM | Garnet † | Superconducting | — | — | — | — |
| IonQ | Forte-1 | Trapped-ion | 0.979 | 0.960 | 0.041 | 0.003 |
Quantum Neural Networks
Quantum neural networks use quantum circuits and measurements to learn representations, make predictions, and model complex data.
See all 135 papers