qiskit-community / povm-toolbox

A toolbox for the implementation of positive operator-valued measures (POVMs).
https://qiskit-community.github.io/povm-toolbox/
Apache License 2.0
30 stars 0 forks source link

Bug fix (backport #87) #89

Closed mergify[bot] closed 1 month ago

mergify[bot] commented 1 month ago

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.