A Rich Type System for Quantum Programs
Abstract
We show that Gottesman's semantics (GROUP22, 1998) for Clifford circuits based on the Heisenberg representation can be treated as a type system that can efficiently characterize 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 bi-partition, (iii) checking the transversality of a gate with respect to a given stabilizer code, and (iv) typing post-measurement states for computational basis measurements. Further, this type system is extended to accommodate universal quantum computing by deriving types for the $T$-gate, multiply-controlled unitaries such as the Toffoli gate, and some gate injection circuits that use associated magic states. These types allow us to prove a lower bound on the number of $T$ gates necessary to perform a multiply-controlled $Z$ gate.
- Publication:
-
arXiv e-prints
- Pub Date:
- January 2021
- DOI:
- arXiv:
- arXiv:2101.08939
- Bibcode:
- 2021arXiv210108939S
- Keywords:
-
- Quantum Physics;
- Computer Science - Emerging Technologies;
- Computer Science - Logic in Computer Science;
- Computer Science - Programming Languages;
- F.3.1;
- D.2.4;
- F.4.1;
- I.1.1
- E-Print:
- 49 pages, 3 figures