Depolarizing noise constructed with depolarization_parameterization="lindblad" doesn't match the same constructio when depolarization_parameterization="depolarize", as demonstrated by the below code. This is due to the use of the normalized Pauli basis ("pp") where we should be using the un-normalized basis ("PP"). This PR fixes this issue and adds a unit test.
To see the bug, run this (printed output should be the same but is not):
Depolarizing noise constructed with
depolarization_parameterization="lindblad"
doesn't match the same constructio whendepolarization_parameterization="depolarize"
, as demonstrated by the below code. This is due to the use of the normalized Pauli basis ("pp"
) where we should be using the un-normalized basis ("PP"
). This PR fixes this issue and adds a unit test.To see the bug, run this (printed output should be the same but is not):