Quantum Computing, Qiskit, Quantum, Quantum Optimization, Quantum Physics.
encoding010(qProg, a, b): qProg.u3(theta2, 0, 0, a) qProg.x(b) qProg.x(a) qProg = ch(qProg, a, b) qProg.x(a) return qProg def encoding100(qProg, a, b): qProg.u3(theta1, 0, 0, a) qProg = ch(qProg, a, b) qProg.x(a) qProg.x(b) qProg.cz(a, b) qProg.x(a) qProg.x(b) return qProg def encoding111(qProg, a,