RTR11 PRG Technical Report TR-11-00

Programming Research Group Technical Report TR-11-00

Logical reversibility

Paolo Zuliani

November 2000, 25 pp.

Abstract

A technique is developed that transforms any program in the probabilistic Guarded Command Language (pGCL) into an equivalent but reversible program. The result extends previous works firstly by considering a general purpose programming language (pGCL), and secondly by dealing with `demonic' nondeterminism and probability. A formal definition of logical reversiblity is given and the expectation-transformer semantics for pGCL is used to prove the result. The technique presented has a direct application in the compilation of a general purpose programming for quantum computation.


This paper is available as a 106046 bytes gzipped PostScript file.