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
- उभारता है :
ValueError --
x and/or y have incompatible dimension with feature map - unbound training parameters in the feature map circuit