Noncommutative U(1) gauge theory from a worldline perspective