Cal. Rev. & Tax. Code § 18001
(a) Subject to the following conditions, residents shall be allowed a credit against the “net tax” (as defined by Section 17039) for net income taxes imposed by and paid to another state (not including any preference, alternative, or minimum tax comparable to the tax imposed by Section 17062) on income taxable under this part:
(1) The credit shall be allowed only for taxes paid to the other state (not including any preference, alternative, or minimum tax comparable to the tax imposed by Section 17062) on income derived from sources within that state which is taxable under its laws irrespective of the residence or domicile of the recipient.
This paragraph shall not apply to residents to whom subdivision (b) of Section 17014 applies.