Hoare meets Heisenberg: A Lightweight Logic for Quantum Programs

Aarthi Sundaram, Robert Rand, Kartik Singhal, Youngchan Cho, Brad Lackey
1/22/2021
quant-phcs.ETcs.LO

Official code: inQWIRE/GottesmanTypes (2 stars, Coq, MIT, last commit 2020-09-11).

Abstract

We show that Gottesman's (1998) semantics for Clifford circuits based on the Heisenberg representation gives rise to a lightweight Hoare-like logic for efficiently characterizing a common subset of quantum programs. Our applications include (i) certifying whether auxiliary qubits can be safely disposed of, (ii) determining if a system is separable across a given bipartition, (iii) checking the transversality of a gate with respect to a given stabilizer code, and (iv) computing post-measurement states for computational basis measurements.

Show full abstract

Further, this logic is extended to accommodate universal quantum computing by deriving Hoare triples for the $T$-gate, multiply-controlled unitaries such as the Toffoli gate, and some gate injection circuits that use associated magic states. A number of interesting results emerge from this logic, including a lower bound on the number of $T$ gates necessary to perform a multiply-controlled $Z$ gate.

View on arXivView PDF

Code Implementations(1)

MIT
21Coq, MakefileMay 7, 20206 years agoMIT

Similar Papers

Cite this paper

@article{sundaram2021hoare,
  title  = {Hoare meets Heisenberg: A Lightweight Logic for Quantum Programs},
  author = {Aarthi Sundaram and Robert Rand and Kartik Singhal and Youngchan Cho and Brad Lackey},
  year   = {2021},
  eprint = {2101.08939},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.08939}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.08939.svg)](https://codeofpaper.com/paper/2101.08939)

Discussion