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



TrainableFidelityQuantumKernel.evaluate

TrainableFidelityQuantumKernel.evaluate(x_vec, y_vec=None)[소스]

Construct kernel matrix for given data.

If y_vec is None, self inner product is calculated.

매개변수:
  • x_vec (np.ndarray) – 1D or 2D array of datapoints, NxD, where N is the number of datapoints, D is the feature dimension

  • y_vec (np.ndarray | None) – 1D or 2D array of datapoints, MxD, where M is the number of datapoints, D is the feature dimension

반환:

2D matrix, NxM

반환 형식:

np.ndarray