Abstract
Hamiltonian simulation is a key quantum algorithm for modeling complex systems. To implement a Hamiltonian simulation, it is typically decomposed into a list of Pauli strings, each corresponding to an $R_Z$ rotation gate with many Clifford gates. These $R_Z$ gates are generally synthesized into a sequence of Clifford and T gates in fault-tolerant quantum computers, where the T-gate count and T-gate depth are critical metrics for such systems. In this paper, we propose NCF, a compilation framework that reduces both the T-gate count and T-gate depth for Hamiltonian simulation. NCF partitions Pauli strings into groups, where each group can be conjugated (i.e., transformed) into a list of Pauli strings that apply quantum gates on a restricted subset of qubits, allowing for simultaneous synthesis of the whole group and reducing both T-gate count and depth. Experimental results demonstrate that NCF achieves an average reduction of 57.4%, 49.1%, and 49.0% in T-gate count, T-gate depth, and Clifford count, respectively, compared to the state-of-the-art method.
Introduction
Quantum simulation—modeling the behavior of molecules or materials—is one of the most promising applications for quantum computing. Most algorithms, such as Trotterization, decompose these simulations into a sequence of Pauli strings. Each string requires a specific rotation (an $R_Z$ gate) implemented via a combination of Clifford and non-Clifford (T) gates.
In the fault-tolerant era, the cost of quantum operations shifts. While Clifford gates are relatively inexpensive, T-gates are highly resource-intensive due to the need for "magic state distillation." Current compilers often treat each $R_Z$ rotation individually, leading to a significant "T-gate tax." The challenge lies in optimizing these rotations collectively to minimize the total T-gate overhead.
The Non-Clifford Fusion (NCF) Framework
The authors introduce Non-Clifford Fusion (NCF), a compilation framework designed to fuse multiple rotations into compact unitaries before synthesis. The NCF approach consists of two primary stages: grouping and synthesis.
1. NCF Grouping
The compiler partitions the list of Pauli strings into groups that can be optimized together:
- Single-qubit grouping: Identifies pairs of anti-commuting Pauli strings that can be mathematically "rotated" via Clifford conjugation to act on the same single qubit.
- Two-qubit grouping: Uses a truth-table-based grading system to identify sets of up to 15 Pauli strings that can be conjugated to act on just two qubits.
To maintain scalability, a Sliding Window Strategy is employed, limiting the search for grouping opportunities to a local window of Pauli strings rather than the entire simulation at once.
2. Unitary Synthesis
Once grouped and conjugated, NCF fuses the rotations into a single, more complex unitary—such as a $U_3$ gate for single-qubit groups or a general two-qubit unitary. These fused blocks are then decomposed into the most efficient sequence of Clifford and T-gates using specialized synthesis tools like Trasyn or Synthetiq.
Key Insights
A central insight of NCF is that synthesizing a general $U_3$ rotation often costs the same number of T-gates as a single $R_Z$ rotation. By merging multiple $R_Z$ gates into one $U_3$, additional rotations are effectively achieved at no extra T-gate cost. Furthermore, Clifford conjugation acts as a "lens," refocusing the action of multiple Pauli strings onto a small subset of qubits to create fusion opportunities that were previously hidden. Finally, merging rotations allows for more flexible error thresholds; synthesizing one merged gate with a slightly higher tolerance can be more efficient than synthesizing many individual gates with tight tolerances while maintaining overall accuracy.
Experimental Results
NCF was evaluated against Gridsyn and Rustiq (the previous state-of-the-art) using 13 benchmarks across chemistry and physics models, including molecular Hamiltonians for $LiH$ and $CO_2$, as well as Ising and Heisenberg models.
- T-Gate Count: Achieved an average reduction of 57.4% compared to Rustiq.
- T-Gate Depth: Achieved an average reduction of 49.1%, enabling faster execution on hardware with parallel T-gate factories.
- Clifford Count: Reduced by 49.0%, as fused unitaries often require fewer total gates than original decomposed strings.
Conclusion
NCF significantly reduces the overhead of Hamiltonian simulations by leveraging Clifford conjugation to enable non-Clifford gate fusion. As multi-qubit unitary synthesizers continue to improve in speed and precision, the NCF framework is poised to offer even greater efficiency gains for fault-tolerant quantum computing.
Summary updated