pygridsynth: A fast numerical tool for ancilla-free Clifford+T synthesis

Abstract

We present pygridsynth, an open-source Python library for ancilla-free approximate Clifford+T synthesis that runs in O((1/ε)) for precision ε. For n=1, 2 qubits, the library builds upon established efficient and high-precision synthesis routines, such as nearly optimal Z-rotation synthesis and magnitude approximation. For n 3 qubits, we introduce a partial-decomposition technique that generalizes the magnitude approximation, reducing constant factors in the T-count as (218· 4n - 92· 2n + 9)2(1/ε) + o((1/ε)). The package also exposes a mixed-synthesis workflow that approximates target unitary channels by probabilistic mixtures of Clifford+T circuits, for which we empirically find that the synthesis error is reduced from ε to ε2/(2n). Taken together, these features make pygridsynth a Python-native platform for high-precision Clifford+T synthesis and for benchmarking unitary and mixed synthesis strategies on multi-qubit instances.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…