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.

FeatureMap

class FeatureMap

GitHub

Bases: abc.ABC

Base class for FeatureMap.

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


Methods

construct_circuit

abstract FeatureMap.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

get_entangler_map

static FeatureMap.get_entangler_map(map_type, num_qubits)

get entangle map

validate_entangler_map

static FeatureMap.validate_entangler_map(entangler_map, num_qubits)

validate entangler map


Attributes

feature_dimension

returns feature dimension

num_qubits

returns number of qubits

support_parameterized_circuit

returns whether or not the sub-class support parameterized circuit

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