allow specifying a transformation matrix as Qobj operator