Example/9-example-RB.py
def targetGateErrorRate(pGate, pRef, dimension):
    """
    Calculate the specific gate error rate.
    """
    return ((1 - (pGate / pRef)) * (dimension - 1)) / dimension

    Calculate the specific gate error rate.
    
Calculate the specific gate error rate.
Calculate the specific gate error rate .
def targetGateErrorRate(pGate, pRef, dimension):
    return ((1 - (pGate / pRef)) * (dimension - 1)) / dimension
def targetGateErrorRate ( pGate , pRef , dimension ) : return ( ( 1 - ( pGate / pRef ) ) * ( dimension - 1 ) ) / dimension
Calculate the specific gate error rate.
Calculate the specific gate error rate .
"""
    Calculate the specific gate error rate.
    """
pGate
pRef
dimension