def test_get_interaction_operator_two_body_distinct(self):
    interaction_operator = get_interaction_operator(FermionOperator('0^ 1^ 2 3'), self.n_qubits)
    two_body = numpy.zeros((self.n_qubits, self.n_qubits, self.n_qubits, self.n_qubits), float)
    two_body[(1, 0, 3, 2)] = 1.0
    self.assertEqual(interaction_operator, InteractionOperator(0.0, self.one_body, two_body))
def test_get_interaction_operator_two_body_distinct(self):
    interaction_operator = get_interaction_operator(FermionOperator('0^ 1^ 2 3'), self.n_qubits)
    two_body = numpy.zeros((self.n_qubits, self.n_qubits, self.n_qubits, self.n_qubits), float)
    two_body[(1, 0, 3, 2)] = 1.0
    self.assertEqual(interaction_operator, InteractionOperator(0.0, self.one_body, two_body))