- The paper introduces the DPF compiler infrastructure that generalizes phase kickback to arbitrary quantum circuits, achieving resource savings without sacrificing synthesis performance.
- It employs a block-partitioned unitary synthesis strategy using BQSKit-FT to rewrite Rz rotations as dyadic values and optimally trade off ancilla utilization versus T-gate cost.
- Experimental results demonstrate up to 70% T-count reduction and 60% space-time volume savings across benchmarks such as QFT, QAE, and QAOA, highlighting practical hardware-aware benefits.
Multi-Qubit Dyadic Phase Fixing for Fault-Tolerant Quantum Compilation
Introduction and Motivation
The compilation of quantum programs for execution on fault-tolerant quantum computers fundamentally requires translation into discrete gate sets—in practice, Clifford+T—where the T gate dominates resource consumption due to the cost of magic state distillation and injection. While the gridsynth algorithm provides optimal ancilla-free Clifford+T synthesis for Rz gates with O(log(1/ϵ)) T-count scaling, techniques such as phase kickback can dramatically reduce T-count for rotations with dyadic angles (2k2mπ), but prior to this work have remained limited to highly structured and narrow circuit classes.
This paper introduces the Dyadic Phase Fixing (DPF) compiler infrastructure, which generalizes multi-qubit phase kickback synthesis to arbitrary quantum circuits. The workflow greedily rewrites input circuits to maximize the use of dyadic rotations and employs a decision matrix to trade off register size and ancilla utilization versus T-gate savings, always guaranteeing performance at least as good as default ancilla-free synthesis.
Dyadic Phase Fixing and Workflow
The Dyadic Phase Fixing algorithm extends the applicability of phase kickback by numerically identifying opportunities to rewrite Rz rotations in arbitrary circuits as dyadic multiples, beyond their native appearance in, e.g., QFTs and amplitude amplification subroutines. This is achieved through a block-partitioned unitary synthesis strategy, leveraging BQSKit-FT numerical optimization to parameterize subcircuits and subsequently "fix" T0 angles greedily to dyadic values, up to a user-specified maximum register size.
The complete compilation workflow is structured as follows:
- Partition the logical circuit into width-T1 blocks.
- For each block, apply BQSKit-FT for continuous rotation reduction while bounding per-block error using the Hilbert-Schmidt metric, distributing the global error T2 across blocks.
- Apply DPF to each block, greedily replacing suitable T3 gates with dyadic rotations.
- Invoke a decision matrix to choose the optimal phase gradient register size, balancing overhead with T-count reduction.
- For remaining non-dyadic T4 gates, revert to gridsynth to complete decomposition to the Clifford+T5 set.
Figure 1: High-level overview of the end-to-end compilation workflow, including partitioning, synthesis, DPF, and hardware-aware mapping.
The decision matrix operates by comparing the T6-gate overhead of phase kickback against optimal standard synthesis across a sweep of register sizes, numbers of dyadic rotations, and desired precision. This ensures the DPF workflow never underperforms relative to the baseline.
Figure 2: Decision matrix comparing T7-gate counts between Phase Kickback and gridsynth for varying register sizes, dyadic T8 gate counts, and error thresholds.
Algorithmic Details and Ancilla Management
Phase kickback for dyadic rotations, implemented via a T9-qubit phase gradient register and efficient adders, achieves a per-gate T0-cost that, when amortized over several dyadic rotations, can be substantially less than that of repeated gridsynth decompositions. Ancilla overhead is controlled by the chosen maximum register size and is further mitigated by employing a shared phase gradient register for all DPF-extracted operations, serializing their execution to prevent a linear blow-up in qubit requirements with circuit width.
Due to the greedy, non-exhaustive nature of the DPF procedure, it is possible that not all configurations with minimal T-count are found; however, extensive empirical results suggest substantial real-world improvements.
Experimental Results
Benchmarking on a diverse suite of circuits—including QFT, QAE, QAOA, Hamiltonian simulation, quantum chemistry, physics simulation, and ML—demonstrates that the workflow achieves up to 70% T1-count reduction compared to state-of-the-art Clifford+T2 synthesis (gridsynth) and up to 60% over Repeat-Until-Success (RUS) circuits, while also reducing space-time volume by up to 60% for a range of surface code mapping strategies.
Figure 3: Normalized T3-gate counts for Baseline (gridsynth), Naive Phase Kickback, and DPF Synth across all benchmarks at stringent error thresholds.
Detailed analysis reveals:
The greedy dyadic extraction procedure dramatically concentrates the distribution of dyadic-structured rotations across the circuit post-synthesis, even when the input distribution is broad.
Figure 5: Distribution of dyadic T7 angles before and after Phase Kickback Synthesis.
Hardware Mapping and Space-Time Volume
Critically, the paper extends evaluation beyond logical gate counts by mapping the output circuits to logical surface code layouts using both Lightweight and Heavyweight Pauli Basis Computation strategies. The physical resource metric is space-time volume, computed as logical cycles times the total logical patch count. The outcomes demonstrate:
Comparison with Alternative Synthesis Techniques
By reparameterizing the decision matrix in terms of expected T-count for RUS rotation synthesis, the DPF workflow demonstrates generalizability; T8-count reductions persist, although the cross-over point for phase kickback relative to RUS is shifted, requiring more extracted dyadic rotations and higher precision than when using gridsynth.
Figure 7: Decision matrix comparing Phase Kickback versus RUS as a function of gate count and error threshold.
Figure 8: T9-gate counts under DPF Synth versus RUS-based rotation synthesis across benchmarks.
The framework thus applies to a spectrum of synthesis backends, remaining hardware-aware and optimizing according to the actual cost model.
Theoretical and Practical Implications
This work underscores three critical points for the fault-tolerant quantum compilation landscape:
- Rz0-count is not a universally reliable proxy for program cost; space-time volume under specific mapping and scheduling strategies more accurately reflects true hardware burden.
- Automatic detection and exploitation of dyadic structure, even when not apparent in the original algorithm, is key for resource minimization in large-scale quantum algorithms.
- Compiler design must account for physical architecture constraints, including ancilla register usage, adders' CNOT footprint, and available schedule parallelism, rather than assuming that logical-level gate minimization is sufficient.
The methodology also lays groundwork for future extensions, e.g., directly optimizing space-time volume via analytic modeling within the decision matrix, systematic allocation of multiple phase gradient registers, and enhanced co-optimization of routing, resource state preparation, and synthesis within a single toolchain.
Conclusion
Dyadic Phase Fixing pushes phase kickback from a specialized synthesis optimization into a general-purpose, numerically robust compilation primitive, capable of exploiting even latent dyadic rotation opportunities within arbitrary multi-qubit circuits. By embedding hardware-awareness and a flexible decision framework, it ensures no loss in T-count while strongly improving resource efficiency for broad algorithm classes and real hardware constraints.
This approach establishes new methodology for compilation workflows, motivating compiler research to move beyond gate count metrics to comprehensive program cost minimization and further architectural integration. The landscape for fault-tolerant code generation is thus advanced toward physically realistic and truly minimal executions.