Abstract
Quantum state preparation involves preparing a target state from an initial system, a process integral to applications such as quantum machine learning and solving systems of linear equations. Recently, there has been a growing interest in qumodes due to advancements in the field and their potential applications. However, there is a notable gap in the literature specifically addressing this area. This paper aims to bridge this gap by providing performance benchmarks of various optimizers used in state preparation with Variational Quantum Algorithms. We conducted extensive testing across multiple scenarios, including different target states, both ideal and sampling simulations, and varying numbers of basis gate layers. Our evaluations offer insights into the complexity of learning each type of target state and demonstrate that some optimizers perform better than others in this context. Notably, the Powell optimizer was found to be exceptionally robust against sampling errors, making it a preferred choice in scenarios prone to such inaccuracies. Additionally, the Simultaneous Perturbation Stochastic Approximation optimizer was distinguished for its efficiency and ability to handle increased parameter dimensionality effectively.
Introduction
Quantum state preparation (QSP) is a fundamental subroutine for major quantum applications, ranging from chemistry simulations to machine learning. While QSP is well-documented for standard qubit systems, research into qumodes—continuous variable systems like photons—remains sparse. Qumodes are theoretically capable of existing in an infinite number of Fock levels, making them ideal for simulating complex physical systems, yet they are notoriously difficult to control.
Variational Quantum Algorithms (VQAs) provide a framework for preparing these states by using a classical optimizer to iteratively train a quantum circuit. However, the optimization landscape in quantum problems is often plagued by "Barren Plateaus" or highly non-convex surfaces. Selecting an appropriate classical optimizer is therefore critical to the success of the preparation process.
Methodology
This study utilizes a variational framework to prepare three distinct target states: Local Gaussian, Gaussian Distribution, and a complex Non-Gaussian state. The approach is hybrid, combining a qubit-coupled bosonic system with a classical optimization suite.
Quantum Circuitry
The quantum side employs a 2-gateset VQA consisting of Displacement and Rotation gates. To simulate the infinite-dimensional nature of qumodes on classical hardware, the system was truncated to 10 Fock levels.
Classical Optimizers
The researchers benchmarked two categories of optimizers:
- Gradient-based: L-BFGS-B, Conjugate Gradient (CG), and SLSQP.
- Derivative-free: COBYLA, Nelder-Mead, Powell, and SPSA.
Performance was evaluated using the SWAP test to measure "infidelity" (the distance from the target state). Simulations were conducted in both Ideal (mathematically perfect) and Sampling (noisy, shot-based) environments to mimic real-world hardware constraints.
Key Insights and Results
The Complexity of Non-Gaussian States
A primary finding was the "complexity wall" associated with Non-Gaussian states. While simple Gaussian states could be approximated with only 2–3 layers of gates, Non-Gaussian states required up to 10 layers to achieve high fidelity. This indicates a significant jump in the expressiveness required for non-classical quantum states.
Optimizer Performance and Robustness
- Powell Optimizer: In sampling simulations, which introduce statistical noise, gradient-based methods often failed to converge. The Powell optimizer consistently demonstrated superior robustness, achieving infidelities as low as 0.005, compared to 0.07 or higher for Nelder-Mead.
- SPSA for Scalability: As circuit depth and parameter counts increased, the Simultaneous Perturbation Stochastic Approximation (SPSA) optimizer proved most efficient. Unlike Conjugate Gradient methods, which became increasingly inefficient, SPSA requires only two function evaluations per iteration regardless of parameter dimensionality.
- Sampling Thresholds: For gradient-based methods like L-BFGS-B to remain viable, a minimum threshold of approximately 6,144 samples (shots) per iteration was required. Below this, non-convergence rates spiked to nearly 38%.
Visual Confirmation via Wigner Functions
The accuracy of the preparation was visually verified using Wigner functions to map the state in phase space. At low layer counts (e.g., layer = 1), the system captures only a basic approximation. By 10 layers, the learnt state becomes a near-perfect visual match for the complex target state.
Conclusion and Future Work
This benchmark establishes that the choice of optimizer in qumode VQAs is highly dependent on the noise environment and the complexity of the target state. The Powell optimizer is recommended for near-term, noisy hardware, while SPSA is the preferred choice for high-dimensional, multi-layered circuits.
Future research will focus on expanding these benchmarks to multi-qumode systems and investigating the impact of hardware-specific decoherence and gate crosstalk on optimizer performance. Transitioning beyond the 10-Fock level truncation will also be necessary to fully explore the potential of continuous variable quantum computing.
Summary updated