RawFeatureVector¶
- class RawFeatureVector(feature_dimension=2)[source]¶
Raw Feature Vector feature map.
The Raw Feature Vector can be directly used as a feature map, where the raw feature vectors will be automatically padded with ending 0s as necessary, to make sure vector length is a power of 2, and normalized such that it can be treated and used as an initial quantum state vector.
- Parameters
feature_dimension (
int
) – The feature dimension, has a minimum value of 1.
Attributes
returns feature dimension
returns number of qubits
returns whether or not the sub-class support parameterized circuit
Methods
RawFeatureVector.construct_circuit
(x[, qr, …])Construct the second order expansion based on given data.
RawFeatureVector.get_entangler_map
(map_type, …)get entangle map
validate entangler map