Qiskit Practice
EXAM C1000-179 21 questions

Qiskit v2.x mock exam

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

Question 04 / 21
In a drawing of this circuit, which gate belongs in the branch taken when classical bit 0 contains 0?
qc = QuantumCircuit(2, 1)
qc.measure(0, 0)
with qc.if_test((qc.clbits[0], 0)) as otherwise:
    qc.z(1)
with otherwise:
    qc.x(1)