Skip to content

Commit

Permalink
🎨 pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 7, 2023
1 parent e09ff67 commit 405baa8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions include/configuration/Configuration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ struct Configuration {
// initial layout to use for heuristic approach
InitialLayout initialLayout = InitialLayout::Dynamic;

// iterative bidirectional routing, i.e. after an initial layout is found,
// the circuit is routed multiple times back and forth (using settings
// iterative bidirectional routing, i.e. after an initial layout is found,
// the circuit is routed multiple times back and forth (using settings
// optimized for time-efficiency) without actually inserting any swaps;
// this gradually improves the initial layout; after all passes are done,
// one final full routing pass is performed
bool iterativeBidirectionalRouting = true;
bool iterativeBidirectionalRouting = true;
std::size_t iterativeBidirectionalRoutingPasses = 0;

// lookahead scheme settings
Expand All @@ -66,11 +66,11 @@ struct Configuration {
// timeout merely affects exact mapper
std::size_t timeout = 3600000; // 60min timeout

// if layers should be automatically split after a certain number of expanded
// nodes, thereby reducing the search space (but potentially eliminating
// opportunities for cost savings); acts as a control between runtime and
// if layers should be automatically split after a certain number of expanded
// nodes, thereby reducing the search space (but potentially eliminating
// opportunities for cost savings); acts as a control between runtime and
// result quality
bool automaticLayerSplits = false;
bool automaticLayerSplits = false;
std::size_t automaticLayerSplitsNodeLimit = 5000;

// encoding of at most and exactly one constraints in exact mapper
Expand Down
4 changes: 3 additions & 1 deletion test/test_heuristic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,9 @@ TEST(HeuristicTestFidelity, LayerSplitting) {
settings.postMappingOptimizations = false;
settings.swapOnFirstLayer = true;
settings.automaticLayerSplits = true;
settings.automaticLayerSplitsNodeLimit = 1; // force splittings after 1st expanded node until layers are unsplittable
settings.automaticLayerSplitsNodeLimit =
1; // force splittings after 1st expanded node until layers are
// unsplittable
settings.dataLoggingPath = "test_log/";
mapper->map(settings);
mapper->dumpResult("simple_grid_mapped.qasm");
Expand Down

0 comments on commit 405baa8

Please sign in to comment.