Singleton classes added

quantum gates and random devices are now singletons instead of global
external variables