Quantum feedback control with a transformer neural network architecture

Pranav Vaidhyanathan, Florian Marquardt, Mark T. Mitchison, Natalia AresarXiv 2024 · DOI

Abstract

Quantum systems are highly sensitive to environmental noise and measurement backaction, necessitating robust feedback control to maintain desired states. Traditional methods, including Recurrent Neural Networks (RNNs), often struggle with long-range temporal correlations and non-Markovian dynamics. This paper introduces a novel Transformer-based architecture for real-time quantum feedback control. By leveraging self-attention mechanisms, the proposed model captures complex history-dependent dynamics more effectively than sequential models. We demonstrate that this architecture achieves near-unit fidelity in state stabilization and provides an 80x speedup in inference time compared to traditional gradient-based solvers, while scaling effectively to many-body systems.

Introduction

The stabilization of quantum states is a fundamental challenge in quantum information science. Measurement-based feedback control aims to counteract environmental decoherence and measurement backaction. However, controllers must operate under conditions of partial information—relying on noisy measurement records—and often face non-Markovian memory effects where the system's future evolution depends on its entire history. While RNNs have been explored for this task, they suffer from the vanishing gradient problem, limiting their ability to process long-context windows. This work explores the application of Transformer architectures, which utilize attention mechanisms to process entire measurement histories simultaneously, to overcome these limitations.

Architecture and Methodology

The researchers developed a specialized Transformer architecture tailored for quantum dynamics. The model consists of two primary components: a QuantumEncoder and a QuantumDecoder.

Schematic of the quantum control system and the Transformer-based feedback architecture.

As illustrated in the architecture above, the QuantumEncoder processes the initial quantum state and the incoming measurement record, mapping them into a high-dimensional latent representation. The QuantumDecoder then employs causal masking to predict optimal control parameters for the subsequent time step, ensuring that the controller only utilizes past and current information.

Training was conducted using two strategies. For simpler systems, supervised learning was used to mimic the "PaQS" (Proportional and Quantum State) teacher algorithm. For complex many-body systems where no efficient teacher exists, an Iteratively Refined Decision Transformer (IR-DT) was employed, allowing the model to discover optimal control pulses through reinforcement learning.

Performance and Key Results

The Transformer model demonstrated significant advantages in both accuracy and computational efficiency. In state stabilization tasks, it achieved near-unit fidelity even under conditions of imperfect measurement efficiency and Hamiltonian perturbations.

A critical highlight of this approach is its operational speed. Traditional gradient-based solvers like PaQS require solving complex stochastic differential equations (SDEs) in real-time, which is computationally expensive. In contrast, the Transformer performs inference through a series of matrix multiplications, enabling much faster control loops.

Comparison of inference times between the traditional Hamiltonian Modified PaQS solver and the Quantum Transformer.

As shown in the table above, the Transformer achieves an inference time of 0.23 seconds, representing a nearly 80x speedup over the 19.05 seconds required by the PaQS solver. This speedup is vital for real-time feedback in physical quantum hardware.

Furthermore, the model exhibited superior performance in non-Markovian environments. While RNN-based controllers performed adequately over short durations, their performance degraded as the measurement record grew. The Transformer’s attention mechanism allowed it to maintain high fidelity by effectively weighing the importance of the entire historical record.

Discussion and Future Outlook

The successful application of Transformers to quantum control opens new avenues for managing large-scale quantum systems. The model's ability to "discover" control schedules for non-integrable many-body systems—reaching within 2% of ground-state energy for an 8-qubit Ising chain—suggests strong scalability.

However, challenges remain. The memory overhead associated with attention maps may complicate deployment on low-latency hardware like FPGAs. Additionally, the reinforcement learning training phase is data-intensive. Future work will focus on experimental validation on physical quantum processors and optimizing the architecture for hardware-specific constraints.

Summary updated

BibTeX
@misc{vaidhyanathan2024quantum,
  author = {Pranav Vaidhyanathan and Florian Marquardt and Mark T. Mitchison and Natalia Ares},
  title = {{Quantum feedback control with a transformer neural network architecture}},
  year = {2024},
  eprint = {2411.19253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.19253},
}
Figure