Select one answer per question. Submit to see the explanation.
g = QuantumCircuit(1, global_phase=pi/2).to_gate() qc = QuantumCircuit(2) qc.h(0) qc.append(g.control(), [0, 1]) qc.sdg(0) qc.h(0)