Quantum Computing, Qiskit, Quantum, Quantum Optimization, Quantum Physics.
However, because we must perform measurement in the standard computational basis, what we need is a circuit that performs the inverse of the transformation above. Let’s do this in IBM Q def ch(qProg, a, b): """ Controlled-Hadamard gate """ qProg.h(b) qProg.sdg(b) qProg.cx(a, b) qProg.h(b)