Optimizing Quantum Error Correction Codes with Reinforcement Learning
Hendrik Poulsen Nautrup et al. · 9 claims
A. QEC codes for i.i.d. error channelsAs a first simple task, we consider two straightforward scenarios with known good solutions as they will nonetheless be crucial in the evaluation of the behavior of the RL agent. First, let us consider an error channel that can only cause Z -errors with probability p = 0 . 1 on each individual, physical qubit independently. Formally, we can write this as a quantum channel acting on each singlequbit state ρ as, Assuming the initial logical error rate is above threshold P Lrew , the RL agent is then tasked with modifying the 18-qubit surface code by increasing the number of physical qubits according to the rules described in Fig. 3. At the beginning of each trial, an agent has a reservoir of 50 additional qubits at its disposal to reduce the logical error rate below P Lrew = 0 . 001. Fig. 5(a) shows that the agent indeed learns a strategy, i.e., a policy, which adds – on average – 5 physical qubits to the initial code in order to reduce the logical error rate as desired. Fig. 5(a) can be understood as follows. In the very beginning, the agent has no knowledge about the environment and performs random modifications of the surface code. For the specific error channel in Eq. (4), a random strategy requires on average 20 additional physical qubits to reach the desired logical error rate P Lrew . What follows are many trials of exploring the space of surface codes. During each trial, the agent’s episodic memory is reshaped and modified as described in Sec. IV and Appendix A. This learning process effectively increase the probability for the agent to select sequences of actions which lead to a reward quickly. As can be seen from Fig. 5 the length of a rewarded sequence of actions is gradually reduced with each trial. Ideally, the agent’s behavior converges to a policy that requires a minimum number of additional qubits. In Fig. 5(a) we observe that agents converge towards a policy which requires, on average, 5 additional qubits. Let us now confirm that the strategy found by the RL agents agrees with the best known strategies for this problem.


