VyZX : A Vision for Verifying the ZX Calculus

Adrian Lehmann, Ben Caldwell, Robert Rand
5/11/2022
quant-phcs.PL

Official code: inQWIRE/VyZX (21 stars, Rocq Prover, MIT, last commit 2026-01-16).

Abstract

Optimizing quantum circuits is a key challenge for quantum computing. The PyZX compiler broke new ground by optimizing circuits via the ZX calculus, a powerful graphical alternative to the quantum circuit model.

Show full abstract

Still, it carries no guarantee of its correctness. To address this, we developed VyZX, a verified ZX-calculus in the Coq proof assistant. VyZX provides two distinct representations of ZX diagrams for ease of programming and proof: A graph-based representation for writing high-level functions on diagrams and a block-based representation for proving ZX diagrams equivalent. Through these two different views, VyZX provides the tools necessary to verify properties and transformations of ZX diagrams. This paper explores the proofs and design choices underlying VyZX and its application and the challenges of verifying a graphical programming language.

View on arXivView PDF

Code Implementations(1)

inQWIRE/VyZXOfficial100%
MIT

Verifying the ZX Calculus

215Rocq Prover, PythonSep 7, 202110 months agoMIT

Similar Papers

Cite this paper

@article{lehmann2022vyzx,
  title  = {VyZX : A Vision for Verifying the ZX Calculus},
  author = {Adrian Lehmann and Ben Caldwell and Robert Rand},
  year   = {2022},
  eprint = {2205.05781},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.05781}
}

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/2205.05781.svg)](https://codeofpaper.com/paper/2205.05781)

Discussion