def test_ccr_offsite_even_cc(self):
    c2 = FermionOperator(((2, 1),))
    c4 = FermionOperator(((4, 1),))
    self.assertTrue(normal_ordered((c2 * c4)).isclose(normal_ordered(((- c4) * c2))))
    self.assertTrue(jordan_wigner((c2 * c4)).isclose(jordan_wigner(((- c4) * c2))))
def test_ccr_offsite_even_cc(self):
    c2 = FermionOperator(((2, 1),))
    c4 = FermionOperator(((4, 1),))
    self.assertTrue(normal_ordered((c2 * c4)).isclose(normal_ordered(((- c4) * c2))))
    self.assertTrue(jordan_wigner((c2 * c4)).isclose(jordan_wigner(((- c4) * c2))))