Qiskit Practice
EXAM C1000-3000 (Impossible) 68 questions

Qiskit v2.x mock exam

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

Question 62 / 68
An older qasm3 export of a Qiskit for_loop omitted the type of the iterator variable. Your round-trip regression expects what in Qiskit 2.6 export of a valid loop?
qc = QuantumCircuit(1)
with qc.for_loop(range(2)) as index:
    qc.rx(index, 0)
source = qasm3.dumps(qc)