Korean
언어
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese



QuantumKernel.construct_circuit

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

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.

매개변수:
  • 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

반환 형식:

QuantumCircuit

반환:

QuantumCircuit

예외 발생:

ValueError

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