Skip to main content
QUICK REVIEW

[Paper Review] Completeness of the ZH-calculus

Miriam Backens, Aleks Kissinger|arXiv (Cornell University)|Mar 11, 2021
Logic, programming, and type systemsComputer Science6 citations
TL;DR

This paper establishes the completeness of the ZH-calculus, a graphical language for quantum computation, with respect to matrices over Z[1/2], corresponding to the approximately universal Toffoli+Hadamard gate set. It introduces a minimal set of rewrite rules derived from Boolean function identities, proves their completeness via normal form reduction, and extends the calculus to arbitrary rings where 2 is not a zero divisor, yielding a complete and minimal axiomatisation for universal quantum computation fragments.

ABSTRACT

There are various gate sets used for describing quantum computation. A particularly popular one consists of Clifford gates and arbitrary single-qubit phase gates. Computations in this gate set can be elegantly described by the ZX-calculus, a graphical language for a class of string diagrams describing linear maps between qubits. The ZX-calculus has proven useful in a variety of areas of quantum information, but is less suitable for reasoning about operations outside its natural gate set such as multi-linear Boolean operations like the Toffoli gate. In this paper we study the ZH-calculus, an alternative graphical language of string diagrams that does allow straightforward encoding of Toffoli gates and other more complicated Boolean logic circuits. We find a set of simple rewrite rules for this calculus and show it is complete with respect to matrices over $\mathbb{Z}[\frac12]$, which correspond to the approximately universal Toffoli+Hadamard gateset. Furthermore, we construct an extended version of the ZH-calculus that is complete with respect to matrices over any ring $R$ where $1+1$ is not a zero-divisor.

Motivation & Objective

  • To develop a complete graphical calculus for reasoning about quantum circuits beyond the Clifford+phase gate set, particularly those involving multi-controlled gates like Toffoli.
  • To extend the ZX-calculus framework to handle more complex Boolean logic operations such as Toffoli gates, which are poorly supported in the original ZX-calculus.
  • To establish completeness of the ZH-calculus for matrices over Z[1/2], corresponding to the Toffoli+Hadamard gate set, using a minimal and intuitive set of rewrite rules.
  • To generalize the calculus to arbitrary rings where 2 is not a zero divisor, ensuring completeness over broader algebraic structures relevant to quantum computation.
  • To simplify and optimize the axiomatisation by showing redundancy of certain rules and proposing alternative, more intuitive rule sets.

Proposed method

  • Introduces the ZH-calculus using H-boxes (generalized Hadamard boxes) and Z-spiders as generators, with matrix interpretations over Z[1/2].
  • Defines a set of rewrite rules—multiply, intro, average, and others—motivated by identities in Boolean function theory.
  • Develops a normal form for ZH-diagrams using conditional reduction rules, enabling systematic simplification and comparison of diagrams.
  • Proves completeness by showing that any two diagrams representing the same matrix can be transformed into the same normal form using the rewrite rules.
  • Extends the calculus to arbitrary rings R where 1+1 is not a zero divisor by introducing a meta-rule to cancel scalar factors when 1/2 ∉ R.
  • Uses !-box notation and annotated !-boxes to express families of diagrams and prove properties over infinite families of circuits.

Experimental results

Research questions

  • RQ1Can the ZH-calculus be made complete for the Toffoli+Hadamard gate set using a minimal and intuitive set of rewrite rules?
  • RQ2Are the standard rewrite rules in the ZH-calculus, such as (hh), necessary, or can they be derived from simpler rules?
  • RQ3Can the ZH-calculus be extended to be complete over arbitrary rings where 2 is not a zero divisor, and what modifications are needed for such completeness?
  • RQ4Is the calculus minimal in the sense that all rules are necessary for completeness, or can some be removed or replaced with simpler ones?
  • RQ5Can the calculus be adapted to represent unitary matrices over C by reinterpreting generators, and does this preserve completeness?

Key findings

  • The ZH-calculus is complete with respect to matrices over Z[1/2], corresponding to the Toffoli+Hadamard gate set, using a small, intuitive set of rewrite rules.
  • The (hh) rule is not necessary for completeness, as it can be derived from the other rules, simplifying the axiomatisation.
  • The (o) rule can be replaced by two simpler, more intuitive rules, improving clarity and understandability of the calculus.
  • The calculus can be extended to arbitrary rings R where 1+1 is not a zero divisor by introducing a meta-rule to cancel scalar factors when 1/2 ∉ R.
  • The normal form construction ensures that any diagram can be reduced to a unique canonical form, enabling decision procedures for diagram equality.
  • The calculus remains complete even when reinterpreting the H-box generator to represent 1/√2 instead of 1/2, allowing it to represent matrices of the form (1/√2)^n A with A ∈ Z^n×n.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.