Skip to main content

gauge_transform

Function gauge_transform 

Source
pub fn gauge_transform(
    h: &[(usize, f64)],
    j: &[((usize, usize), f64)],
    gauge: &[i8],
) -> (Vec<(usize, f64)>, Vec<((usize, usize), f64)>)
Expand description

Apply a gauge transform to Ising biases and couplings.

h’_i = g_i · h_i, J’_ij = g_i · g_j · J_ij