Skip to main content

py_qa_batch_ising_energy

Function py_qa_batch_ising_energy 

Source
pub(crate) fn py_qa_batch_ising_energy(
    _py: Python<'_>,
    h_indices: Vec<usize>,
    h_values: Vec<f64>,
    j_i: Vec<usize>,
    j_j: Vec<usize>,
    j_values: Vec<f64>,
    configs: Vec<Vec<i8>>,
    offset: f64,
) -> Vec<f64>
Expand description

Batch compute Ising energies for many configurations.