Fix matrix()
method for gates.GeneralizedfSim
#1074
Merged
matrix()
method for gates.GeneralizedfSim
#1074