Function hercules::python_interopt::read_qubo

source ·
pub fn read_qubo(
    filename: String
) -> PyResult<(Vec<usize>, Vec<usize>, Vec<f64>, Vec<f64>, usize)>
Expand description

This reads in the QUBO from a .qubo file

Example

import hercules

# read in the QUBO from a file
p = hercules.read_qubo("file.qubo")

§Errors

if the file does not exist, then it will abort