Exam4Training

What code fragment codes the equivalent circuit if you remove the barrier in the following QuantumCircuit?

What code fragment codes the equivalent circuit if you remove the barrier in the following QuantumCircuit?

A . qc = QuantumCircuit(1,1)
qc.h(0)
qc.s(0)
qc.h(0)
qc.measure(0,0)

B . qc = QuantumCircuit(1,1)
qc.measure(0,0)
C . qc = QuantumCircuit(1,1)
qc.h(0)
qc.t(0)
qc.tdg(0)
qc.h(0)
qc.measure(0,0)
D . qc = QuantumCircuit(1,1)
qc.h(0)
qc.z(0)
qc.h(0)
qc.measure(0,0)

Answer: A

Exit mobile version