b20907e7e7291aec10aa8e66dd0638d23f89a719,qiskit_aqua/algorithms/many_sample/eoh/eoh.py,EOH,init_params,#EOH#Any#Any#,122
Before Change
// Set up initial state, we need to add computed num qubits to params
initial_state_params = params.get(QuantumAlgorithm.SECTION_KEY_INITIAL_STATE)
initial_state_params["num_qubits"] = operator.num_qubits
initial_state = get_pluggable_class(PluggableType.INITIAL_STATE,initial_state_params["name"])
initial_state = initial_state()
initial_state.init_params(initial_state_params)
self.init_args(
operator, operator_mode, initial_state, evo_operator, evo_time, num_time_slices,
paulis_grouping=paulis_grouping, expansion_mode=expansion_mode, expansion_order=expansion_order
After Change
expansion_order = dynamics_params.get(EOH.PROP_EXPANSION_ORDER)
// Set up initial state, we need to add computed num qubits to params
initial_state_params = params.get(QuantumAlgorithm.SECTION_KEY_INITIAL_STATE)
initial_state_params["num_qubits"] = operator.num_qubits
initial_state = get_pluggable_class(PluggableType.INITIAL_STATE,initial_state_params["name"])(initial_state_params)
self.init_args(
operator, operator_mode, initial_state, evo_operator, evo_time, num_time_slices,
paulis_grouping=paulis_grouping, expansion_mode=expansion_mode, expansion_order=expansion_order
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: b20907e7e7291aec10aa8e66dd0638d23f89a719
Time: 2018-11-19
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/many_sample/eoh/eoh.py
Class Name: EOH
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: b20907e7e7291aec10aa8e66dd0638d23f89a719
Time: 2018-11-19
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/many_sample/eoh/eoh.py
Class Name: EOH
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: b20907e7e7291aec10aa8e66dd0638d23f89a719
Time: 2018-11-19
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/single_sample/iqpe/iqpe.py
Class Name: IQPE
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: b20907e7e7291aec10aa8e66dd0638d23f89a719
Time: 2018-11-19
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/single_sample/qpe/qpe.py
Class Name: QPE
Method Name: init_params