English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.utils.reduce_dim_to_via_pca

reduce_dim_to_via_pca(x, dim)[source]

Reduce the data dimension via pca

Parameters
  • x (numpy.ndarray) – NxD array

  • dim (int) – the targeted dimension D’

Returns

NxD’ array

Return type

numpy.ndarray