Skip to content

Commit

Permalink
🎨 small fix in the experiment script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewniok committed Sep 9, 2024
1 parent 7aedb4d commit d6d1cd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ int main() // NOLINT
using cell_lyt = fiction::sidb_cell_clk_lyt_cube;

fiction::design_sidb_gates_params<fiction::cell<cell_lyt>> design_gate_params{};
design_gate_params.simulation_parameters = fiction::sidb_simulation_parameters{2, -0.32};
design_gate_params.operational_params.simulation_parameters = fiction::sidb_simulation_parameters{2, -0.32};
// needs to be changed if a different skeleton is used.
design_gate_params.canvas = {{24, 17}, {34, 28}};

design_gate_params.number_of_sidbs = 3;
design_gate_params.sim_engine = fiction::sidb_simulation_engine::QUICKEXACT;
design_gate_params.operational_params.sim_engine = fiction::sidb_simulation_engine::QUICKEXACT;
design_gate_params.termination_cond =
fiction::design_sidb_gates_params<fiction::cell<cell_lyt>>::termination_condition::AFTER_FIRST_SOLUTION;

Expand Down
12 changes: 7 additions & 5 deletions include/fiction/technology/sidb_on_the_fly_gate_library.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,11 @@ class sidb_on_the_fly_gate_library : public fcn_gate_library<sidb_technology, 60
}
bestagon_lyt.foreach_cell([&defect_copy, &bestagon_lyt](const auto& c)
{ defect_copy.assign_cell_type(c, bestagon_lyt.get_cell_type(c)); });
const auto status = is_operational(defect_copy, truth_table,
is_operational_params{parameters.design_gate_params.simulation_parameters,
parameters.design_gate_params.sim_engine})
.first;
const auto status =
is_operational(defect_copy, truth_table,
is_operational_params{parameters.design_gate_params.operational_params.simulation_parameters,
parameters.design_gate_params.operational_params.sim_engine})
.first;
return static_cast<bool>(status == operational_status::OPERATIONAL);
}
/**
Expand Down Expand Up @@ -494,7 +495,8 @@ class sidb_on_the_fly_gate_library : public fcn_gate_library<sidb_technology, 60
static_assert(has_sidb_technology_v<CellLyt>, "CellLyt is not an SiDB layout");
static_assert(has_cube_coord_v<CellLyt>, "CellLyt is not based on cube coordinates");

const auto params = is_sidb_gate_design_impossible_params{parameters.design_gate_params.simulation_parameters};
const auto params = is_sidb_gate_design_impossible_params{
parameters.design_gate_params.operational_params.simulation_parameters};

if (spec == create_crossing_wire_tt() || spec == create_double_wire_tt())
{
Expand Down

0 comments on commit d6d1cd8

Please sign in to comment.