Syncing them with electricity is easy. The hard part is preventing export to the grid which requires either a compatible smart meter that can communicate with your panels or a transformer clamp installed by an electrician. My understanding is some meters measure both directions equally so if you do end up exporting power you can conceivably increase your utility bill.
Why is preventing export hard? Just shut down production when the grid is down, which is how plug-in solar systems work.