Skip to content

Commit

Permalink
[bug] Fix missing random parameters when adding new symbolic parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
xumingkuan committed Dec 13, 2024
1 parent de7ae92 commit 6740341
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/quartz/context/param_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ int ParamInfo::get_new_param_id(const ParamType &param) {
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<CircuitWire>();
wire->type = CircuitWire::input_param;
wire->index = id;
Expand Down

0 comments on commit 6740341

Please sign in to comment.