As part of a larger code, I have to convert a quantum circuit into a Pulse scheduler. The problem is that the scheduler output is incompatible with the circuit output. In particular, the difference between the circuit output and the expected output seems to be compatible with the statistical error, while the scheduler output does not converge to the target state for a large number of shots.
This is an example:
from qiskit import circuit, transpile, schedule from qiskit.test.mock import FakeAthens backend = FakeAthens() circ = circuit.QuantumCircuit(5) circ.h(0) circ.measure_all() circ_transpiled = transpile(circ, backend) #without scheduler counts = backend.run(circ_transpiled,shots=100000).result().get_counts() print(counts) #with scheduler scheds = schedule(circ_transpiled, backend) sched_counts = backend.run(scheds,shots=100000).result().get_counts() print(sched_counts)
What is the source of this difference? And what can I do in order to produce the right result with the pulse scheduler?
Thank you in advance.