7e43174e81dcb7fb8a0c225aedf986b02d8b188a,qiskit_aqua/algorithms/components/feature_maps/pauli_expansion.py,PauliExpansion,__init__,#PauliExpansion#Any#Any#Any#Any#Any#Any#,81
Before Change
super().__init__()
if self.__class__ == PauliExpansion:
self.validate({
"depth": depth,
"entangler_map": entangler_map,
"entanglement": entanglement,
"paulis": paulis
})
self._num_qubits = num_qubits
self._depth = depth
if entangler_map is None:
self._entangler_map = self.get_entangler_map(entanglement, num_qubits)
After Change
data_map_func (Callable): a mapping function for data x
super().__init__()
self.validate(locals())
self._num_qubits = num_qubits
self._depth = depth
if entangler_map is None:
self._entangler_map = self.get_entangler_map(entanglement, num_qubits)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 4
Instances Project Name: Qiskit/qiskit-aqua
Commit Name: 7e43174e81dcb7fb8a0c225aedf986b02d8b188a
Time: 2018-11-26
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/feature_maps/pauli_expansion.py
Class Name: PauliExpansion
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7e43174e81dcb7fb8a0c225aedf986b02d8b188a
Time: 2018-11-26
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/feature_maps/pauli_z_expansion.py
Class Name: PauliZExpansion
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7e43174e81dcb7fb8a0c225aedf986b02d8b188a
Time: 2018-11-26
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/variational_forms/uccsd.py
Class Name: UCCSD
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7e43174e81dcb7fb8a0c225aedf986b02d8b188a
Time: 2018-11-26
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/optimizers/spsa.py
Class Name: SPSA
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7e43174e81dcb7fb8a0c225aedf986b02d8b188a
Time: 2018-11-26
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/components/initial_states/hartree_fock.py
Class Name: HartreeFock
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7e43174e81dcb7fb8a0c225aedf986b02d8b188a
Time: 2018-11-26
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/adaptive/qaoa/qaoa.py
Class Name: QAOA
Method Name: __init__