Complete Quantum Relational Hoare Logics from Optimal Transport Duality
Gilles Barthe, Minbo Gao, Theo Wang, Li Zhou
TL;DR
The paper develops a sound and complete relational Hoare logic for quantum programs in the $\mathsf{qWhile}$ language, achieving completeness for AST programs with bounded postconditions via a duality theorem from quantum optimal transport. It introduces infinite-valued predicates to unify projective and PSD assertions and provides a complete semantic embedding of projector-based logics into the proposed framework. This yields principled, complete reasoning for program equivalence, trace/distance measures, Wasserstein distance, non-interference, and quantum differential privacy, with a dual applicability to probabilistic logics through Kantorovich–Rubinstein duality. The framework thereby advances rigorous, scalable reasoning about relational properties of quantum programs and has implications for quantum security, privacy, and correctness verification in quantum computing.
Abstract
We introduce a quantitative relational Hoare logic for quantum programs. Assertions of the logic range over a new infinitary extension of positive semidefinite operators. We prove that our logic is sound, and complete for bounded postconditions and almost surely terminating programs. Our completeness result is based on a quantum version of the duality theorem from optimal transport. We also define a complete embedding into our logic of a relational Hoare logic with projective assertions.
