fixed isherm check in _single_qobj_expect