Qiskit Practice
kibrahim757 66 questions

Qiskit v2.x mock exam

Select one answer per question. Submit to see the explanation.

Question 30 / 66
What happens when this code is executed?

qr = QuantumRegister(3, "a")

qc1 = QuantumCircuit(qr)

qc1.x(0)

qc1.x(2)

qc2 = QuantumCircuit(3)

qc2.h(1)

qc3 = qc1.compose(qc2, qubits=[0,1,2], inplace=False)