Reinforcement learning to learn quantum states for Heisenberg scaling accuracy

Jeongwoo Jae, Jeonghoon Hong, Jinho Choo, Yeong-Dae KwonarXiv 2024 · DOI

TL;DR

Researchers have developed a meta-learning framework that uses classical reinforcement learning (RL) to optimize how we learn unknown quantum states. By dynamically adjusting the hyperparameters of a black-box optimization algorithm, their approach achieves "Heisenberg scaling" accuracy—the theoretical gold standard—and successfully generalizes from small 3-qubit systems to larger 5-qubit ones without retraining.

What Problem Does This Paper Address?

Understanding the exact state of a quantum system is fundamental to quantum computing, yet it is notoriously difficult. The standard method, Quantum State Tomography (QST), requires a number of measurements that grows exponentially with the number of qubits, making it impractical for even moderately sized systems.

While deep learning has offered new ways to represent quantum states more efficiently, many existing models are "one-trick ponies"—they are tailored to a specific state and fail to generalize to new tasks. Furthermore, achieving high precision (low "infidelity") usually requires a massive amount of data. The authors aim to bridge this gap by creating a flexible, data-efficient "learning to learn" (meta-learning) system that can handle various quantum states and scale efficiently.

Methods

The authors propose a hybrid classical-quantum architecture consisting of three main parts:

  1. The Quantum Model: A Hardware Efficient Ansatz (HEA), which is a parameterized quantum circuit designed to be compatible with near-term quantum hardware.
  2. The Optimizer: An Evolution Strategy (ES). Instead of calculating complex gradients (which often vanish in quantum circuits, a problem known as "barren plateaus"), ES samples parameters from a Gaussian distribution and updates them based on measurement outcomes.
  3. The RL Agent (The Meta-Learner): A classical Actor-Critic neural network that observes the "success count" of quantum measurements and dynamically adjusts the ES hyperparameters—specifically the sampling range ($\sigma$) and the learning rate ($\eta$).
FIG. 1. Schematic of reinforcement learning to learn quantum states. (a) In the environment, the evolution strategy trains a hardware efficient ansatz (HEA) shown in (b) to learn an input state |ψ⟩. The observation ot represents the success count C, and the HEA is trained to maximize it. The RL agent learns the action at, the hyperparameters of the evolution strategy. To expedite the training process, we give a penalty rt = −1 to the RL agent at each time step t, and no penalty rt = 0 for the final time step. The rollout datasets are generated using a policy-guided tree search and stored in the data buffer. We use the Actor-Critic algorithm to train the RL agent with a subdataset B randomly drawn from the buffer. (b) HEA circuit. U3 is a generic single-qubit gate exp(i⃗θ · ⃗σ/2), where ⃗θ = (θx, θy, θz) and ⃗σ denotes the vector of Pauli operators (ˆσx, ˆσy, ˆσz). For 1-qubit states, we use a single U3 gate. For N-qubit states, we use the HEA of L layers, consisting of 3N(L + 1) trainable parameters. (c) Feed-forward neural networks for the RL agent. Each network adopts the observation ot as input. Qϕ1 is the observation-value function and πϕ2 is the policy of action.

A key innovation is the Action Repetition Strategy (ARS). Inspired by curriculum learning, the agent initially repeats its chosen actions for many steps, simplifying the learning task. As training progresses, the repetition time decreases, allowing the agent to tackle increasingly complex optimization landscapes.

Datasets

The model was evaluated using:

  • Haar-random pure states: Randomly generated quantum states for 1 to 5 qubits used to test general performance and scaling.
  • Mixed states: States containing noise, used to test robustness (detailed in Appendix E).
  • Shen-Castan matrix state: A specific, highly entangled 5-qubit state used to demonstrate the model's ability to reconstruct complex quantum correlations.

Key Insights and Ideas

  • Dynamic Hyperparameter Tuning: The RL agent learns a sophisticated strategy: when the success count is low (far from the target state), it recommends large steps to explore the parameter space. As the model nears the target, it shrinks the steps to fine-tune the result.
  • Heisenberg Scaling via RL: The method achieves an infidelity scaling of $O(C^{-1})$, where $C$ is the total number of measurement shots. This is the "Heisenberg limit," the best possible scaling allowed by quantum mechanics, outperforming the $O(n^{-3/4})$ limit of standard QST.
  • Zero-Shot Generalization: Perhaps the most impressive finding is that an agent trained only on 3-qubit states can be directly applied to 4-qubit and 5-qubit states. Because the RL agent looks at success counts rather than the raw quantum state, its logic remains valid as the system size grows.
  • Overcoming Barren Plateaus: By using a derivative-free Evolution Strategy guided by RL, the framework avoids the gradient vanishing issues that plague many other quantum machine learning approaches.

Key Results

  • Efficiency Gains: The RL-trained agent reduced the total measurement shots required by 14% to 34% compared to baseline optimization methods without RL.
  • High Fidelity: For a complex 5-qubit entangled state, the model achieved a fidelity of ~0.9989 using approximately $6.62 \times 10^7$ success counts.
  • Superiority over QST: The framework proved significantly more resource-efficient than standard Maximum Likelihood Estimation (MLE) based tomography, especially as the number of qubits increased.

Limitations and Future Work

While the RL agent generalizes well, the computational cost of the initial RL training is high. The authors note that for 2- and 3-qubit systems, training without the Action Repetition Strategy exceeded their computational capacity, highlighting how critical their curriculum-based approach is.

Future research could explore even more sophisticated "curriculums" for action repetition. Additionally, while the HEA is hardware-efficient, testing this framework on noisy intermediate-scale quantum (NISQ) devices—where hardware errors are prevalent—remains a vital next step to prove its real-world utility.

Summary updated

BibTeX
@misc{jae2024reinforcement,
  author = {Jeongwoo Jae and Jeonghoon Hong and Jinho Choo and Yeong-Dae Kwon},
  title = {{Reinforcement learning to learn quantum states for Heisenberg scaling accuracy}},
  year = {2024},
  eprint = {2412.02334},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.02334},
}
Figure