pub fn overlap_kernel(x: &[f32], y: &[f32]) -> QuantumResult<f32>Expand description
Overlap kernel k(x, y) = |⟨ψ(x)|ψ(y)⟩|².
Both x and y are encoded via the ZZ feature map with 1 repetition.
pub fn overlap_kernel(x: &[f32], y: &[f32]) -> QuantumResult<f32>Overlap kernel k(x, y) = |⟨ψ(x)|ψ(y)⟩|².
Both x and y are encoded via the ZZ feature map with 1 repetition.