FeatureMap.construct_circuit

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