When I execute the following circuit, I expect that in both classical registers, the content is identical.
q = QuantumRegister(1)
c = ClassicalRegister(2)
circuit = QuantumCircuit(q, c)
circuit.h(q[0])
circuit.measure(q[0], c[0])
circuit.measure(q[0], c[1])
backend = BasicAer.get_backend('qasm_simulator')
job = execute(circuit, backend, shots=100)
result = job.result()
counts = result.get_counts(circuit)
print(counts)
And the results are {'01': 44, '00': 56}
, however I expect {'11': 44, '00': 56}
When I run the same circuit in the IBM Quantum Experience with the same simulator, I get the expected results.
What do I miss?
qiskit-terra-0.8.2
after running the update, which solved the problem I haveqiskit-terra-0.10.0
now. $\endgroup$