def sum_entries(operator):
 return lo.LinOp(lo.SUM_ENTRIES, (1, 1), [operator], None)

def sum_entries ( operator ) : return lo . LinOp ( lo . SUM_ENTRIES , ( 1 , 1 ) , [ operator ] , None )
sum the entries of an operator .