English
Languages
English
Japanese
German
Korean
Shortcuts

qiskit.aqua.components.feature_maps.FeatureMap

class FeatureMap[source]

Base class for FeatureMap.

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

abstract __init__()[source]

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_dimension

returns feature dimension

num_qubits

returns number of qubits

support_parameterized_circuit

returns whether or not the sub-class support parameterized circuit

abstract construct_circuit(x, qr=None, inverse=False)[source]

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

property feature_dimension

returns feature dimension

static get_entangler_map(map_type, num_qubits)[source]

get entangle map

property num_qubits

returns number of qubits

property support_parameterized_circuit

returns whether or not the sub-class support parameterized circuit

static validate_entangler_map(entangler_map, num_qubits)[source]

validate entangler map