pygsti.tools.rbtools.rescaling_factor#
- rescaling_factor(lengths, quantity, offset=2)#
Finds a rescaling value alpha that maps the Clifford RB decay constant p to p_(rescaled) = p^(1/alpha).
This can be used for finding, e.g., a “CRB r per CNOT” or a “CRB r per compiled Clifford depth”.
- Parameters:
lengths (list) – A list of the RB lengths, which each value in ‘quantity’ will be rescaled by.
quantity (list) – A list, of the same length as lengths, that contains lists of values of the quantity that the rescaling factor is extracted from.
offset (int, optional) – A constant offset to add to lengths.
- Return type:
float