Cal. Rev. & Tax. Code § 17951
(b) Notwithstanding subdivision (a), the gross income of a nonresident taxpayer does not include income not subject to the Personal Income Tax Law (Part 10 (commencing with Section 17001) of Division 2) by operation of the following federal laws: