Abstract
Despite advances in the development of quantum computers, the practical application of quantum algorithms requiring deep circuit depths or high-fidelity transformations remains outside the current range of noisy intermediate-scale quantum (NISQ) devices. Quantum circuit compilation (QCC) is a crucial component of any quantum algorithm execution, translating circuits into hardware-specific gates while optimizing depth and adapting to noise. In this work, we present a variational quantum circuit compilation (VQCC) objective function called the quantum Wasserstein compilation (QWC) cost function, based on the quantum Wasserstein distance of order 1. We demonstrate that the QWC cost function upper bounds average infidelity and is significantly less affected by barren plateaus compared to traditional metrics like the Hilbert-Schmidt test (HST) or Loschmidt echo test (LET).
Navigating the Barren Plateaus of Circuit Design
Quantum circuit compilation (QCC) is the process of translating a high-level quantum algorithm into a sequence of gates executable on specific hardware. In the NISQ era, this is an optimization problem: finding the shortest, most noise-resilient circuit that reproduces a target unitary transformation.
The standard approach, Variational Quantum Circuit Compilation (VQCC), optimizes the parameters of a template circuit (an ansatz). However, VQCC faces the "Barren Plateau" problem: as circuits grow in width or depth, the cost function landscape becomes exponentially flat, causing gradients to vanish and making optimization nearly impossible. Traditional metrics, such as state overlap or the Hilbert-Schmidt test, are particularly susceptible to this phenomenon.
Methodology: The Quantum Wasserstein Approach
The authors propose the Quantum Wasserstein Compilation (QWC) cost function, inspired by the "Earth Mover's Distance" from classical optimal transport. Unlike unitarily invariant metrics, the $W_1$ distance measures the "cost" of transforming one state into another based on qubit flips (Hamming distance). This allows the metric to distinguish between orthogonal states that are physically "close," providing a richer learning signal.
The implementation uses a Quantum Generative Adversarial Network (QGAN) architecture:
- Generator: A variational ansatz $U(\theta)$ that attempts to reproduce the target unitary.
- Discriminator: Estimates the Wasserstein distance by measuring a set of $k$-local Pauli observables. This reduces measurement overhead to polynomial scaling $O(n^k)$.
- Training Data: The model is trained on an ensemble of random product states, which are easy to prepare and provide a representative sample of the Hilbert space.
Key Insights and Results
A primary theoretical contribution is the proof that the QWC cost function acts as an upper bound for average infidelity. Minimizing QWC directly improves the fidelity of the compiled circuit. Furthermore, because the $W_1$ distance scales linearly with the number of qubits, it avoids the exponential vanishing of gradients seen in overlap-based metrics.
Empirical results highlight several advantages:
- Barren Plateau Resistance: In experiments with up to 8 qubits, QWC gradients remained stable while those for HST and LET plummeted toward zero.
- High Precision: QWC achieved infidelities as low as $10^{-16}$ in noiseless simulations.
- Scalability: As shown in the performance metrics, the success rate generally improves with the size of the input state ensemble, demonstrating the robustness of the learning process across different system sizes.
Limitations and Future Directions
While QWC shows great promise, challenges remain. The $O(n^k)$ measurement overhead, though polynomial, can still be significant. Future work may integrate "classical shadow" estimation to further reduce measurement requirements. Additionally, while this study focused on noiseless environments, evaluating QWC's performance against real-world hardware noise—such as decoherence and gate errors—is a critical next step for practical deployment in the NISQ era.
Summary updated