Skip to main content
QUICK REVIEW

[Paper Review] Addition and Differentiation of ZX-Diagrams

Emmanuel Jeandel, Simon Perdrix|arXiv (Cornell University)|Jan 1, 2022
Advanced Database Systems and QueriesComputer Science4 citations
TL;DR

This paper introduces an inductive method for adding and differentiating ZX-diagrams, enabling full diagrammatic computation of derivatives in quantum circuits. By leveraging controlled states and inductive rewriting rules, it provides a way to compute derivatives of parametrized ZX-diagrams without formal sums, allowing direct application to variational quantum algorithms like QAOA and VQE.

ABSTRACT

The ZX-calculus is a powerful framework for reasoning in quantum computing. It provides in particular a compact representation of matrices of interests. A peculiar property of the ZX-calculus is the absence of a formal sum allowing the linear combinations of arbitrary ZX-diagrams. The universality of the formalism guarantees however that for any two ZX-diagrams, the sum of their interpretations can be represented by a ZX-diagram. We introduce a general, inductive definition of the addition of ZX-diagrams, relying on the construction of controlled diagrams. Based on this addition technique, we provide an inductive differentiation of ZX-diagrams. Indeed, given a ZX-diagram with variables in the description of its angles, one can differentiate the diagram according to one of these variables. Differentiation is ubiquitous in quantum mechanics and quantum computing (e.g. for solving optimization problems). Technically, differentiation of ZX-diagrams is strongly related to summation as witnessed by the product rules. We also introduce an alternative, non inductive, differentiation technique rather based on the isolation of the variables. Finally, we apply our results to deduce a diagram for an Ising Hamiltonian.

Motivation & Objective

  • Address the lack of a formal sum operation in ZX-calculus, which hinders differentiation of parametrized quantum circuits.
  • Enable diagrammatic differentiation for variational quantum algorithms such as QAOA and VQE, where parameter optimization via derivatives is essential.
  • Develop a method to represent the derivative of a ZX-diagram as another ZX-diagram, avoiding the use of formal sums or bags of diagrams.
  • Provide a constructive, inductive framework for addition and differentiation that preserves the graphical nature of ZX-calculus.
  • Demonstrate the utility of the method by deriving a diagram for an Ising Hamiltonian from its exponential unitary evolution.

Proposed method

  • Introduce an inductive addition procedure for ZX-diagrams based on controlled states, which are known to support summation.
  • Use controlled states to inductively represent arbitrary ZX-diagrams, enabling the summation of any two diagrams via controlled state addition.
  • Derive an inductive differentiation rule by explicitly encoding the product rule (∂(fg) = ∂f·g + f·∂g) in diagram form.
  • Apply the differentiation method to the family of linear ZX-diagrams ZX(β), where angles depend linearly on a parameter β.
  • Provide an alternative, non-inductive differentiation technique based on isolating variable-dependent components in the diagram.
  • Use Stone’s theorem to reconstruct the Hamiltonian from the derivative of the unitary evolution diagram, enabling diagrammatic Hamiltonian synthesis.

Experimental results

Research questions

  • RQ1How can the sum of two arbitrary ZX-diagrams be defined and computed entirely within the ZX-calculus?
  • RQ2Can the derivative of a parametrized ZX-diagram be represented as a single ZX-diagram, avoiding formal sums?
  • RQ3How can the product rule for differentiation be encoded diagrammatically in the ZX-calculus?
  • RQ4Can the method be applied to derive Hamiltonian diagrams from the exponential of unitary evolution?
  • RQ5What is the practical impact of this approach on the analysis and optimization of variational quantum algorithms?

Key findings

  • The paper provides a fully inductive method to add any two ZX-diagrams by reducing the problem to the summation of controlled states.
  • The derivative of a parametrized ZX-diagram is shown to be representable as a single ZX-diagram, enabling full diagrammatic calculus.
  • For the family of linear diagrams ZX(β), explicit and simple formulas for differentiation are derived, greatly simplifying analysis of variational circuits.
  • The method allows diagrammatic reconstruction of an Ising Hamiltonian from the derivative of its exponential unitary evolution, as demonstrated in Example 6.3.
  • The approach enables the use of ZX-calculus rewrite rules to simplify expressions like ⟨ψ(β)|H|ψ(β)⟩ and its derivative, supporting full diagrammatic optimization.
  • The technique is validated by deriving the Hamiltonian H = Z₁ − Z₂ + Z₁Z₂ from the derivative of eiβH, confirming correctness via Stone’s theorem.

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.