Run these circuits in a list on a single job on a real IBM backend (I used 'ibm-osaka', but It was reproduced on other systems)
job = backend.run([circ1, circ2], shots=100)
The resulting counts for the second circuit should be all "0" since it only does a measurement, but they are 50% "1" and 50% "0"
Total counts (for both circuits) are: [{'0': 100}, {'0': 52, '1': 48}]
This happens consistently on every job with this configuration.
I tried adding the circuits in alternation [circuit1, circuit2, circuit1, circuit2] and the 50/50 measurement only happens at odd alternations.
I also tried transpiling the circuits against the real backend to make sure the same qubit is used on both circuits. Same result.
Information
What is the current behavior?
I'm creating two circuits on one qubit each:
circuit 1 adds a single X gate (no measurement)
circuit 2 has just a measurement
Run these circuits in a list on a single job on a real IBM backend (I used 'ibm-osaka', but It was reproduced on other systems)
The resulting counts for the second circuit should be all "0" since it only does a measurement, but they are 50% "1" and 50% "0"
This happens consistently on every job with this configuration. I tried adding the circuits in alternation [circuit1, circuit2, circuit1, circuit2] and the 50/50 measurement only happens at odd alternations. I also tried transpiling the circuits against the real backend to make sure the same qubit is used on both circuits. Same result.
Steps to reproduce the problem
Run the following circuit
What is the expected behavior?
The returned counts should be
[{'0': 100}, {'0': 100}]
Suggested solutions