Cal. Rev. & Tax. Code § 17049
(a) If an item of income was included in the gross income of an individual for a preceding taxable year or years because it appeared that the individual had an unrestricted right to that item, a deduction is allowable for the taxable year based on the repayment of the item by the individual during the taxable year, and the amount of that deduction exceeds three thousand dollars ($3,000), then the tax imposed by this part for the taxable year on that individual shall be the lesser of the following:
(f) For purposes of this part, the net operating loss or capital loss described in subdivision (e) shall, after the application of paragraph (1) or (2) of subdivision (a) for the taxable year, be taken into account under Section 17276, 17276.1, 17276.2, 17276.4, 17276.5, or 17276.7, or Section 1212 of the Internal Revenue Code, as applicable for California purposes, for taxable years after the taxable year to the same extent and in the same manner as either of the following: