Closed csookim closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.99%. Comparing base (
c598c67
) to head (eafec2a
). Report is 38 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Is this ready for review? Or still work in progress?
Is this ready for review? Or still work in progress?
Ready for review. Thanks.
Ready for review. Thanks.
Then, let's appoint some reviewers during the Qibo meeting ;)
Unless you or @marekgluza have already someone to propose.
I will take care of the review. I have tried to fix this issue for many month without success. I made the algorithm using the paper https://arxiv.org/pdf/1809.02573 and I didn't manage to find this correction made by qiskit (https://github.com/Qiskit/qiskit/blob/e5ee1a8d97753ccca09b0c15be7b7ab0c1c84b90/crates/accelerate/src/sabre/route.rs#L559). Thank you for finding this out!
The implemented solution uses the shortest path routing strategy to address the prolem. This is the same euristic strategy employed in the shortest_paths router. In this router all the possible shortest paths are considered and between them the one that also matches the connectivity of the maximum amount of other gates is chosen. Integrating the shortest_paths router in the SABRE may improve its performance (in terms of added_swaps) with a small time performance reduction. I think we may have a meet to discuss this possibility in a future PR.
Can you also add a test checking that the method "_route_to_nearest_gate()" alone is correctly working? I also suggest changing the name of the method to "_shortest_path_routing()"
@Simone-Bordoni @BrunoLiegiBastonLiegi Thanks for the review. Will this be merged at the qibo meeting, or can I merge it myself?
I don't think we need to wait, but just to be sure we can ask @scarrazza.
@Simone-Bordoni @BrunoLiegiBastonLiegi Thanks for the review. Will this be merged at the qibo meeting, or can I merge it myself?
Please wait until tomorrow. I would like to have a Quick Look after the changes.
This PR addresses the issue #1396.
Checklist: