You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Simulating RB data using the simulate.rb_with_pauli_errors function results in bogus identically-zero "success counts".
To Reproduce
When running the RB analysis tutorial, RBAnalysis.ipynb, if you set runsims=True and try to generate the "MySimulatedDRBData.txt" file from the line:
This issue is due to 3 spurious lines added on Jan 28: e84cae0
In v0.9.7.5 these are lines 181-183 of .../extras/rb/simulate.py:
outputasstring = ''
for s in output: outputasstring += str(s)
return outputasstring
These lines take the outcome label, described as a tuple (as usual in pyGSTi) and reformat it as a string. This causes the results dictionary returned from circuit_simulator_for_tensored_independent_pauli_errors to have only string-ified outcome labels in it, which is not the format of idealout on line 302:
scounts.append(outcome.get(idealout,0))
causing outcome.get(idealout,0) to always give 0, hence the problem. It seems like the initial 3 lines were added to facilitate compatibility with some other code - let's look into this.
Describe the bug
Simulating RB data using the
simulate.rb_with_pauli_errors
function results in bogus identically-zero "success counts".To Reproduce
When running the RB analysis tutorial,
RBAnalysis.ipynb
, if you setrunsims=True
and try to generate the"MySimulatedDRBData.txt"
file from the line:The output counts (2nd column of the file) are all zeros, e.g.:
Expected behavior
Counts should not all be zero.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: