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
CircuitResult relies on the probabilities calculated from the final state after execution (QuantumState.probabilities()). When bitflip noise is present, however, the state probabilities shouldn't be used as they don't account for the bitflips in measurements. In that case, the MeasurementOutcomes.probabilities() should be used, as they should construct the probabilities starting from the samples, which account for bitflips.
from qibo import gates, Circuit
c = Circuit(1)
c.add(gates.M(0, p0=0.3))
r = c()
print(r.probabilities())
# this gives (1., 0.) instead of the expected (0.3, 0.7)
The text was updated successfully, but these errors were encountered:
CircuitResult
relies on the probabilities calculated from the final state after execution (QuantumState.probabilities()
). When bitflip noise is present, however, the state probabilities shouldn't be used as they don't account for the bitflips in measurements. In that case, theMeasurementOutcomes.probabilities()
should be used, as they should construct the probabilities starting from the samples, which account for bitflips.The text was updated successfully, but these errors were encountered: