Investigating Quantum Machine Learning Frameworks and Simulating Quantum Approaches
DOI:
https://doi.org/10.62019/abbdm.v4i4.232Abstract
Quantum machine learning (QML) has emerged as a promising field, combining the power of quantum computing with classical machine learning techniques to solve complex computational tasks. As the demand for efficient quantum simulations grows, multiple QML frameworks, including PennyLane, Qiskit, and TensorFlow Quantum (TFQ), have been developed to facilitate hybrid quantum-classical computations. This study aims to evaluate and compare the performance of three leading QML frameworks PennyLane, Qiskit, and TensorFlow Quantum in simulating quantum machine learning models, focusing on accuracy, execution time, and noise tolerance. The study examined three leading quantum machine learning (QML) frameworks PennyLane (v0.24), Qiskit (v0.43.2), and TensorFlow Quantum (TFQ, v0.7) each tested on a 64-bit Ubuntu Linux system with an Intel Core i7 processor, 32 GB RAM, and NVIDIA GeForce RTX 3080 GPU. Quantum algorithms like variational quantum circuits (VQCs) and quantum support vector machines (QSVMs) were simulated using these frameworks. Various quantum gates, including Pauli-X, Y, Z, Hadamard, CNOT, and Rotation gates (Rx, Ry, Rz), were used for parameter optimization and quantum superposition. The Iris and MNIST datasets were adapted for quantum encoding using Amplitude and Angle Encoding for binary classification tasks. Simulations were run on classical computers, while select circuits were executed on IBM Quantum’s Falcon r5.11 processor to compare hardware performance. PennyLane achieved the highest accuracy (92%) in quantum simulations, excelling in hybrid quantum-classical model integration. TensorFlow Quantum provided the fastest execution time, especially in classical simulations, making it suitable for rapid prototyping. Qiskit produced deeper quantum circuits but had higher error rates (6%) on real quantum hardware, highlighting noise and decoherence effects. The VQC models optimized by stochastic gradient descent (SGD) showed significant improvements in model performance, and QSVMs effectively classified both linearly separable and non-separable datasets, demonstrating the potential of quantum algorithms over classical approaches. Statistical analysis confirmed the significance of the results (p < 0.05). PennyLane is the most robust framework for hybrid quantum-classical models, while TensorFlow Quantum is suited for rapid prototyping. Qiskit, despite longer execution times, excels in hardware implementation. The choice of framework should align with the specific needs of quantum machine learning tasks.

Downloads
Published
Issue
Section
License
Copyright (c) 2024 Muhammad Jawad Khan, Sumeera Bibi, Muzammil Ahmad Khan , Hozaifah Shahadat Ali , Aysha Ijaz Khan, Rajia Anwar , Fariha Islam

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.