transform_bit_moments_to_pauli

forest.benchmarking.utils.transform_bit_moments_to_pauli(mean_c, var_c)

Changes the first two moments of a bit (a Bernoulli process) to Pauli operator moments.

E.g. if the original mean is on [0, 1] the returned mean is on [-1, +1].

Parameters:
  • mean_c – bit probability of heads or tails.
  • var_c – variance of bit
Returns:

Pauli operator mean and variance.