As far as I can find, neither CA or MA have enacted laws regarding this yet. Florida, (and probably others) have, however.
From Florida:
Defines “autonomous vehicle” and “autonomous technology.” Declares legislative intent to encourage the safe development, testing and operation of motor vehicles with autonomous technology on public roads of the state and finds that the state does not prohibit or specifically regulate the testing or operation of autonomous technology in motor vehicles on public roads. Authorizes a person who possesses a valid driver's license to operate an autonomous vehicle, specifying that the person who causes the vehicle’s autonomous technology to engage is the operator. Authorizes the operation of autonomous vehicles by certain persons for testing purposes under certain conditions and requires an instrument of insurance, surety bond or self-insurance prior to the testing of a vehicle. Directs the Department of Highway Safety and Motor Vehicles to prepare a report recommending additional legislative or regulatory action that may be required for the safe testing and operation of vehicles equipped with autonomous technology, to be submitted no later than Feb. 12, 2014.
Emphasis mine. So under this model, the person who put the car on "autopilot" is responsible for whatever the car does while on "autopilot."
That person gets the ticket.
Source