def single_gate(gate, qubit, angle=None):
    """
    `Extended QPanda API`

    Apply a single gate to a qubit

    Gate(callback), Qubit, angle(optional) -> QGate
    """
    if angle is None:
        return gate(qubit)
    else:
        return gate(qubit, angle)
