I tried to implement three qubit bit flip code in qiskit and need to get the result of measurements and then apply recovery quantum operations conditioned on the measurement results. The following is a simplified version to initialize a circuit:
q= QuantumRegister(3)
c= ClassicalRegister(3)
qc= QuantumCircuit(q, c)
qc.measure(q,c)
I noticed that this question had a similar question and they transformed the statement
if(c[0]==0) qc.x(q[0])
into
qc.x(q[0]).c_if(c[0], 0)
However, I want to have multiple quantum operations conditioned on the if statement
if c[0]==1 and c[1]==1:
qc.x(q[0])
qc.x(q[1])
can this work with "c_if"?
CNOT
and additional qubit(s); is this how if's are implemented? $\endgroup$