Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.aqua.components.feature_maps.FeatureMap

class FeatureMap

GitHub

Base class for FeatureMap.

This method should initialize the module and use an exception if a component of the module is not available.

__init__

abstract __init__()

Initialize self. See help(type(self)) for accurate signature.


Methods

__init__()Initialize self.
construct_circuit(x[, qr, inverse])Construct the variational form, given its parameters.
get_entangler_map(map_type, num_qubits)get entangle map
validate_entangler_map(entangler_map, num_qubits)validate entangler map

Attributes

feature_dimensionreturns feature dimension
num_qubitsreturns number of qubits
support_parameterized_circuitreturns whether or not the sub-class support parameterized circuit

construct_circuit

abstract construct_circuit(x, qr=None, inverse=False)

Construct the variational form, given its parameters.

Parameters

  • x (numpy.ndarray[float]) – 1-D array, data
  • qr (QuantumRegister) – the QuantumRegister object for the circuit, if None, generate new registers with name q.
  • inverse (bool) – whether or not inverse the circuit

Returns

a quantum circuit.

Return type

QuantumCircuit

feature_dimension

returns feature dimension

get_entangler_map

static get_entangler_map(map_type, num_qubits)

get entangle map

num_qubits

returns number of qubits

support_parameterized_circuit

returns whether or not the sub-class support parameterized circuit

validate_entangler_map

static validate_entangler_map(entangler_map, num_qubits)

validate entangler map

Was this page helpful?
Report a bug or request content on GitHub.