quri_parts.qsub.trans.clifford_rz module

class CliffordRZSetTranspiler(epsilon=1e-09)

Bases: SubTranspilerProtocol

A qsub Sub transpiler that transpiles a Sub into the Clifford+RZ gate set (Clifford gates plus the continuous RZ rotation).

It wraps quri_parts.circuit.transpile.CliffordRZSetTranspiler with SeparateQURIPartsTranspiler so that it operates on a Sub rather than a QuantumCircuit.

epsilon (default 1e-9) is the tolerance for snapping a near-Clifford RZ angle to a named gate; it is not a gridsynth synthesis precision (RZ stays native, so no angle approximation is performed). Only the top-level operations of the Sub are rewritten; gates inside nested subroutines are left untouched until those subroutines are expanded.

Parameters:

epsilon (float)