Introduction
Estimating the similarity between quantum states is a fundamental task in quantum information science, essential for benchmarking hardware, characterizing noise, and defining loss functions in quantum machine learning. While metrics like trace distance and quantum fidelity are straightforward to compute for pure states, they become notoriously difficult for mixed states—the reality for any near-term quantum device.
Classically, computing these metrics for mixed states requires full quantum state tomography, which scales exponentially with the number of qubits. On quantum hardware, the problem is believed to be highly complex (QSZK-complete). This paper introduces two hybrid quantum-classical algorithms, Variational Trace Distance Estimation (VTDE) and Variational Fidelity Estimation (VFE), designed to estimate these metrics on Noisy Intermediate-Scale Quantum (NISQ) hardware without requiring prior knowledge of the states.
Proposed Methods
The authors leverage Variational Quantum Algorithms (VQAs), which combine parameterized quantum circuits (PQCs) with classical optimization loops to find solutions iteratively.
Variational Trace Distance Estimation (VTDE)
VTDE estimates the trace distance between two states, $\rho$ and $\sigma$, by finding the trace norm of their difference. A key innovation is that VTDE requires only a single ancillary qubit. By applying a PQC to the input states and this ancilla, and subsequently measuring the ancilla, a classical optimizer can maximize the output to reveal the trace distance. Because it relies on a local cost function (measuring just one qubit), VTDE theoretically avoids the "barren plateau" problem for shallow circuits, making it highly practical for near-term hardware.
Variational Fidelity Estimation (VFE)
This algorithm is based on Uhlmann's theorem, which relates the fidelity of mixed states to the maximum overlap of their purifications (higher-dimensional pure states). VFE employs a subroutine called Variational Quantum State Learning (VQSL) to learn these purifications, then optimizes over ancillary qubits to determine the fidelity.
Experimental Results
The algorithms were evaluated through both numerical simulations and real-world hardware tests. In simulations using multi-qubit GHZ states under depolarizing noise, VTDE demonstrated rapid and accurate convergence.
As shown in the figure above, the estimated trace distance ($D_{est}$) consistently approaches the theoretical ideal ($D_{ide}$) within approximately 120 iterations across various noise parameters ($p$). For VFE, simulations with random full-rank mixed states yielded average error rates below 0.25%.
Hardware implementation on the 5-qubit IBM ibmq_quito superconducting processor further validated the approach. For a state under dephasing noise, VTDE achieved an estimated trace distance of 0.643 (against a theoretical 0.700, an ~8.1% error), while VFE estimated a fidelity of 0.716 (against a theoretical 0.707, an ~1.4% error). These results indicate that the algorithms are robust enough to provide meaningful estimates even in the presence of physical hardware noise.
Limitations and Future Outlook
While VTDE is highly efficient with ancilla qubits, VFE faces scaling challenges. Its purification subroutine requires a number of ancillary qubits that scales with the rank of the input states. Furthermore, VFE utilizes a global loss function, which may lead to barren plateaus as the system size increases, potentially requiring more sophisticated optimization or initialization strategies like layer-wise learning.
VTDE and VFE represent a practical step toward efficient quantum state comparison on near-term hardware. By translating deep theoretical concepts like Uhlmann's theorem into variational frameworks, the authors provide tools that bypass the need for expensive state tomography. Future work may extend these "variational engines" to estimate other critical metrics, such as the diamond norm for quantum channels or entanglement measures like log negativity.
Summary updated