Italian
Linguaggi
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



QuantumKernel.construct_circuit

QuantumKernel.construct_circuit(x, y=None, measurement=True, is_statevector_sim=False)[sorgente]

Construct inner product circuit for given datapoints and feature map.

If using statevector_simulator, only construct circuit for \(\Psi(x)|0\rangle\), otherwise construct \(Psi^dagger(y) x Psi(x)|0>\) If y is None and not using statevector_simulator, self inner product is calculated.

Parametri
  • x (ParameterVector) – first data point parameter vector

  • y (Optional[ParameterVector]) – second data point parameter vector, ignored if using statevector simulator

  • measurement (bool) – include measurement if not using statevector simulator

  • is_statevector_sim (bool) – use state vector simulator

Tipo di ritorno

QuantumCircuit

Ritorna

QuantumCircuit

Solleva

ValueError

  • x and/or y have incompatible dimension with feature map - unbound user parameters in the feature map circuit