PennyLane
Install
Install

Quantum Compilation

Drastically reduce the size of your circuits to allow them to run on next-generation quantum computing hardware. On this page, you will find explanations and implementations of important compilation passes and techniques.

Explore our guide to quantum compilation
A painting of a quantum circuit

(Clifford + T) Gate Set

This target gate set contains S, H, CNOT, and T gates for FTQC.

Pauliopt: Holistic circuit resynthesis using phase polynomials

A holistic approach to phase polynomial based circuit resynthesis

Two-qubit Synthesis

Creates a circuit with optimal CNOT gate count from a 4x4 unitary matrix U.

Diagonal unitary decomposition

Decompose a diagonal unitary operator.

ZX-Calculus Intermediate Representation

ZX-calculus is a graphical language that can represent quantum circuits.

Loop Boundary Optimization

Optimizes redundant operations across loop iterations without unrolling.

One-qubit Synthesis

Creates a circuit with three rotations gates from a unitary 2x2 matrix.

RowCol Algorithm

Maps CNOT circuits to new optimized ones under constrained connectivity.

Parity Table

The parity table is a representation for the phase polynomial.

Partial Select

Remove redundant control nodes from a partial Select operator.

PCPhase decomposition

Decompose projector-controlled phase operators into phase shifts.

Select-U(2) Decomposition

See how to decompose a Select-applied/multiplexed U(2) operator or Pauli rotation.

Lazy Select

Remove complementary control nodes of Select operators.

Control logic decompositions

Discover a collection of decompositions for control logic.

Parity Matrix Intermediate Representation

The parity matrix describes a circuit containing only CNOT gates.

PermRowCol Algorithm

Maps CNOT circuits to new optimized ones under constrained connectivity and dynamic qubit allocation.

Unary Iteration

Reduce the cost of Select operators via caching.

Phase gradient

Learn about phase gradient states and their use.

Swap Network

Build an efficient Swap network.

Pauli-Based Computation

A universal model of quantum computing consisting of Pauli product measurements and Pauli product rotations.

Phase Polynomial Intermediate Representation

See a modern overview of phase polynomials and how they are utilized in various contexts in quantum compilation.

Efficient Adjoint Operations

Make adjoint operations more efficient with measurements.

Pauli Frame Tracking

Learn how Pauli frame tracking works.

Pauli Product Rotations

Pauli product rotation representations of common static and parametrized gates and subroutines.

Start compiling with PennyLane

Install PennyLaneExplore Catalyst
Never miss a milestone

Get the latest quantum updates delivered to your inbox.

Join the list
PennyLane

PennyLane is an open-source quantum software platform for quantum computing, quantum machine learning, and quantum chemistry. Create meaningful quantum algorithms, from inspiration to implementation.

Created with ❤️ by Xanadu.

Research

  • Research

  • Performance

  • Hardware and simulators

  • Demos library

  • Compilation hub

  • Quantum datasets

Education

  • Teach

  • Learn

  • Codebook

  • Coding challenges

  • Videos

  • Glossary

Software

  • Install

  • Features

  • PennyLane documentation

  • Catalyst documentation

  • Development guide

  • How-to guides

  • API

  • GitHub


Xanadu

© Copyright 2026 | Xanadu | All rights reserved

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

Privacy policyTerms of serviceCookies policyCode of conduct