a guest Jun 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def qft_dag(self, qc, qregs):
- n = len(qregs)
- for i in reversed(range(n)):
- for k in reversed(range(i)):
- qc.cu1(-pi/(2**(i - k)), qregs[i], qregs[k])
RAW Paste Data