def decoherence_noise_with_asymmetric_ro(gates: Sequence[Gate], p00=0.975, p11=0.911):
    """Similar to :py:func:`_decoherence_noise_model`, but with asymmetric readout.

    For simplicity, we use the default values for T1, T2, gate times, et al. and only allow
    the specification of readout fidelities.
    """
    noise_model = _decoherence_noise_model(gates)
    aprobs = np.array([[p00, 1 - p00],
                       [1 - p11, p11]])
    aprobs = {q: aprobs for q in noise_model.assignment_probs.keys()}
    return NoiseModel(noise_model.gates, aprobs)
def decoherence_noise_with_asymmetric_ro ( gates : Sequence [ Gate ] , p00 = 0.975 , p11 = 0.911 ) : noise_model = _decoherence_noise_model ( gates ) aprobs = np . array ( [ [ p00 , 1 - p00 ] , [ 1 - p11 , p11 ] ] ) aprobs = { q : aprobs for q in noise_model . assignment_probs . keys ( ) } return NoiseModel ( noise_model . gates , aprobs )
Similar to :py:func:`_decoherence_noise_model`, but with asymmetric readout.

    For simplicity, we use the default values for T1, T2, gate times, et al. and only allow
    the specification of readout fidelities.