fix feature map's key 'num_qubits' -> 'feature_dimension'
@@ -126,9 +126,9 @@ class QSVMKernel(QuantumAlgorithm):
@classmethod
def init_params(cls, params, algo_input):
"""Constructor from params."""
- num_qubits = get_feature_dimension(algo_input.training_dataset)
+ feature_dimension = get_feature_dimension(algo_input.training_dataset)
fea_map_params = params.get(Pluggable.SECTION_KEY_FEATURE_MAP)
- fea_map_params['num_qubits'] = num_qubits
+ fea_map_params['feature_dimension'] = feature_dimension
feature_map = get_pluggable_class(PluggableType.FEATURE_MAP,
fea_map_params['name']).init_params(params)
