quantumlib / Qualtran

Qᴜᴀʟᴛʀᴀɴ is a Python library for expressing and analyzing Fault Tolerant Quantum algorithms.
https://qualtran.readthedocs.io/en/latest/
Apache License 2.0
177 stars 44 forks source link

RzViaPhaseGradient #1147

Closed anurudhp closed 3 months ago

anurudhp commented 3 months ago

Implements a controlled Rz(t) rotation using a phase gradient, which has half the T-cost as a ZPow using phase gradient.

TODO in follow up: The current implementation has a Toffoli cost of b_grad - 1. reduce the Toffoli complexity by 1 (for add-sub into phase gradient)