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 features

  • depth (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 from self_product().

Attributes

FirstOrderExpansion.feature_dimension

returns feature dimension

FirstOrderExpansion.num_qubits

returns number of qubits

FirstOrderExpansion.support_parameterized_circuit

returns whether or not the sub-class support parameterized circuit

Methods

FirstOrderExpansion.construct_circuit(x[, …])

Construct the second order expansion based on given data.

FirstOrderExpansion.get_entangler_map(…)

get entangle map

FirstOrderExpansion.validate_entangler_map(…)

validate entangler map