post_processing.select_runs

Utility script: selects instance attempts (“runs”) for the main text figures/tables.

USAGE:

python -m post_processing.select_runs | [–drop-larger-than N]
-i <input_summary_full.csv> | -o <out_summary.csv>

Takes a summary file generated by the code in post_processing.logparser, and selects one run (solution attempt, corresponding to a run log file) per instance as follows:

  • If we have feasible solutions, then take the most recent run that yielded one,

  • if we have no feasible solutions at all, pick the most recent run that yielded an infeasible solution,

  • otherwise, pick the most recent run out of those we have (“fail” runs).

  • If the optional argument is given, it drops all instances with more than N variables from selection. (Needed for the IBM simulator dataset, where we drop all instances of > 32 variables, which are known to fail in advance due to the simulator restriction.)

The code is independent of the log type (DWave, IBM, or QuEra)

Functions

main()

Main script code.

post_processing.select_runs.main()[source]

Main script code.