Skip to main content
QUICK REVIEW

[Paper Review] Studying the Impact of Quantum-Specific Hyperparameters on Hybrid Quantum-Classical Neural Networks

Kamila Zaman, Tasnim Ahmed|arXiv (Cornell University)|Feb 16, 2024
Quantum Computing Algorithms and ArchitectureComputer Science5 citations
TL;DR

The paper analyzes how quantum-specific hyperparameters (qubits, circuit depth, entanglement, encoding, shots, and observables) affect the accuracy and training time of HQNNs for image classification, using Qiskit and PennyLane simulations on MNIST subsets.

ABSTRACT

In current noisy intermediate-scale quantum devices, hybrid quantum-classical neural networks (HQNNs) represent a promising solution that combines the strengths of classical machine learning with quantum computing capabilities. Compared to classical deep neural networks (DNNs), HQNNs present an additional set of hyperparameters, which are specific to quantum circuits. These quantum-specific hyperparameters, such as quantum circuit depth, number of qubits, type of entanglement, number of shots, and measurement observables, can significantly impact the behavior of the HQNNs and their capabilities to learn the given task. In this paper, we investigate the impact of these variations on different HQNN models for image classification tasks, implemented on the PennyLane framework. We aim to uncover intuitive and counter-intuitive learning patterns of HQNN models within granular levels of controlled quantum perturbations, to form a sound basis for their correlation to accuracy and training time. The outcome of our study opens new avenues for designing efficient HQNN algorithms and builds a foundational base for comprehending and identifying tunable hyperparameters of HQNN models that can lead to useful design implementation and usage.

Motivation & Objective

  • Motivate the study of HQNNs in the NISQ era where quantum components can augment classical neural networks.
  • Identify a broad set of quantum hyperparameters beyond qubit count and depth to assess their impact on performance.
  • Develop a systematic framework to evaluate how quantum hyperparameters influence accuracy and training efficiency.
  • Provide guidelines for designing efficient HQNN architectures by understanding parameter interactions.

Proposed method

  • Define HQNN architectures where a quantum layer is followed by a classical layer and use angle encoding for input data.
  • Vary quantum hyperparameters including layer depth, number of qubits, entanglement type, encoding, number of shots, and measurement observables.
  • Use three circuit types (Basic Entangling, Strongly Entangling, Random Circuit) and evaluate 4-, 9-, and 16-qubit configurations.
  • Measure impact on accuracy and training time using MNIST-based 4-class subset (0–3) with a uniform classical optimization setup.
  • Compare performance across PennyLane and Qiskit back-ends with consistent training settings.
  • Analyze correlations between classical learning curves and quantum hyperparameter perturbations.
Figure 1. Overview of Our Contributions
Figure 1. Overview of Our Contributions

Experimental results

Research questions

  • RQ1How do quantum hyperparameters beyond simple qubit count and depth influence HQNN accuracy on image classification tasks?
  • RQ2What is the relationship between circuit depth, qubit width, and training time for different quantum circuit configurations?
  • RQ3How do observables and sampling shots affect HQNN performance and training efficiency across circuit types?
  • RQ4Do random, basic entangling, and strongly entangling circuits exhibit different sensitivity to quantum hyperparameters?
  • RQ5Can guidelines be established for selecting quantum hyperparameters to design more efficient HQNNs?

Key findings

  • Increasing the number of qubits generally improves accuracy for random circuits, regardless of depth.
  • For basic and strongly entangling circuits, higher qubit counts do not monotonically improve accuracy and deeper circuits can reduce performance, with 16-qubit circuits performing worst due to potential barren plateaus.
  • Training time increases with circuit depth and complexity, with a larger jump when moving from 9 to 16 qubits; random circuits at 16 qubits train faster than basic/strongly entangling ones due to fewer gates.
  • Observables impact accuracy at shallow depths, with PauliY often yielding higher accuracy than PauliX or PauliZ for random, basic, and strongly entangling circuits, but the effect diminishes at depth 6.
  • Increasing sampling shots from 100 to 1024 improves accuracy for basic and strongly entangling circuits but has little effect for random circuits; training time scales with depth rather than shot count.
Figure 2. General Architecture of QNN and HQNN
Figure 2. General Architecture of QNN and HQNN

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.