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



FidelityQuantumKernel.evaluate

FidelityQuantumKernel.evaluate(x_vec, y_vec=None)[sorgente]

Construct kernel matrix for given data.

If y_vec is None, self inner product is calculated.

Parametri:
  • 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

Tipo di ritorno:

np.ndarray

Ritorna:

2D matrix, NxM