L2O-$g^{\dagger}$: Learning to Optimize Parameterized Quantum Circuits with Fubini-Study Metric Tensor

Yu-Chao Huang, Hsi‐Sheng GoanarXiv 2024 · DOI

Abstract

Before the advent of fault-tolerant quantum computers, variational quantum algorithms (VQAs) play a crucial role in noisy intermediate-scale quantum (NISQ) machines. Conventionally, the optimization of VQAs predominantly relies on manually designed optimizers. However, learning to optimize (L2O) demonstrates impressive performance by training small neural networks to replace handcrafted optimizers. In our work, we propose L2O-$g^{\dagger}$, a quantum-aware learned optimizer that leverages the Fubini-Study metric tensor ($g^{\dagger}$) and long short-term memory networks. We theoretically derive the update equation inspired by the lookahead optimizer and incorporate the quantum geometry of the optimization landscape in the learned optimizer to balance fast convergence and generalization. Empirically, we conduct comprehensive experiments across a range of VQA problems. Our results demonstrate that L2O-$g^{\dagger}$ not only outperforms the current SOTA hand-designed optimizer without any hyperparameter tuning but also shows strong out-of-distribution generalization compared to previous L2O optimizers. We achieve this by training L2O-$g^{\dagger}$ on just a single generic PQC instance. Our novel quantum-aware learned optimizer, L2O-$g^{\dagger}$, presents an advancement in addressing the challenges of VQAs, making it a valuable tool in the NISQ era.

Introduction

In the Noisy Intermediate-Scale Quantum (NISQ) era, Variational Quantum Algorithms (VQAs) serve as a bridge between classical computing and fault-tolerant quantum systems. These hybrid algorithms rely on a classical optimizer to iteratively update the parameters of a quantum circuit. However, the optimization landscapes of quantum circuits are notoriously difficult to navigate, characterized by "barren plateaus" where gradients vanish and "narrow gorges" that trap standard optimizers. Traditionally, researchers have relied on handcrafted optimizers like Adam or COBYLA, which often require extensive hyperparameter tuning for each specific problem. While "Learning to Optimize" (L2O) techniques—using neural networks to learn update rules—have succeeded in classical domains, they have historically struggled to generalize across different quantum circuit architectures.

Methodology: A Quantum-Aware Optimizer

The researchers introduce L2O-$g^{\dagger}$, a learned optimizer specifically designed to be "quantum-aware." Unlike previous L2O approaches that treat the quantum circuit as a black-box function, L2O-$g^{\dagger}$ incorporates the underlying geometry of the quantum state space.

The L2O-$g^{\dagger}$ architecture integrates an LSTM-based optimizer with the Fubini-Study metric tensor to navigate quantum landscapes.

The core of the system is a Long Short-Term Memory (LSTM) network that learns to predict parameter updates. The "quantum-aware" component is the Fubini-Study metric tensor ($g^{\dagger}$). In quantum mechanics, the distance between two states is not simply the Euclidean distance between their parameters. The Fubini-Study metric captures how much the actual quantum state changes for a given parameter shift. By integrating this metric, L2O-$g^{\dagger}$ can prioritize updates that move the system most effectively through the Hilbert space. Additionally, the authors derived a lookahead-inspired update equation that uses a learnable vector to dynamically balance fast convergence with generalization.

Experimental Results and Generalization

A remarkable feature of L2O-$g^{\dagger}$ is its extreme generalization capability. The model was trained on just a single generic Parameterized Quantum Circuit (PQC) with 7 qubits and 5 layers. Despite this minimal training set, it demonstrated superior performance across a wide array of out-of-distribution tasks.

L2O-$g^{\dagger}$ consistently outperforms standard optimizers like Adam and QNGD across various circuit sizes and depths.

The optimizer was evaluated on several benchmarks:

  • Random PQCs: Testing robustness across 4 to 10 qubits and varying depths.
  • Variational Quantum Eigensolver (VQE): Successfully reaching "chemical accuracy" for molecules such as $LiH$ and $H_2O$.
  • QAOA and QML: Outperforming tuned baselines in solving MaxCut problems and achieving 95.5% accuracy in a data re-uploading classification task.

Discussion and Conclusion

The success of L2O-$g^{\dagger}$ suggests that the fundamental rules for efficient quantum optimization are universal and tied to the geometry of quantum states. By understanding this geometry via the Fubini-Study metric, the optimizer eliminates the need for manual hyperparameter tuning. While the current results are promising, future work will explore more complex neural architectures like Transformers and investigate the optimizer's performance as qubit counts scale toward the regime where barren plateaus become more severe. Nonetheless, L2O-$g^{\dagger}$ represents a significant step toward automated, high-performance optimization for NISQ-era quantum applications.

Summary updated

BibTeX
@misc{huang2024l,
  author = {Yu-Chao Huang and Hsi‐Sheng Goan},
  title = {{L2O-$g^\{\textbackslash\{\}dagger\}$: Learning to Optimize Parameterized Quantum Circuits with Fubini-Study Metric Tensor}},
  year = {2024},
  eprint = {2407.14761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.14761},
}
Figure