Flip instability of plasma in the theta pinch