def test_ccr_offsite_even_ca(self):
    c2 = FermionOperator(((2, 1),))
    a4 = FermionOperator(((4, 0),))
    self.assertTrue(normal_ordered((c2 * a4)).isclose(normal_ordered(((- a4) * c2))))
    self.assertTrue(jordan_wigner((c2 * a4)).isclose(jordan_wigner(((- a4) * c2))))
def test_ccr_offsite_even_ca(self):
    c2 = FermionOperator(((2, 1),))
    a4 = FermionOperator(((4, 0),))
    self.assertTrue(normal_ordered((c2 * a4)).isclose(normal_ordered(((- a4) * c2))))
    self.assertTrue(jordan_wigner((c2 * a4)).isclose(jordan_wigner(((- a4) * c2))))