PennyLane
  • Why PennyLane
  • Getting Started
  • Documentation
  • Ecosystem
Install
Install
  1. Compilation/
  2. Pauliopt: Holistic circuit resynthesis using phase polynomials

Pauliopt: Holistic circuit resynthesis using phase polynomials

OverviewDetailsResources

Overview

PauliOpt was introduced in [1, 2] and is a culmination of different phase polynomial based compilation methods. It has been shown to outperform directed acyclic graph (DAG) based compilation methods in both classical and quantum resources.

Inputs

  • Arbitrary circuit

Intermediate representation

  • Mixed ZX phase polynomial

Outputs

  • Arbitrary circuit

Context in literature

PauliOpt phase polynomial synthesis methods such as [3] are applied to a mixed ZX phase polynomial representation [4], and subsequent CNOT tails are optimized using RowCol or PermRowCol.

The paper [1] also investigates methods such as reverse traversal and simulated annealing [4], which only slightly improve the results, and Steiner-GraySynth [5], which is outperformed by ParitySynth [3] by Vandaele et al.

Example

Let us look at the example provided in [1]. A \text{CCZ} gate is described by the phase polynomial

\text{CCZ} = e^{-i \frac{\pi}{4} \left(Z_1 + Z_2 + Z_3 - Z_1 Z_2 - Z_1 Z_3 - Z_2 Z_3 + Z_1 Z_2 Z_3 \right)}.

Using phase polynomial synthesis methods like [3], we can obtain the following circuit:

A synthesized phase polynomial circuit with trailing CNOTs

The trailing CNOT circuit can be optimized by PermRowCol.

A synthesized phase polynomial circuit after removing the trailing CNOTs

Note how the final qubits are re-allocated, in particular, the original qubits (q_1, q_2, q_3) are mapped to (q_2, q_1, q_3), which saves extra CNOT gates.

Typical usage

The provided synthesis methods for Z and mixed ZX phase polynomials are well-suited for Hamiltonian based algorithms that provide gates in the form of exponentiated Pauli words that are not necessarily optimized for the underlying hardware. In this case, phase polynomial based compilation is advantageous in both classical and quantum resources whenever circuits are sufficiently deep. For shallow circuits, they may yield worse results.

References

[1] "A Comparison of Quantum Compilers using a DAG-based or phase polynomial-based Intermediate Representation", Arianne Meijer - van de Griend, arXiv:2304.08814, 2023

[2] "PauliOpt", "PauliOpt: A Python library to simplify quantum circuits", github.com/hashberg-io/pauliopt

[3] "Phase polynomials synthesis algorithms for NISQ architectures and beyond", Vivien Vandaele, Simon Martiel, Timothée Goubault de Brugière arXiv:2104.00934, 2021

[4] "Annealing Optimisation of Mixed ZX Phase Circuits", Stefano Gogioso, Richie Yeung, arXiv:2206.11839, 2022

[5] "Architecture-Aware Synthesis of Phase Polynomials for NISQ Devices", Arianne Meijer-van de Griend, Ross Duncan, arXiv:2004.06052, 2020


Cite this page

@misc{PennyLane-Pauliopt,
  title={Pauliopt: holistic CNOT routing},
  howpublished={\url{https://pennylane.ai/compilation/pauliopt-holistic-circuit-resynthesis-with-phase-polynomials}},
  year={2025}
}

Page author(s)

Korbinian Kottmann
Korbinian Kottmann

Korbinian Kottmann

Quantum simulation & open source software

PennyLane

PennyLane is an open-source software framework for quantum machine learning, quantum chemistry, and quantum computing, with the ability to run on all hardware. Built with ❤️ by Xanadu.

Stay updated with our newsletter

For researchers

  • Research
  • Features
  • Demos
  • Compilation
  • Datasets
  • Performance
  • Learn
  • Videos
  • Documentation
  • Teach

For learners

  • Learn
  • Codebook
  • Teach
  • Videos
  • Challenges
  • Demos
  • Compilation
  • Glossary

For developers

  • Features
  • Documentation
  • API
  • GitHub
  • Datasets
  • Demos
  • Compilation
  • Performance
  • Devices
  • Catalyst

© Copyright 2025 | Xanadu | All rights reserved

TensorFlow, the TensorFlow logo and any related marks are trademarks of Google Inc.

Privacy Policy|Terms of Service|Cookie Policy|Code of Conduct