什么玩意儿?量子傅里叶变换???这是啥玩意
#Quantum Fourier Transform def qft(qlist): circ = QCircuit() qnum = len(qlist) for i in range(0,qnum): circ.insert(H(qlist[qnum-1-i])) for j in range(i+1,qnum): circ.insert(CR(qlist[qnum-1-i],qlist[qnum-1-i],m.pi/(1 <<(j-i)))) for i in range(0,qnum//2): circ.insert(CNOT(qlist[i],qlist[qnum-1-i])) circ.insert(CNOT(qlist[qnum-1-i],qlist[i])) circ.insert(CNOT(qlist[i],qlist[qnum-1-i])) return circ
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |