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

Rename qubits of transpiled circuit based on connectivity #1197

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

Simone-Bordoni
Copy link
Contributor

@Simone-Bordoni Simone-Bordoni commented Feb 7, 2024

As it is possible to name the wires of a circuit this functionality can be used to give the quabits of the transpiled circuit the same name of the hardware qubits when the connectivity is restricted. I have also solved some minos problems regarding an error message that was being printed during the block decomposition and the unroller not initialising the unrolled circuit with the same kwargs of the original circuit.

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.

@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4b4e6c3) 100.00% compared to head (ac353e2) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1197   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           70        70           
  Lines        10376     10379    +3     
=========================================
+ Hits         10376     10379    +3     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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.

src/qibo/transpiler/blocks.py Outdated Show resolved Hide resolved
src/qibo/transpiler/unroller.py Show resolved Hide resolved
@renatomello renatomello added this pull request to the merge queue Feb 14, 2024
Merged via the queue into master with commit 35d71fd Feb 14, 2024
21 checks passed
@renatomello renatomello deleted the rename_qubits_connectivity branch February 14, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants