def test_ccr_onsite(self):
    c1 = FermionOperator(((1, 1),))
    a1 = hermitian_conjugated(c1)
    self.assertTrue(normal_ordered((c1 * a1)).isclose((FermionOperator(()) - normal_ordered((a1 * c1)))))
    self.assertTrue(jordan_wigner((c1 * a1)).isclose((QubitOperator(()) - jordan_wigner((a1 * c1)))))
def test_ccr_onsite(self):
    c1 = FermionOperator(((1, 1),))
    a1 = hermitian_conjugated(c1)
    self.assertTrue(normal_ordered((c1 * a1)).isclose((FermionOperator(()) - normal_ordered((a1 * c1)))))
    self.assertTrue(jordan_wigner((c1 * a1)).isclose((QubitOperator(()) - jordan_wigner((a1 * c1)))))