Near-optimal quantum circuit construction via Cartan decomposition

Maximilian Balthasar Mansky, Santiago Londoño Castillo, Victor Ramos Puigvert, Claudia Linnhoff‐Popien · DOI

Abstract

We show the applicability of the Cartan decomposition of Lie algebras to quantum circuits. This approach can be used to synthesize circuits that can efficiently implement any desired unitary operation. Our method finds explicit quantum circuit representations of the algebraic generators of the relevant Lie algebras allowing the direct implementation of a Cartan decomposition on a quantum computer. The construction is recursive and allows us to expand any circuit down to generators and rotation matrices on individual qubits, where through our recursive algorithm we find that the generators themselves can be expressed with controlled-not (CNOT) and SWAP gates explicitly. Our approach is independent of the standard CNOT implementation and can be easily adapted to other cross-qubit circuit elements. In addition to its versatility, we also achieve near-optimal counts when working with CNOT gates, achieving an asymptotic CNOT cost of $\frac{21}{16}4^n$ for $n$ qubits.

Introduction

In quantum computing, an algorithm is represented as a unitary matrix ($U$) acting on a state space. To execute these algorithms on physical hardware, the unitary must be synthesized into a sequence of elementary gates, such as CNOTs and single-qubit rotations. This synthesis process faces two primary challenges: efficiency and generality. Because quantum hardware is inherently noisy, minimizing the gate count—particularly for error-prone two-qubit gates like CNOTs—is critical for maintaining fidelity. Furthermore, a robust compiler requires a general-purpose method to decompose any arbitrary unitary matrix, rather than relying on specialized recipes for specific algorithms.

While existing methods like Quantum Shannon Decomposition (QSD) provide a baseline, there is a continuous effort to find more efficient or hardware-adaptable alternatives. This paper introduces a recursive algorithm based on the Cartan decomposition of Lie algebras to address these needs.

Methodology

The proposed method leverages the Cartan decomposition, a fundamental tool in Lie algebra theory, to translate abstract unitary operations into concrete quantum circuits.

Recursive Decomposition

The algorithm generalizes the Khaneja-Glaser decomposition (originally for 3-qubit systems) to an arbitrary number of qubits ($n$). It recursively breaks an $n$-qubit unitary into four terms involving $(n-1)$-qubit unitaries and elements from a Cartan subalgebra. This hierarchical structure allows for a systematic reduction of complexity.

Recursive structure of the Cartan decomposition-based quantum circuit.

Algebra-to-Circuit Mapping

A key innovation is the derivation of explicit quantum circuit representations for the generators of the Lie algebra $su(2^n)$. The authors demonstrate that these generators can be organized into block-diagonal forms, which are then mapped to specific patterns of CNOT gates and $R_y/R_z$ rotations.

Implementation of the algebraic block $P_{\mp}(a,b)$ using CNOT and rotation gates.

Gate Implementation and Counting

The implementation utilizes "fermionic SWAP" gates to handle specific algebraic terms efficiently. Because the recursive structure follows a predictable pattern, the authors derived an exact analytical formula for the total CNOT gate count. This allows for performance evaluation without the need for traditional training datasets, instead comparing analytical costs against theoretical lower bounds and established algorithms.

Results and Key Insights

The "aha" moment of this research lies in the discovery that the abstract generators of $su(2^n)$ possess a recursive structure that maps naturally to a branching circuit architecture. By identifying proportional generators, the authors could group terms to minimize gate requirements.

Key results include:

  • Near-Optimal CNOT Count: The algorithm achieves an asymptotic CNOT cost of $\frac{21}{16} 4^n$. This is significantly more efficient than standard Cosine-Sine Decomposition ($4^n - 2^{n+1}$) and is within a factor of approximately five of the theoretical absolute lower bound ($\approx \frac{1}{4} 4^n$).
  • Deterministic Synthesis: Unlike numerical optimization methods that search for a circuit, this approach provides a direct, deterministic blueprint.
  • Hardware Versatility: Although the focus is on CNOT gates, the algebraic framework can be adapted to other cross-qubit elements like CZ or iSWAP gates, depending on the target hardware.

Discussion and Future Work

While the current construction assumes all-to-all connectivity, real-world quantum processors often have restricted topologies. Future work could involve restricting the Lie subalgebras to only include connections available on specific hardware, potentially leading to "hardware-native" optimal circuits. Additionally, the "raw" circuits produced by this method could be further compressed using post-synthesis optimization techniques like gate-merging. The authors provide a rudimentary implementation intended as a foundation for further refinement by the quantum software community.

Summary updated

Abstract

We show the applicability of the Cartan decomposition of Lie algebras to quantum circuits. This approach can be used to synthesize circuits that can efficiently implement any desired unitary operation. Our method finds explicit quantum circuit representations of the algebraic generators of the relevant Lie algebras allowing the direct implementation of a Cartan decomposition on a quantum computer. The construction is recursive and allows us to expand any circuit down to generators and rotation matrices on individual qubits, where through our recursive algorithm we find that the generators themselves can be expressed with controlled-not (CNOT) and SWAP gates explicitly. Our approach is independent of the standard CNOT implementation and can be easily adapted to other cross-qubit circuit elements. In addition to its versatility, we also achieve near-optimal counts when working with CNOT gates, achieving an asymptotic cnot cost of $\frac{21}{16}4^n$ for $n$ qubits.
BibTeX
@inproceedings{mansky2023near,
  author = {Maximilian Balthasar Mansky and Santiago Londoño Castillo and Victor Ramos Puigvert and Claudia Linnhoff‐Popien},
  title = {{Near-optimal quantum circuit construction via Cartan decomposition}},
  booktitle = {Physical},
  year = {2023},
  doi = {10.1103/physreva.108.052607},
}
Figure