Qiskit Practice
kibrahim757 66 questions

Qiskit v2.x mock exam

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

Question 23 / 66
In the following code snippet, what happens when the code is executed?
   cr = ClassicalRegister(60)
   qr = QuantumRegister(60)
   circuit = QuantumCircuit(qr, cr)
   ...
   circuit.measure(qr, cr)
   with circuit.if_test((cr[0], 1)):
      circuit.x(q1)