I assume this is accurate:
I’m not sure how much of CA’s GDP is gov’t spending, but I’m sure the data is out there. I know a big portion of the State budget is Federally funded. Roughly 1/3, IIRC (which I may not...)
If you peruse various sites, what becomes clear is that per capita, CA falls behind several other states. I found this article quite informative, since it normalizes GDP and cost of living to come up with a measure by which states and countries can be compared "apples to apples" on a per-capita basis. On that basis, CA is fairly high--but certainly not the 6th highest. And every other foreign country falls behind the US and most US states when compared individually.
Furthermore, CA has some serious policy and societal issues that can only serve to bring it down. If it were to secede from the US, I think its trajectory would be very similar to that of Venezuela.