I've started playing around with IBM's quantum platform, I have a simple test circuit I've been working with
from qiskit import QuantumCircuit
from qiskit_ibm_runtime import QiskitRuntimeService, Session, Sampler
service = QiskitRuntimeService(token="not today", channel="ibm_quantum")
backend = service.least_busy(simulator=False, operational=True)
qc = QuantumCircuit(1, 1)
qc.h(0)
qc.measure(0, 0)
with Session(backend=backend) as session:
sampler = Sampler(session=session)
job = sampler.run(circuits=qc, shots=2)
print(job.result())
With 2 shots, my result should either be a 100% probability of either 0 or 1, or a 50/50 distribution. Strangely, I get results like quasi_dists=[{0: 0.4589879389380925, 1: 0.5410120610619075}]
. I'm not sure exactly how this happens. I hypothesize it has something to do with error mitigation, but I'm not sure. If anyone could confirm that would be really great.