7efe2e060fc6d01cd9933a41a7bd577a86166855,qiskit_acqua/ising/tsp.py,,get_tsp_qubitops,#Any#,127

Before Change


                wp[j * num_nodes + q] = 1
                pauli_list.append((ins.w[i, j] / 4, Pauli(vp, wp)))
                pauli_list.append((-ins.w[i, j] / 4, Pauli(vp, zero)))
                pauli_list.append((-ins.w[i, j] / 4, Pauli(wp, zero)))
            shift += num_nodes * ins.w[i, j] / 4
    coef = 1e4
    for i in range(num_nodes):

After Change


                wp[j * num_nodes + q] = 1
                pauli_list.append((ins.w[i, j] / 4, Pauli(vp, wp)))
                pauli_list.append([-ins.w[i, j] / 4, Pauli(vp, zero)])  // use list intentionally
                pauli_list.append([-ins.w[i, j] / 4, Pauli(wp, zero)])  // use list intentionally
            shift += num_nodes * ins.w[i, j] / 4
    coef = 1e5
    for i in range(num_nodes):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 7efe2e060fc6d01cd9933a41a7bd577a86166855
Time: 2018-06-26
Author: imamichi@jp.ibm.com
File Name: qiskit_acqua/ising/tsp.py
Class Name:
Method Name: get_tsp_qubitops


Project Name: Qiskit/qiskit-aqua
Commit Name: ef5b3828327e55e9cc4790cd22ca054e3468a944
Time: 2018-07-06
Author: chenrich@us.ibm.com
File Name: qiskit_acqua/ising/stableset.py
Class Name:
Method Name: get_stableset_qubitops


Project Name: Qiskit/qiskit-aqua
Commit Name: ef5b3828327e55e9cc4790cd22ca054e3468a944
Time: 2018-07-06
Author: chenrich@us.ibm.com
File Name: qiskit_acqua/ising/maxcut.py
Class Name:
Method Name: get_maxcut_qubitops


Project Name: Qiskit/qiskit-aqua
Commit Name: ef5b3828327e55e9cc4790cd22ca054e3468a944
Time: 2018-07-06
Author: chenrich@us.ibm.com
File Name: qiskit_acqua/ising/partition.py
Class Name:
Method Name: get_partition_qubitops


Project Name: Qiskit/qiskit-aqua
Commit Name: 1980e381e36c7a7343bb9197bb98652f81838852
Time: 2018-07-06
Author: 34400304+liupibm@users.noreply.github.com
File Name: qiskit_acqua/ising/graphpartition.py
Class Name:
Method Name: get_graphpartition_qubitops