FirstOrderExpansion¶
- class FirstOrderExpansion(feature_dimension, depth=2, data_map_func=<function self_product>)[source]¶
DEPRECATED. First Order Expansion feature map.
This is a sub-class of
PauliZExpansion
where z_order is fixed at 1. As a result the first order expansion will be a feature map without entangling gates.- Parameters
feature_dimension (
int
) – The number of featuresdepth (
int
) – The number of repeated circuits. Defaults to 2, has a minimum value of 1.data_map_func (
Callable
[[ndarray
],float
]) – A mapping function for data x which can be supplied to override the default mapping fromself_product()
.
Attributes
returns feature dimension
returns number of qubits
returns whether or not the sub-class support parameterized circuit
Methods
Construct the second order expansion based on given data.
get entangle map
validate entangler map