Hi!
I’m running some simple tests in the QPU with Sampler. When I read the results, I get more counts than the number of samples I have assigned. Here is the code that I’m using:
rx_test = (pcvl.Circuit(2)
.add(0, BS.Rx(theta= np.pi ))
.add(0, BS.Rx(theta= np.pi )))
remote_qpu = pcvl.RemoteProcessor("qpu:ascella", token_qcloud)
remote_qpu.with_input(pcvl.BasicState([1, 0]))
remote_qpu.set_circuit(rx_test)
sampler = Sampler(remote_qpu)
nsample = 10000
remote_job = sampler.sample_count(nsample)#['results']
remote_job
{'results': BSCount(int, {|1,0>: 106145, |0,1>: 25}),
'physical_perf': 0.007833302204987094,
'computed_circuit': <perceval.components.linear_circuit.Circuit at 0x7fe085ea9670>,
'computed_input': |1,0,0,0,0,0,0,0,0,0,0,0>,
'final_mode_number': 2}
The sum of counts in results
should be 10000, but I get 106170, which is 96170 more counts than my parameter nsample
Is there any error in my code? Or another way of using Sampler?
Thanks for the help!