Select one answer per question. Submit to see the explanation.
qc = QuantumCircuit(2, 2) qc.x(0) qc.swap(0, 1) qc.measure([0, 1], [0, 1]) optimized = PassManager([OptimizeSwapBeforeMeasure()]).run(qc)