pygsti.tools.rbtools.r_to_p

Contents

pygsti.tools.rbtools.r_to_p#

r_to_p(r, d, rtype='EI')#

Inverse of the p_to_r function.

Parameters:
  • r (float) – The RB error rate

  • d (int) – Number of dimensions of the Hilbert space

  • rtype ({'EI','AGI'}, optional) – The RB error rate rescaling convention.

Returns:

p – The RB decay constant

Return type:

float