def test_get_interaction_operator_one_body_twoterm(self):
    interaction_operator = get_interaction_operator((FermionOperator('2^ 3', (- 2j)) + FermionOperator('3^ 2', 3j)), self.n_qubits)
    one_body = numpy.zeros((self.n_qubits, self.n_qubits), complex)
    one_body[(2, 3)] = (- 2j)
    one_body[(3, 2)] = 3j
    self.assertEqual(interaction_operator, InteractionOperator(0.0, one_body, self.two_body))
def test_get_interaction_operator_one_body_twoterm(self):
    interaction_operator = get_interaction_operator((FermionOperator('2^ 3', (- 2j)) + FermionOperator('3^ 2', 3j)), self.n_qubits)
    one_body = numpy.zeros((self.n_qubits, self.n_qubits), complex)
    one_body[(2, 3)] = (- 2j)
    one_body[(3, 2)] = 3j
    self.assertEqual(interaction_operator, InteractionOperator(0.0, one_body, self.two_body))