Predict the output of counts in the below-given snippet:

Predict the output of counts in the below-given snippet:

q = QuantumRegister(2,’q’)

c = ClassicalRegister(2,’c’)

qc = QuantumCircuit(q,c)

qc.h(0)

qc.h(1)

qc.measure([0,1],[0,1])

backend = BasicAer.get_backend(‘qasm_simulator’)

job = execute(qc, backend, shots=100)

counts = job.result().get_counts()
A .

B .

C .


D .

E .

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments