Verifying Quantum Programs Before Oracle Binding
Oracle-based quantum algorithms specify how the circuit can access its input through coherent operations. The correctness of the algorithm can be established in terms of these operations before their implementations are chosen. This paper presents a register-level format for such open quantum programs and a method for verifying their late bindings. The format represents unresolved oracle calls, ordered register views, read-only quantum random-access memory (QRAM), and private workspace. Our validator compares independently supplied open and bound programs. We prove in Lean that an accepted binding transfers the caller's proof when the chosen implementations meet their public matrix contracts and restore private workspace to zero. The theorem accounts for coherent control and adjoints. Quantitative variants bound error for approximate oracle implementations and for callers with a certified projected denotation. OracqVerify implements the checker for serialized Oracq programs. We demonstrate verification on gate and QRAM bindings for Grover search, Boolean oracles for Deutsch-Jozsa, and alternative Hamiltonian simulation components for a fixed evolution caller.