Quantum Computing, Qiskit, Quantum, Quantum Optimization, Quantum Physics.
2.0*acos(-sqrt(p)) def decodingThird(qProg, a, b, cbit): """ the following circuit is the inverse of SWAP(1,2) --> u3_2(lambda3, 0, 0) --> cH(2,1) --> cx(1,2) """ qProg.cx(a, b) qProg = ch(qProg, b, a) qProg.u3(2*pi - lambda3, 0, 0, b) qProg.cx(a, b) qProg.cx(b, a) qProg.cx(a, b) qProg.measure(a,