Noncommutative potential theory