Auto-activate/ Deactivate Plugins based on theme activation

Hey guys,
This just cross my mind earlier while i was working on a WPMU site. this is the scenario:
you have theme A,B available for users to activate, but each theme use different plugins etc.. so when the user activate theme A, all plugins for theme A automatically activate, but when user deactivate theme A and activate theme B, is there a way to automatically deactivate those plugins for theme A and just activate the plugins for theme B instead. I don't know if you get what am saying. :slight_smile: