Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QHC-700] Add qibo routing #821

Merged
merged 92 commits into from
Nov 8, 2024
Merged

[QHC-700] Add qibo routing #821

merged 92 commits into from
Nov 8, 2024

Conversation

GuillermoAbadLopez
Copy link
Contributor

@GuillermoAbadLopez GuillermoAbadLopez commented Oct 18, 2024

Adding Qibo routing to qililab, both for:

  • Star topology: with the Star specific algorithm of qibo
  • And non-Star topologies: With the General ReverseLayout and SabreRouting from https://arxiv.org/abs/1809.02573

PROBLEMS TO SOLVE:

  • Automatically undo mapping of qubits in the results? 🤔
  • Drags are not a qibo native gates, and its Transpiler dunno if handle it well? (✅ -> handles well)
  • Make transpiler loop and keep the best optimization < SWAPS (✅ -> implemented with _iterate_routing)

Missing:

  • Better documentation, specifying the algorithms used.
  • Manually testing the function
  • Adding basic unit test for it
  • Simplify unit test, make them more clever with parametrize
  • Test the results mapping of qubits, and everything else in HW 🔥

More improvements on the transpiler structure, added by: #823

  • Adding direct gate cancellations before pulse scheduling
  • Separate drag bunching from Victor?
  • Missing, removal of 2pi*N, amplitude Drags

@GuillermoAbadLopez GuillermoAbadLopez self-assigned this Oct 18, 2024
@GuillermoAbadLopez GuillermoAbadLopez changed the title Add qibo routing [QHC-700] Add qibo routing Oct 18, 2024
Copy link

linear bot commented Oct 18, 2024

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.61%. Comparing base (6b1e3ec) to head (0f0eaa9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #821      +/-   ##
==========================================
+ Coverage   96.51%   96.61%   +0.10%     
==========================================
  Files         218      221       +3     
  Lines        7432     7652     +220     
==========================================
+ Hits         7173     7393     +220     
  Misses        259      259              
Flag Coverage Δ
unittests 96.61% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from qhc-777-add-channel_ids-for-all-instruments-connected-to-a-bus to main October 30, 2024 11:17
@fedonman
Copy link
Collaborator

I am starting reviewing now, first thing I noticed is that changelog entry is missing! Please write a detailed one, with an example on how to use the routing.

@GuillermoAbadLopez
Copy link
Contributor Author

I am starting reviewing now, first thing I noticed is that changelog entry is missing! Please write a detailed one, with an example on how to use the routing.

You are soo right, my bad! Adding it right now 👍

@GuillermoAbadLopez
Copy link
Contributor Author

@fedonman changelog added! 🔥

Copy link
Collaborator

@fedonman fedonman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job mate! 💯

* Improve transpiler

* Update circuit_transpiler.py

* Add pairs of hermitian gate cancellation

* Making the transpiler more modular

* Make transpiler more modular

* Update circuit_to_pulses.py

* Update circuit_transpiler.py

* Update circuit_to_pulses.py

* Solve problem with Drag initialization, and tests

* Solve tests

* Solving and testing circuit optimizer

* Solving unit tests

* Adding unit test

* Solve.unit test

* Update changelog-dev.md

* Update changelog-dev.md

* Improve typings and docstrings

* Take optimize parameter in cascade up, to the user calls
@GuillermoAbadLopez GuillermoAbadLopez merged commit dea01bb into main Nov 8, 2024
6 checks passed
@GuillermoAbadLopez GuillermoAbadLopez deleted the qibo_routing branch November 8, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants