From 6740341f25014cbd27efd928024827efd6663ec4 Mon Sep 17 00:00:00 2001 From: xumingkuan Date: Thu, 12 Dec 2024 23:40:43 -0500 Subject: [PATCH] [bug] Fix missing random parameters when adding new symbolic parameters --- src/quartz/context/param_info.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/quartz/context/param_info.cpp b/src/quartz/context/param_info.cpp index 84531e6a..cbd5515c 100644 --- a/src/quartz/context/param_info.cpp +++ b/src/quartz/context/param_info.cpp @@ -68,6 +68,8 @@ int ParamInfo::get_new_param_id(const ParamType ¶m) { int ParamInfo::get_new_param_id() { int id = (int)is_parameter_symbolic_.size(); is_parameter_symbolic_.push_back(true); + // Make sure to generate a random parameter for each symbolic parameter. + gen_random_parameters(id + 1); auto wire = std::make_unique(); wire->type = CircuitWire::input_param; wire->index = id;