npj Quantum Information (Oct 2023)

Quantum logic gate synthesis as a Markov decision process

  • M. Sohaib Alam,
  • Noah F. Berthusen,
  • Peter P. Orth

DOI
https://doi.org/10.1038/s41534-023-00766-w
Journal volume & issue
Vol. 9, no. 1
pp. 1 – 10

Abstract

Read online

Abstract Reinforcement learning has witnessed recent applications to a variety of tasks in quantum programming. The underlying assumption is that those tasks could be modeled as Markov decision processes (MDPs). Here, we investigate the feasibility of this assumption by exploring its consequences for single-qubit quantum state preparation and gate compilation. By forming discrete MDPs, we solve for the optimal policy exactly through policy iteration. We find optimal paths that correspond to the shortest possible sequence of gates to prepare a state or compile a gate, up to some target accuracy. Our method works in both the absence and presence of noise and compares favorably to other quantum compilation methods, such as the Ross–Selinger algorithm. This work provides theoretical insight into why reinforcement learning may be successfully used to find optimally short gate sequences in quantum programming.