Learning Unitaries by Gradient Descent

Bobak KianiOpenReview 2020

Abstract

We study the hardness of learning unitary transformations in $U(d)$ via gradient descent on time parameters of alternating operator sequences. We provide numerical evidence that, despite the non-convex nature of the loss landscape, gradient descent always converges to the target unitary when the sequence contains $d^2$ or more parameters. Rates of convergence indicate a "computational phase transition." With less than $d^2$ parameters, gradient descent converges to a sub-optimal solution, whereas with more than $d^2$ parameters, gradient descent converges exponentially to an optimal solution.

Introduction

In quantum computing, a fundamental challenge is "compiling" or "learning" a specific unitary transformation—essentially a complex rotation in Hilbert space. This is often achieved by optimizing a sequence of alternating physical operations, such as those found in the Quantum Alternating Operator Ansatz (QAOA). However, the "loss landscape" for these transformations is notoriously non-convex and jagged. Standard optimization theory suggests that first-order methods like gradient descent (GD) should easily become trapped in local minima. This research investigates the conditions under which this landscape becomes "trainable" and whether GD can serve as an efficient tool for quantum control.

Methods

The study approximates a target unitary $U$ using a sequence of the form: $$V(\vec{t}, \vec{\tau}) = e^{-iAt_K} e^{-iB\tau_K} \dots e^{-iAt_1} e^{-iB\tau_1}$$ where $A$ and $B$ are fixed Hamiltonians sampled from the Gaussian Unitary Ensemble (GUE) to ensure controllability. The variables optimized are the time parameters $t_j$ and $\tau_j$. The researchers used vanilla gradient descent and the Adam optimizer to minimize the Frobenius norm distance between the target $U$ (sampled from the Haar measure) and the sequence $V$. Experiments primarily focused on $d=32$ (a 5-qubit system), where the unitary manifold $U(d)$ has $d^2 = 1024$ degrees of freedom.

The $d^2$ Threshold

The most striking finding is a sharp "computational phase transition" at $d^2$ parameters. If the sequence has fewer than $d^2$ parameters, gradient descent almost always fails to reach the global optimum. Conversely, with $d^2$ or more parameters, it consistently succeeds.

Loss curves showing the $d^2$ threshold. Convergence to zero loss only occurs when the number of parameters reaches or exceeds $d^2$.

This threshold represents a hard physical limit for trainability. The authors suggest that at $d^2$ parameters, the map from control parameters to the unitary manifold becomes "locally surjective," providing enough degrees of freedom to navigate around local minima.

Convergence Regimes and Phase Transitions

The nature of convergence changes dramatically at the $d^2$ boundary. At exactly $d^2$ parameters, the system exhibits power-law convergence. However, adding even a small amount of over-parameterization triggers a transition to rapid exponential convergence.

Detailed convergence analysis: (a) Power-law decay at exactly $d^2$ parameters. (b) Under-parameterized models plateau at local minima, while over-parameterized models exhibit a transition to exponential decay.

In the under-parameterized regime ($< d^2$), the loss function plateaus as the algorithm gets stuck. In the over-parameterized regime ($> d^2$), the error drops off dramatically fast after an initial power-law phase. This behavior persists even for "shallow" target unitaries; surprisingly, even if a target could theoretically be represented by few parameters, GD often requires the full $d^2$ parameters to "break through" the local minima of the landscape.

Conclusion

This work demonstrates that while the landscape of quantum control is non-convex, it is not necessarily untrainable. The $d^2$ parameter threshold marks a critical point where gradient-based optimization becomes reliable and efficient. Future work will need to address how these findings scale to larger systems (more qubits) and how environmental noise affects the observed phase transition.

Summary updated

BibTeX
@misc{kiani2020learning,
  author = {Bobak Kiani},
  title = {{Learning Unitaries by Gradient Descent}},
  year = {2020},
  eprint = {2001.11897},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.11897},
  howpublished = {OpenReview},
}
Figure