Deductions & credits

I will be paying long term gap gains in Mexico on the sale of a $1.2m resident.  Do I get any credit for the taxes I paid to Mexico on my California return?  I will have no other income.