In the given circuit what are the possible ways to measure the quantum register using the classical register? (Select 2)

In the given circuit what are the possible ways to measure the quantum register using the classical register? (Select 2)

q = QuantumRegister(3)

c = ClassicalRegiser(3)

qc = QuantumCircuit(q,c)

qc.h(0)

qc.cx(0,1)

qc.cx(0,2)

qc.barrier()

A . qc.measure([0,1,2],[0,1,2])
B . qc.measure_all()
C . qc.measure([0,0],[1,1],[2,2])
D . qc.measure(q,c)
E . qc.measure(0,1,2)

Answer: AD

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments