transform_pauli_moments_to_bit¶
-
forest.benchmarking.utils.
transform_pauli_moments_to_bit
(mean_p, var_p)¶ Changes the first of a Pauli operator to the moments of a bit (a Bernoulli process).
E.g. if the original mean is on [-1, +1] the returned mean is on [0, 1].
Parameters: - mean_p – mean of some Pauli operator
- var_p – variance of a Pauli operator
Returns: bit mean and variance.