Arbitrary state preparation in quantum harmonic oscillators using neural networks
Nicolas Parra-A, Vladimir Vargas-Calderón, Herbert Vinck-Posada
TL;DR
This work tackles scalable arbitrary state preparation in a quantum harmonic oscillator (HO) by coupling the HO to an auxiliary qubit and using a neural network to predict a sequence of rectangular pulses that yield the target HO state. The method relies on a Jaynes–Cummings–type Hamiltonian $\hat{H}$ and a Carr–Purcell sequence of $N$ pulses, with the neural network $f_{\boldsymbol{\eta}}: \mathbb{R}^d \to \mathbb{R}^{4N+1}$ taking $d=n^2-1$ $SU(n)$ expectation values and outputting pulse parameters $(\zeta,\xi,\phi,\varphi)$ for each pulse plus the total time $T$. Targets are sampled from the Haar measure on $SU(n)$, and training minimizes average infidelity with a regularization term to discourage excitation of higher HO levels. Key results show average fidelities of $F\approx0.999$ for qubits ($n=2$) and $F\approx0.97$ for qutrits ($n=3$), with seven pulses delivering the highest qubit fidelity and post-processing eliminating problematic fidelity-drop regions. The work highlights limitations for higher-dimensional qudits and the impact of using rectangular pulses, while suggesting architectural enhancements and extensions to Gaussian pulses, as well as incorporating noise, to broaden practical applicability. $\hat{H}$ and pulse parameters $\boldsymbol{\Theta}$ (and total time $T$) form the core mathematical framework, enabling a scalable, data-driven approach to on-demand state preparation in quantum harmonic oscillators.
Abstract
Preparing quantum states is a fundamental task in various quantum algorithms. In particular, state preparation in quantum harmonic oscillators (HOs) is crucial for the creation of qudits and the implementation of high-dimensional algorithms. In this work, we develop a methodology for preparing quantum states in HOs. The HO is coupled to an auxiliary qubit to ensure that any state can be prepared in the oscillator [J. Math. Phys. 59, 072101]. By applying a sequence of square pulses to both the qubit and the HO, we drive the system from an initial state to a target state. To determine the required pulses, we use a neural network that predicts the pulse parameters needed for state preparation. Specifically, we present results for preparing qubit and qutrit states in the HO, achieving average fidelities of 99.9% and 97.0%, respectively.
