Entanglement entropy production in Quantum Neural Networks

Marco Ballarin, Stefano Mangini, Simone Montangero, Chiara Macchiavello, Riccardo Mengoni · DOI

Abstract

Quantum Neural Networks (QNN) are considered a candidate for achieving quantum advantage in the Noisy Intermediate Scale Quantum computer (NISQ) era. Several QNN architectures have been proposed and successfully tested on benchmark datasets for machine learning. However, quantitative studies of the QNN-generated entanglement have been investigated only for up to few qubits. Tensor network methods allow to emulate quantum circuits with a large number of qubits in a wide variety of scenarios. Here, we employ matrix product states to characterize recently studied QNN architectures with random parameters up to fifty qubits showing that their entanglement, measured in terms of entanglement entropy between qubits, tends to that of Haar distributed random states as the depth of the QNN is increased. We certify the randomness of the quantum states also by measuring the expressibility of the circuits, as well as using tools from random matrix theory. We show a universal behavior for the rate at which entanglement is created in any given QNN architecture, and consequently introduce a new measure to characterize the entanglement production in QNNs: the entangling speed. Our results characterise the entanglement properties of quantum neural networks, and provides new evidence of the rate at which these approximate random unitaries.

Introduction

This research explores the "engine room" of Quantum Neural Networks (QNNs)—specifically, how they generate entanglement as they grow in depth. By leveraging tensor network simulations to bypass the usual limits of classical computers, the authors introduce a universal metric called "entangling speed" to benchmark different quantum architectures.

The Entanglement Challenge in NISQ

In the quest for "quantum advantage," QNNs are a leading candidate for the Noisy Intermediate-Scale Quantum (NISQ) era. However, entanglement presents a "Goldilocks problem":

  1. Insufficient Entanglement: If entanglement is too low, the circuit can be easily simulated by a classical computer, precluding quantum advantage.
  2. Excessive Entanglement: Rapid entanglement growth may lead to "barren plateaus," where the optimization landscape becomes so flat that the network cannot learn effectively.

Until now, quantitative studies of QNN entanglement were limited to a few qubits due to the exponential scaling of classical simulations. This study fills the gap by analyzing large-scale QNNs to understand how architectural choices—such as data loading methods and qubit connectivity—impact entanglement production.

Overview of QNN architectures and entanglement measurement. (a) Layered structure of a QNN. (b) Bipartite cut for measuring entanglement entropy. (c-d) Various circuit templates and connectivity maps studied.

Methodology

The authors employ Matrix Product States (MPS), a tensor network technique. Unlike standard statevector simulations that crash as qubits are added, MPS allows for the simulation of large systems (up to 50 qubits) provided the entanglement remains moderate.

The study analyzed several QNN templates, varying:

  • Data Loading: Sequential loading versus "data re-uploading" (alternating data and variational layers).
  • Topology: Linear, circular, and "all-to-all" qubit connectivity.
  • Metrics: Von Neumann entanglement entropy, "Expressibility" (state space coverage), and Random Matrix Theory (specifically the Marčenko-Pastur distribution) to assess convergence toward Haar-random unitaries.

Validation was performed using real-world datasets, including the Wine (13 features) and Breast Cancer (9 features) datasets, confirming that the "entangling speed" observed with random parameters applies to practical machine learning tasks.

Key Insights and Results

Universal Scaling and Entangling Speed

A primary finding is that when entanglement and circuit depth are normalized, all QNNs of a specific architecture follow a universal growth curve, regardless of qubit count (from 8 to 50). This led to the introduction of entangling speed ($v_s$), a metric that characterizes an architecture's entanglement production rate. Knowing $v_s$ for a small-scale circuit allows for accurate predictions of entanglement in much larger versions at specific depths.

Architectural Impacts

  • Data Re-uploading: Alternating data-loading and trainable gates generates entanglement significantly faster than initial-only loading.
  • Connectivity Nuances: Some "all-to-all" maps were found to be functionally equivalent to linear maps due to CNOT gate identities, suggesting that increased connectivity does not always imply increased complexity.
  • Convergence to Page Value: As QNN depth ($L$) approaches the number of qubits ($n$), entanglement entropy reaches the "Page value," the maximum expected for a random state.
  • Certification of Randomness: Using the Marčenko-Pastur law, the study proved that sufficiently deep QNNs are statistically indistinguishable from Haar-random unitaries.

Conclusion and Future Directions

While MPS is powerful, its "bond dimension" limit means simulations become approximate as entanglement saturates. Future work could extend this by modeling environmental noise in real NISQ hardware or observing how entangling speed evolves during the dynamic training process as weights converge on specific tasks.

Summary updated

BibTeX
@inproceedings{ballarin2023entanglement,
  author = {Marco Ballarin and Stefano Mangini and Simone Montangero and Chiara Macchiavello and Riccardo Mengoni},
  title = {{Entanglement entropy production in Quantum Neural Networks}},
  booktitle = {Quantum},
  year = {2023},
  doi = {10.22331/q-2023-05-31-1023},
}
Figure