94af8c77906e893487672e0141bbdc0eee619277,qiskit/aqua/algorithms/adaptive/vqalgorithm.py,VQAlgorithm,get_optimal_circuit,#VQAlgorithm#,63
Before Change
return self._ret["min_val"]
def get_optimal_circuit(self):
if "opt_params" not in self._ret:
raise AquaError("Cannot find optimal circuit before running VQAlgorithm to find optimal params.")
return self._var_form.construct_circuit(self._ret["opt_params"])
def get_optimal_vector(self):
if "opt_params" not in self._ret:
raise AquaError("Cannot find optimal vector before running VQAlgorithm to find optimal params.")
After Change
@abstractmethod
def get_optimal_circuit(self):
raise NotImplementedError()
@abstractmethod
def get_optimal_vector(self):
raise NotImplementedError()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: 94af8c77906e893487672e0141bbdc0eee619277
Time: 2019-03-07
Author: dongreenberg2@gmail.com
File Name: qiskit/aqua/algorithms/adaptive/vqalgorithm.py
Class Name: VQAlgorithm
Method Name: get_optimal_circuit
Project Name: Qiskit/qiskit-aqua
Commit Name: 94af8c77906e893487672e0141bbdc0eee619277
Time: 2019-03-07
Author: dongreenberg2@gmail.com
File Name: qiskit/aqua/algorithms/adaptive/vqalgorithm.py
Class Name: VQAlgorithm
Method Name: get_optimal_cost
Project Name: Qiskit/qiskit-aqua
Commit Name: 94af8c77906e893487672e0141bbdc0eee619277
Time: 2019-03-07
Author: dongreenberg2@gmail.com
File Name: qiskit/aqua/algorithms/adaptive/vqalgorithm.py
Class Name: VQAlgorithm
Method Name: get_optimal_vector
Project Name: Qiskit/qiskit-aqua
Commit Name: 94af8c77906e893487672e0141bbdc0eee619277
Time: 2019-03-07
Author: dongreenberg2@gmail.com
File Name: qiskit/aqua/algorithms/adaptive/vqalgorithm.py
Class Name: VQAlgorithm
Method Name: get_optimal_circuit