def test_jordan_wigner_twobody_interaction_op_reversal_symmetric(self):
    test_op = FermionOperator('1^ 2^ 2 1')
    test_op += hermitian_conjugated(test_op)
    self.assertTrue(jordan_wigner(test_op).isclose(jordan_wigner(get_interaction_operator(test_op))))
def test_jordan_wigner_twobody_interaction_op_reversal_symmetric(self):
    test_op = FermionOperator('1^ 2^ 2 1')
    test_op += hermitian_conjugated(test_op)
    self.assertTrue(jordan_wigner(test_op).isclose(jordan_wigner(get_interaction_operator(test_op))))