Litcius/Paper detail

On incorrectness logic for Quantum programs

Peng Yan, Hanru Jiang, Nengkun Yu

2022Proceedings of the ACM on Programming Languages25 citationsDOIOpen Access PDF

Abstract

Bug-catching is important for developing quantum programs. Motivated by the incorrectness logic for classical programs, we propose an incorrectness logic towards a logical foundation for static bug-catching in quantum programming. The validity of formulas in this logic is dual to that of quantum Hoare logics. We justify the formulation of validity by an intuitive explanation from a reachability point of view and a comparison against several alternative formulations. Compared with existing works focusing on dynamic analysis, our logic provides sound and complete arguments. We further demonstrate the usefulness of the logic by reasoning several examples, including Grover's search, quantum teleportation, and a repeat-until-success program. We also automate the reasoning procedure by a prototyped static analyzer built on top of the logic rules.

Topics & Concepts

Computer scienceProgramming languageQuantum logicLogic programmingTheoretical computer scienceDynamic logic (digital electronics)ReachabilityComputational logicDescription logicQuantumQuantum computerPhysicsVoltageTransistorQuantum mechanicsQuantum Computing Algorithms and ArchitectureQuantum Information and CryptographyQuantum Mechanics and Applications