def GetOperatorIdx():
    """Get the available operator index.

    Returns
    -------
    int
        The operator index.

    """
    global _CURRENT_OP_UID
    _CURRENT_OP_UID += 1
    return _CURRENT_OP_UID - 1
