pith. sign in

arxiv: 2101.08939 · v6 · pith:ZLPAARWAnew · submitted 2021-01-22 · 🪐 quant-ph · cs.ET· cs.LO· cs.PL

Hoare meets Heisenberg: A Lightweight Logic for Quantum Programs

classification 🪐 quant-ph cs.ETcs.LOcs.PL
keywords gatelogicquantumcircuitscomputinggivenheisenberghoare
0
0 comments X
read the original 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. 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. A Practical Specification Language for Automatic Quantum Program Verification (Technical Report)

    cs.LO 2026-05 unverdicted novelty 8.0

    An extended set-based specification language translates to compact automata in linear time in the number of qubits, enabling fully automatic Hoare-style verification of quantum programs at larger scales.