def test_jordan_wigner_interaction_op_with_zero_term(self):
    test_op = FermionOperator('1^ 2^ 3 4')
    test_op += hermitian_conjugated(test_op)
    interaction_op = get_interaction_operator(test_op)
    interaction_op.constant = 0.0
    retransformed_test_op = reverse_jordan_wigner(jordan_wigner(interaction_op))
def test_jordan_wigner_interaction_op_with_zero_term(self):
    test_op = FermionOperator('1^ 2^ 3 4')
    test_op += hermitian_conjugated(test_op)
    interaction_op = get_interaction_operator(test_op)
    interaction_op.constant = 0.0
    retransformed_test_op = reverse_jordan_wigner(jordan_wigner(interaction_op))