D-Hammer: Efficient Equational Reasoning for Labelled Dirac Notation

📅 2025-05-13
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Formal reasoning about labeled Dirac notation—widely used in quantum computing—lacks automated support, forcing error-prone, manual equality proofs in quantum system modeling and program verification. Method: We introduce the first higher-order dependent type system specifically designed for labeled Dirac notation, accompanied by a sound normalization algorithm and an efficient C++ implementation. Our framework unifies labeled and unlabeled Dirac terms within a type-safe syntax, semantics, and normalization strategy. Contribution/Results: We release an open-source tool that significantly outperforms the state-of-the-art system DiracDec on standard benchmarks, achieving both theoretical rigor—via formal type safety and semantic correctness—and practical efficiency. This work establishes a novel foundational infrastructure for formal verification in quantum computation.

Technology Category

Application Category

📝 Abstract
Labelled Dirac notation is a formalism commonly used by physicists to represent many-body quantum systems and by computer scientists to assert properties of quantum programs. It is supported by a rich equational theory for proving equality between expressions in the language. These proofs are typically carried on pen-and-paper, and can be exceedingly long and error-prone. We introduce D-Hammer, the first tool to support automated equational proof for labelled Dirac notation. The salient features of D-Hammer include: an expressive, higher-order, dependently-typed language for labelled Dirac notation; an efficient normalization algorithm; and an optimized C++ implementation. We evaluate the implementation on representative examples from both plain and labelled Dirac notation. In the case of plain Dirac notation, we show that our implementation significantly outperforms DiracDec.
Problem

Research questions and friction points this paper is trying to address.

Automates equational proofs for labelled Dirac notation
Addresses error-prone manual proofs in quantum systems
Improves efficiency over existing Dirac notation tools
Innovation

Methods, ideas, or system contributions that make the work stand out.

Automated equational proof for labelled Dirac notation
Expressive higher-order dependently-typed language
Efficient normalization algorithm and C++ implementation
Y
Yingte Xu
MPI-SP, Germany
L
Li Zhou
Key Laboratory of System Software (Chinese Academy of Sciences) and State Key Laboratory of Computer Science, Institute of Software, Chinese Academy of Sciences, China
Gilles Barthe
Gilles Barthe
MPI-SP and IMDEA Software Institute