In the _trace_of_prod method of the ProductFrame class, we had these lines :
# If the label does exist, we multiply the coefficient into our summand.
# The factor 2*N_qubit comes from Tr[(P_1...P_N)^2] = 2*N.
summand *= coeff * 2 * povm.num_subsystems
but actually the correct factor is 2^N_qubit.
This is an automatic backport of pull request #87 done by Mergify.
In the
_trace_of_prod
method of theProductFrame
class, we had these lines :but actually the correct factor is
2^N_qubit
.This is an automatic backport of pull request #87 done by Mergify.