def SzSz(self, i, j, ipt_id):
    return (ipt_id, (1.0 - (2.0 * (((ipt_id >> i) & 1) ^ ((ipt_id >> j) & 1)))))
def SzSz(self, i, j, ipt_id):
    return (ipt_id, (1.0 - (2.0 * (((ipt_id >> i) & 1) ^ ((ipt_id >> j) & 1)))))