Fixed bug in GenericQuantum (doesn't work with Intel C++ compiler v13.0).