Implementing An Artificial Quantum Perceptron

Ashutosh Hathidara, Lalit PandeyarXiv 2024 · DOI

Abstract

Researchers have successfully implemented and simulated an artificial quantum perceptron using the Qiskit framework. By leveraging quantum superposition and unitary transformations, this model achieves faster convergence than classical counterparts and demonstrates a clear "quantum advantage" in classifying high-dimensional patterns with fewer computational steps.

Introduction

The perceptron is the fundamental decision-making unit of neural networks, processing inputs through weighted sums to produce an output. While classical perceptrons have driven the deep learning revolution, they encounter significant scaling challenges as datasets grow. Quantum computing offers a potential solution by processing information in superposition. This paper bridges the gap between theoretical quantum algorithms and practical implementations by providing a concrete quantum perceptron model, testing its training efficiency, and exploring its pattern recognition capabilities.

Methods and Architecture

The quantum perceptron mimics classical neuron behavior within a quantum circuit framework. The core computation—the dot product between inputs and weights—is performed by measuring the overlap between two quantum states using an ancilla qubit.

Key components include:

  • State Preparation (Oracles): Two unitary transformation functions, $U_i$ (for inputs) and $U_w$ (for weights), encode classical data into quantum states $|\psi_i\rangle$ and $|\psi_w\rangle$.
  • Hypergraph States: Unlike previous methods relying on the computationally expensive Quantum Fourier Transform (QFT), this implementation utilizes hypergraph states to construct oracles. This approach allows the circuit to operate with a polynomial number of gates, significantly reducing hardware overhead.
The quantum circuit architecture for the perceptron, featuring input ($U_i$) and weight ($U_w$) oracles and an ancilla qubit for measurement.

Training and Data Generation

The study employed a "teacher-student" setup to evaluate the model. A teacher quantum perceptron with a fixed optimal weight ($w_0 = 626$) was used to label sequential input values. Classical bits were mapped to quantum-friendly values (1 and -1). The training algorithm updates the weight vector by strategically flipping bits to bring the weight state closer to the target input state whenever a misclassification occurs.

Key Results

The quantum perceptron demonstrated significantly faster convergence compared to classical deep learning systems. In experiments with a 4-qubit system, the model reached the optimal weight well before the allocated training iterations were completed.

Fidelity similarity between the trained weight and the actual target weight over time, showing the step-wise convergence to the final pattern.

The system also exhibited high precision in pattern matching, returning a perfect "ON" state (probability of 1) only when the input and weight vectors were identical. This characteristic makes the quantum perceptron an effective binary classifier for geometric patterns, such as horizontal and vertical lines.

Limitations and Future Outlook

Despite its performance, the current implementation has limitations. It lacks a "bias" term common in classical neurons and is restricted to discrete input values (-1 and 1). Furthermore, the study focuses on a single perceptron. Future research aims to develop multi-layered quantum neural networks to tackle complex classification tasks currently beyond the reach of classical hardware.

Summary updated

BibTeX
@misc{hathidara2024implementing,
  author = {Ashutosh Hathidara and Lalit Pandey},
  title = {{Implementing An Artificial Quantum Perceptron}},
  year = {2024},
  eprint = {2412.02083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.02083},
}
Figure