0791f33697fbd80d99e16774d29006589c96f86c,qiskit_aqua/algorithms/components/iqfts/iqft.py,IQFT,init_params,#IQFT#Any#,45
Before Change
def init_params(self, params):
args = {k: v for k, v in params.items() if k != "name"}
self.init_args(**args)
@abstractmethod
def init_args(self, **args):
raise NotImplementedError()
After Change
@classmethod
def init_params(cls, params):
args = {k: v for k, v in params.items() if k != "name"}
return cls(**args)
@abstractmethod
def construct_circuit(self, mode, register=None, circuit=None):
Construct the initial state circuit.
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 3
Instances Project Name: Qiskit/qiskit-aqua
Commit Name: 0791f33697fbd80d99e16774d29006589c96f86c
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/components/iqfts/iqft.py
Class Name: IQFT
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: 0791f33697fbd80d99e16774d29006589c96f86c
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/components/oracles/oracle.py
Class Name: Oracle
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: f21c42779f76d58a7a120fa0bc51c3545cd4486f
Time: 2018-11-19
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/components/variational_forms/variational_form.py
Class Name: VariationalForm
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: f21c42779f76d58a7a120fa0bc51c3545cd4486f
Time: 2018-11-19
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/components/initial_states/initial_state.py
Class Name: InitialState
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: b2d30bbe60dd57168b49fa77d62c49a17bad85e3
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/single_sample/grover/grover.py
Class Name: Grover
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: bd12ec54e6b360019c83311c8cc685c252e306d8
Time: 2018-11-19
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/components/multiclass_extensions/multiclass_extension.py
Class Name: MulticlassExtension
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: f21c42779f76d58a7a120fa0bc51c3545cd4486f
Time: 2018-11-19
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/components/optimizers/optimizer.py
Class Name: Optimizer
Method Name: init_params
Project Name: Qiskit/qiskit-aqua
Commit Name: f21c42779f76d58a7a120fa0bc51c3545cd4486f
Time: 2018-11-19
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/components/feature_maps/feature_map.py
Class Name: FeatureMap
Method Name: init_params