Enhancing variational quantum state diagonalization using reinforcement learning techniques

Akash Kundu, Przemyslaw Bedelek, Mateusz Ostaszewski, Onur Danaci, Yash J. Patel, Vedran Dunjko, Jaroslaw Adam MiszczakNew 2023

Abstract

Variational Quantum State Diagonalization (VQSD) is a fundamental task in quantum computing, often hindered by the noise and depth constraints of Noisy Intermediate-Scale Quantum (NISQ) hardware. This paper presents an automated framework using Reinforcement Learning (RL) to design compact, high-fidelity quantum circuits. By employing a Double Deep Q-Network (DDQN) with a novel depth-based binary encoding, the authors demonstrate that RL-driven ansatz construction significantly outperforms traditional hardware-efficient designs in both gate count and accuracy.

Introduction: The Challenge of Circuit Depth

In the current NISQ era, circuit "depth"—the number of sequential gate operations—is a primary bottleneck. Every additional gate introduces noise and decoherence, limiting the practical utility of quantum devices. To overcome this, Variational Quantum Algorithms (VQAs) must utilize the absolute minimum number of gates necessary to achieve their objectives.

One critical VQA task is Variational Quantum State Diagonalization (VQSD), a subroutine used to extract entanglement properties or prepare states for quantum machine learning. Traditionally, researchers rely on a "Layered Hardware Efficient Ansatz" (LHEA), which uses a fixed, repeating structure. However, LHEA often results in "overweight" circuits with redundant gates and is prone to "barren plateaus" during training. The core challenge addressed here is automating the discovery of the most succinct circuit structure for a specific quantum state without manual trial and error.

Methods: The RL-VQSD Framework

The authors frame circuit construction as a sequential decision-making process for a Reinforcement Learning agent. The framework, illustrated in Figure 1, combines quantum circuit execution with classical optimization in a hybrid loop.

The hybrid quantum-classical framework for VQSD, featuring the ansatz, dephasing channel, and classical optimization loop.

The RL Agent and State Encoding

The system utilizes a Double Deep Q-Network (DDQN) to stabilize learning. A key innovation is the depth-based binary encoding. Instead of a simple list of gates, the circuit is represented as a 3D tensor. This allows the agent to perceive the spatial and temporal structure of the circuit as it "fills in" layers one by one.

Action Space and Rewards

At each step, the agent chooses to add a gate ($RX, RY, RZ$, or $CNOT$) to specific qubits. To guide the agent through the complex search space, the authors implemented a dense reward function. Rather than a single score at the end of construction, the agent receives feedback at every step based on the log-scale improvement of the cost function (the "purity" of the diagonalized state).

Hybrid Optimization

Once the RL agent determines the circuit's structure, a classical optimizer (COBYLA) fine-tunes the continuous rotation angles ($\theta$) of the gates to reach the final solution. The complexity of the ansatz is managed by decomposing the unitary operation into layers and individual gates, as shown in Figure 2.

Decomposition of the unitary ansatz into layers and constituent gates.

Experimental Results

The RL-VQSD framework was evaluated on three types of quantum data: 2-qubit random mixed states, and 3-qubit and 4-qubit reduced Heisenberg models.

  • Efficiency Gains: For 2-qubit states, RL-generated circuits achieved 100x less error than standard LHEA while using 3x fewer parameters.
  • Heisenberg Model Performance: In the 3-qubit Heisenberg test, the RL agent discovered a circuit with just 18 gates that outperformed LHEA structures containing 39 or more gates.
  • Scaling: While random search agents failed on the 4-qubit problem, RL-VQSD successfully found circuits with diagonalization errors below $10^{-5}$.

Key Insights and Discussion

The study revealed several critical insights into automated circuit design:

  • Automatic Feature Selection: The RL agent learned to "prune" its own action space, discovering for instance that $RZ$ gates were largely unnecessary for diagonalizing specific Heisenberg models.
  • Generalization: An ansatz trained on one random state could often diagonalize other states of the same dimension, suggesting the agent learns fundamental "motifs" of diagonalization rather than just memorizing specific inputs.
  • The Importance of Dense Rewards: Without step-by-step feedback, the agent struggled to find solutions as system size increased, highlighting the difficulty of the "sparse reward" problem in quantum architecture search.

Limitations and Future Directions

Despite its success, the approach faces challenges. Training the RL agent is computationally intensive and currently relies on classical simulation, which scales exponentially with qubit count. Furthermore, VQSD requires $2n$ qubits to diagonalize an $n$-qubit state, a significant hardware overhead. Future work will explore adapting this RL-Ansatz approach to other major algorithms like the Variational Quantum Eigensolver (VQE) or the Quantum Approximate Optimization Algorithm (QAOA).

Summary updated

BibTeX
@misc{kundu2023enhancing,
  author = {Akash Kundu and Przemyslaw Bedelek and Mateusz Ostaszewski and Onur Danaci and Yash J. Patel and Vedran Dunjko and Jaroslaw Adam Miszczak},
  title = {{Enhancing variational quantum state diagonalization using reinforcement learning techniques}},
  year = {2023},
  eprint = {2306.11086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.11086},
}
Figure