Qiskit Practice
EXAM C1000-400 68 questions

Qiskit v2.x mock exam

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

Question 19 / 68
The bits c[0] and c[1] have already been measured. Under which pair (c[0], c[1]) does the block below apply X?
from qiskit.circuit.classical import expr
condition = expr.logic_and(qc.clbits[0], expr.logic_not(qc.clbits[1]))
with qc.if_test(condition):
    qc.x(2)