Here's my circuit, trying to checkout the effect of measurement on the IBM Q circuit. Here you can see I do 2 different measurement at different time, and I hope to be able to see both results. However, I do not know how to do so.
q = QuantumRegister(2) c = ClassicalRegister(2) qc = QuantumCircuit(q, c) qc.h(q) qc.cx(q, q) qc.measure(q,c) job_sim = execute(qc, backend=simulator, shots=1024) counts_sim = job_sim.result().get_counts(qc) qc.cx(q, q) qc.measure(q,c) job_sim2 = execute(qc, backend=simulator, shots=1024) counts_sim2 = job_sim2.result().get_counts(qc)
Can anyone tell me how do I extract all measurement results at different time from the same classical bits in one execution? Thank you!