Skip to main content

overlap_kernel

Function overlap_kernel 

Source
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.