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 vectory (
Optional
[ParameterVector
]) – second data point parameter vector, ignored if using statevector simulatormeasurement (
bool
) – include measurement if not using statevector simulatoris_statevector_sim (
bool
) – use state vector simulator
- 반환 형식:
- 반환:
QuantumCircuit
- 예외 발생:
x and/or y have incompatible dimension with feature map - unbound training parameters in the feature map circuit