Syntax and semantics of quantum programs
This chapter introduces quantum programs with classical control flows in the superposition-of-data paradigm. It first defines the syntax of a quantum extension of a while-language. The operational semantics of the quantum while-language is carefully presented, and the denotational semantics of quantum while-programs is systematically investigated. For convenience of the reader, the basics of lattice theory and domain theory needed in defining the denotational semantics are briefly reviewed. The quantum while-language is further extended by introducing recursion. Several semantics of recursive quantum programs with classical control are studied. As an illustrative example, Grover search ...
Get Foundations of Quantum Programming now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.