Employees in California are entitled to unemployment insurance benefits if the employees loses his/her job through no fault of the employee. This can be either a good cause quit or a termination for reasons other than misconduct. If you and your employer agree that you are being terminated because it just "didn't work out," that would not be considered misconduct and you should be eligible for UI benefits. On the other hand, if you agreed to quit because it wasn't working out then you likely would not be entitled to UI benefits. I presume there are additional facts that do not lend themselves to a discussion online which could point to whether it was a termination or a quit. You may want to contact an attorney or resource group familiar with UI Benefits for further information.
You could also contact your former employer and try to clarify whether it was a termination or a quit for UI purposes.