Skip to content

Commit

Permalink
Update method names. (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Mar 1, 2022
1 parent 57babdc commit 540de72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tket/src/Mapping/AASLabelling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ std::pair<bool, unit_map_t> AASLabellingMethod::routing_method(
if (found_unplaced_qubit) {
std::shared_ptr<unit_frontier_t> next_frontier =
frontier_convert_vertport_to_edge(
mapping_frontier->circuit_, mapping_frontier->quantum_boundary);
mapping_frontier->circuit_, mapping_frontier->linear_boundary);

CutFrontier next_cut = mapping_frontier->circuit_.next_cut(
next_frontier, std::make_shared<b_frontier_t>());
Expand Down Expand Up @@ -93,7 +93,7 @@ std::pair<bool, unit_map_t> AASLabellingMethod::routing_method(
}
}

mapping_frontier->update_quantum_boundary_uids(qubit_to_nodes_place);
mapping_frontier->update_linear_boundary_uids(qubit_to_nodes_place);
mapping_frontier->circuit_.rename_units(qubit_to_nodes_place);

return {true, {}};
Expand Down
2 changes: 1 addition & 1 deletion tket/src/Mapping/AASRoute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ std::pair<bool, unit_map_t> AASRouteRoutingMethod::routing_method(
const ArchitecturePtr& architecture) const {
std::shared_ptr<unit_frontier_t> next_frontier =
frontier_convert_vertport_to_edge(
mapping_frontier->circuit_, mapping_frontier->quantum_boundary);
mapping_frontier->circuit_, mapping_frontier->linear_boundary);

CutFrontier next_cut = mapping_frontier->circuit_.next_cut(
next_frontier, std::make_shared<b_frontier_t>());
Expand Down
2 changes: 1 addition & 1 deletion tket/src/Mapping/MappingFrontier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void MappingFrontier::advance_frontier_boundary(
}

// for each quantum edge into vertex, collect associated Qubit/Node
// don't collect port as this->quantum_boundary holds this
// don't collect port as this->linear_boundary holds this
// each UnitID will only have one quantum edge active
std::vector<UnitID> l_uids; // linear unit id
std::vector<Node> nodes; // quantum/node only
Expand Down

0 comments on commit 540de72

Please sign in to comment.