# Robust Quantum Control using Reinforcement Learning from Demonstration

시연으로부터의 강화학습을 이용한 견고한 양자 제어

Shengyong Li, Yidian Fan, Xiang Li, Xinhui Ruan, Qianchuan Zhao, Zhihui Peng 외 3명 · arXiv · 2025년 3월 27일

- **연구 문제** 시스템 모델로 생성한 제어 펄스는 모델 편향으로 충실도가 낮아질 수 있고, 모델 없는 강화학습은 수렴까지 많은 샘플이 필요합니다.
- **연구 방법** GRAPE로 만든 데모 펄스를 초기값으로 삼고, 데모 재생과 행위 복제 손실(SAC) 또는 데모 pre-training(PPO)을 거쳐 강화학습으로 펄스를 추가 최적화합니다.
- **주요 결과** 벨 상태 준비에서 RLfD는 충실도 0.995에 1340 timesteps로 도달하여 모델 없는 RL의 3060보다 적었습니다. 보손 상태 과제에서는 데모가 없으면 PPO와 SAC가 수렴하지 않았지만 데모를 제공하면 수렴했습니다.

## 모델 편향과 처음부터 학습하는 비용

양자 제어에서는 고충실도의 제어 펄스가 필요합니다. 시스템 모델로 생성한 펄스는 실제 물리계와 모델의 차이, 즉 모델 편향 때문에 충실도가 낮아질 수 있습니다. 모델 없이 강화학습을 처음부터 수행하면 편향은 피할 수 있지만, 수렴에 필요한 샘플을 모으는 데 시간이 오래 걸립니다. 원문은 이 문제를 강화학습을 larger and more complex quantum control 문제로 넓히는 데 걸림돌로 봅니다.

이 연구는 이 두 방향의 단점을 함께 다룹니다. 시스템 모델이 만든 펄스를 출발점으로 삼고, 그 위에서 강화학습으로 펄스를 다시 다듬는 방식을 제안합니다. 여기서 핵심 질문은 데모 펄스를 초기값으로 쓰면 샘플 효율과 학습 안정성이 개선되는지, 그리고 펄스를 1000개 넘는 조각으로 나누어도 최종 충실도를 유지할 수 있는지입니다.

## 데모 펄스에서 시작하는 RLfD 학습 구조

RLfD는 GRAPE 같은 기울기 기반 개루프 방법으로 만든 데모 펄스를 강화학습의 출발점으로 사용합니다. 데모는 (s, a) 쌍으로 얻고, 이후 환경과 상호작용하여 (s, a, r, s′)를 모읍니다. 데모는 최적은 아니지만 최적해에 가깝다는 가정에 기반합니다.

알고리즘은 데모를 저장하는 데모 버퍼 M과 학습 중 상호작용 데이터를 쌓는 버퍼 D를 함께 씁니다. SAC에서는 데모 데이터 재생과 행위 복제 손실을 결합하여 정책이 데모 근처에서 탐색하도록 제약합니다. 행위 복제 계수는 2로 설정되며 지수 감쇠를 더해 초기에는 데모를 더 많이 따르고 이후에는 환경에서 더 많이 배우도록 합니다. 이 설정은 제시된 SACfD 알고리즘의 구성이며 다른 모든 실험에 자동으로 적용되었다고 볼 수 없습니다.

PPO는 온-폴리시 방법이므로 데모를 학습 데이터에 단순히 섞으면 온-폴리시 보장이 깨집니다. 그래서 PPO에서는 데모로 정책망과 V-함수를 사전학습한 뒤 일반 PPO 절차를 수행합니다. V-함수는 (s, r)만으로 학습할 수 있어 pre-training이 비교적 쉬운 반면, Q-함수는 충분한 (s, a, r) 데모가 없으면 수렴하기 어렵다고 설명됩니다.

## 벨 상태 준비에서의 샘플 효율

벨 상태 준비는 두 큐빗의 간단한 상태 준비 과제입니다. 이 과제에서 GRAPE 펄스의 초기 충실도는 약 0.9이며, 모델 편향 수준에 따라 RLfD와 모델 없는 RL의 성능이 비슷하게 나타납니다. 최종 infidelity는 10의 −3승에서 10의 −4승 사이로 보고됩니다.

![Figure 2: Quantum states preparation with RLfD method by GRAPE pulses. Infidelity versus timesteps for target quantum-state generation under different Hamilton…](https://refivu.com/papers/cc27b6c3-83f9-4a8f-998b-c9489f82d479/figures/figure-b940d77bc51de7b4eb11469c9dbc57e5.png?thumb=512)

**FIG. 2** . Quantum states preparation with RLfD method by GRAPE pulses. Infidelity versus timesteps for target quantum-state generation under different Hamiltonian error levels (0%, 5%, 10%, 15%, 20%, 25%, 30% for blue, green, orange, red, purple, brown, gray solid lines respectively). (a), (b), and (c) show the results obtained via the PPO algorithm for generating Bell, binomial, and cat states, respectively. (d), (e), and (f) show the corresponding results via the SAC algorithm. All initial pulse shapes are generated using the GRAPE method. Different colored curves in each sub-figure represent varying degrees of Hamiltonian error. The insets show the density matrix histogram (for Bell state preparation) or Wigner function (for binomial state and cat state) of the state before training (left) and at the end of training (right) with 25% Hamiltonian error.

[원문](https://arxiv.org/abs/2503.21085v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shengyong Li, Yidian Fan, Xiang Li, Xinhui Ruan, Qianchuan Zhao, Zhihui Peng, Re-Bing Wu, Jing Zhang, Pengtao Song · Robust Quantum Control using Reinforcement Learning from Demonstration · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

학습 안정성 비교에서는 같은 timestep 수에서 RLfD의 평균 보상이 모델 없는 RL보다 높고, 음영 영역이 더 좁습니다. 충실도 0.995에 도달하는 데 필요한 최소 timestep은 RLfD가 1340, 모델 없는 RL이 3060입니다. 이 수치는 벨 상태 과제에서 확인된 결과이며, 다른 과제나 모델에서 같은 크기의 절감이 나타난다고 일반화할 수 없습니다.

## 보손 상태 과제와 데모 유무 비교

보손 시스템에서는 이항 코드 상태 (\|0⟩ + \|4⟩)/√2와 α = 2인 고양이 상태를 준비합니다. 큐빗은 3차원, 공진기는 7차원으로 절단하며, 해밀토니안에는 Kerr 계수 항이 포함됩니다. 각 펄스는 275개 조각으로 나누어 4개 펄스, 총 1100개 파라미터를 최적화합니다. 550개 조각(2200 파라미터)에서도 모델이 수렴했다고 보고됩니다.

이항 코드 상태 준비에서 PPO는 데모 없이 학습하면 평균 보상이 정체되지만, 데모를 도입하면 여러 무작위 시드에서도 안정적으로 수렴합니다. SAC 역시 데모 없이는 수렴하지 않고 데모를 제공했을 때 수렴합니다. 따라서 이 결과에서 데모의 역할은 고차원 제어에서 수렴을 가능하게 하는 것으로 읽힙니다. 음영 영역은 여러 무작위 시드에 걸친 보상 범위를 나타냅니다.

## PPO와 SAC의 최종 충실도와 한계

데모를 사용한 상태에서 PPO의 최종 충실도는 약 99.8%이고 SAC는 약 99%로 보고됩니다. 이 비교는 RLfD를 적용한 뒤의 최종 값이며, 데모가 없는 상태의 최종 충실도와 혼동하지 않아야 합니다.

저자들은 SAC가 샘플 상호작용이 적어 일정한 성능 기준에 빨리 도달할 수 있지만, 매우 높은 충실도를 추구하는 데에는 충분하지 않다고 설명합니다. 이 해석은 오프-폴리시 특성 때문에 정밀한 펄스 형태를 결정하는 데 덜 능하다는 저자의 가설입니다. PPO는 데모와 pre-training 정책이 있을 때 고성능 정책으로 수렴한다고 보고됩니다.

## 대역폭 제한과 게이트 파라미터 최적화

Fig. 3(d)는 cat 상태 준비에서 필터 대역폭을 바꾸었을 때의 충실도를 보여 줍니다. 대역폭이 충분히 넓으면 최종 충실도가 높게 유지되고, 대역폭이 지나치게 제한되면 충실도가 크게 줄어듭니다. RLfD는 이 감소를 일부 완화하지만, 대역폭 제한이 없을 때의 성능과 완전히 같아지지는 않습니다.

![Figure 3: The performance of RLfD method. (a) The vari- ation in average reward throughout the training process of Bell state preparation. The blue line repres…](https://refivu.com/papers/cc27b6c3-83f9-4a8f-998b-c9489f82d479/figures/figure-daf75d97057790d8dc0175c779a527db.png?thumb=512)

**FIG. 3** . The performance of RLfD method. (a) The vari- ation in average reward throughout the training process of Bell state preparation. The blue line represents the perfor- mance of the original model-free RL method, and the green line corresponds to the RLfD method. The minimum number of timesteps required to achieve a fidelity of 0.995 is 1340 for the RLfD method, compared to 3060 for model-free RL. (b) and (c) illustrate the fidelity achieved by the PPO and SAC algorithms, respectively, for preparing binomial states. The yellow and orange solid lines correspond to RLfD method with different initial fidelities, and the blue solid line corresponds to model-free methods. The shaded areas surrounding each line indicate the range of rewards, from best to worst, across various random seeds. (d) Fidelities with different filter band- widths while preparing a cat state. The filters are arranged over a frequency range from 6 .25 MHz to 81 .25 MHz with a gradient of 12.5 MHz, and they are color-coded as blue, green, orange, red, purple, brown and gray. The total bandwidth is set at 125 MHz.

[원문](https://arxiv.org/abs/2503.21085v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shengyong Li, Yidian Fan, Xiang Li, Xinhui Ruan, Qianchuan Zhao, Zhihui Peng, Re-Bing Wu, Jing Zhang, Pengtao Song · Robust Quantum Control using Reinforcement Learning from Demonstration · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

게이트 파라미터 최적화에서는 ECD 게이트로 cat 상태와 GKP 상태를 준비합니다. 게이트 파라미터 오차 25%와 cat 상태 게이트 깊이 5 조건에서, 모델은 시작 충실도와 관계없이 비교적 높은 충실도에 머무른 뒤 긴 학습 후에 더 높은 성능에 도달합니다. 저자들은 제한된 게이트 파라미터 때문에 국소 최솟값에 갇힐 수 있다고 해석합니다. 이 해석은 관찰을 설명하기 위한 저자의 가설입니다.

![Figure 4: Quantum states preparation with RLfD method by optimizing gate parameters . Different solid lines refer to different bias of gate parameters(5%, 10%,…](https://refivu.com/papers/cc27b6c3-83f9-4a8f-998b-c9489f82d479/figures/figure-65696e2b82dfc590ea46796faab98eaf.png?thumb=512)

**FIG. 4** . Quantum states preparation with RLfD method by optimizing gate parameters . Different solid lines refer to different bias of gate parameters(5%, 10%, 15%, 20%, 25% for blue, green, orange, red and purple solid lines respectively). (a) Cat state preparation with gate depth of 5. (b) GKP state preparation with ∆ = 0 .3. Gate depth is set to ten. The insets display the Wigner function of the state before training (left) and at the end of training (right) under a 25% gate parameter error setup.

[원문](https://arxiv.org/abs/2503.21085v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shengyong Li, Yidian Fan, Xiang Li, Xinhui Ruan, Qianchuan Zhao, Zhihui Peng, Re-Bing Wu, Jing Zhang, Pengtao Song · Robust Quantum Control using Reinforcement Learning from Demonstration · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Shengyong Li, Yidian Fan, Xiang Li, Xinhui Ruan, Qianchuan Zhao, Zhihui Peng, Re-Bing Wu, Jing Zhang, Pengtao Song
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 3월 27일
- **등록일**: 2026년 11월 6일
- **수정일**: 2025년 4월 20일
- **버전**: v2
- **arXiv**: 2503.21085
- **분류**: quant-ph
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2503.21085v2) · [원문 PDF ↗](https://arxiv.org/pdf/2503.21085v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Quantum control requires high-precision and robust control pulses to ensure optimal system performance. However, control sequences generated with a system model may suffer from model bias, leading to low fidelity. While model-free reinforcement learning (RL) methods have been developed to avoid such biases, training an RL agent from scratch can be time-consuming, often taking hours to gather enough samples for convergence. This challenge has hindered the broad application of RL techniques to larger and more complex quantum control issues, limiting their adaptability. In this work, we use Reinforcement Learning from Demonstration (RLfD) to leverage the control sequences generated with system models and further optimize them with RL to avoid model bias. By avoiding learning from scratch and starting with reasonable control pulse shapes, this approach can increase sample efficiency by reducing the number of samples, which can significantly reduce the training time. Thus, this method can effectively handle pulse shapes that are discretized into more than 1000 pieces without compromising final fidelity. We have simulated the preparation of several high-fidelity non-classical states using the RLfD method. We also find that the training process is more stable when using RLfD. In addition, this method is suitable for fast gate calibration using reinforcement learning.

## 원문 인용

Shengyong Li, Yidian Fan, Xiang Li, Xinhui Ruan, Qianchuan Zhao, Zhihui Peng, Re-Bing Wu, Jing Zhang, Pengtao Song (2025). Robust Quantum Control using Reinforcement Learning from Demonstration. arXiv:2503.21085v2. https://arxiv.org/abs/2503.21085v2

**BibTeX**

```
@misc{li2025robust,
  title = {{Robust Quantum Control using Reinforcement Learning from Demonstration}},
  author = {Shengyong Li and Yidian Fan and Xiang Li and Xinhui Ruan and Qianchuan Zhao and Zhihui Peng and Re-Bing Wu and Jing Zhang and Pengtao Song},
  year = {2025},
  eprint = {2503.21085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.21085v2}
}
```

## 이 논문의 용어

- [강화학습](https://refivu.com/terms/9d55ef3a06b9-reinforcement-learning)
- [PPO](https://refivu.com/terms/21c34991d674-ppo)
- [Reinforcement learning (RL)](https://refivu.com/terms/70a01d49619c-reinforcement-learning-rl)
- [imitation learning](https://refivu.com/terms/921d574cc5af-imitation-learning)
- [SAC](https://refivu.com/terms/5cba7ce8115f-sac)
- [Fidelity](https://refivu.com/terms/a7e3120bb185-fidelity)
- [Q-function](https://refivu.com/terms/6aa5c03fbd00-q-function)
- [average reward](https://refivu.com/terms/42b8aceae149-average-reward)
- [Markov Decision Processes (MDPs)](https://refivu.com/terms/a7cd33548e1a-markov-decision-processes-mdps)
- [Model-based RL](https://refivu.com/terms/79788149d5c9-model-based-rl)

## 다른 논문 해설

- [Traffic Light Control with Reinforcement Learning](https://refivu.com/papers/236881c3-fca9-4c52-878c-afbdfc4da691-traffic-light-control-with-reinforcement-learning.md)
- [An Unsupervised Anomaly Detection in Electricity Consumption Using Reinforcement Learning and Time Series Forest Based Framework](https://refivu.com/papers/5b49e8d7-8d44-4463-adaf-251aafc83587-an-unsupervised-anomaly-detection-in-electricity-consumption.md)
- [Hundreds Guide Millions: Adaptive Offline Reinforcement Learning with Expert Guidance](https://refivu.com/papers/71bcf1f6-d793-4f26-a0f1-4d8ebbde61b5-hundreds-guide-millions-adaptive-offline-reinforcement.md)
- [Average AoI Minimization for Energy Harvesting Relay-aided Status Update Network Using Deep Reinforcement Learning](https://refivu.com/papers/8154ed1b-5173-4362-b322-b5789131d782-average-aoi-minimization-for-energy-harvesting-relay-aided.md)
- [Stochastic Dynamic Power Dispatch with High Generalization and Few-Shot Adaption via Contextual Meta Graph Reinforcement Learning](https://refivu.com/papers/99101285-38ab-4db0-adfc-a41432751aac-stochastic-dynamic-power-dispatch-with-high-generalization.md)
- [Real-time system optimal traffic routing under uncertainties -- Can physics models boost reinforcement learning?](https://refivu.com/papers/141fd3a9-dfa2-4394-baeb-27e956ee4898-real-time-system-optimal-traffic-routing-under-uncertainties.md)
- [Annealing Optimization for Progressive Learning with Stochastic Approximation](https://refivu.com/papers/d8fdcefb-d5fa-4c59-94b4-9e92c1fd1e11-annealing-optimization-for-progressive-learning-with.md)
- [Adversarial Skill Chaining for Long-Horizon Robot Manipulation via Terminal State Regularization](https://refivu.com/papers/0d0e6691-20cb-41a1-9c03-d2e6585fffdf-adversarial-skill-chaining-for-long-horizon-robot.md)
- [DeepCPG Policies for Robot Locomotion](https://refivu.com/papers/14ae2d36-9223-46a7-b7d6-6231222a199f-deepcpg-policies-for-robot-locomotion.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/cc27b6c3-83f9-4a8f-998b-c9489f82d479-robust-quantum-control-using-reinforcement-learning-from)
