4f804b0e60cefa3048e0a485510a682f7bbaf604,qiskit_aqua/algorithms/adaptive/vqe/vqe.py,VQE,_solve,#VQE#,190

Before Change


        self._ret["eigvals"] = np.asarray([opt_val])
        self._ret["opt_params"] = opt_params
        qc = self._var_form.construct_circuit(self._ret["opt_params"])
        if "statevector" in self._backend:
            ret = self.execute(qc)
            self._ret["eigvecs"] = np.asarray([ret.get_statevector(qc)])
        else:

After Change


        self._ret["eigvals"] = np.asarray([opt_val])
        self._ret["opt_params"] = opt_params
        qc = self._var_form.construct_circuit(self._ret["opt_params"])
        if self.backend.configuration().get("name", "").startswith("statevector"):
            ret = self.execute(qc)
            self._ret["eigvecs"] = np.asarray([ret.get_statevector(qc)])
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 4f804b0e60cefa3048e0a485510a682f7bbaf604
Time: 2018-10-18
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/adaptive/vqe/vqe.py
Class Name: VQE
Method Name: _solve


Project Name: Qiskit/qiskit-aqua
Commit Name: 4f804b0e60cefa3048e0a485510a682f7bbaf604
Time: 2018-10-18
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/adaptive/qsvm/qsvm_variational.py
Class Name: QSVMVariational
Method Name: init_args


Project Name: Qiskit/qiskit-aqua
Commit Name: 4f804b0e60cefa3048e0a485510a682f7bbaf604
Time: 2018-10-18
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/single_sample/grover/grover.py
Class Name: Grover
Method Name: init_args