- Compilation/
Phase Polynomial Intermediate Representation
Phase Polynomial Intermediate Representation
Phase polynomials are circuits consisting of CNOT and RZ gates (phase gates). Such circuits can be efficiently described in terms of their action on computational basis states with in terms of the parity table , parity matrix , and phase angles from the phase gates:
If not specified otherwise, the phase polynomial intermediate representation refers to this description. However, the exponent of the phase factor is also sometimes referred to as the phase polynomial. There are also X phase polynomials that are used in mixed ZX phase polynomials [5]. You may also sometimes see the term phase gadget [2], which refers to a simple phase polynomial consisting of one Pauli gate acting on any number of qubits. X-phase gadgets are equivalently defined as gates.
Inputs
- Circuit on qubits consisting of CNOT gates and phase gates.
Outputs
- binary parity table with
- binary parity matrix with
- angles
Example
Let us look at the circuit
x_0: ─╭X──RZ(1.1)─╭●─────────────────────────╭●───────┤ x_1: ─╰●──────────╰X──RZ(2.2)─╭●──────────╭●─╰X───────┤ x_2: ─────────────────────────╰X──RZ(3.3)─╰X──RZ(4.4)─┤
and its corresponding phase polynomial description:
In particular, the phase factor in the exponent reads
and is composed of the phase vector , the binary parity table , and .
The logical state transforms according to the parity matrix as ,
Overall, we have
Typical usage
Z phase polynomials are utilized for compilation and CNOT routing [1] [2] [3] [4].
Any (Clifford + T) circuit can be transformed into an initial circuit that can be described by (Z-) phase polynomials and a remaining Clifford circuit. Optimizing the initial part can be used to optimize T-gate counts as is done in [7] [8] [9] [10].
Mixed ZX phase polynomials can be used for quantum compilation of universal quantum circuits [5] [6].
References
[1] "On the CNOT-complexity of CNOT-PHASE circuits", Matthew Amy, Parsiad Azimzadeh, Michele Mosca, arXiv:1712.01859, 2017
[2] "Phase Gadget Synthesis for Shallow Circuits", Alexander Cowtan, Silas Dilkes, Ross Duncan, Will Simmons, Seyon Sivarajah, arXiv:1906.01734
[3] "Architecture-Aware Synthesis of Phase Polynomials for NISQ Devices", Arianne Meijer-van de Griend, Ross Duncan, arXiv:2004.06052, 2020
[4] "Phase polynomials synthesis algorithms for NISQ architectures and beyond", Vivien Vandaele, Simon Martiel, Timothée Goubault de Brugière arXiv:2104.00934, 2021
[5] "Annealing Optimisation of Mixed ZX Phase Circuits", Stefano Gogioso, Richie Yeung, arXiv:2206.11839, 2022
[6] "Towards a generic compilation approach for quantum circuits through resynthesis", Arianne Meijer - van de Griend, arXiv:2304.08814v1, 2023
[7] "Polynomial-time T-depth Optimization of Clifford+T circuits via Matroid Partitioning", Matthew Amy, Dmitri Maslov, Michele Mosca, arXiv:1303.2042, 2013.
[8] "An Efficient Quantum Compiler that reduces T count", Luke Heyfron, Earl T. Campbell, arXiv:1712.01557, 2017
[9] "Lower T-count with faster algorithms", Vivien Vandaele arXiv:2407.08695, 2024.
[10] "Quantum Circuit Optimization with AlphaTensor", Francisco J. R. Ruiz, Tuomas Laakkonen, Johannes Bausch et al, arXiv:2402.14396, 2024.
[11] "Quantum circuit optimizations for NISQ architectures", Beatrice Nash, Vlad Gheorghiu, Michele Mosca, arXiv:1904.01972, 2019
Cite this page
@misc{PennyLane-PhasePolynomial, title={Phase Polynomial Intermediate Representation}, howpublished={\url{https://pennylane.ai/compilation/phase-polynomial-intermediate-representation}}, year={2025} }
Page author(s)
Korbinian Kottmann
Quantum simulation & open source software