21 #ifndef SNABSUITE_COMMON_PARAMETER_SWEEP 22 #define SNABSUITE_COMMON_PARAMETER_SWEEP 24 #include <cypress/cypress.hpp> 40 std::string m_backend;
42 cypress::Json m_sweep_config;
44 std::shared_ptr<SNABBase> m_snab;
46 std::vector<size_t> m_indices;
48 std::vector<size_t> m_jobs_done;
50 std::vector<cypress::Json> m_sweep_vector;
52 std::vector<std::string> m_sweep_names;
54 std::vector<std::vector<std::array<cypress::Real, 4>>> m_results;
56 size_t m_repetitions = 1;
58 std::string m_file_name;
61 size_t m_n_threads = 1;
67 void shuffle_sweep_indices(
size_t size);
75 void recover_broken_simulation();
111 const cypress::Json &source,
const cypress::Json &target,
112 std::vector<std::string> &sweep_names);
static std::vector< cypress::Json > generate_sweep_vector(const cypress::Json &source, const cypress::Json &target, std::vector< std::string > &sweep_names)
void backup_simulation_results()
ParameterSweep(std::string backend, cypress::Json &config, size_t bench_index=0, size_t threads=1)