FeatureMap
class FeatureMap
Base class for FeatureMap.
This method should initialize the module and use an exception if a component of the module is not available.
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
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
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
Was this page helpful?
Report a bug or request content on GitHub.