bloq_is_rotation#
View source on GitHub
|
Whether a bloq represents a rotation operation.
qualtran.resource_counting.classify_bloqs.bloq_is_rotation(
b: qualtran.Bloq
) -> bool
This inspects the single qubit rotation bloqs and returns True unless the angle
represents a clifford or T-gate angle.
This function has a shim for counting Controlled[Rotation] gates as a rotation, which will be remediated when the Qualtran standard library gains a bespoke bloq for each CRot.
View source on GitHub