e9b118563c4089f6cd997e79abe3449617acfd7c,qiskit_aqua/algorithms/single_sample/iqpe/iqpe.py,IQPE,init_params,#IQPE#Any#Any#,112

Before Change


        // Set up initial state, we need to add computed num qubits to params
        init_state_params = params.get(QuantumAlgorithm.SECTION_KEY_INITIAL_STATE)
        init_state_params["num_qubits"] = operator.num_qubits
        init_state = get_pluggable_class(PluggableType.INITIAL_STATE, init_state_params["name"])(init_state_params)
      
        self.init_args(
            operator, init_state, num_time_slices, num_iterations,
            paulis_grouping=paulis_grouping, expansion_mode=expansion_mode,

After Change



        // Set up initial state, we need to add computed num qubits to params
        init_state_params = params.get(QuantumAlgorithm.SECTION_KEY_INITIAL_STATE)
        init_state_params["num_qubits"] = operator.num_qubits
        init_state = get_pluggable_class(PluggableType.INITIAL_STATE,
                                         init_state_params["name"]).init_params(init_state_params)

        return cls(operator, init_state, num_time_slices=num_time_slices, num_iterations=num_iterations,
                   paulis_grouping=paulis_grouping, expansion_mode=expansion_mode,
                   expansion_order=expansion_order)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: e9b118563c4089f6cd997e79abe3449617acfd7c
Time: 2018-11-20
Author: chenrich@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: e9b118563c4089f6cd997e79abe3449617acfd7c
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/single_sample/qpe/qpe.py
Class Name: QPE
Method Name: init_params


Project Name: Qiskit/qiskit-aqua
Commit Name: e9b118563c4089f6cd997e79abe3449617acfd7c
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/many_sample/eoh/eoh.py
Class Name: EOH
Method Name: init_params