dimod icon indicating copy to clipboard operation
dimod copied to clipboard

Consider adding a utility function to calculate the fraction of violated constraints in a sample set

Open arcondello opened this issue 2 years ago • 0 comments

Maybe something like CQM.fraction_satisfied(sampleset: SampleSet) -> dict[label, float] to go along with CQM.iter_violations()

arcondello avatar Oct 16 '23 16:10 arcondello